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

Trampoline(以及其他针对递归的优化) #2

Open
umajho opened this issue Mar 27, 2023 · 1 comment
Open

Trampoline(以及其他针对递归的优化) #2

umajho opened this issue Mar 27, 2023 · 1 comment

Comments

@umajho
Copy link
Owner

umajho commented Mar 27, 2023

由于目前没有对递归进行特别的优化,理论上求值期间可能会出现栈溢出。
不过考虑到 dicexp 的目标场景只是执行简短的掷骰表达式,这不是个很紧迫的问题。

@umajho
Copy link
Owner Author

umajho commented Oct 10, 2023

远期有打算将本项目用更底层的语言(如 rust)重写,且思路为将解析的代码先编译为字节码再运行。
那时代码会编译为 WASM 供浏览器运行。

所以这类优化不打算在现阶段的项目中实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant