Re: Calling Native C-code from Clojure

2020-12-05 Thread John Doe
Cool! Thanks again Chris. On Saturday, December 5, 2020 at 4:09:39 PM UTC+1 ch...@techascent.com wrote: > You are most welcome :-). For numerical computation, libjulia-clj > may interest you :-). > > On Sat, Dec 5, 2020 at 8:06 AM John Doe wrote: >

Re: Calling Native C-code from Clojure

2020-12-05 Thread Chris Nuernberger
You are most welcome :-). For numerical computation, libjulia-clj may interest you :-). On Sat, Dec 5, 2020 at 8:06 AM John Doe wrote: > Thank you Chris. It's very helpful. > > The approach you took for dtype-next is very interesting. This library is

Re: Calling Native C-code from Clojure

2020-12-05 Thread John Doe
Thank you Chris. It's very helpful. The approach you took for dtype-next is very interesting. This library is closer to my work (numerical computation). Also, the efficient use of Java heap is very interesting although I admit I don't know enough about it. This reminds me of Rich Hickey's

Re: Calling Native C-code from Clojure

2020-12-05 Thread John Doe
Thanks so much lvh. Your Youtube presentation was one of the main reasons I chose JNI-FFI :-) I did not consider looking into Caesium, let alone the source code: probably, because my current work does not involve cryptography. Thank you so much for the github link to the repo. Looking at the

Re: Calling Native C-code from Clojure

2020-12-04 Thread Chris Nuernberger
Ngwua, Looking through the caesium bindings just mentioned, it appears the author dynamically creates an interface and then you can simply ask the native library to instantiate a concrete implementation of that interface .

Re: Calling Native C-code from Clojure

2020-12-04 Thread Laurens Van Houtven
Hi, I did a talk on this and conveniently my library caesium wraps the library you're referencing :) https://www.youtube.com/watch?v=Lf-M1ZH6KME https://github.com/lvh/caesium/ I still think that approach is great particularly for libraries like libsodium where some care was taken to make them

Calling Native C-code from Clojure

2020-12-04 Thread John Doe
Hello Everyone, *Motivation:* I want to invoke C-code functions from Clojure: writing Java functions in Clojure. *Plan of Attack:* Rather than go with the JNI approach I want to interface with C-Library via JNR-FFI (https://github.com/jnr/jnr-ffi) Based on some example of using JNR-FFI