> Thank you Mark Downie for recommending OpenCL, I'll start playing
> around with it.  As for accessing the c libraries directly, I'm afraid
> I don't know much about JNI to do it from clojure.  Do you or anyone
> know of a good way to start with JNI in clojure?

If you are going to use a straight C library and not C++ there is
probably no need for hand-crafted JNI code unless you need the
function calls themselves to be extra-special-super-fast. JNA provides
a way to interface to C libraries without touching C code. There are
at least two Clojure wrappers for JNA:

http://github.com/bagucode/clj-native (http://clojars.org/clj-native)
http://github.com/Chouser/clojure-jna

clj-native is my creation and it's been a little neglected lately but
should work fine with clojure 1.2 both at repl and when using AOT
compilation. If you try it and have problems or suggestions for
improvement, please let me know.

/Markus

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to