[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using guile as an extension language for GNU make
From: |
Thien-Thi Nguyen |
Subject: |
Re: Using guile as an extension language for GNU make |
Date: |
Mon, 19 Sep 2011 02:28:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
() Paul Smith <address@hidden>
() Sun, 18 Sep 2011 15:28:00 -0400
[new impl]
That's better than what I had before, but I still have some concerns.
For example, what if a Guile call wanted to return a list? I can use
display as above, but the list will be enclosed in parentheses, which is
not how make displays lists. Is there a clean way to handle this?
"Clean" in what way? Everything depends on what the expected (valid) use
of this facility would be. Could you give some examples (w/ failure cases)?
I could write a function then invoke it with scm_map() (right?) but this
seems like it might be work.
Everything is work. Even play is work (but hopefully more fun/interesting).
Also what if the data structure is more complex, where some elements of the
list are lists themselves, etc.? I can "flatten" the entire thing out, I
suppose.
Yes.
Or I could ignore them as above and require the Guile scripting to
convert the list into a string before returning it.
Right. The protocol is internal; you can choose 60/40 or 40/60.
I think concomitant w/ this particular hacking it would nice to implement
some of the make functions (e.g., ‘patsubst’) in Scheme. Enough of that
and you will end up {in,con}verting the "embedding" effort to an "extending"
effort as suggested by Ludo -- YHBW! :-D
- Using guile as an extension language for GNU make, Paul Smith, 2011/09/17
- Re: Using guile as an extension language for GNU make, Ludovic Courtès, 2011/09/18
- Re: Using guile as an extension language for GNU make, Thien-Thi Nguyen, 2011/09/18
- Re: Using guile as an extension language for GNU make, Paul Smith, 2011/09/18
- Re: Using guile as an extension language for GNU make,
Thien-Thi Nguyen <=
- Re: Using guile as an extension language for GNU make, Paul Smith, 2011/09/19
- Re: Using guile as an extension language for GNU make, Hans Aberg, 2011/09/19
- Re: Using guile as an extension language for GNU make, Paul Smith, 2011/09/19
- Re: Using guile as an extension language for GNU make, Hans Aberg, 2011/09/19
- Re: Using guile as an extension language for GNU make, Hans Aberg, 2011/09/19
- Re: Using guile as an extension language for GNU make, Mark H Weaver, 2011/09/20
- Re: Using guile as an extension language for GNU make, Hans Aberg, 2011/09/21
- Re: Using guile as an extension language for GNU make, Thien-Thi Nguyen, 2011/09/20
- Re: Using guile as an extension language for GNU make, Paul Smith, 2011/09/20
- Re: Using guile as an extension language for GNU make, Paul Smith, 2011/09/20