Discussion:
JVM language calling native language
(too old to reply)
Arne Vajhøj
2024-06-06 23:46:24 UTC
Permalink
Another little writeup.

VMS Tech Demo 17 - JVM language calling native language:
https://www.vajhoej.dk/arne/articles/vmstd17.html

Java/Groovy -> Fortran/Pascal/Basic/C

I have shown most of it before, but a little more detail here.

Arne
Simon Clubley
2024-06-07 12:30:45 UTC
Permalink
Post by Arne Vajhøj
Another little writeup.
https://www.vajhoej.dk/arne/articles/vmstd17.html
Java/Groovy -> Fortran/Pascal/Basic/C
I have shown most of it before, but a little more detail here.
Some typing errors:

combibations
linkedd
understand how to other scenaros [Also, how to _what_ ?]
nul terminated

You should also discuss briefly what reflection is. I've used the feature
and it's rather nice, but you can write full Java code without ever being
exposed to the concept.

Simon.

PS: Reading your overall usage sequence reminds me of just how much "fun"
JNI actually is. :-)
--
Simon Clubley, ***@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
Arne Vajhøj
2024-06-07 12:54:22 UTC
Permalink
Post by Simon Clubley
Post by Arne Vajhøj
Another little writeup.
https://www.vajhoej.dk/arne/articles/vmstd17.html
Java/Groovy -> Fortran/Pascal/Basic/C
I have shown most of it before, but a little more detail here.
combibations
linkedd
understand how to other scenaros [Also, how to _what_ ?]
nul terminated
Fixed.

Thanks.
Post by Simon Clubley
You should also discuss briefly what reflection is. I've used the feature
and it's rather nice, but you can write full Java code without ever being
exposed to the concept.
I added a sentence.

I could write an entire article about reflection, but that sentence will
have to do for now.
Post by Simon Clubley
PS: Reading your overall usage sequence reminds me of just how much "fun"
JNI actually is. :-)
The overall problem of moving from a managed context to an unmanaged
context is inherently tricky.

But the JNI API is cumbersome to work with.

Which is why it is being replaced by Foreign Functions API
in Java 16 (preview only - still waiting for final version).

And why various wrappers like the well known JNA and my little VMS
specific thingy exist.

Arne
Lawrence D'Oliveiro
2024-06-07 23:47:10 UTC
Permalink
Post by Arne Vajhøj
I could write an entire article about reflection, but that sentence will
have to do for now.
Java makes it needlessly complicated.

Loading...