Improving Nasal: Difference between revisions

Jump to navigation Jump to search
m
→‎Consider Opcode reordering: no need for it to be a function, it's static and can be a prepopulated hash - if it is to be a function, the hash should be pre-created in initGlobals and just returned
m (→‎Consider Opcode reordering: no need for it to be a function, it's static and can be a prepopulated hash - if it is to be a function, the hash should be pre-created in initGlobals and just returned)
Line 54: Line 54:
(The same technique could be used to unify and optimize BINOP handling and some other instructions)
(The same technique could be used to unify and optimize BINOP handling and some other instructions)


At which point it would make sense to add a library function - runtime() - that returns a hash with build-time constants, like these:
At which point it would make sense to add a pre-populated environment hash  like '''runtime''' - with build-time constants, like these:


* OP_VERSION
* OP_VERSION

Navigation menu