| Last updated on Thu Jun 19 12:00:00 CEST 2003 |
| Ruby/Java integration |
|
It’s been some time (around 3 weeks and a half now) since I started
to hack rjni. At first I
didn’t think about what integration does really mean: I was just
implementing (quite in a hurry) an idea that popped out during Euruko 03.
So I just provided a simple means to use JNI from Ruby and a (IMHO
neat) mapping of Java to Ruby concepts: static methods become class
singleton methods, accessors are created for attributes, etc.
I’ve been thinking of expanding the scope of rjni to cope with the following issues:
The signal handling issue is especially problematic since that’s quite tricky and possibly system- and JVM-dependent. Threads could prove to be difficult to get right, too. If you see how to solve these problems (or want to have some fun doing so :-) contact me at <batsman dot geo at yahoo dot com>. |