Re: Announcing CML2, a replacement for the kbuild system

From: Andries Brouwer (aeb@veritas.com)
Date: Wed May 24 2000 - 18:19:04 EST


On Wed, May 24, 2000 at 04:17:55PM -0400, Alexander Viro wrote:
>
> Not only. Dependency on Python is definitely a problem - not everyone uses
> 'everything and a kitchen sink' type of userland.

Not so pessimistic! Such a beautiful language.

esr writes:
--------------------------------------------------------------------
2. Python, unlike other scripting languages, can be (effectively)
compiled to pure C using the `freeze' facility. The translation is
not pretty, and produces rather large C programs from even small
Python sources, but it does meet the problem of portability head-on.
Kernels could be shipped with a precompiled rulebase frozen C version
of the CML2 interpreter to avoid the requirement for Python.
--------------------------------------------------------------------

(to esr: Comments:
An inconsistency: cmlcompile starts out "#!/usr/bin/env python"
but cmlconfigure starts out "#!/usr/bin/python".
It looks like you never tried the enclosed makefile.
        rules.out: $(CMLFILES)
                cmlcompile rules.cml
fails because rules.cml does not exist.
The call
        cmlconfigure -m rules.out
fails with
        cmlconfigure: unknown option on command line.
Etc. Maybe you can polish it a bit more, and add a README or INSTALL,
so that not everybody has to debug the same problems.)

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:12 EST