Re: [Chicken-users] call-with-values speed

2005-11-22 Thread F. Wittenberger
thanks for sharing this experience. It's quite interesting to me: I've been wondering why a project of mine ran sooo slow in comparision to the rscheme based implementation. But considering that I love multiple value returns, I can understand. I vaguely recall that chicken uses C parameter

[Chicken-users] new eggs: wt-tree, crc and nbstdin

2005-11-22 Thread felix winkelmann
New eggs are available: nbstdin (non-blocking stdin) and crc checksum eggs by Daishi Kato: http://www.call-with-current-continuation.org/eggs/nbstdin.html http://www.call-with-current-continuation.org/eggs/nbstdin.html weight-balanced trees, by Reed Sheridan:

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread Matthew David Parker
On Tue, 22 Nov 2005, felix winkelmann wrote: Hi, Matthew! How do you allocate the C string, and how is it passed to Scheme? Ah hah! That was it, no fault with CHICKEN, really, I allocated the string incorrectly. I was doing: AIargs = malloc(sizeof(argstring)); Which was only 4 bytes,

Re: [Chicken-users] call-with-values speed

2005-11-22 Thread Zbigniew
You are correct about the compiled version. Sorry, I should have posted my compiled times instead (although many people seem to run their code in csi, they are probably not doing so for performance critical code). I guess the end result was, if I need to return multiple values from a C

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread Zbigniew
Try the readline egg at http://www.call-with-current-continuation.org/eggs/readline.html. On 11/22/05, Matthew David Parker [EMAIL PROTECTED] wrote: PS. On a side question, is there some thing you can do in the csi chicken interpreter to make it so you can press the up arrow and cycle through

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread Raffael Cavallaro
On Nov 22, 2005, at 12:04 PM, Matthew David Parker wrote:PS. On a side question, is there some thing you can do in the csi chicken interpreter to make it so you can press the "up" arrow and cycle through the history of your commands, like in a bash shell? If you use emacs with one of the scheme

[Chicken-users] CMake status

2005-11-22 Thread Brandon J. Van Every
John.Cowan wrote: The mkdir command in Unix is a thin wrapper over the mkdir() system call, and creates only the final directory mentioned in an argument pathname; all others must exist. However, the standard -p option will create all the directories mentioned if they do not exist already.

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread Thomas Chust
Am 22.11.2005, 17:04 Uhr, schrieb Matthew David Parker [EMAIL PROTECTED]: [...] So I had to do sizeof(strlen(argstring) + 1) instead. Hello, what is that sizeof operator doing there? It should just be something like malloc(strlen(argstring) + 1) otherwise the value of the expression will

[Chicken-users] Re: [CMake] Detecting MinGW MSYS or Cygwin unix style file system

2005-11-22 Thread Brad King
Brandon J. Van Every wrote: I notice that on Windows the default CMAKE_INSTALL_PREFIX is C:/Program Files. However, this doesn't actually make sense to a MinGW user employing MSYS. MSYS implements a unix-style file system, so a proper prefix would more likely be /usr/local. CMake 2.0 used

[Chicken-users] Re: [CMake] installation directory not created on MSYS

2005-11-22 Thread Brad King
Brandon J. Van Every wrote: Here's what surprises me. Under the Windows command prompt, C:/Program Files/Chicken is created if it doesn't exist already. But under MSYS, /usr/local/bin is *not* created if it doesn't exist already. Moreover, the failure is silent, no error is given. The

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread felix winkelmann
On 11/22/05, Zbigniew [EMAIL PROTECTED] wrote: Try the readline egg at http://www.call-with-current-continuation.org/eggs/readline.html. On 11/22/05, Matthew David Parker [EMAIL PROTECTED] wrote: PS. On a side question, is there some thing you can do in the csi chicken interpreter to make

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-22 Thread Pupeno
On Tuesday 22 November 2005 03:26, felix winkelmann wrote: On 11/21/05, Pupeno [EMAIL PROTECTED] wrote: You only need to handle compiler-specifiic syntax, which is mainly # ... #- Why ? I already handle that and I already encountered cases where I'd have to handle EOF and similar.

Re: [Chicken-users] Dynamic loading foreign C library problem

2005-11-22 Thread felix winkelmann
Hm... Is there some more information available? When exactly does the segfault occur? cheers, felix On 11/22/05, Matthew David Parker [EMAIL PROTECTED] wrote: Alright, I got the readline egg and it works quite well. Though, when I run the function to load up my game window it throws a

Re: [Chicken-users] Repetitive callback into scheme from C thread hangs

2005-11-22 Thread felix winkelmann
On 11/22/05, Matthew David Parker [EMAIL PROTECTED] wrote: Normally to do a callback I'd do this: (define call.foo (foreign-safe-lambda void callfoo)) (define AImain (lambda () (printf hello\n))) (define foo (foreign-safe-wrapper void foo

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-22 Thread felix winkelmann
On 11/23/05, Pupeno [EMAIL PROTECTED] wrote: BTW, what should I return from my procedures that handle extensions. I was returning '() but that causes an error, I am now returning '(nevermind) since I don't care about it. Sorry, what kind of procedures are that? The procedure that