This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-16
Channels
- # babashka (53)
- # beginners (61)
- # biff (2)
- # cherry (15)
- # cider (28)
- # clj-kondo (17)
- # clojure (57)
- # clojure-europe (27)
- # clojure-nl (13)
- # clojure-norway (6)
- # clojure-uk (4)
- # clojurescript (30)
- # core-async (2)
- # data-science (39)
- # datomic (16)
- # docker (34)
- # emacs (4)
- # events (1)
- # figwheel-main (9)
- # guix (5)
- # hiccdown (2)
- # honeysql (5)
- # hyperfiddle (5)
- # interceptors (1)
- # jobs (2)
- # joyride (5)
- # lsp (36)
- # midje (1)
- # minimallist (1)
- # nbb (21)
- # off-topic (45)
- # polylith (42)
- # rum (1)
- # shadow-cljs (24)
- # sql (1)
- # squint (62)
- # vrac (1)
- # xtdb (6)
So macros in cherry don't actually expand before emitting JS code, is that it?
Right, do you think this is a problem? I always felt that Clojurescript macros are really weird...
Do you think it's a problem that cherry and Clavascript macros will run only on ClojureScript, and have no access to JVM/Basbashka? What I feel is that Clojure macros are more "integrated" on the language - you don't have to worry about java elements "leaking" into the final source, or defining things on different files, etc...
One example is the hack we need to check (:ns &env)
to know if we're compiling a CLJ macro or a CLJS one, because reader conditionals don't work right
hi, stupid question - what is the advantage of this vs self-hosted cljs [somehow output-modified to be es6 (a)] or is the (a) part so difficult that it motivates the whole project?
I asked the same question re babashka I know, it's the question that helps me grok what's actually going on xD
I'm pretty sure the advantage is mostly "Reducing friction between ClojureScript and JS tooling"
there are a bunch of ways this is achieved and some future goals listed int he readme. I'm sure someone can expand on more concrete differences but that's the gist of it
I understand that but don't understand what the main technical element of achieving that is beyond the self-hosted, whether it's (a) or something else
@zimablue Good questions: cherry is currently more an exploration of ideas than a final working product. It will take some time to see if it's better than what we have or whether it allows new things that were previously not easily feasible.
Thanks, it's not meant as a criticism I'm learning clojurescript and trying to understand, the complication and tooling are still a bit of a black hole to me. Because I'm working on an electron app bundle size is less relevant
Yes, JS is used in a wide variety of use cases. At the same time I'm also exploring #clavascript (with the help of some amazing people in that channel) which compiles more directly to JS without any of the CLJS "baggage" which can e.g. be used for ultra-small bundle sizes for cost savings on AWS or cloudflare, etc. It's about adding more use cases for Clojure(-ish) instead of "being better" than existing tools but what exactly those use cases are remains to be seen as these products aren't yet production-ready.