|
|
|
|
|
by mrugiero
743 days ago
|
|
That is not the point though. I know threading allows using a custom convention and just jumping. What it doesn't, IIUC, is allow specializing your code for runtime data. Copy-and-patch and Jitter do. It's essentially static vs dynamic.
I'm new to this so I may very well be misunderstanding threading, but I don't think it allows for modifying the functions on runtime by itself. |
|
The term context threading refers to generation of native code that behaves much like conventional threaded-code interpretation, except specialised to the particular input code. [0][1]
See also dynamic superinstructions, a term used by gforth to refer to its runtime generation of native code for input Forth code. [2]
Disclaimer: I'm no Forth expert. I should give [1] a proper read, it looks interesting.
[0] https://webkit.org/blog/214/introducing-squirrelfish-extreme...
[1] (PDF) https://csng.cs.toronto.edu/publication_files/0000/0162/demk...
[2] https://www.complang.tuwien.ac.at/forth/gforth/Docs-html-his...