This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-16
Channels
- # announcements (2)
- # asami (124)
- # babashka (30)
- # babashka-sci-dev (73)
- # beginners (40)
- # biff (1)
- # calva (39)
- # clj-kondo (54)
- # clj-otel (1)
- # cljdoc (59)
- # cljs-dev (8)
- # clojars (2)
- # clojure (96)
- # clojure-austin (16)
- # clojure-boston (6)
- # clojure-europe (51)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-russia (60)
- # clojure-uk (4)
- # clojurescript (34)
- # community-development (6)
- # cursive (2)
- # datahike (10)
- # datascript (18)
- # emacs (109)
- # etaoin (1)
- # events (3)
- # figwheel-main (41)
- # fulcro (13)
- # helix (4)
- # introduce-yourself (5)
- # jobs (1)
- # leiningen (5)
- # lsp (8)
- # malli (6)
- # meander (7)
- # nrepl (6)
- # off-topic (60)
- # pathom (29)
- # polylith (8)
- # re-frame (5)
- # reitit (1)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (33)
- # sci (3)
- # shadow-cljs (3)
- # xtdb (82)
what a weekend
Morning
My girlfriend was treated with exposure therapy for a phobia against caterpillars and the like yesterday. As a part of the treatment, we now have a little plastic container with meal worms writhing about, sitting on our kitchen counter.
Get some Leopard Gecko's! Mine love mealworms 😛 and they are awesome 🦎
She’s not afraid of geckos per se 😛
Seems like a solid excuse to get some gecko's 😛
That alone is a sign that it worked really well! That container would not have been near the house, had it been Saturday or before.
Good morning
“Inneklemt dag” means inbetween day. Normally a Friday or a Monday, when the Thursday or Tuesday is a holiday.
we call that a bridge day but it feels like clamped on would be a more literal translation
Germany is in the “bridge day” team, “Brückentag”
I dont think anyone would turn up for work if their roof was leaking 😭
We don't have a word for that! Also, I learned watching Eurovision that Italians have a rich sign language. We have nothing near that. A little envious
So, perhaps asking for a friend. Say one has a backend in Clojure, and a frontend in Javascript and one figured out that it would be nice to be able to share code between the frontend and the backend. One might also be on leiningen. One approach would be to create a separate lib which contained the implementation for the shared code (in cljc) and then publish two artifactes, one to some npm thingy, and one to a clojure thingy (S3 comes to mind, since this is a private project). Another approach would be to have the shared code in the original Clojure project, rename the pertinent files to cljc and have something publish the javascript thingy to npm. Anyone got experience with such a setup?
we have a monorepo containing both the backend and the frontend, and shared code in .cljc ... no remote artefact repos at all, just local maven (our client is cljs, so no need to build npm packages, but i imagine we'd build local npm packages if we needed to)
What kind of CLJ code can be used from JS without also need access to CLJ data structures?
You can also include scittle in your front-end which can load .cljs
files from your server directly :P
https://babashka.org/scittle/
I'd love to talk to the friends when it is implemented 😂
In my experience the fewer artifacts the better so your 2nd option looks better to me.
I meant that you have to have a JS-friendly api on top, that deals with shuttling data back and forth, as JS code can't easily create a CLJ map.
Another thing of note is that you can only do this once. CLJS compiled output cannot interop with CLJS compiled output from a different compilation.
Error: "JS sweetness" - does not compute
I think you can make a shadow-cljs etc bundle with some top level exports, export a bundle and just import that as a local directory from webpack, to start with. Then you can think about npm and such.