guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serious bug inn GUILE rational handling


From: Kevin Ryde
Subject: Re: Serious bug inn GUILE rational handling
Date: Tue, 26 Dec 2006 08:21:59 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Bill Schottstaedt" <address@hidden> writes:
>
> On the race condition, my vage recollection
> is that the "is this safe?" question was mine,

Sorry if I tried to claim it when it was yours.  :-)

Han-Wen Nienhuys <address@hidden> writes:
>
> In that case, we need to fix the more-like-it stuff.  Can you point out 
> some of those cases? 

I don't have any on my crib list, FWIW.  I remember symbol interning
looked worrying, unless that already got some attention.

> Correct macros would extract both num and den atomically 
> into temporary values.

2-word atomic read/write might be possible on i386 with the mmx or
floating point instructions, though a bit painful to setup.  Elsewhere
you could be in the realm of mutexes :(.

> Would it be an option to link GUILE to glib? 

That's the start of a slippery slope.  First it's "oh, lets use a bit
of glib", then it's "oh, gtk does nice menus", then it's "lets get the
gnome widgets", then before you know it your program won't even run
outside 100Mb of gnome desktop!  :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]