10 ms·
Yeah people are trying to port clojure on LuaJIT.. It is possible.
by z3phyr 14y ago
Yeah people are trying to port clojure on LuaJIT..
It is possible.
- dmpk2k 14y agoI'm curious how they map Clojure's persistent data structures with many threads onto Lua states.
- nickik 14y agoClojure data structures do not have many threads. Clojure separates the form of the data and the way that they are processed. All Clojure Data Structures are completly feasable in a single threaded language.
- dmpk2k 14y agoThey're feasible, but a lot less interesting if you're not taking advantage of multiple cores.
- nickik 14y agoI disagree, functional programming is the right way to go without multithreading.
- z3phyr 14y agoFunctional programming makes multithreading easier. This is one of the primary reason people are taking interest in this way of programming.
- nickik 14y agoIt got popular for this but generally functional programmers are not fans of functional programming because of multicore. Rich Hicky for example has pointed this out in many diffrent talks.
- graue 14y agoI got curious and looked into this. The relevant effort seems to be this, a new backend for the ClojureScript compiler which compiles to Lua instead of JavaScript: https://github.com/raph-amiard/clojurescript-lua https://github.com/raph-amiard/clojurescript-lua http://raph-amiard.github.com/ClojureScriptLua.html http://raph-amiard.github.com/ClojureScriptLua.html
- z3phyr 14y agoActually they use clojurescript because, the compiler is already writern in clojure. They just need to bootstrap it to th VM.