Fork me on GitHub
#clojure-europe
<
2022-08-13
>
genRaiy00:08:42

Good morning

👍 2
🙌 1
genRaiy00:08:31

I'm having fun with folks that are new to ClojureScript - there are a variety of learning styles. Who knew?

borkdude08:08:12

@raymcdermott You're having with with folks that are new to ClojureScript around 3am in the morning? Well, UGT I guess

😄 3
genRaiy09:08:55

We went out to see Joss Stone in Leuven last night and the night buses are infrequent. Also 🍻🍻🥴

borkdude10:08:31

I know it would be highly blasphemous but it could also be useful: a tool that translates Clojure-ish to direct JS without any CLJS baggage (stdlib written in JS, really small): E.g.:

$ ./node_cli.js -e '(prn (-> (assoc! {} :foo :bar :baz 2) (dissoc! :baz)))'
{ foo: 'bar' }
I'm trying to gather feedback about this approach. The benefit of the above would be: you would still be able to use your Clojure editor with structural editing and reuse familiarity, thread macros, etc for writing fairly direct JS code.

👍 1
Jakub Holý (HolyJak)10:08:51

What is the selling point? What Clojure syntax, get straightforward JS out? For people forced to produce JS but disliking the syntax? A lot of value of Clj comes from the REPL and the mighty std lib. World it be worth without it? I'm not trying to be difficult, just trying to really understand the value and usage. For me everything Clojure-ish is great and writing that is so much nicer than writing JS. Though the main contender might be TypeScript, where some of us find the benefit of types and tight integration with React and related tools to be more worth than all the goodness of Clj.

borkdude10:08:41

@U0522TWDA The selling point of #clavascript is that you can write with CLJS syntax but get really small output, while still having parts of the stdlib available (not yet complete). This may work for small projects e.g. that you'd like to deploy on CloudFlare workers, node scripts, Github actions, etc that need the extra performance and small bundle size.

❤️ 1
borkdude10:08:59

It will have an integrated way to write JSX using hiccup too

borkdude10:08:25

Not sure if we can integrate / emit typescript types, but that would maybe be interesting too

borkdude10:08:02

There is also #cherry which is a similar idea but this gets bundled with the original CLJS stdlib and as a consequence has a larger bundle size even for small programs

borkdude10:08:18

I'm not yet sure which project will win or if there is a place for both. This is part of some research. Clearly they both need REPL support which isn't yet implemented