Spyke

Posts

programming·General Programming Discussionbyttmrichter

Why optimization is important.

If you use a compiled language, you should periodically look at Godbolt and see what your code is doing and what changes to your code will do in the compiled output.

In this case a positively insane way of calculating squares and cubes generates 311 lines of ARM assembler output that will swallow your memory. With even something as simple as -O1 on the command line it's replaced by one or two multiplications respectively. With -fwhole-program it removes the functions entirely and interlaces them into the loop in main().

Know your tools. It makes huge differences!

Why optimization is important.https://godbolt.org/z/qKjjf5Eq8Open linkView original on lemmy.world
21
aiop·AMUSING, INTERESTING, OUTRAGEOUS, or PROFOUNDbyttmrichter

Fine print bombshell - share information which "undermines trust in government", face jail - Michael West

When western countries start using language in their laws and policies that reads like it comes straight out of Chinese law books, the world is going to shit. It's unbelievable that this is coming so close to actually being enacted in a "democratic" nation.

Fine print bombshell - share information which "undermines trust in government", face jail - Michael Westhttps://michaelwest.com.au/government-review-of-secrecy-provisions-an-assault-on-democracy/Open linkView original on lemmy.world
3