> 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
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
wrote:
> From: David Dreisigmeyer
> Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument
> 2 from incompatible pointer type)
> Date: Sat, 12 Feb 2
rned instead of a string.
On Sat, Feb 12, 2011 at 5:11 AM, Felix
wrote:
> From: David Dreisigmeyer
> Subject: [Chicken-users] C_word type / Cython (warning: passing argument 2
> from incompatible pointer type)
> Date: Fri, 11 Feb 2011 17:47:24 -0500
>
>> Here's the sol
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
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_s32int32_t
e I
> tag it as 1.993.
>
> 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
> wrote:
>> Using Macports, I had to do the following in order to get the readline
>> egg to install:
>&g
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 to
; On Wed, Jan 26, 2011 at 8:59 AM, David Dreisigmeyer
> 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"
>>
d, Jan 26, 2011 at 6:10 AM, Peter Bex 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/l
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.
__
Thanks Christian. -Dave
On Tue, Jan 25, 2011 at 11:29 AM, Christian Kellermann
wrote:
> * David Dreisigmeyer [110125 17:23]:
>> I've installed the chicken-doc egg. Now, if I run:
>>
>> csi -R chicken-doc
>>
>
> You did not initialise a chicken-do
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)
; loading
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
__
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
http://lists.nongnu.org/mailman/listinfo/chicken-user
>
> ** 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 mail
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 w
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 tople
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 thi
Hi Peter, that didn't work.
On Sat, Jan 15, 2011 at 11:33 AM, Peter Bex wrote:
> On Sat, Jan 15, 2011 at 05:27:59PM +0100, Peter Bex wrote:
>> I don't know why you chose to use -dynamiclib (or what it actually *does*),
>> but changing -dynamiclib to -shared worked for me:
>
> Ah, dynamiclib is an
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
Undef
I tried this with Gambit-C but couldn't quite make it work correctly.
Right now I'm planning on going through the Sage/ECL Cython files to
see how they get it to work.
On Fri, Jan 14, 2011 at 6:29 PM, Alan Post wrote:
> On Fri, Jan 14, 2011 at 11:53:09PM +0100, Felix wrote:
&
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?
>
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.
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
wrote:
> Hi,
>
> I wish you all some good and quiet days or whatever suits you best.
>
> Kind regards,
>
> Christian
>
> ___
n it hangs
without OPTIMIZE_FOR_SPEED=1 or DEBUGBUILD=1.
On Tue, Dec 21, 2010 at 10:04 AM, Felix
wrote:
> From: David Dreisigmeyer
> 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: Mon, 20 D
l
On Sun, Dec 19, 2010 at 5:54 AM, Felix
wrote:
> From: David Dreisigmeyer
> 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
>
>> The do hang at the
`(declare (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
wrote:
> From: David Dreisigmeyer
> Subject: [Chicken-users] creating shared libraries from two files
> chicken-bind /
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
wrote:
> From: David Dreisigmeyer
> Subject: Re: [Chicken-users] install with llvm-gcc and clang ha
:41 AM, Felix
wrote:
> From: David Dreisigmeyer
> 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 of the previously installed
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
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 wrote:
> I would like to compile two separate scheme files, with different
> (declare ...) options, into a single module.
>
> Is it poss
Hello,
Using the following:
--
make PLATFORM=macosx ARCH=x86-64 PROGRAM_SUFFIX=-4.6.0 C_COMPILER=clang
sudo make PLATFORM=macosx ARCH=x86-64 PROGRAM_SUFFIX=-4.6.0
C_COMPILER=clang install
--
or
--
make PLATFORM=macosx ARCH=
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
wrote:
> From: David Dreisigmeyer
> Subject: [Chicken-users] bind error : "bad proto
For the attached scheme file I'm getting the error below. The line
it's complaining about looks like this:
extern CL_API_ENTRY cl_int CL_API_CALL clGetDeviceIDs(
cl_platform_id ,
cl_device_type ,
cl_uint ,
cl_device_id * ,
cl_uint * ) CL_API_SUFFIX__VERSION
-- 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 wrote:
> On Tue, Dec 07, 2010 at 03:15:32PM -0500, David Dreisigmeyer wrote:
>> I'm getting the following error for the a
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 term
This is what I was hoping to do today, or soon.
On Tue, Dec 7, 2010 at 4:22 AM, Peter Bex wrote:
> On Mon, Dec 06, 2010 at 09:45:50PM -0500, David Dreisigmeyer wrote:
>> In case anyones interested here's a working example of some OpenCL
>> code. I'm hoping to pursue
In case anyones interested here's a working example of some OpenCL
code. I'm hoping to pursue this line a bit more, but wanted to verify
it could work easily.
OpenCL example (C code is at end)
** hello.h:
int oCluck ();
** hello-module.scm:
(module hello-module (try-opencl)
(import c
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 ()
[
(run-scheme scheme-program-name)))
On Thu, Dec 2, 2010 at 3:05 PM, Mario Domenech Goulart
wrote:
> On Thu, 2 Dec 2010 14:32:45 -0500 David Dreisigmeyer
> wrote:
>
>> Thank you Mario!
>>
>> One more thing: Is it possible to autoload eggs at the command line,
>>
Dec 2, 2010 at 2:28 PM, Mario Domenech Goulart
wrote:
> Hi David
>
> On Thu, 2 Dec 2010 14:19:58 -0500 David Dreisigmeyer
> wrote:
>
>> Thanks Mario. I thought I was using at least 4.4.0 yesterday, but
>> that must be wrong. I was following:
>>
>> http:
;
> On Thu, 2 Dec 2010 13:50:02 -0500 David Dreisigmeyer
> 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 trac
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 ]
Thanks Jim. -Dave
2010/12/1 Jim Ursetto :
> 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 wrote:
>
>> I can't install the objc egg (see below). Thanks again. -Dave
>>
&
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:
http://chick
rs] Re: seg fault
> Date: Wed, 1 Dec 2010 09:50:59 -0300
>
>> On Tue, Nov 30, 2010 at 11:51 AM, David Dreisigmeyer
>> wrote:
>>> You can do this to default to 64-bit, versus 32-bit:
>>>
>>> http://www.overclock.net/mac/564147-how-enable-64-bit-default-
Would there be any major differences when it came to Objective-C?
On Wed, Dec 1, 2010 at 11:08 AM, Peter Bex wrote:
> On Wed, Dec 01, 2010 at 11:04:17AM -0500, David Dreisigmeyer wrote:
>> Would there be any advantages / disadvantages to using llvm-gcc /
>> clang versus gcc?
>
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
I/path/to/punCpp.h -C -m64 -c++ -s punCpp.cpp 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
wrote:
> Thanks Thomas and Peter. I created a punCpp.h but forgot to include
> it on the email.
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 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.sw
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 wrote:
> On Wed, Dec 01, 2010 at 08:23:40AM -0500, David Dreisigmeyer wrote:
>> This may be getting closer. Here's my c
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
wrote:
> Has anyone been able to get the SWIG example to run?
>
> http://www.swig.org/Doc2.0/Chicken.html#Chicken
>
>
wrote:
> 2010/12/1 Alan Post :
>> On Tue, Nov 30, 2010 at 11:18:49AM -0500, David Dreisigmeyer wrote:
>>> [...]
>>> When I try this:
>>>
>>> *pun_cpp.cpp:
>>>
>>> #include
>>> using namespace std;
>>>
>>> void p
Has anyone been able to get the SWIG example to run?
http://www.swig.org/Doc2.0/Chicken.html#Chicken
Thank you,
-Dave
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
husly:
make PLATFORM=macosx ARCH=x86-64
On Wed, Dec 1, 2010 at 7:50 AM, Stephen Eilert wrote:
> On Tue, Nov 30, 2010 at 11:51 AM, David Dreisigmeyer
> wrote:
>> You can do this to default to 64-bit, versus 32-bit:
>>
>> http://www.overclock.net/mac/564147-how-
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
wrote:
> From: David Dreisigmeyer
> Subject: Re: [Chicken-users] Re: seg fault
> Date: Mon, 29 Nov 2010 18:44:11 -0500
Hi,
I was hoping to get some help with the c++ "hello world" example
below. I apologize for the question -- I'm currently learning both
Chicken and C/C++ at the same time. So far Chicken seems much easier
than the other Lisps I've tried. Thanks for the effort and great
documentation on this imp
x ARCH=x86-64
>
> Sorry for the inconvenience.
> Jim
>
> On Mon, Nov 29, 2010 at 17:44, David Dreisigmeyer
> wrote:
>> It's i386. This ia a problem with Snow Leopard. Chicken wouldn't
>> compile otherwise, with an error for apply-hack.
>>
>> On
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
wrote:
> From: David Dreisigmeyer
> Subject: [Chicken-users] Re: seg fault
> Date: Mon, 29 Nov 2010 13:25:02 -0500
If I compiled version 4.6.3 everything works fine. I did have to make
the following change in Makefile.macosx:
# platform configuration
#ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh)
ARCH = x86-64
On Mon, Nov 29, 2010 at 12:28 PM, David Dreisigmeyer
wrote:
> Using the chicken 4.4.0 f
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
t 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 la
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
http://lists.nongnu.org/mailman/lis
63 matches
Mail list logo