[Chicken-users] Re: Chicken fails to build on Windows (mingw)
> Hm... how did you invoke make? Did you pass "PLATFORM=mingw"? Yes, I used the following build command, nothing special really: mingw32-make PREFIX=c:/chicken PLATFORM=mingw C_COMPILER_OPTIMIZATION_OPTIONS="-O2 -pipe" Anyway, I think I found where the problem lies: Line 86 in extras.scm contains this: > ;;; Random numbers: > > (cond-expand > (unix > ... > (else > ... Apparently, the C files used for bootstrapping were generated on a unix machine - which means that the C files will always contain the unix-specific code branch, unless they were regenerated on the target platform. Shouldn't this kind of check be done using C preprocessor instead? -Fadi ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Chicken fails to build on Windows (mingw)
Hi, Fadi! Hm... how did you invoke make? Did you pass "PLATFORM=mingw"? > > Out of curiosity, why is Chicken using these functions instead of the > standard C rand/srand ? There shouldn't be any difference > functionality-wise AFAIK. Because they provide better randomness. Originally it was thought that these functions are portable. They aren't, but we are just now finding out. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Does Chicken garbage collect unreferenced symbols?
On 23 Aug 2009, at 10:38 pm, John Cowan wrote: The idea is to speed up string lookups. Currently the a-list maps strings to values, which means I must use assoc to search it. If it mapped symbols to values instead, I could use the faster assq. I'd rather intern the strings once and have done, but I don't want to cause a memory leak. Furthermore, the string I'm looking for is sometimes derived from symbol->string, so I actually have a symbol to start with. This is probably true for the majority of lookups, though not the majority of entries. Ah, OK. When you spoke of "random" symbols, I had a fear you were generating symbols with (eg) sequential numbers as names or something similarly meaningless, just to get a 'comparison token'. ABS -- Alaric Snell-Pym Work: http://www.snell-systems.co.uk/ Play: http://www.snell-pym.org.uk/alaric/ Blog: http://www.snell-pym.org.uk/archives/author/alaric/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users