This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-30
Channels
- # announcements (3)
- # aws (5)
- # beginners (71)
- # boot (7)
- # calva (74)
- # cider (6)
- # clj-kondo (2)
- # cljs-dev (5)
- # clojars (6)
- # clojure (84)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (23)
- # clojure-nl (43)
- # clojure-sanfrancisco (1)
- # clojure-spec (4)
- # clojure-uk (173)
- # clojurebridge (1)
- # clojurescript (14)
- # cursive (44)
- # datomic (9)
- # duct (2)
- # emacs (2)
- # fulcro (4)
- # graalvm (4)
- # graphql (27)
- # hoplon (6)
- # keechma (50)
- # off-topic (3)
- # other-languages (8)
- # pathom (2)
- # pedestal (14)
- # planck (5)
- # re-frame (3)
- # reitit (6)
- # ring (2)
- # robots (2)
- # spacemacs (9)
- # tools-deps (15)
- # vim (44)
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?
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
@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.
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.