• JVM language calling native language

    From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to All on Thu Jun 6 19:46:24 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to Simon Clubley on Fri Jun 7 08:54:22 2024
    On 6/7/2024 8:30 AM, Simon Clubley wrote:
    On 2024-06-06, Arne Vajhøj <arne@vajhoej.dk> wrote:
    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.

    Some typing errors:

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

    Fixed.

    Thanks.

    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.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Clubley@21:1/5 to arne@vajhoej.dk on Fri Jun 7 12:30:45 2024
    On 2024-06-06, Arne Vajhj <arne@vajhoej.dk> wrote:
    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.


    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, clubley@remove_me.eisner.decus.org-Earth.UFP
    Walking destinations on a map are further away than they appear.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to All on Fri Jun 7 23:47:10 2024
    On Fri, 7 Jun 2024 08:54:22 -0400, Arne Vajhøj wrote:

    I could write an entire article about reflection, but that sentence will
    have to do for now.

    Java makes it needlessly complicated.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)