[Chicken-users] The following code causes a segfault in the chicken interpreter (forwarded)
--- Begin Message --- Hey, Using csi version 4.2.0 on GNU/Linux (Ubuntu 10.04) built for x86 causes a segfault when the following code is evaluated: (define-syntax ∫ (syntax rules () ((∫ x ...) '(x ... (∫ x ^2 + x + 1 dx) Considering that segfaults are fairly serious, I figured that it I should let you know. Thanks for reading, Tom --- End Message --- -- http://parenteses.org/mario ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] The following code causes a segfault in the chicken interpreter (forwarded)
2011/1/17 Mario Domenech Goulart : > > > -- > http://parenteses.org/mario > > > -- Forwarded message -- > From: Tom Ostojich > To: mario.goul...@gmail.com > Date: Mon, 17 Jan 2011 13:13:38 -0600 > Subject: The following code causes a segfault in the chicken interpreter > Hey, > > Using csi version 4.2.0 on GNU/Linux (Ubuntu 10.04) built for x86 > causes a segfault when the following code is evaluated: > > (define-syntax ∫ > (syntax rules () > ((∫ x ...) '(x ... > > (∫ x ^2 + x + 1 dx) > > Considering that segfaults are fairly serious, I figured that it I > should let you know. > > Thanks for reading, > > Tom > > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/chicken-users > > Can't reproduce that here. Chicken 4.6.0, ubuntu 10.04 --Stephen Sent from my Emacs ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Cython first run
Hi everyone, A basic Chicken REPL running inside a Python REPL. Passing variables back and forth between Python and Chicken is a bit awkward. README has the commands and a sample Python session. Let me know if you see anything wrong. I need to leave so things aren't perfect, but I thought it would be interesting enough to share now. A few things: ** The LINE_NUMBER variable doesn't reset correctly between subsequent entries into the Chicken REPL -- I need to figure out why. ** I couldn't get CHICKEN_eval_string_to_string to work directly from chicken.h. Instead I had to write a wrapper C_chick_eval in cychicken.c. A little annoying but hopefully it'll get figured out. Then the whole build process will just be: python cython_chicken.py build_ext --inplace and the only files will be cython_chicken.py cython_chicken.pyx ** Question, Gambit-C needed a final cleanup() call after you were done with the Scheme evaluations: Will Chicken need something similar? -Dave cychick.tgz Description: GNU Zip compressed data ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Cython first run
> > ** The LINE_NUMBER variable doesn't reset correctly between subsequent > entries into the Chicken REPL -- I need to figure out why. > Duh! Replace line 55 in cython_chicken.pyx: reset_line_number with: reset_line_number () ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Cython first run
From: David Dreisigmeyer Subject: [Chicken-users] Cython first run Date: Mon, 17 Jan 2011 17:38:44 -0500 > Hi everyone, > > A basic Chicken REPL running inside a Python REPL. Passing variables > back and forth between Python and Chicken is a bit awkward. README > has the commands and a sample Python session. Let me know if you see > anything wrong. I need to leave so things aren't perfect, but I > thought it would be interesting enough to share now. Whoa! Well done, David. > > ** Question, Gambit-C needed a final cleanup() call after you were > done with the Scheme evaluations: Will Chicken need something similar? No, we never cleanup after we've done. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] The following code causes a segfault in the chicken interpreter (forwarded)
Works fine on Ubuntu 10.10, csi 4.5.2 (once you change "syntax rules" to "syntax-rules"). 4.2.0 is pretty ancient. > -- Forwarded message -- > From: Tom Ostojich > > Using csi version 4.2.0 on GNU/Linux (Ubuntu 10.04) built for x86 > causes a segfault when the following code is evaluated: > > (define-syntax ∫ > (syntax rules () > ((∫ x ...) '(x ... > > (∫ x ^2 + x + 1 dx) > > Considering that segfaults are fairly serious, I figured that it I > should let you know. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Using -accumulate-profile
Hi there, I'm building a program with csc and it's running slower than I'd hoped so I'm trying to do some profiling. I tried using the -accumulate-profile option to concatenate information from multiple runs of the program but it seems to produce the same result as just using -profile (i.e. multiple PROFILE. files, each containing information from a single run). I thought maybe I had to explicitly set the profile file name using -profile-name but that doesn't help (it changes the stem (i.e. . with -profile-name ) but still multiple executions create multiple files). I'm using 4.6.3 on 64-bit Linux: "linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]". I had thought from reading the doc that using -accumulate-profile would build up a single profile output file containing information for numerous successive executions; is that not correct? Thanks for any advice (pointers to any general tips on profiling and optimizing in Chicken also greatly appreciated). -- Taylor C. Venable http://metasyntax.net/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users