Skip to content

About

Luau AST executor for Roblox

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

    LuauDispatcher

Ver License Release

An AST executor, meant for use with vantoanvh's LuauParser to run luau code from anywhere.

Meant for use with LuauParser v0.728

Check out the Docs!

If you'd like an easy way to make use of this library check out LuauExecutor!

Benchmarks

These benchmarks compare code execution between the native roblox engine, LuauDispatcher + LuauParser, and vLuau (the current most popular luau code environment)

Native Engine Benchmark Chart

NE Diff Scale Benchmark Chart

vLuau Benchmark Chart

LuauExecutor Benchmark Chart

Test Native (s) Luau Executor (s) vLuau (s)
Arithmetic assignment loop (sum 1..1000) 0.0000042049 0.0012328067 0.0009900933
Complex math expressions (100 iterations) 0.0000216428 0.0007105800 0.0014142333
Recursive Fibonacci (15) 0.0000358881 0.0067096533 0.0043807200
Nested conditionals & logic operators 0.0000040136 0.0009079267 0.0019265867
Array fill + next/pairs sum iteration (n=300) 0.0000115900 0.0009765667 0.0012851800
Dictionary lookup and mutation 0.0000230893 0.0005279267 0.0014516733

Compared to vLuau, LuauParser + LuauDispatcher is almost always faster, however it slows down extremely on large reccursive functions and long for loops. In general, vLuau is more consistant.

Choosing the right one for your usecase is a personal choice. If you want something tried-and-true that is consistant and easy, go with vLuau. If you want a much smaller module that has performance improvements but may be inconsistant, use LuauDispatcher + LuauParser.

Contribute

Download the package from Releases and import it into Roblox. You can also download everything individually from trueSrc however it's much harder because this is my first time uploading a package that I intend the general public to use. Most of the time I use my own system.

About

Luau AST executor for Roblox

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages