Re: project: translate guile-tutorial.texi to use guile-cairo

2011-09-20 Thread Tobias Gerdin
On 28 Apr 2011, at 11:41, Andy Wingo wrote: > Guile has a tutorial written by Daniel Kraft, which uses Scheme to > extend a C drawing process. It uses Gnuplot for the drawing, which is > not GNU, and AFAIK not even free software. It would be better to use > some other drawing library; for exampl

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Thien-Thi Nguyen
() Paul Smith () Mon, 19 Sep 2011 11:14:34 -0400 In make, everything is just words: broken up on whitespace. So for example, maybe someone writes a Guile function that computes a complex set of prerequisites for a target: target: $(guile (...some Guile program...)) Even bef

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Paul Smith
On Tue, 2011-09-20 at 18:17 +0200, Thien-Thi Nguyen wrote: > () Paul Smith > () Mon, 19 Sep 2011 11:14:34 -0400 > >In make, everything is just words: broken up on whitespace. So for >example, maybe someone writes a Guile function that computes a complex >set of prerequisites for a ta

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Paul Smith
On Tue, 2011-09-20 at 13:31 -0400, Paul Smith wrote: > > In Scheme, w/ SRFI 13, you could express this as: > > > > This is not so tricky, i think. > > Heh, cute! Thinking about this more it occurs to me that I will likely need a module defined for any GNU make specific procedures I write to avo

Re: project: translate guile-tutorial.texi to use guile-cairo

2011-09-20 Thread Tobias Gerdin
2011/9/20 Tobias Gerdin : > Lastly, just thought I'd mention an issue that I ran into when > building Guile-Cairo (commit 1918626 from Git, looks like it > corresponds to 1.9.91). When I run autogen/configure it complains that > I need to supply a prefix argument because "the default prefix, > /us

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Thien-Thi Nguyen
() Paul Smith () Tue, 20 Sep 2011 13:31:28 -0400 I showed the code in my original post, but the way I've implemented it is that the argument to the make "guile" function (that is, everything after the "$(guile " to the closing paren--it's handy that Guile parens will virtually always

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Thien-Thi Nguyen
() Paul Smith () Tue, 20 Sep 2011 15:02:09 -0400 I was thinking something like "gnu make" would be OK, but maybe there are already conventions for applications/application-specific module hierarchies that I should be following? None that i am aware of. If the module is completely inter

Re: Using guile as an extension language for GNU make

2011-09-20 Thread Mark H Weaver
Hi Paul, Thanks for working on this! :) Paul Smith writes: > So far, I have these translations (see the C code I posted earlier): > > t => "t" (for make conditionals, non-empty is true) > nil => "" (for make conditionals, empty is false) Note that in modern Scheme, t and