News for hackers. Stuff that matters.
Re:Self-modifying code using GCC (2011) by Animats on Monday August 07, 2023 @02:14PM (#37038349)
> mainly for obfuscation.

Right. It stopped being a useful optimization decades ago.

One of the few architectural mistakes von Neumann made back in 1945 is that he didn't think of index registers. He was addressing arrays by storing into the address part of instructions. By 1949, the index register (the "B Box") had been invented, and storing into instructions was mostly obsolete.

Re:Self-modifying code using GCC (2011) by Nevermark on Monday August 07, 2023 @10:59PM (#37043971)
Would calculating algorithms that can be passed to a JIT-wise compiler callable directly, returning a pointer to object code that called can be called immediately count?

Turns out going from calculating an algorithm, optimized for whatever specialization is needed for performance, functionality & formats; to object code; to execution, with the simplest syntax imaginable, is pretty useful.

And fun

Cough, Forth, cough!