Fork me on GitHub
#clojure-europe
<
2023-02-28
>
Gabriel Kovacs06:02:49

11
🥐 3
simongray08:02:59

good morning

grav08:02:01

Morning!

thomas09:02:13

Does this mean you are back at work?

genRaiy09:02:38

ha, just about 😉

genRaiy09:02:01

the post holiday fog is lifting slowly

thomas09:02:19

I didn't mean that you are doing work 😉

😂 2
thomas10:02:56

Debugging SQL statements is !@#$

2
borkdude10:02:40

common table expressions ftw

❤️ 2
💯 2
thomas10:02:09

just found the actual log I was looking for. duh.

🎉 2
thomas10:02:02

but it doesn't really help 😞

mccraigmccraig17:02:10

i spent a good part of last year debugging SQLite running from a clojurescript+react-native app on my phone - that was also !@#$

genRaiy07:03:36

Two tables were sitting in a bar. I walked in and asked “may I join you”?

💥 3
2
reefersleep12:02:04

Too big a part of my work is restarting the (slow-to-start, due to networked integrations) REPL due to changes in libraries. Am I doing it wrong? Could I be loading in those libraries in a smarter and faster way?

Ben Sless12:02:52

Are you requiring them in user.clj?

Ben Sless12:02:08

Lein or deps?

borkdude13:02:04

you can change those libraries as part of your project. in deps.edn you would do that with local/root and in lein they have some thing called checkouts.

borkdude13:02:28

I never used lein checkouts myself, deps.edn feels a lot less complicated here

Ben Sless13:02:08

Yeah, deps is great for changing libs "online" And the start up time is better Also, is there a chance you have things in your dev alias which shouldn't be there? Is there a user.clj file in your project?

reefersleep13:02:09

@U04V15CAJ you are of course right 😅 I completely forgot about checkouts!

reefersleep13:02:12

There is no user.clj, @UK0810AQ2. I’m trying to understand your concern - are you hinting at a surplus of libraries causing slow startup time? Because as to restarting, I would have to use checkouts regardless of the amount of libraries, right?

reefersleep13:02:42

There might be “too many” libs, there certainly are a lot 🙂

Ben Sless13:02:10

a user.clj might trigger a chain of requires at startup you don't need

reefersleep14:02:19

Ah. Thank you, @UK0810AQ2! I’m sure there’s room for optimisation in our project.clj in any case, it’s pretty big.

Benjamin18:02:34

https://practical.li/clojure/clojure-cli/projects/hotload-in-project/#hotload-repl I use this to load when I add new libs... I am not sure what it does if you already have the same lib

reefersleep22:02:55

Thank you @U02CV2P4J6S ! I'll check it out :hugging_face:

mccraigmccraig16:02:36

TIL about ferret - a subset of clojure which compiles to c++, designed for real-time embedded systems - you can realistically run clojure on your arduino! https://ferret-lang.org/

👀 3
😲 1