refer to the /cinvoke/ library, which supports now integrating C/Lua and C/Java without need of writing jni wrappers. Except allowing to define C functions (like J's cd) it allows to define C structures also.

But it is about integrating native C libraries into Java, Lua, .. J.. I have no problem with integration C libraries into J... But, there are lot of problems with integration J into the C.. and ability to simply define callbacks is just a first of the existing problems. As for me, second one (and more important) is releasing of resources in multiple J session environment under *nix platforms.

Instead of referring to other langauges interfaces,
could you just provide a simple concrete use case or two
with actual function signatures on all layers involved.

On a side note, how would it be possible to make
embedded Java call back your C host without
creating a separate JNI DLL?


--- Jack Andrews <[EMAIL PROTECTED]> wrote:

i've embedded python, java and k in other
languages. the conventional way is to use
the provided c interface.

all i'm saying is that it's unconventionally
hard to embed j given the current c interface.
if you don't know what i'm talking about,
please refer to the c interfaces to other
languages such as the above mentioned.

i welcome the promise of j calling c functions
passed as a function pointer.

jack
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



--
Yuri Burger
Senior Software Architect
Labs Zoral, Kiev

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to