Fork me on GitHub
#clojure-europe
<
2020-11-24
>
ordnungswidrig07:11:03

Good morning early worms!

plexus07:11:03

Good morning!

dharrigan08:11:00

Good Morning!

simongray08:11:37

Godmorgen allesammen

simongray08:11:52

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.

ordnungswidrig08:11:10

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

slipset10:11:38

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

slipset10:11:01

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

ordnungswidrig17:11:08

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

val_waeselynck18:11:17

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

val_waeselynck18:11:01

btw @U04V5VAUN, 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/

❤️ 3
dominicm09:11:16

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

dominicm09:11:31

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

ordnungswidrig09:11:43

“packaged clojurescript development ring function”?

dominicm09:11:01

For hosting clojurescript during dev

simongray09:11:57

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

hkjels10:11:22

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

hkjels10:11:46

likely not very noticable though

dominicm10:11:59

There's some caching headers worth setting though.

simongray10:11:04

@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).

val_waeselynck18:11:11

@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.