Re: [Chicken-users] chicken-install: prefix problem

2009-04-13 Thread felix winkelmann
On Wed, Apr 8, 2009 at 6:06 PM, fulvio ciriaco oiv...@gmail.com wrote: chicken-install seems to honour CHICKEN_INSTALL_PREFIX only during installation phase, i.e. chicken-install wants to install in $CHICKEN_INSTALL_PREFIX/$CHICKEN_REPOSITORY/ but compiles loading required

Re: [Chicken-users] IPhone

2009-04-13 Thread felix winkelmann
On Thu, Apr 9, 2009 at 11:41 PM, Nicholas Indy Ray arel...@gmail.com wrote: I think actually getting it running should be trivial, interfacing with cocoa might be a bit harder, but not impossible. I figure the largest problems is that the Apple developer agreement has strict requirements

[Chicken-users] wiki checkout trouble

2009-04-07 Thread felix winkelmann
Hi! I can't checkout the wiki pages from svn. I get sth like: svn: In directory 'wiki\xsvnwiki-discuss\compiling-chicken-on-windows-xp-with-mingw' svn: Can't move source to dest svn: Can't move

Re: [Chicken-users] tcp-connect open ports problem

2009-04-06 Thread felix winkelmann
On Mon, Apr 6, 2009 at 2:57 AM, Matt Jones m...@momoweb.co.uk wrote: Ah, I found the problem. My first analysis was wrong. In fact, after line 609 in tcp.scm in the version 3.4 source, the port isn't closed before signalling the exception: (let ((err (get-socket-error s)))

Re: [Chicken-users] Ann.: CHICKEN 4.0.0 released

2009-04-06 Thread felix winkelmann
On Mon, Apr 6, 2009 at 7:41 AM, Leonardo Valeri Manera l.valeriman...@gmail.com wrote: Anyway, Makefile.msvc grief: its using 'cat' where the CMD.EXE mingw makefile isnt. Yes, that should be fixed in trunk. This is a pain because that comes in the coreutils package along with GNU link which

Re: [Chicken-users] Ann.: CHICKEN 4.0.0 released

2009-04-06 Thread felix winkelmann
On Mon, Apr 6, 2009 at 11:02 PM, Leonardo Valeri Manera l.valeriman...@gmail.com wrote This is the MSVC makefile, ofc I'm not using MinGW :D The only GNU utils in path there were cat, make, gzip and tar. That's failing because there's a space between '/out:' and 'chicken-import.so' Ah.

Re: [Chicken-users] -prologue

2009-04-05 Thread felix winkelmann
On Thu, Mar 26, 2009 at 5:08 AM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Hello, I just noticed that something like this: csc somefile.scm -dynamic -prologue SOME-DIRECTORY doesn't produce an error. Does it make sense to pass a directory to '-prologue'? Just wondering if maybe

Re: [Chicken-users] Re: Trac moving to new server

2009-04-05 Thread felix winkelmann
On Tue, Mar 31, 2009 at 9:24 PM, Arto Bendiken arto.bendi...@gmail.com wrote: Also, I've asked Mario to change the Galinha repository rsync so that http://trac.callcc.org/timeline will start showing the latest updates again. Unless anyone is experiencing some new unexpected problems, this

Re: [Chicken-users] srfi-27 on chicken 4

2009-04-05 Thread felix winkelmann
On Wed, Apr 1, 2009 at 4:25 AM, Kon Lovett klov...@pacbell.net wrote: On Mar 31, 2009, at 7:02 PM, Eduardo Cavazos wrote: Hello, No pressure or rush. :-) I'm just planning ahead. Do y'all intend to offer SRFI-27 for Chicken 4? Short answer - Yes. Long answer - Need to port 'lexmod' 1st

Re: [Chicken-users] tcp-connect open ports problem

2009-04-05 Thread felix winkelmann
On Sun, Apr 5, 2009 at 11:29 PM, Matt Jones m...@momoweb.co.uk wrote: Kon Lovett wrote: Versions before 3.0 are unsupported AFAIK. Packaged sources are available at the Chicken website: http://call-with-current-continuation.org as are instructions for accessing the source repository.

[Chicken-users] Ann.: CHICKEN 4.0.0 released

2009-04-05 Thread felix winkelmann
Yo! Version 4.0.0 of CHICKEN, the portable and practical Scheme system has been released. In addition to many bugfixes and cleaning up, it provides the following significant changes: - PCRE has been replaced by Alex Shinn's excellent IrRegex regular expression package (while still being API

Re: [Chicken-users] tcp-connect open ports problem

2009-04-05 Thread felix winkelmann
On Mon, Apr 6, 2009 at 1:22 AM, Matt Jones m...@momoweb.co.uk wrote: (BTW, this part of my message above The function 'fail appears to close the port -- (##net#close s) -- but somehow these ports end up open and accumulate. refers to the code in Chicken's tcp.scm, in the definition of

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-28 Thread felix winkelmann
On Sat, Mar 28, 2009 at 9:25 PM, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: On Sat, Mar 28, 2009 at 2:02 AM, Jim Ursetto zbignie...@gmail.com wrote: chicken-setup doesn't exist in Chicken 4 (it's called chicken-install now), and tinyclos isn't packaged for Chicken 4 anyway. Oh that

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-28 Thread felix winkelmann
On Fri, Mar 27, 2009 at 4:28 PM, Leonardo Valeri Manera l.valeriman...@gmail.com wrote: I'm aware of that. The rest of the calls to the compiler are properly calling cl. Also, the MSVC makefile uses cat while the mingw and msys ones dont ... Yes, it also uses touch(1) somewhere. I'm going

[Chicken-users] Re: testing release candidate for 4.0.0

2009-03-28 Thread felix winkelmann
Hello! I wanted to thank everybody who helped in testing this release. It is always amazing and rewarding to get so much feedback and support. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-27 Thread felix winkelmann
2009/3/27 Leonardo Valeri Manera l.valeriman...@gmail.com: Ok, admittedly its been ages since I've used MSVC on the commandline, but: make PLATFORM=msvc PREFIX=blah === (eventually) link -nologo -dll -implib:libchicken.lib \          -out:libchicken.dll library.obj eval.obj

Re: [Chicken-users] Re: testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
On Wed, Mar 25, 2009 at 9:08 PM, Aleksej Saushev a...@inbox.ru wrote: Error: (import) during expansion of (import ...) - cannot import from undefined module: scheme Is the build installed in /usr/pkg/lib, or is this before the install? cheers, felix

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
2009/3/25 Ivan Shcheklein shchekl...@gmail.com: Hi Felix, MSVC+Cygwin's tools. Build failed since both chichen-defaults and chicken-config contain something like this: I don't understand: MSVC + cygwin? cheers, felix ___ Chicken-users mailing

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
On Wed, Mar 25, 2009 at 10:11 PM, Elf e...@ephemeral.net wrote: no.  what happened is that the quoting rules are screwed up.  i forgot to backport the makefile from 3.  ill do it in a few. Please don't touch it, unless we have figured out what exactly goes wrong. cheers, felix

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
On Thu, Mar 26, 2009 at 4:24 AM, Taylor Venable tay...@metasyntax.net wrote: I get the following when running make fullcheck -- scripts/makedist.scm is not in the tarball. I should add it... Thanks. cheers, felix ___ Chicken-users mailing list

Re: [Chicken-users] Re: testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
2009/3/26 Peter Bex peter@xs4all.nl: On Thu, Mar 26, 2009 at 10:19:08AM +0100, felix winkelmann wrote: On Wed, Mar 25, 2009 at 9:08 PM, Aleksej Saushev a...@inbox.ru wrote: Error: (import) during expansion of (import ...) - cannot import from undefined module: scheme Is the build

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
On Thu, Mar 26, 2009 at 1:59 PM, Leonardo Valeri Manera l.valeriman...@gmail.com wrote: You learn something every day I guess, I never suspected MSYS-make would break when used outside of MSYS, though considering the PATH mangling MSYS does its not surprising at all. MSYS does many evil

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-26 Thread felix winkelmann
On Thu, Mar 26, 2009 at 3:09 PM, John Cowan co...@ccil.org wrote: felix winkelmann scripsit: - mingw-msys: you have mingw + msys - mingw: you *DON'T* have msys, just cmd.exe and bare bones mingw I have never understood why we have both these builds, when it seems that mingw would suffice

Re: [Chicken-users] Chicken 3.4 Ubuntu packages

2009-03-26 Thread felix winkelmann
On Thu, Mar 26, 2009 at 8:11 AM, underspecified underspecif...@gmail.com wrote: I noticed that the Chicken packages in Ubuntu are horribly out of date, so I have built the Chicken 3.4 debs hosted on chicken.wiki.br and am hosting them on my repository Ubuntu-NLP

[Chicken-users] mac os x and cflags

2009-03-25 Thread felix winkelmann
Hi! Alex reported that architecture-specific compiler options don't seem to be passed by csc on Mac OS X. I massages Makefile.macosx a bit, but can not test it right now (and could only try the default ppc build, anyway). So if a Mac OS user would try it out, I'd appreciate it (the order in which

[Chicken-users] testing release candidate for 4.0.0

2009-03-25 Thread felix winkelmann
Hi! The current release candidate can be found at: http://www.call-with-current-continuation.org/chicken-4.0.0.tar.gz I tested it on several systems (mingw(+msys), linux), but would appreciate if others could give it a try. Note that some minor recent trunk changes didn't make it, due to

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-24 Thread felix winkelmann
On Tue, Mar 24, 2009 at 7:46 AM, Kon Lovett klov...@pacbell.net wrote: The chicken compiler uses Unit files. Yes, exactly. I'm also puzzled as to how this can be behaving differently between Chicken 3 and 4 when the irregex.scm file is identical. It might be some glue code in regex.scm.

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-23 Thread felix winkelmann
On Mon, Mar 23, 2009 at 6:20 PM, Taylor Venable tay...@metasyntax.net wrote: On Mon, Mar 23, 2009 at 08:48:50AM +0900, Ivan Raikov wrote:   I doubt this is the case, since the regex unit is almost identical between Chicken 3 and Chicken 4. Taylor, can you compile Chicken with the attached

Re: [Chicken-users] no soname

2009-03-20 Thread felix winkelmann
On Thu, Mar 19, 2009 at 10:16 AM, Tobia Conforto tobia.confo...@gmail.com wrote: A developer who wants to build against chicken 3 or 4 will install the right -dev package, which forces removal of the other versions.  But this is a developer-only process and a developer is supposed to either be

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-20 Thread felix winkelmann
On Wed, Mar 18, 2009 at 6:55 PM, Taylor Venable tay...@metasyntax.net wrote: On Wed, Mar 18, 2009 at 10:38:30AM +0100, felix winkelmann wrote: Could you try to build chicken 4? (possibly twice, building the compiler with the compiler built from the bootstrap tarball - so that you are really

Re: [Chicken-users] no soname

2009-03-19 Thread felix winkelmann
On Wed, Mar 18, 2009 at 9:27 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote: Hi Felix,   This means that we cannot have a Debian package for Chicken 4, because Debian insists on having a soname version, so that it can do things like installing libchicken 3 and 4 alongside each other. How

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-18 Thread felix winkelmann
Hi! I think you're right: these are two cases: the 10k stack is already too small on a 64-bit machine and will continuously GC. The other case is the one we're looking for. It may be that the irregex integration has a bug. Could you try to build chicken 4? (possibly twice, building the compiler

[Chicken-users] no soname

2009-03-18 Thread felix winkelmann
Hi! I just removed the use of soname from the build in trunk. It broke explicit dynamic loading of core libraries. I just mention this in case you have installed chicken 4 in the same prefix as a still used chicken 3, because installing chicken 4 will now overwrite the old libraries. cheers,

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-16 Thread felix winkelmann
On Mon, Mar 16, 2009 at 2:32 PM, Taylor Venable tay...@metasyntax.net wrote: Usually when it hangs, I end up sending it ^C when it's inside mark(). So if I step out to C_reclaim() I can step through from line 2802 (or sometimes 2805; in runtime.c) to line 3016. This I do in GDB using the

Re: [Chicken-users] Xlib egg gone missing

2009-03-15 Thread felix winkelmann
On Sun, Mar 15, 2009 at 12:21 PM, William Ramsay ramsa...@comcast.net wrote: To whom it may concern, What happened to the xlib egg?    And especially the docs that go with it? I'm in the middle of a huge project that uses it!!! What's the problem? It seems to be there. cheers, felix

Re: [Chicken-users] cons-wm

2009-03-15 Thread felix winkelmann
On Sat, Mar 14, 2009 at 10:30 AM, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: Cool! (Unfortunately, I'm a Windows user now...) I have a similar problem, involving Macs! However, when I had a NetBSD workstation, I liked the ion window manager - but I always wanted to do my own, that

Re: [Chicken-users] define-macro in Chicken 4.0

2009-03-15 Thread felix winkelmann
On Sat, Mar 14, 2009 at 10:27 AM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Well, I have some portable Scheme code; i.e. code that runs on a few implementations. In that code are some macros which intentionally break hygiene. So that rules out syntax-rules. Just about everybody supports

Re: [Chicken-users] define-macro in Chicken 4.0

2009-03-15 Thread felix winkelmann
On Sun, Mar 15, 2009 at 11:22 AM, Tobia Conforto tobia.confo...@gmail.com wrote: I wrote: (import-for-syntax matchable) (define-syntax define-macro  (lambda (m . _)    `(define-syntax ,(caadr m)       (lambda (e . _)         (match e           (,(cadr m) ,@(cddr m))) Eduardo, does

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-15 Thread felix winkelmann
On Wed, Mar 11, 2009 at 7:25 PM, Taylor Venable tay...@metasyntax.net wrote: Well I was able to trigger a hang in my build with the debugging symbols by setting the nursery stack size to 10k.  Debug log from GDB is attached.  The three entries here were taken from allowing the program to run

Re: [Chicken-users] define-macro in Chicken 4.0

2009-03-15 Thread felix winkelmann
On Sun, Mar 15, 2009 at 12:31 PM, Tobia Conforto tobia.confo...@gmail.com wrote: felix winkelmann wrote: Sorry, but this does not work. An identifier introduced by a previous (hygienic) macro expansion will not be correctly expanded. Does this mean that you can't mix define-macro macros

Re: [Chicken-users] cons-wm

2009-03-14 Thread felix winkelmann
On Fri, Mar 13, 2009 at 11:23 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Hello, cons-wm is a window manager for the X Window System. Features: * Written in Scheme * Runs in Ypsilon, Larceny, and Chicken * Minimalist * Internals based on dwm 5.4.1 cons-wm aims to be a simple window

Re: [Chicken-users] define-macro in Chicken 4.0

2009-03-14 Thread felix winkelmann
On Fri, Mar 13, 2009 at 8:48 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Hello, Is there a way to define 'define-macro' in terms of the new explicit renaming macros of Chicken 4.0? Or is it offered somewhere and I just missed it? I know I know... 'define-macro' is bad. :-) But I have

Re: [Chicken-users] Maintaining my eggs in a separate repository

2009-03-12 Thread felix winkelmann
On Mon, Mar 9, 2009 at 10:12 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: Hi, Azul! I worked hard (with help from Mario and Felix) to try to make the Chicken Eggs repository serve as the central development location for most authors of Chicken extensions.  Ironically, it doesn't

Re: [Chicken-users] Wiki (early) spring cleaning!

2009-03-11 Thread felix winkelmann
On Tue, Mar 10, 2009 at 3:06 PM, Peter Bex peter@xs4all.nl wrote: No problem.  Can we do the same thing for the manual, soon? I volunteer to do that as well, but would like to know if there are gotchas like the Eggs Unlimited 3 page (which is currently broken, it links to call/cc.org

Re: [Chicken-users] Threads and dynamic-wind still problematic

2009-03-10 Thread felix winkelmann
On Sun, Mar 8, 2009 at 12:34 PM, Peter Bex peter@xs4all.nl wrote: On Sun, Mar 08, 2009 at 12:10:39AM +0100, felix winkelmann wrote: Ok, here is what Marc Feeley, the author of SRFI-18 has to say about this: snip Hope that clarifies things. Hope that clarifies things. Yup, thanks

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-10 Thread felix winkelmann
On Mon, Mar 9, 2009 at 3:43 PM, Taylor Venable tay...@metasyntax.net wrote: The bug becomes more and more phantasmagorical! When initially compiling chicken-boot with make PLATFORM=linux DEBUGBUILD=yes bootstrap the bug does not appear. When using -:d OR -:s500k OR -:s1m the bug does not

Re: [Chicken-users] Wiki (early) spring cleaning!

2009-03-10 Thread felix winkelmann
On Tue, Mar 10, 2009 at 9:53 AM, Peter Bex peter@xs4all.nl wrote: This has been implemented now. For example, you can visit http://chicken.wiki.br/eggref/3/9p to view the Chicken 3 documentation for the 9p egg and http://chicken.wiki.br/eggref/3/9p to view the Chicken 4 documentation for

Re: [Chicken-users] Threads and dynamic-wind still problematic

2009-03-09 Thread felix winkelmann
On Sun, Mar 8, 2009 at 12:34 PM, Peter Bex peter@xs4all.nl wrote: Yup, thanks for asking him.  It still sucks, though ;) We are bound to the SRFI-18 spec, but you are free to invent your own API. cheers, felix ___ Chicken-users mailing list

Re: [Chicken-users] setting a callback in xlib

2009-03-07 Thread felix winkelmann
On Sat, Mar 7, 2009 at 7:10 AM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Here's how I'm defining 'XSetErrorHandler' on the Chicken side: (define XSetErrorHandler (foreign-safe-lambda c-pointer XSetErrorHandler (function int (c-pointer c-pointer And finally, a test error

Re: [Chicken-users] setting a callback in xlib

2009-03-07 Thread felix winkelmann
On Sat, Mar 7, 2009 at 11:24 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: In this particular case, like this: (XSetErrorHandler xerrorhandler) If you say (XSetErrorHandler (location xerrorhandler)) does it work, then? But ideally, the API should work such that you can do flexible

Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux

2009-03-07 Thread felix winkelmann
On Fri, Mar 6, 2009 at 3:11 PM, Taylor Venable tay...@metasyntax.net wrote: I have no direct evidence that it was an infinite recursion. It was just a guess by the symptoms, but admittedly I have little knowledge of Chicken's internals. Sorry for the noise on that. The symptoms are that

Re: [Chicken-users] Threads and dynamic-wind still problematic

2009-03-07 Thread felix winkelmann
On Mon, Mar 2, 2009 at 9:48 PM, Peter Bex peter@xs4all.nl wrote: However, it turns out that an exception thrown in a thread simply terminates the thread instead of unwinding the stack. The same does not happen in the primordial thread: Ok, here is what Marc Feeley, the author of SRFI-18

Re: [Chicken-users] Chicken 4 syntax-rules bug

2009-03-07 Thread felix winkelmann
On Thu, Mar 5, 2009 at 7:28 PM, Jim Ursetto zbignie...@gmail.com wrote: I believe this is a bug in Chicken 4. It works in Chicken 3 with the syntax-case egg, and in Scheme 48. It looks like an ellipsis form matches after just checking the first pattern, without checking subsequent patterns.

Re: [Chicken-users] PS-tk documentation missing?

2009-03-06 Thread felix winkelmann
On Fri, Mar 6, 2009 at 6:30 AM, Matthew Welland m...@kiatoa.com wrote: FYI: The link on the PS-tk egg wiki page seems dead. I did see some docs for PS-tk on sourceforge: http://sourceforge.net/projects/pstk If desired I can cut 'n paste the sourceforge doc into the wiki but no promises on

Re: [Chicken-users] PS-tk documentation missing?

2009-03-06 Thread felix winkelmann
On Fri, Mar 6, 2009 at 7:37 AM, Matthew Welland m...@kiatoa.com wrote: I noticed the tk egg minutes after sending my previous email. The tk egg seems to have nice documentation and it works on my Nokia n800. However the PS-tk egg does not: snip Nokia-N800-50-2:~# csi

Re: [Chicken-users] Wiki (early) spring cleaning!

2009-03-02 Thread felix winkelmann
On Sat, Feb 28, 2009 at 8:48 PM, Peter Bex peter@xs4all.nl wrote: The cleanup I'm suggesting does not necessarily have to be major, the immediate proposal of this mail is simply to move all the eggdocs to a new subdirectory eggref/3, to match eggref/4 and also to match the egg structure;

Re: [Chicken-users] alist-hash-table bug

2009-03-02 Thread felix winkelmann
On Sun, Mar 1, 2009 at 11:01 AM, Drew Hess drew.h...@gmail.com wrote: On Sat, Feb 28, 2009 at 11:53 PM, Drew Hess dh...@bothan.net wrote: Hi, I'm able to consistently reproduce a segfault using alist-hash-table with Chicken 3.4.0 on 3 different platforms: Debian unstable x86-64, Mac OS X

Re: [Chicken-users] calling CHICKEN_eval from different threads

2009-02-26 Thread felix winkelmann
On Thu, Feb 26, 2009 at 3:19 AM, Jan Baumgart raga.r...@gmx.de wrote: Hi! Is it possible, to make subsequent calls to CHICKEN_eval from within different nonreentrant(!) threads? No, the chicken runtime system is not thread-safe. cheers, felix

Re: [Chicken-users] Chicken-Profile exclusive time.

2009-02-23 Thread felix winkelmann
On Mon, Feb 23, 2009 at 12:16 AM, Nicholas Indy Ray arel...@gmail.com wrote: I'm having a problem while trying to profile a program that is taking far too long, The program is structured so that it makes tail calls back to prior functions (define (func-a p) (if (...) (func-a

Re: [Chicken-users] Optimal C

2009-02-22 Thread felix winkelmann
On Sun, Feb 22, 2009 at 10:56 PM, Rick R rick.richard...@gmail.com wrote: Thanks! This is exactly what I was looking for. I've been playing with it a bit, and I've run into a few snags. 1. crunch.h wasn't created/copied it my std include. I had to chicken-setup -keep and go to the directory.

Re: [Chicken-users] Optimal C

2009-02-22 Thread felix winkelmann
On Sun, Feb 22, 2009 at 11:44 PM, felix winkelmann bunny...@gmail.com wrote: 1. crunch.h wasn't created/copied it my std include. I had to chicken-setup -keep and go to the directory. The file is named include. I'm guessing that the script expected there to be a local directory named include

Re: [Chicken-users] extreme kludge: load that compiles

2009-02-19 Thread felix winkelmann
On Wed, Feb 18, 2009 at 7:40 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Hello, Even after R6RS, 'load' is all one can really count on. :-) Below is a hacked version of load that I'm using for Chicken. If an '.so' file doesn't exist for the file your loading, the file is compiled and

Re: [Chicken-users] Re: bytevectors

2009-02-19 Thread felix winkelmann
On Tue, Feb 17, 2009 at 11:33 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Here's a screenshot of the fruits of today's labors: http://proteus.freeshell.org/abstracting-screenshots/game1-turn6-chicken.png That was produced by a pure Scheme implementation of the ContextFreeArt semantics.

Re: [Chicken-users] dangerous code when running finalizers

2009-02-18 Thread felix winkelmann
On Mon, Sep 8, 2008 at 4:33 PM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: Hi, I managed to have a finalizer raise an exception. This ran into a tight loop in ##sys#force-finalizers. This patch will ignore them. Gee, this got completely lost. Sorry, Joerg. cheers, felix

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-02-18 Thread felix winkelmann
On Fri, Feb 13, 2009 at 2:31 PM, felix winkelmann bunny...@gmail.com wrote: In interpreted code, the finalizers do not trigger at all, even when you exit csi via (exit). Hi! I have reverted the original change that caused this for the time being. cheers, felix

Re: [Chicken-users] optimizing mutually recursive loops

2009-02-17 Thread felix winkelmann
On Mon, Feb 16, 2009 at 8:32 AM, Alex Shinn alexsh...@gmail.com wrote: When optimizing my Chicken code for speed, I find one of the most important things is to write the code so that it gets compiled into a single C function with gotos. It's often so important to get this that I end up

Re: [Chicken-users] optimizing mutually recursive loops

2009-02-17 Thread felix winkelmann
On Tue, Feb 17, 2009 at 9:36 PM, John Cowan co...@ccil.org wrote: I don't think parameterize is tail-recursive (it uses dynamic-wind), so if you expect procedure calls to be nested deeply, this might not be an option. It is possible to have dynamic binding and tail recursion at the same

Re: [Chicken-users] Re: bytevectors

2009-02-17 Thread felix winkelmann
On Tue, Feb 17, 2009 at 10:51 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: -- (use srfi-4) (define (make-bytevector n) (u8vector-blob/shared (make-u8vector n))) (define bytevector-length blob-size) (define

Re: [Chicken-users] SDL egg: SDL_GL_SwapBuffers() not implemented?

2009-02-14 Thread felix winkelmann
On Tue, Feb 3, 2009 at 2:08 PM, Koen Weddepohl kweddep...@gmail.com wrote: Greetings, I'm interested in using Chicken for homebrew game development. Anyway, I've been trying to get the SDL egg to work with the OpenGL egg. However, I can't get any OpenGL graphics to display. I think this is

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-02-13 Thread felix winkelmann
On Thu, Jan 29, 2009 at 9:01 PM, Jim Ursetto zbignie...@gmail.com wrote: On Thu, Jan 29, 2009 at 5:56 AM, felix winkelmann bunny...@gmail.com wrote: On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: I am seeing finalizers fail to execute on recent SVN and I think

Re: [Chicken-users] Scheme-based build system for Chicken

2009-02-06 Thread felix winkelmann
On Fri, Feb 6, 2009 at 1:57 AM, Ivan Raikov ivan.g.rai...@gmail.com wrote: Dear all, Some time last December, I made a partial port of the Chicken build system to Scheme, and I got as far as getting Chicken 3 to build under Linux, Mac OS, and Mingw+msys. The code consists mainly of the

Re: [Chicken-users] chicken-primitive-inlines.scm

2009-02-06 Thread felix winkelmann
On Thu, Feb 5, 2009 at 7:34 AM, Jim Ursetto zbignie...@gmail.com wrote: On Mon, Feb 2, 2009 at 12:07 PM, Kon Lovett klov...@pacbell.net wrote: (##sys#slot l 1) - (%cdr l) (##sys#setslot l 1 x) - (%set-cdr l x) I was wondering. The compiler already inlines primitives when

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread felix winkelmann
On Tue, Feb 3, 2009 at 10:12 PM, William Ramsay ramsa...@comcast.net wrote: Hi all, Is there a way to do incremental compiling in Chicken?My program is getting quite large and has a lot of include files involved. How do you go from csc -vk foo.scm to gcc test.c -o foo.o -c

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread felix winkelmann
On Wed, Feb 4, 2009 at 2:49 PM, William Ramsay ramsa...@comcast.net wrote: I put my list of files into a Makefile using the same code you gave below. Make runs through each file and compiles it to an object file with no problem at all. However, when I try to link it all together with csc -o

Re: [Chicken-users] SDL egg: SDL_GL_SwapBuffers() not implemented?

2009-02-03 Thread felix winkelmann
On Tue, Feb 3, 2009 at 2:08 PM, Koen Weddepohl kweddep...@gmail.com wrote: Greetings, I'm interested in using Chicken for homebrew game development. Anyway, I've been trying to get the SDL egg to work with the OpenGL egg. However, I can't get any OpenGL graphics to display. I think this is

Re: [Chicken-users] Chicken svn doesn't want to compile on x86-64

2009-02-03 Thread felix winkelmann
On Sun, Feb 1, 2009 at 6:49 PM, Adam C. Emerson az...@azureprime.com wrote: The compile fails with: /usr/bin/ld: ./libchicken.a(library-static.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ./libchicken.a: could not

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-01-29 Thread felix winkelmann
On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: On Mon, Dec 22, 2008 at 3:03 AM, felix winkelmann bunny...@gmail.com wrote: Please try this [finalizer patch]. Hi. I am seeing finalizers fail to execute on recent SVN and I think it is the result of this change. I

Re: [Chicken-users] Blobs: a (modest?) proposal

2009-01-24 Thread felix winkelmann
On Sat, Jan 24, 2009 at 1:10 PM, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: What do people think of this? Would it be welcome in the chicken core once it's proven itself? Sure. The use of strings for binary data is indeed something that should be reduced. There is also a lot of copying

Re: [Chicken-users] A call to arms

2009-01-22 Thread felix winkelmann
On Thu, Jan 22, 2009 at 12:40 PM, Tobia Conforto tobia.confo...@gmail.com wrote: Newbie question: can Chicken load and (more importantly) unload/reload a .so at runtime? I've never tried to. There is some support for unloading the old instance of a .so, when reloading it (at least on elf-ish

Re: [Chicken-users] I need some new eggs: posix-extensions and lzma

2009-01-19 Thread felix winkelmann
On Sat, Jan 17, 2009 at 10:33 AM, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: On 16 Jan 2009, at 11:40 am, Alaric Snell-Pym wrote: Please may I have svn set up for: posix-extensions - in which I will (at Felix's suggestion) put my posix syscall extensions. Hold your horses, Kon's

Re: [Chicken-users] S_IFMT constants

2009-01-16 Thread felix winkelmann
On Fri, Jan 16, 2009 at 11:03 AM, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: Peter raised an interesting point on IRC - doesn't stat-regular? et al do this? The stat-*? functions all take a file name, call stat, then examine the mode of the result to see if it has the specified type.

Re: [Chicken-users] S_IFMT constants

2009-01-16 Thread felix winkelmann
On Fri, Jan 16, 2009 at 11:57 AM, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: On 16 Jan 2009, at 10:45 am, felix winkelmann wrote: Everything should be put into eggs. At some stage we have to strip down the posixunix and put everything not needed for the core system into eggs. Ok

Re: [Chicken-users] Conflict between easyffi and syntax-case

2009-01-14 Thread felix winkelmann
On Thu, Jan 8, 2009 at 1:14 AM, William Ramsay ramsa...@comcast.net wrote: Hi, William. Sorry for responding so late. I am trying to use macros with a program that requires some C functions. But when I require-extension syntax-case and extend easyffi I get compile errors.If I

Re: [Chicken-users] handle unbound variable exception for undefined procedures?

2009-01-08 Thread felix winkelmann
On Thu, Jan 8, 2009 at 4:58 AM, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: On 1/6/09, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: Now by reading the source I've discovered ##sys#unbound-in-eval. I guess I can get the unbound variable name from there (and expect it to break some

Re: [Chicken-users] using macros at runtime

2009-01-07 Thread felix winkelmann
On Wed, Jan 7, 2009 at 3:26 AM, Heinrich Taube ta...@uiuc.edu wrote: im using chicken 3.0.0 . I have a file with some define-macro in it like this: (define-macro (send place . args) (expand-send place args)) I include that file in my main file ChickenBridge.scm (include mymacros.scm)

Re: [Chicken-users] number-string bug

2009-01-07 Thread felix winkelmann
On Wed, Jan 7, 2009 at 4:20 AM, Kevin Beranek ke...@kberanek.com wrote: I've stumbled upon some interesting behavior of number-string. It appears that there was previously a ticket filed for a similar bug in version 2.6 (http://trac.callcc.org/ticket/160). What I've been observing doesn't

Re: [Chicken-users] windows shell problem

2009-01-07 Thread felix winkelmann
On Tue, Jan 6, 2009 at 1:09 PM, Matthew Flatt mfl...@cs.utah.edu wrote: If you put an extra set of quotation marks around the argument, won't they effectively cancel the quotation marks added by system()? ...Remarkable. It really seems to work. I found this:

Re: [Chicken-users] compiling with mingw-msys

2009-01-07 Thread felix winkelmann
Hi! I think the mingw (non-msys) build could work now. If you checkout the trunk and do make PLATFORM=mingw PREFIX=c:/some/path bootstrap # note the forward slashes! make PLATFORM=mingw PREFIX=c:/some/path CHICKEN=chicken-boot make PLATFORM=mingw PREFIX=c:/some/path CHICKEN=chicken-boot install

Re: [Chicken-users] newbie: foreign pointers that depend on Scheme objects

2009-01-06 Thread felix winkelmann
On Sat, Dec 20, 2008 at 4:09 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: I'm not sure I can follow your example completely (I always get quickly confused with these scenarios), but I understand the weak/finalizable GC-root suggestion. I have to think more about it, but it should

Re: [Chicken-users] Is there any way programmatically to determine a macro?

2009-01-06 Thread felix winkelmann
On Mon, Jan 5, 2009 at 11:48 PM, Lam Luu luuxuan...@gmail.com wrote: Hello all! Given an S-Expression, (here is an example), is there any way to write a script to determine whether or not that expression is a procedure-call or a macro? If it is a macro call, is there anyway to expand it back

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Mon, Jan 5, 2009 at 6:58 PM, John Cowan co...@ccil.org wrote: felix winkelmann scripsit: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Tue, Jan 6, 2009 at 12:00 AM, Tobia Conforto tobia.confo...@gmail.com wrote: Have you tried adding an .exe extension to csi? Like: c:\home\chicken-trunk\bin\csi.exe I know it sounds stupid... No, it doesn't. But I'm quite sure John is right with his assumption. You could try and

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Tue, Jan 6, 2009 at 1:09 PM, Matthew Flatt mfl...@cs.utah.edu wrote: If you put an extra set of quotation marks around the argument, won't they effectively cancel the quotation marks added by system()? That is, pass c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 1:37 AM, Lars Nilsson chamael...@gmail.com wrote: On Sun, Jan 4, 2009 at 7:27 PM, Thomas Chust ch...@web.de wrote: Ivan Raikov wrote: [...] I think the problem is that \ in strings needs to be escaped, [...] Hello, I don't think so, unless the escaping problem

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 9:14 AM, felix winkelmann bunny...@gmail.com wrote: - checkout the current svn trunk - run make PLATFORM=mingw PREFIX=c:/home/chicken-trunk DEBUGBUILD=1 bootstrap (prefix must contain drive letter and use forward slashes) - run make PLATFORM=mingw PREFIX=c:/home

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 2:14 PM, Lars Nilsson chamael...@gmail.com wrote: On Mon, Jan 5, 2009 at 3:14 AM, felix winkelmann bunny...@gmail.com wrote: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here

Re: [Chicken-users] A few questions about modules

2009-01-04 Thread felix winkelmann
On Thu, Jan 1, 2009 at 1:06 AM, Jack Trades jacktradespub...@gmail.com wrote: 1. import, if and define-syntax -- Where do they come from? Can they be redefined? They are currently handled specially (i.e. hardcoded). The proper way to do it would be to introduce internal special forms and

Re: [Chicken-users] Xlib text question

2009-01-04 Thread felix winkelmann
On Thu, Jan 1, 2009 at 3:43 PM, William Ramsay ramsa...@comcast.net wrote: Also the doc for the xlib egg has an error. Freeing a structure is given as: (free-NAME) - C-POINTER I think it should be:(free-NAME C-POINTER) Thanks - will be fixed. cheers, felix

[Chicken-users] windows shell problem

2009-01-04 Thread felix winkelmann
Hi! I'm trying to fix the mingw build and have encountered a problem that leaves me absolutely dumbfounded. I invoke csi and csc in chicken-install like this: c:\home\chicken-trunk\bin\csi ...args ... (Note the quotes around the pathname) This works fine in cmd.exe, but fails when using the

[Chicken-users] irregex merged

2008-12-31 Thread felix winkelmann
Hello! I have merged the irregular branch into trunk, so PCRE has now been replaced with Alex' irregex regular expression package. That means, SREs are now supported. I noticed that regex-compilation into internal representation is relatively slow, so precompiling the regexes is quite important

<    1   2   3   4   5   6   7   8   9   10   >