clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
thomas 2020-11-20T07:54:59.479200Z

mogge

ordnungswidrig 2020-11-20T08:03:23.479500Z

moinzy

2020-11-20T08:14:31.479700Z

Morning

simongray 2020-11-20T09:02:42.480Z

morning

dharrigan 2020-11-20T09:15:15.480200Z

Good Morning!

borkdude 2020-11-20T09:39:36.480400Z

m0gguh

thomas 2020-11-20T11:14:47.482400Z

ok, n00b question... I have a reagent app and I want to do an HTTP call when I load my component... But when I do it in the render call it doesn't really work... so how do I make an http call (in normal react it would componentDidMount or something like that... but what is the equivalent in Reagent?

borkdude 2020-11-20T11:15:17.482600Z

:component-did-mount :)

borkdude 2020-11-20T11:15:31.482800Z

See the docs for r/create-class

thomas 2020-11-20T11:18:58.483400Z

aah so I create a class with a didmount func and a render func?

borkdude 2020-11-20T11:25:02.484Z

so yes, but you didn't spell those keys right

thomas 2020-11-20T11:31:23.484700Z

I know... just trying to type on a Friday afternoon. and thank you!

👍 1
2020-11-20T11:56:51.485500Z

so this change did the lion's share of work in making my 1hour single threaded code take 4 minutes on a 16 core machine: https://github.com/MastodonC/witan.send/blob/30d009a3b12009b1ae05bf8debfbcfc7622b9aa4/src/clj/witan/send/model/run.clj#L198-L226

2020-11-20T11:56:55.485800Z

pretty pleased with it

👍 5
2020-11-20T11:57:50.486700Z

I just wish I had the time to stream the results down to the various things making data products as I could keep the memory pressure massively down too. atm I'm realising the whole sequence

2020-11-20T11:58:31.487100Z

the code in the into and the let do the same thing

2020-11-20T12:44:25.487800Z

(this kind of change is why I keep on pushing at it)

dominicm 2020-11-20T18:27:58.488300Z

That's awesome.

dominicm 2020-11-20T18:28:19.488900Z

I wonder what you'd do with a 5950 in your hands...

2020-11-20T19:57:22.490200Z

I'm running it on an Intel nuc 16 core Xeon with 64gb ram atm. That box looks good.

2020-11-20T21:14:42.491200Z

just ran it on my 4 core 16GB xps 13 (a few generations old) and it ran in 12 minutes with 12GB Xmx on Java 1.8 (I was running 1.11 on the NUC). So I'm pretty happy with that too. 🙂

2020-11-20T21:15:05.491800Z

I like that it runs a lot faster and that being able to throw more cores and RAM at it makes a difference