-A feature of HertzScript which aids in parallel computing is that it dynamically implements multiple function call hooks at run-time; this property is very important and allows Hz to generate JavaScript source code that it is able to be executed, stopped, and paused/resumed arbitrarily. A hook is additional functionality applied statically to source code, or applied dynamically to a program that is already executing; for example a debugger like Counter Strike AMX-MOD (static) or GCC (dynamic). Hz is able to hook into all function calls by using its compiler to statically detour each step (function call) of the source code into Hz at run-time, thus making them available for dynamic hooks and extensions. By utilizing the hook/detour mechanisms in Hz, we can begin to implement new abstract features such as better stack traces, dynamic analysis, tail-call optimization, reflective meta-programming techniques, and automatic parallelization.
0 commit comments