Fork me on GitHub
#clojure-europe
<
2022-05-16
>
reefersleep06:05:28

Good morning! I should have injected the coffee instead of drinking it 😴

1
💉 1
reefersleep06:05:42

what a weekend

dharrigan06:05:32

Good Morning!

simongray07:05:21

good morning

reefersleep07:05:01

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.

🎉 3
Ruben.Hamers08:05:54

Get some Leopard Gecko's! Mine love mealworms 😛 and they are awesome 🦎

reefersleep09:05:51

She’s not afraid of geckos per se 😛

Ruben.Hamers09:05:23

Seems like a solid excuse to get some gecko's 😛

reefersleep07:05:07

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.

genRaiy07:05:21

Good morning

reefersleep08:05:16

windows startup sound

😂 3
🪟 2
borkdude08:05:02

XP, the best Windows version

genRaiy10:05:24

I liked 3.11, when they added the Internet 👨‍🦳:skin-tone-3:

👌 2
borkdude10:05:06

The Internet was pretty good!

genRaiy10:05:43

Before it got big, yes

lread13:05:04

What's with these newfangled Usenet groups, and this Gopher thing?

lread13:05:46

Oh and beautiful picture @U04V5V0V4!

😂 1
1
maleghast09:05:33

Madainn mhath

slipset11:05:23

Norwegian expr of the day: “Inneklemt dag”

otfrom11:05:42

the day here is inclement. Our roof is leaking as well

😅 2
slipset11:05:01

I believe these words have quite different meaning 🙂

slipset11:05:10

“Inneklemt dag” means inbetween day. Normally a Friday or a Monday, when the Thursday or Tuesday is a holiday.

slipset11:05:24

“nobody” shows up for work on an inneklemt dag.

borkdude12:05:51

@slipset A similar Dutch word to that would be "ingeklemd"

pez13:05:52

Swedish: Klämdag.

genRaiy13:05:23

we call that a bridge day but it feels like clamped on would be a more literal translation

javahippie13:05:06

Germany is in the “bridge day” team, “Brückentag”

practicalli-johnny13:05:20

I dont think anyone would turn up for work if their roof was leaking 😭

reefersleep14:05:50

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

🤌 3
1
slipset15:05:24

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?

👀 1
mccraigmccraig16:05:45

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)

orestis17:05:55

What kind of CLJ code can be used from JS without also need access to CLJ data structures?

slipset17:05:26

All that should be fixed by the cljs compiler?

borkdude18:05:43

You can also include scittle in your front-end which can load .cljs files from your server directly :P https://babashka.org/scittle/

Jakub Holý (HolyJak)06:05:17

I'd love to talk to the friends when it is implemented 😂

Jakub Holý (HolyJak)06:05:09

In my experience the fewer artifacts the better so your 2nd option looks better to me.

orestis07:05:53

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.

orestis07:05:46

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.

slipset07:05:08

Yiup. Theee needs to be some js sweetness on top.

Jakub Holý (HolyJak)07:05:53

Error: "JS sweetness" - does not compute trollface

orestis07:05:07

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.

borkdude07:05:08

You don't need to publish to npm to be able to use your compiled CLJS, npm can use git or local deps too

❤️ 1
genRaiy09:05:58

using scittle to directly interpret CLJS seems epic to me ... so little tooling