clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
vlaaad 2019-05-30T11:48:12.001900Z

is it possible to write a cljs compiler backend that emits lua code? I found an abandoned project from 7 years ago that tried to do that: https://github.com/raph-amiard/clojurescript-lua (as well as discussion with David Nolen, apparently with the same person who tried that: https://archive.clojure.org/design-wiki/display/design/Decoupling%2Bcljs.core.html) but I guess clojurescript changed a lot in last 7 years?

mpenet 2019-05-30T12:35:58.005400Z

Sure. Or you could just use fennel. It's similar syntactically but otherwise it's just lua with parens (and macros, some sugar here there), which has both pros and cons

vlaaad 2019-05-30T12:40:45.005500Z

I don't want lua with parens, I want clojure on another host

mpenet 2019-05-30T12:43:54.007500Z

I guess you answered your question yourself earlier then: it's possible.

cfleming 2019-05-30T23:51:38.009900Z

@vlaad I don’t think there is any conceptual problem with doing that, but there are some issues with the result, in particular the Lua/LuaJIT GC is not very performant, so persistent datastructures will almost certainly perform badly. IIRC Tim Baldridge had similar problems with Pixie.

cfleming 2019-05-30T23:51:53.010300Z

Oops @vlaaad ^^^

cfleming 2019-05-30T23:53:00.011200Z

There’s a #cljs-dev which is probably a better place to ask this. Also, you might want to check out https://fennel-lang.org/, which is somewhat clojurey but is more like lua with a skin.