Oliver Zinke wrote:
> 
> Hi everybody,
> 

Guten Tag, Oliver. Wie geht es Ihnen?

> So I came up with the question, will there be a Java-Perl Binding in the
> future ? Neil then described the situation and told me any help is needed.

I think Inline::Java should be the next big push. Here's how to do it:

1) Define a module called Inline::Java with the following methods:

 A) register() - simple, see Inline::C
 B) validate() - to support Java specific config options
 C) build() - use javac to parse java instead of Parse::RecDescent. Find
out how to get all of the resulting function signatures back from the
Java class. Save the ones that use simple types into some cache file.
 D) load() - load or connect to a JVM. Bind the functions into Perl like
Exporter does. Write some C code to convert Perl strings and numbers to
Java ones. Ignore anything more complicated.

Something like that. Look at Inline::Python for some inspiration. I
think we (on this list) who are interested, should start playing around
with the idea. The worst thing that can happen is we learn something. 

Also, we should reuse code that's already out there. Like Java.pm and
JPL.


> By the way, if there's something wrong in my messages considering the
> English language, whether it's the wrong word, context or grammar, please
> correct
> me as I try to continuously improve my knowledge :-)))

Ich auch lerne sprechen Deutsch.

> 
> And finally, can somebody please tell me what this "foo" and "foobar", what
> is often used as variable names in examples, mean ?!!

Nope. It's secret.

> 
> Enjoy yourself.

Bis spater, Brian

-- 
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'
  • Newbie Oliver Zinke
    • Brian Ingerson

Reply via email to