Filter
Exclude
Time range
-
Near
OK, went ahead and published a repo here: github.com/clavascript/clava… #clavascript is a #cherrycljs spin-off which maps more directly to JS. #clojurescript
Would it be too blasphemous if we had a spin-off of #cherrycljs which directly compiled to JS without the CLJS stdlib? It would yield really small scripts, while still re-using the existing CLJS familiarity, syntax and it would integrate tightly with JS. #clojure
Show this thread
1
4
What if we had a CLJS-ish->JS tool that allowed us to write the Lisp syntax we love, but leverage the good performance that @jarredsumner's bun gives us? #cherrycljs #clojure #clojurescript
Would it be too blasphemous if we had a spin-off of #cherrycljs which directly compiled to JS without the CLJS stdlib? It would yield really small scripts, while still re-using the existing CLJS familiarity, syntax and it would integrate tightly with JS. #clojure
Show this thread
2
6
1
40
Show this thread
Would it be too blasphemous if we had a spin-off of #cherrycljs which directly compiled to JS without the CLJS stdlib? It would yield really small scripts, while still re-using the existing CLJS familiarity, syntax and it would integrate tightly with JS. #clojure
2
1
2
25
GIF
Show this thread
Here's a demo of the below in #cherrycljs by writing "JSX" directly in ClojureScript with hot-reloading provided by Next.js. #clojure #clojurescript github.com/borkdude/cherry
Replying to @borkdude
In React, props are always an object. So rendering `<p>Hello {x}</p>` where x is an object will yield an error. Otherwise, that works fine: codesandbox.io/s/polished-fe…
1
3
1
26
GIF
Could you get any closer to the guts of JS and React than this from #clojurescript? #cherrycljs
2
1
18
Don't know wtf I'm doing and if this makes sense, but here's a demo of .cljs + #jsx reader macro compiling directly to a .jsx file #cherrycljs #clojurescript #clojure github.com/borkdude/cherry
1
1
16
A browser version of #cherrycljs Very basic UI, wrote the index.html in a few minutes, cherry is loaded from npm via import-maps. borkdude.github.io/cherry/in… #clojure #clojurescript
4
4
2
20
Show this thread
#babashka + #cherrycljs example: a web application in which JavaScript is compiled on the fly, with some server side templating: github.com/borkdude/bb-cherr… github.com/borkdude/bb-cherr… #clojure
17
A CLJS->JS compiler with instant startup, which could be used from #babashka or as a JVM library to compile CLJS to JS in real time as part of a ring response? #cherrycljs #clojure #clojurescript
2
5
48
GIF
Here's an heretic idea: compile .cljs with #cherrycljs down to JS that uses immutablejs. #clojurescript
2
2
15
Now producing more efficient code in the #cherrycljs react example due to initial macro support :) borkdude.github.io/cherry/ex… #clojurescript #clojure
1
24
Prototype of macro implementation in #cherrycljs
7
Replying to @jarredsumner
ES6 modules complicate this. For #nbbjs (interpreter) the normal Interactive development you expect from a Lisp is supported but for #cherrycljs (compiler) I’m not sure yet what to do. A mutable backing object that shadows the modules perhaps.
1
The #cherrycljs wordle and react examples now also work in Safari. Had to add a import-maps shim since not all browsers support that yet! Wordle: borkdude.github.io/cherry/ex… React: borkdude.github.io/cherry/ex… #clojure #clojurescript
8