I know it's not Clojure, but you can at least scratch the Lisp on the
iP* itch.
Scheme for the iPhone:
http://jlongster.com/software/iphone/scheme-iphone-example/
http://jlongster.com/blog/2010/02/23/farmageddon/
--
You received this message because you are subscribed to the Google
Groups "Cloju
I think get/put are pretty fast but there is also the possibility of
slicing arrays in and out of nio buffers on the java side which maybe
could be faster if you want to modify many values and have some memory
to spare.
For example if you have a nio buffer several hundred megabytes big and
you wan
On 24.03.2010, at 11:22, mac wrote:
> With regards to copying of data, clj-native expects nio buffers to be
> used as input where a native function requires a typed pointer. These
> buffers can be allocated outside of the JVM heap specifically to avoid
> copying. For example (ByteBuffer/allocateDi
Clarification of lettersoup:
JNI = java native interface, the C/C++ interface to java.
JNA = java native access, an API that aims to simplify java/C interop.
clj-native is built upon JNA and is at present a rather thin wrapper
so it's good to learn a bit about JNA to get the most out of clj-
nativ
On 24 Mar 2010, at 07:40, mac wrote:
If you just want to use LLVM from Clojure however, you can use my C
FFI clj-native with the C interface for LLVM. I actually made it
because I wanted to play around with LLVM but I never got around to
actually doing that again once I had a working version of
Like Per says, if you want to compile Clojure to LLVM code that's
probably a huge project, have you looked at VMKit? I think that's a
JVM/CLR implementation based on LLVM, perhaps it could run Clojure?
If you just want to use LLVM from Clojure however, you can use my C
FFI clj-native with the C in
Clojure depends on aggressive dynamic optimization for performance.
It's a very different set of techniques than what is used in the
ahead-of-time static compilation world from which LLVM hails. The
Google guys working on Unladen Swallow seem to have had enough
problems getting it to work well even
Has anyone looked at driving LLVM from Clojure and then doing code generation
to LLVM? I've had some experience doing it in a JIT context for VisualWorks
Smalltalk, but I'd rather not reinvent the wheel. I'd love to be able to use
Clojure on the iPad.
Antony Blakey
-
CTO, Linkuistic