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

output bytecode directly to LuaJIT #172

Open
heavyk opened this issue Oct 12, 2024 · 1 comment
Open

output bytecode directly to LuaJIT #172

heavyk opened this issue Oct 12, 2024 · 1 comment

Comments

@heavyk
Copy link

heavyk commented Oct 12, 2024

hi jin, I found something cool the other day...

https://github.com/franko/luajit-lang-toolkit

  • get tokens (needs some changes to count indentation)
  • build ast
    • output Yuescript
    • output LuaJIT bytecode and run directly in LuaJIT (as if you loaded a .lua file)
@pigpigyyy
Copy link
Owner

pigpigyyy commented Oct 17, 2024

I think this can be a project for learning LuaJIT bytecode generation. Maybe we can learn from it and then make YueScript generating to bytecode for LuaJIT, instead of the intermediate Lua code to speed up and do optimized compiling.

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

No branches or pull requests

2 participants