3 ms·
In assembly it’s really easy to write self-modifying code. It used to be the norm in fact. But today’s high-level programming languages generally make it imposs
by pavlov 3y ago
In assembly it’s really easy to write self-modifying code. It used to be the norm in fact. But today’s high-level programming languages generally make it impossible, and most operating systems also prevent mutating code in memory (no-execute page protection, etc.) Yet there are still use cases like JIT compilers.
The linked list is the data structure equivalent of self-modifying code. It’s easy for a novice to understand, but there’s no great reason for anyone to actually do it today outside of a specialized library.