Add docker script to turn ceu into a binary file. #151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Compiling Céu on Fedora 38 can be problematic, especially because the required Lua version is not available in the repository. So I decided to make a docker script to compile Céu for me, but little did I know that Céu was actually a Lua script. ☠️
Solution
Recognizing that a static binary could simplify the execution of Céu, I started to look for a Graal-like VM for Lua until I stepped into a project that's been archived called srlua, which glues Lua scripts with a LuaVM into a single and static binary.
That said, I should also mention that the ceu-script is only 414.6 KiB while ceu-bin is 1.8 MiB, which is aproximately 4.5 times bigger but you should also take into account that in this way you won't need a LuaVM to run the code.
1b181a9: Add docker script to turn ceu into a binary file.
How to build