On Sunday, 26 March 2023 at 18:07:03 UTC, ryuukk_ wrote:

It should be the opposite

Slow code ugly
Fast code beautiful


What's fast today may not be fast tomorrow but the language might still be relevant.

e.g.: It used to be faster to ...

- pre-calculate sin/cos tables, now the memory look up cost more cycles than the calculation itself

- use fixed point integer math, now every CPU has what used to be a floating point co-processor integrated

- only redraw the parts of the screen that changed, now the branching is slower than to redraw everything another example is sorting - Alexei wrote a blog post about how a stupid and slow sorting algorithm now performs better in multi threading. Maybe someone remembers the title/url of the post ?

And finally, beauty is in the eye of the beholder - meaning it's purely subjective.

Reply via email to