[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] JAPI update and inline extension
From: |
felix |
Subject: |
[Chicken-users] JAPI update and inline extension |
Date: |
Thu, 11 Sep 2003 00:26:09 +0200 |
User-agent: |
Opera7.11/Linux M2 build 406 |
Hello!
- The JAPI library doesn't expose SRFI-4 (integer vectors are passed
as normal Scheme vectors). This is a step towards unifying the JAPI
interfaces of Chicken and the one done by Johannes Leveling for Bigloo.
- The `inline' extension compiles C on the fly (similar to the Perl and
Python inline things). It's a bit simpler (no C parsing), but is quite
easy
to use:
% csi
>>> (require-for-syntax 'inline)
>>> ((inline int () "return(42);")) ; compiles and loads a .so
42
>>> ((inline int () "return(42);")) ; reinvokes loaded code
42
>>> ,q
% csi
>>> (require-for-syntax 'inline)
>>> ((inline int () "return(42);")) ; loads .so from cache
42
cheers,
felix
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-users] JAPI update and inline extension,
felix <=