Re: Need help to understand a macro

2010-03-22 Thread Neil Jerram
Josef Wolf writes: > BTW: While we're at the docs, what I find confusing about guile documentation > is that it talks extensively about the C bindings, but has not much to say > about the language itself and how guile differs from the standard (extensions, > limitations). But maybe I've just not

Re: Reconsideration of MinGW work

2010-03-22 Thread Neil Jerram
Linas Vepstas writes: > My pet peeve with mingw is the lack of ready-to-go regex. This is completely > unrelated to guile; I have another project that made the mistake of assuming > that regex "just worked" on windows, and I've been bitched at ever > since. Gnulib has a regex library. > Getting

Re: Reconsideration of MinGW work

2010-03-22 Thread Neil Jerram
Peter Brett writes: > Neil Jerram writes: > >> I've been making gradual progress on MinGW cross building, but I've >> reached a point where I'm no longer sure that this is worthwhile. This >> email explains why, and invites comments from anyone interested in this >> - especially from anyone who

Re: Reconsideration of MinGW work

2010-03-22 Thread Neil Jerram
Ken Raeburn writes: > Yes... you then also need to decide if Guile is exposing GNU/POSIX > functionality, whatever the native OS functionality is, or some > abstraction... Ideally, yes, I think. In other words, I think it's preferable if Guile provides the same function to applications on all p

Re: Reconsideration of MinGW work

2010-03-22 Thread Greg Troxel
Ken Raeburn writes: > One nagging concern I've got about my Guile-Emacs project is the > seemingly narrow focus of active Guile developers as far as platforms > are concerned. I'm one of, what, two or three people testing the > development versions on Mac OS X now and then, and most of the rest

Re: Need help to understand a macro

2010-03-22 Thread Andreas Rottmann
Josef Wolf writes: > On Fri, Mar 19, 2010 at 05:15:57PM +0100, Andreas Rottmann wrote: >> defmacros are bound to bite you in the proverbial ass real hard when you >> combine them with modules, so it's best to avoid them like the >> plague. At least that's my experience, FWIW. > > Thanks for the w

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Mon, Mar 22, 2010 at 09:36:16PM +0100, Andy Wingo wrote: > Hi Josef, > > On Mon 22 Mar 2010 20:50, Josef Wolf writes: > > >> http://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=doc/ref/api-macros.texi;h=51f54ed070af453a138282f61e7cd8dbbddc53a3;hb=HEAD > > > > Where can I find a version t

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Sat, Mar 20, 2010 at 03:13:45PM +0100, szgyg wrote: > Josef Wolf wrote: > >I am trying to understand the defstruct macro from the "teach yourself > >scheme in fixnum days" tutorial, which can be found in chapter 9 at > >http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-11.html#node_cha

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Mon, Mar 22, 2010 at 09:16:34PM +0100, Andy Wingo wrote: > Hi Josef, > > I seem to be the negative guy in replies to you. Uh? I did not notice anything negative? > Apologies for that! I don't see any reason for you to apologize... > On Mon 22 Mar 2010 20:25, Josef Wolf writes: > > > On Fr

Re: Need help to understand a macro

2010-03-22 Thread Andy Wingo
Hi Josef, On Mon 22 Mar 2010 20:50, Josef Wolf writes: >> http://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=doc/ref/api-macros.texi;h=51f54ed070af453a138282f61e7cd8dbbddc53a3;hb=HEAD > > Where can I find a version translated in pdf or html or something? http://hydra.nixos.org/build/32939

Re: guile-gnome-0 - guile-1.6.8-6.3 - random crash

2010-03-22 Thread Andy Wingo
On Wed 17 Mar 2010 21:09, David Pirotte writes: > I know, guile-gnome-0 is obsolate ... But I have no choice right know and > really really hope that > I can help developers to find out what the problem is and debug it ... As long as you know this :) This was released *five years ago* :) Are

Re: gnucash & guile-2.0

2010-03-22 Thread Gour
On Mon, 22 Mar 2010 21:17:18 +0100 >> "Andy" == Andy Wingo wrote: Andy> After some talk on IRC, I don't think gnucash folk are against Andy> Guile 2.0, but they probably would appreciate help and patches Andy> and so. I'll take a look at this later this week. I did not mean to say they are '

Re: Need help to understand a macro

2010-03-22 Thread Andy Wingo
Hi Josef, I seem to be the negative guy in replies to you. Apologies for that! On Mon 22 Mar 2010 20:25, Josef Wolf writes: > On Fri, Mar 19, 2010 at 08:54:02AM -0400, Ken Raeburn wrote: >> >> The result of (if #f #f) is unspecified, not #f, according to r5rs. >> That means an implementation c

Re: gnucash & guile-2.0

2010-03-22 Thread Andy Wingo
Hi! On Sun 21 Mar 2010 16:53, Gour writes: > Based on the info which I got, it looks that upcoming gnucash-2.4 will > support only guile <= 1.8.x, so I'm curious if someone can share some > info if adding support for 2.0 (which looks as significant milestone > for guile) is easy or difficult tas

Re: Reconsideration of MinGW work

2010-03-22 Thread Andy Wingo
Hi! On Mon 22 Mar 2010 02:28, Ken Raeburn writes: > I think cross-compilation and cross-testing is a good thing to be able > to do. Totally agreed. I'd like to start compiling Guile for ARM devices now. > Perhaps having build farms available with multiple platform types can > help there. Ther

Re: Reconsideration of MinGW work

2010-03-22 Thread Linas Vepstas
On 22 March 2010 14:00, Andy Wingo wrote: > Hi Peter (& Neil & co), > > On Mon 22 Mar 2010 09:10, Peter Brett writes: >> >> We get people coming to the gEDA user mailing list on a regular basis >> saying, "Where can I find a version of gEDA for Windows?" and the >> Windows builds we've put out ha

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Fri, Mar 19, 2010 at 03:28:39PM +0100, Andy Wingo wrote: > Hi, > > On Fri 19 Mar 2010 09:57, Josef Wolf writes: > > > (show-expansion (defstruct tree height girth age leaf-shape leaf-color)) > > (macroexpand '(defstruct ...)) > > You might want to surround that with (pretty-print ...) from

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Fri, Mar 19, 2010 at 05:15:57PM +0100, Andreas Rottmann wrote: > defmacros are bound to bite you in the proverbial ass real hard when you > combine them with modules, so it's best to avoid them like the > plague. At least that's my experience, FWIW. Thanks for the warning. I'd like to understan

Re: Reconsideration of MinGW work

2010-03-22 Thread Andy Wingo
Hi Peter (& Neil & co), On Mon 22 Mar 2010 09:10, Peter Brett writes: > Neil Jerram writes: > >> I've been making gradual progress on MinGW cross building, but I've >> reached a point where I'm no longer sure that this is worthwhile. This >> email explains why, and invites comments from anyone

Re: Need help to understand a macro

2010-03-22 Thread Josef Wolf
On Fri, Mar 19, 2010 at 08:54:02AM -0400, Ken Raeburn wrote: > On Mar 19, 2010, at 04:57, Josef Wolf wrote: > > My next question is more related to the defstruct macro. > > In line 11, defstruct stores the default initializers into the vv vector: > > > > (if (pair? f) (cadr f) '(if #f #f))) > >