clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
ordnungswidrig 2020-11-24T07:24:03.030100Z

Good morning early worms!

plexus 2020-11-24T07:48:03.030300Z

Good morning!

dharrigan 2020-11-24T08:10:00.030500Z

Good Morning!

simongray 2020-11-24T08:21:37.030800Z

Godmorgen allesammen

simongray 2020-11-24T08:21:52.031Z

Holy crap, gzip makes a huge difference! Even though it’s just compressing an unoptimised development build right now, my JS bundle size went from 6.5MB to 889KB. I would never have expected to get that level of compression.

ordnungswidrig 2020-11-24T08:57:10.031100Z

That’s only about 7:1 which is not that unexpected for source code.

2020-11-24T09:21:58.031400Z

morning

dominicm 2020-11-24T09:25:16.032200Z

I'm surprised there's no packaged clojurescript development ring function tbh.

dominicm 2020-11-24T09:25:31.032600Z

Daniel Compton has a blog on the one true way, but that's it.

ordnungswidrig 2020-11-24T09:28:43.032800Z

“packaged clojurescript development ring function”?

dominicm 2020-11-24T09:36:01.033200Z

For hosting clojurescript during dev

dominicm 2020-11-24T09:36:10.033400Z

Gzip, etc

simongray 2020-11-24T09:48:57.034600Z

I’m happy just using shadow-cljs for development-time stuff. I don’t think gzip makes much sense to have on during development.

2020-11-24T10:01:22.036100Z

As simon points out; on local development, bandwidth is not a bottleneck, so adding gzip which takes some amount of processing would likely slow you down

2020-11-24T10:01:46.036400Z

likely not very noticable though

dominicm 2020-11-24T10:04:59.036900Z

There's some caching headers worth setting though.

simongray 2020-11-24T10:30:04.039800Z

@dominicm I just rely on always having the developer tools open for general observability and defaulting to disable cache in the network tab (this is in the Chrome developer tools).

thomas 2020-11-24T10:42:28.040Z

mogge

slipset 2020-11-24T10:47:38.040100Z

Chris Ford has this talk on Kolmogorov sequences in music https://www.youtube.com/watch?v=Qg3XOfioapI

slipset 2020-11-24T10:48:01.040400Z

IIRC, the gist of it is that the more compressable something is, the less information it contains.

ordnungswidrig 2020-11-24T17:41:08.040600Z

well, that’s shannon and entropy etc. I would be surprised of music if music would not be compressible well

raymcdermott 2020-11-24T17:41:29.040900Z

morning

val_waeselynck 2020-11-24T18:10:17.041100Z

Well, a musical score achieves a very high compression rate compared to an audio file, doesn't it ? 😉

val_waeselynck 2020-11-24T18:12:11.042600Z

@dominicm when you're going down the optimization road, it often makes sense to not have your static artifacts served by your Clojure process at all - e.g leave that to nginx.

val_waeselynck 2020-11-24T18:15:01.042700Z

btw @slipset, you triggered me, and now I have to share once again the best textbook on Shannon entropy out there: http://www.inference.org.uk/mackay/itila/

❤️ 1
dominicm 2020-11-24T18:20:05.043200Z

@val_waeselynck in production, sure