self-modified code is much harder to understand and debug than the same functionality, but not self-modified code :).
Given the modern development and the terrible cheapness of hardware resources on the background of the high cost of human resources, died out as a redundancy.
In the early days of computers, I remember reading a description of a game in which some game functions were formed directly while the game was running.
I remember there was a big set of executable chunks in a file, from which a chain of execution was formed by copying into memory, at the beginning of which control was given by CALL, and at the end of which RET was obligatory.
periodically the chains were re-formed.
Given the modern development and the terrible cheapness of hardware resources on the background of the high cost of human resources, died out as a redundancy.
In the early days of computers, I remember reading a description of a game in which some game functions were formed directly while the game was running.
I remember there was a big set of executable chunks in a file, from which a chain of execution was formed by copying into memory, at the beginning of which control was given by CALL, and at the end of which RET was obligatory.
periodically the chains were re-formed.