That’s why Canadians are so nice. They took all their anger and attitudes and shoved them into Canadian geese then sent them across the border…
- 0 Posts
- 6 Comments
There is a video where a real game dev was showing how bad a specific benchmark was. It was basically read arguments, get a random number, do a for loop 10,000 times, inside there do another for loop 10,000 times, do some equation with a modulo, put result in array, pick a number from array and print to screen.
The biggest time cost was the modulo as that’s the hot path. He basically went through and typecast all the ints to double. He got 4x the speed. It went from almost 2 seconds to less than 0.5 second just on that change. This is mostly due to cpu and compiler now using simd instructions.
Small changes can have big impacts.
For a long time all systems which deal with timezone data (like ability to convert utc to est for example) was reliant on 1 server in 1 random guy’s basement which he paid for himself. I heard they were working to correct this situation but haven’t been following it.
vrek@programming.devto
Fuck Cars@lemmy.world•Saw a post on reddit aaking about the worst accidents people had ever seen. Realised >90% of them involved cars.English
13·2 days agoMy sister volunteered as an ambulance assistant in hs. She got a call one night of a car crash, she went. A friend of hers was driving way too fast, lost control, went off road and ran into a tree.
Worse he was not wearing a seat belt and got sent out the windshield and head first into a tree. Her description was “I had to pick up his body with a shovel and put it in a bucket”.
There was also a bus crash a few years later on a local highway. It was kids going on a field trip. According to the 911 call, the operator asked “how many ambulances are needed?” and the caller who witnessed it just said “all of them”
I’m getting into woodworking, do you have any books on shelves?


He didn’t do any of that. Just typecast the numbers to be doubles.
The whole benchmark was a mess but that part specifically surprised me.