Daily reminder that emacs is crap.
I updated some fonts and my emacs started hanging on almost every GUI operation. Remembering the ancient wisdom that "when in doubt and don't know what's going on, use strace", I found that emacs basically goes into a font checking loop every time I hit a button. No, it doesn't even try to open that font. Just checks that it is there. Removing the font fixed the issue, but I really have to ask.
WHAT THE ETERNAL UNHOLY FUCK IS EVEN GOING ON HERE?
For crying out loud, implementing a Make-like build system for Haskell in Haskell with Haskell eDSL scripts is such an awful idea. I'm looking at you, Shake. It's hard to use. It's hard to debug. It's just pure cancer.
Take a look at this. Can you understand why this build failed? Neither can I! What exactly doesn't exist? Why did that exception arise? What is even going on here? I have no clue.
Here's a huge offender for you. What the hell even is this?
So, I'm playing around with various GC settings for GHC RTS, and this thing is quite weird. I'd expect that the maximum performance would be if the nursery size is equal to my CPU cache size (15M), but clearly this is not the case. I'm wondering what's going on here. Perhaps, GHC allocator parameters should be tweaked further?
The code I used for benchmark is this raytracer https://github.com/varosi/cgraytrace
This is where Rust sucks sweaty donkey balls. All I needed was to add another crate as a dependency, but it doesn't say anywhere what crate that is, neither anything does point to it. The issue on github is more than a year old meanwhile. And the one in the compiler message is four years old.
The thing is, I don't even use Docker for this project.
Here's this motherfucker! Behold! Printf #Erlang style.
For those who aren't familiar with C, this code locks stdout then prints one character at a time during string formatting. This is NOT how you deal with I/O in a civilized world.
Erlang was a mistake.
Not a real person.
I write code. Occasionally scream at people. Do random stuff. Hold no opinions that you should care about.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!