Comment by tuetuopay

12 days ago

> OpenSSL allowed replacing any algorithm at any point in program execution

Just this is completely nuts. What in the world is the usecase for this? Fanatics of hotpatching systems for zero-downtime-ever? No wonder the performance is crippled by locks left and right, it's pure recipe for disaster.

I’ve done this kind of thing before: I wrote a 3D game engine that could switch between DirectX and OpenGL at runtime and also switch GPUs dynamically.

At some point the architecture becomes a toy to play with, like a train set. Trying to push the abstractions as far as they can possibly go within the bounds of the parent language is a fun challenge to tackle.

Of course, this is pointless and even counterproductive. I only did this decades ago when I was a junior developer. With more experience I now deeply appreciate simple, straightforward, to-the-point code.

I tell juniors: “Just do the thing.”