Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread David Dreisigmeyer
How do you go about translating a C_word into something that C can use? On Sun, Feb 13, 2011 at 7:43 AM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread David Dreisigmeyer
Maybe we need to rewind the discussion. What is it again you want to do?  I missed that part. I have a Python and a Chicken REPL embedded in a second Python REPL. I can call Chicken using CHICKEN_eval_string_to_string and return a string. But, I'd like to have this converted to a Python type

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-12 Thread David Dreisigmeyer
of a string. On Sat, Feb 12, 2011 at 5:11 AM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) Date: Fri, 11 Feb 2011 17:47:24 -0500

[Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-11 Thread David Dreisigmeyer
Here's my setup: OSX 10.6.6 Chicken 4.6.0 Python 2.7.1 Cython 0.14 ** The Chicken part: What type is C_word? The only thing I see is this in chicken.h #ifdef C_SIXTY_FOUR # define C_word long # define C_u32uint32_t # define C_s32

[Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-11 Thread David Dreisigmeyer
Here's the solution on the Cython side. Is C_word a long (or int) though? Here's my setup: OSX 10.6.6 Chicken 4.6.0 Python 2.7.1 Cython 0.14 ** The Chicken part: What type is C_word?  The only thing I see is this in chicken.h #ifdef C_SIXTY_FOUR # define C_word                  

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-29 Thread David Dreisigmeyer
. So far I have tested it on OS X (Leopard w/ MacPorts) and Linux. Jim On Wed, Jan 26, 2011 at 05:02, David Dreisigmeyer dwdreisigme...@gmail.com wrote: Using Macports, I had to do the following in order to get the readline egg to install: $ sudo ln -s /opt/local/lib/libreadline.dylib /usr

[Chicken-users] New python/chicken

2011-01-28 Thread David Dreisigmeyer
This is an improved version of a Chicken REPL embedded in a Python REPL. Variable passing between Python and Chicken is automatic but could probably still use some work. It should be possible to use the Chicken REPL without the need for any special command to interact with Python. If you want

[Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-26 Thread David Dreisigmeyer
Using Macports, I had to do the following in order to get the readline egg to install: $ sudo ln -s /opt/local/lib/libreadline.dylib /usr/local/lib/ $ sudo ln -s /opt/local/include/readline/ /usr/local/include/readline The procedure on the wiki didn't work.

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-26 Thread David Dreisigmeyer
AM, Peter Bex peter@xs4all.nl wrote: On Wed, Jan 26, 2011 at 06:02:12AM -0500, David Dreisigmeyer wrote: Using Macports, I had to do the following in order to get the readline egg to install: $ sudo ln -s /opt/local/lib/libreadline.dylib /usr/local/lib/ $ sudo ln -s /opt/local/include

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-26 Thread David Dreisigmeyer
wrote: On Wed, Jan 26, 2011 at 8:59 AM, David Dreisigmeyer dwdreisigme...@gmail.com wrote: This version of Chicken is not from Macports, but readline is.  I had tried various CSC_OPTIONS in my .profile, e.g.: export CSC_OPTIONS=-L/opt/local/lib -I/opt/local/include export CSC_OPTIONS=-L/opt

[Chicken-users] chicken-doc

2011-01-25 Thread David Dreisigmeyer
I've installed the chicken-doc egg. Now, if I run: csi -R chicken-doc I get the following error: CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2011-01-13 on new-host.home (Darwin) ;

Re: [Chicken-users] chicken-doc

2011-01-25 Thread David Dreisigmeyer
Thanks Christian. -Dave On Tue, Jan 25, 2011 at 11:29 AM, Christian Kellermann ck...@pestilenz.org wrote: * David Dreisigmeyer dwdreisigme...@gmail.com [110125 17:23]: I've installed the chicken-doc egg.  Now, if I run: csi -R chicken-doc You did not initialise a chicken-doc repository

[Chicken-users] Re: Cython first run

2011-01-18 Thread David Dreisigmeyer
This calls CHICKEN_eval_string_to_string directly instead of using a wrapper. chicken-cython_18_JAN_11.tgz Description: GNU Zip compressed data ___ Chicken-users mailing list Chicken-users@nongnu.org

[Chicken-users] CHICKEN_eval_string_to_string (OS X 10.6.6 / Chicken 4.6.0)

2011-01-18 Thread David Dreisigmeyer
It looks like CSI's toplevel commands won't work with CHICKEN_eval_string_to_string. So, e.g., the following should return 0: char in_str[] = ,?; CHICKEN_eval_string_to_string (in_str, out_str, str_size); Is there any way around this? Thanks, -Dave

[Chicken-users] Cython first run

2011-01-17 Thread David Dreisigmeyer
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

[Chicken-users] Re: Cython first run

2011-01-17 Thread David Dreisigmeyer
** 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

[Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)

2011-01-15 Thread David Dreisigmeyer
Hi everyone: I can't figure out why I'm getting the following: $ make clean make rm -rf cython_chicken.o libcython_chicken.so gcc-4.2 -fPIC -g -c -m64 -I/usr/local/include cython_chicken.c gcc-4.2 -dynamiclib -o libcython_chicken.dylib cython_chicken.o -m64 -L/usr/local/lib -lchicken -lm

Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)

2011-01-15 Thread David Dreisigmeyer
Also, if I use this Makefile: CC = gcc-4.2 CHICKEN_LIB = /usr/local/lib LIB = /usr/lib CHICKEN_INC = /usr/local/include all: $(CC) -fPIC -g -c -m64 -I$(CHICKEN_INC) cython_chicken.c $(CC) -dynamiclib -m64 -L$(LIB) -lm -o libcython_chicken.dylib cython_chicken.o I get

Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)

2011-01-15 Thread David Dreisigmeyer
Using this: CHICKEN_run(CHICKEN_default_toplevel); gets my code running. This would seem to be fine if I was going to evaluate Scheme code interactively from Python (Embedding section in manual): If you just need a Scheme interpreter, you can also pass CHICKEN_default_toplevel as the

[Chicken-users] embedding question / seg fault

2011-01-14 Thread David Dreisigmeyer
OS X 10.6.6 with Chicken 4.6.0 Hi, I was trying our the embedding example under CHICKEN_yield here: http://wiki.call-cc.org/man/4/Embedding I keep getting a seg fault and this seems to be the offending line: CHICKEN_get_error_message(buffer, 255); If I comment that out there's no seg fault.

Re: [Chicken-users] embedding question / seg fault

2011-01-14 Thread David Dreisigmeyer
Thanks Felix. I looked at this post: http://www.mail-archive.com/chicken-users@nongnu.org/msg11218.html but I don't see what the resolution would be. Would it be easier to just avoid using define and stick to define-external?  Is there any particular reason to use define? Sorry, I don't

Re: [Chicken-users] embedding question / seg fault

2011-01-14 Thread David Dreisigmeyer
wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com FYI, I'm trying to call Chicken commands from Python using Cython. Interesting idea. Keep us informed about your progress, please. +1. This is something I'd be able to use myself.  I would like to work with another developer who

Re: [Chicken-users] Merry Christmas

2010-12-23 Thread David Dreisigmeyer
I'd also like to thank Felix for all his work, along with everyone else who's been so helpful. On Thu, Dec 23, 2010 at 2:18 PM, Christian Kellermann ck...@pestilenz.org wrote: Hi, I wish you all some good and quiet days or whatever suits you best. Kind regards, Christian

Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 )

2010-12-21 Thread David Dreisigmeyer
without OPTIMIZE_FOR_SPEED=1 or DEBUGBUILD=1. On Tue, Dec 21, 2010 at 10:04 AM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6

Re: [Chicken-users] creating shared libraries from two files chicken-bind / swig

2010-12-20 Thread David Dreisigmeyer
(uses ex1 ex2))'. I haven't had time to try out other things, but any other suggestions would be welcome. On Thu, Dec 16, 2010 at 12:50 PM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: [Chicken-users] creating shared libraries

Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 )

2010-12-20 Thread David Dreisigmeyer
, Dec 19, 2010 at 5:54 AM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 ) Date: Fri, 17 Dec 2010 08:37:44 -0700

Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 )

2010-12-17 Thread David Dreisigmeyer
...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 ) Date: Wed, 15 Dec 2010 09:10:03 -0500 ** I believe I removed all

Re: [Chicken-users] install with llvm-gcc and clang hangs on chicken-install -update-db ( OS X 10.6 / Chicken 4.6.0 )

2010-12-17 Thread David Dreisigmeyer
Hi Felix, Using the latest llvm / clang (from Macports) the install still hangs at /usr/local/bin/chicken-install-clang_4.6.0 -update-db. -Dave On Thu, Dec 16, 2010 at 12:41 PM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re

Re: [Chicken-users] compiling multiple scheme files into one module?

2010-12-15 Thread David Dreisigmeyer
Is this along the lines of what you're thinking about (in 19.4.2)? http://www.swig.org/Doc2.0/Chicken.html#Chicken On Wed, Dec 15, 2010 at 11:34 AM, Alan Post alanp...@sunflowerriver.org wrote: I would like to compile two separate scheme files, with different (declare ...) options, into a

[Chicken-users] creating shared libraries from two files chicken-bind / swig

2010-12-15 Thread David Dreisigmeyer
Hello, I've been trying to get the swig example with two modules to work, and wanted to compare that to using chicken-bind. I did get it to work with swig, but I'm stuck when I use chicken-bind. (I'm not sure if chicken bind is the best tool to use here.) My code's below. Thanks again, -Dave

Re: [Chicken-users] bind error : bad prototype syntax

2010-12-10 Thread David Dreisigmeyer
: #;1 ,l /my/path/to/fib-user and receive the following error: ; loading /my/path/to/fib-user ... Error: unbound variable: |\317\372\355\376...@^@^a...@^@\200...@^@^@ | Thanks again, -Dave On Thu, Dec 9, 2010 at 3:27 AM, Felix fe...@call-with-current-continuation.org wrote: From: David

[Chicken-users] EOF problem

2010-12-07 Thread David Dreisigmeyer
I'm getting the following error for the attached cl.scm file (OpenCL 1.0 on OS X 10.6): $ csc -s -o cl.so cl.scm -framework OpenCL -framework Accelerate Warning: (line 205) unterminated here-doc string literal `EOF' Error: (line 205) unterminated list, starting in line 19 Error: shell command

Re: [Chicken-users] EOF problem

2010-12-07 Thread David Dreisigmeyer
-- not sure if this is a good idea though. I don't know how to get the __attribute__ or above #define to work though. On Tue, Dec 7, 2010 at 3:22 PM, Peter Bex peter@xs4all.nl wrote: On Tue, Dec 07, 2010 at 03:15:32PM -0500, David Dreisigmeyer wrote: I'm getting the following error

[Chicken-users] docstrings

2010-12-03 Thread David Dreisigmeyer
I've been going through The Scheme Programming Language (4e), and was doing some experiments with define-syntax. Can I do something like the following (like in CL): (define-syntax my-set! I WANT TO PUT SOME DOCUMENTATION HERE. [ -- can I do something like this?] (syntax-rules () [(_ x1

[Chicken-users] ,tr not working Chicken 4.6.0

2010-12-02 Thread David Dreisigmeyer
For some reason ,tr is not working for me. It worked yesterday so I'm not sure what may have happened. Same thing is happening with Macports 4.4.0 version. CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables

Re: [Chicken-users] ,tr not working Chicken 4.6.0

2010-12-02 Thread David Dreisigmeyer
wrote: Hi David On Thu, 2 Dec 2010 13:50:02 -0500 David Dreisigmeyer dwdreisigme...@gmail.com wrote: For some reason ,tr is not working for me.  It worked yesterday so I'm not sure what may have happened.  Same thing is happening with Macports 4.4.0 version. IIRC, the tracing feature has

Re: [Chicken-users] ,tr not working Chicken 4.6.0

2010-12-02 Thread David Dreisigmeyer
:28 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi David On Thu, 2 Dec 2010 14:19:58 -0500 David Dreisigmeyer dwdreisigme...@gmail.com wrote: Thanks Mario.  I thought I was using at least 4.4.0 yesterday, but that must be wrong.  I was following: http://wiki.call-cc.org/man/4

Re: [Chicken-users] ,tr not working Chicken 4.6.0

2010-12-02 Thread David Dreisigmeyer
))) On Thu, Dec 2, 2010 at 3:05 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: On Thu, 2 Dec 2010 14:32:45 -0500 David Dreisigmeyer dwdreisigme...@gmail.com wrote: Thank you Mario! One more thing: Is it possible to autoload eggs at the command line, so I wouldn't have to do

Re: [Chicken-users] Re: seg fault

2010-12-01 Thread David Dreisigmeyer
You can do this to default to 64-bit, versus 32-bit: http://www.overclock.net/mac/564147-how-enable-64-bit-default-os.html On Tue, Nov 30, 2010 at 7:07 AM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: Re: [Chicken-users] Re

Re: [Chicken-users] Re: seg fault

2010-12-01 Thread David Dreisigmeyer
: make PLATFORM=macosx ARCH=x86-64 On Wed, Dec 1, 2010 at 7:50 AM, Stephen Eilert spedr...@gmail.com wrote: On Tue, Nov 30, 2010 at 11:51 AM, David Dreisigmeyer dwdreisigme...@gmail.com wrote: You can do this to default to 64-bit, versus 32-bit: http://www.overclock.net/mac/564147

[Chicken-users] Re: swig

2010-12-01 Thread David Dreisigmeyer
I should have mentioned I can't even get the C example to run. On Wed, Dec 1, 2010 at 8:50 AM, David Dreisigmeyer dwdreisigme...@gmail.com wrote: Has anyone been able to get the SWIG example to run? http://www.swig.org/Doc2.0/Chicken.html#Chicken Thank you, -Dave

Re: [Chicken-users] c++ example

2010-12-01 Thread David Dreisigmeyer
Thanks Thomas and Peter. I created a punCpp.h but forgot to include it on the email. Let me try this on my end again. On Wed, Dec 1, 2010 at 9:30 AM, Peter Bex peter@xs4all.nl wrote: On Wed, Dec 01, 2010 at 08:23:40AM -0500, David Dreisigmeyer wrote: This may be getting closer.  Here's my

Re: [Chicken-users] swig

2010-12-01 Thread David Dreisigmeyer
I was going to try it using C++ but that doesn't seem to be working. On Wed, Dec 1, 2010 at 9:08 AM, Peter Bex peter@xs4all.nl wrote: On Wed, Dec 01, 2010 at 08:50:22AM -0500, David Dreisigmeyer wrote: Has anyone been able to get the SWIG example to run? http://www.swig.org/Doc2.0

Re: [Chicken-users] c++ example

2010-12-01 Thread David Dreisigmeyer
pun_module.scm ** run: #;1 ,l pun_module.so #;1 (import pun_module) #;2 (test_pun) On Wed, Dec 1, 2010 at 9:40 AM, David Dreisigmeyer dwdreisigme...@gmail.com wrote: Thanks Thomas and Peter.  I created a punCpp.h but forgot to include it on the email.  Let me try this on my end again. On Wed

[Chicken-users] llvm-gcc / clang

2010-12-01 Thread David Dreisigmeyer
Would there be any advantages / disadvantages to using llvm-gcc / clang versus gcc? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Re: seg fault

2010-12-01 Thread David Dreisigmeyer
Eilert spedr...@gmail.com Subject: Re: [Chicken-users] Re: seg fault Date: Wed, 1 Dec 2010 09:50:59 -0300 On Tue, Nov 30, 2010 at 11:51 AM, David Dreisigmeyer dwdreisigme...@gmail.com wrote: You can do this to default to 64-bit, versus 32-bit: http://www.overclock.net/mac/564147-how-enable-64

[Chicken-users] objc install error on OS X 10.6.5

2010-12-01 Thread David Dreisigmeyer
I can't install the objc egg (see below). Thanks again. -Dave P.S. Sorry for all of the emails. Last login: Wed Dec 1 13:02:29 on ttys003 new-host:~ daviddreisigmeyer$ sudo chicken-install objc Password: retrieving ... resolving alias `kitten-technologies' to:

Re: [Chicken-users] objc install error on OS X 10.6.5

2010-12-01 Thread David Dreisigmeyer
Thanks Jim. -Dave 2010/12/1 Jim Ursetto zbignie...@gmail.com: It's not supported on 10.6, I apologize. For this one there is no workaround. On Dec 1, 2010, at 12:09, David Dreisigmeyer dwdreisigme...@gmail.com wrote: I can't install the objc egg (see below).  Thanks again. -Dave P.S. Sorry

Re: [Chicken-users] Re: seg fault

2010-11-30 Thread David Dreisigmeyer
=x86-64 Sorry for the inconvenience. Jim On Mon, Nov 29, 2010 at 17:44, David Dreisigmeyer dwdreisigme...@gmail.com wrote: It's i386.  This ia a problem with Snow Leopard.  Chicken wouldn't compile otherwise, with an error for apply-hack. On Mon, Nov 29, 2010 at 4:02 PM, Felix fe...@call

[Chicken-users] seg fault

2010-11-29 Thread David Dreisigmeyer
Using the chicken 4.4.0 from macports (on OS X 10.6.5), when I run chicken-install whatever I get a segmentation fault. Any ideas? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Re: seg fault

2010-11-29 Thread David Dreisigmeyer
It's i386. This ia a problem with Snow Leopard. Chicken wouldn't compile otherwise, with an error for apply-hack. On Mon, Nov 29, 2010 at 4:02 PM, Felix fe...@call-with-current-continuation.org wrote: From: David Dreisigmeyer dwdreisigme...@gmail.com Subject: [Chicken-users] Re: seg fault

[Chicken-users] paredit

2010-11-28 Thread David Dreisigmeyer
Hi, I've been unable to get paredit to work in inferior-scheme-mode. It works with gambit, which uses a gambit.el file versus quack or cluck. Thank you, -Dave ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] paredit

2010-11-28 Thread David Dreisigmeyer
at 08:18:11AM -0500, David Dreisigmeyer wrote: Hi, I've been unable to get paredit to work in inferior-scheme-mode.  It works with gambit, which uses a gambit.el file versus quack or cluck. Works fine here.  Are you sure you're running the latest version? IIRC an older version did not understand