Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor of all zencode internals for reentrancy #727

Merged
merged 13 commits into from
Oct 2, 2023

Conversation

jaromil
Copy link
Member

@jaromil jaromil commented Aug 29, 2023

this is the first attempt at a deep cleanup of functional design of zencode internals with the goal of achieving a higher degree of reentrancy (maybe not full) and a clearer separation between stack (which includes runtime function pointers) and heap (which only includes encodable raw data)

jaromil and others added 13 commits October 2, 2023 15:57
this a deep cleanup of functional design of zencode internals with the goal of
achieving a higher degree of reentrancy (maybe not full) and a clearer
separation between stack (which includes runtime function pointers) and heap
(which only includes encodable raw data)

also optimized statemachine with core functionality

this should speed up zencode parsing
trivial changes
avoid using subtables whenever possible, obtaining a general speed
increase, by adopting global root vars for most used HEAP and STACK
variables and functions. General init cleanup.

small fix to traceback to mark zencode executed
removed all functions stored in ZEN table now pure virtual (only methods)
fix static inline _write

remove ERROR define to avoid clashes with systemd-wide
random number generated with inline modulo are now integers instead of float
@jaromil jaromil merged commit 1e3737c into master Oct 2, 2023
35 checks passed
@jaromil jaromil deleted the fix/refactor-zencode-lua branch October 2, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants