[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18335] Addition of $(math ...) functions
From: |
Paul D. Smith |
Subject: |
[bug #18335] Addition of $(math ...) functions |
Date: |
Mon, 05 Oct 2009 22:39:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009090217 Ubuntu/9.04 (jaunty) Firefox/3.0.14 |
Follow-up Comment #5, bug #18335 (project make):
No one is suggesting integrating Guile just to provide math functions. There
are a lot of operations which are not covered by the current suite of make
functions (take a look at the various enhancement requests, etc. for new ones)
and I'm not interested in writing an entirely new procedural language in
make.
There certainly would be some performance savings from an "embedded shell",
but perhaps not as much as you'd expect since /bin/sh needs to still run
programs such as sed, awk, etc. to do most of its work. As well, while you
might save an exec call per instance, even an embedded shell interpreter would
have to do a lot of forking: that's just how the shell works. Probably, to
preserve current semantics, it would need to fork for every rule it ran. On
some systems forks are cheap, but definitely not all.
Guile is the standard embedded scripting language for GNU. It also has a
syntax that meshes well with make's syntax, which already relies on parens
etc. Having shell syntax embedded in a makefile involves a lot more escaping
of parenthesis, dollar signs, etc.
And finally, as far as I'm aware there is no embeddable shell interpreter
available anywhere, and I'm sure not interested in writing my own.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18335>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/