Somersault: First Look
Added 2024-11-30 06:20:00 +0000 UTC4 months ago I announced a new project called Somersault. Now it's time to reveal the first results.
TL;RD: Visit https://next.sannybuilder.com

What is Somersault?
Somersault is a new scripting toolchain built on top of CLEO 5 library. It aims to provide an easy yet powerful way to create scripts for GTA San Andreas. There is no secret that the game runtime is quite limited and has many restrictions. For example, number of local variables per script is limited to 32. There is no native way to create functions or objects. Somersault tries to overcome these limitations. It's heavily inspired by Sanny Builder 4 language but goes far beyond it.
Planned features
- a brand new parser and the compiler
- a backend to translate scripts to the format ready to be compiled with Sanny Builder 4 (a transpiler)
- a backend to compile scripts to the bytecode format used by GTA San Andreas
- an interactive shell (REPL) to compile scripts in the terminal
- a CLI version of the compiler to compile text sources to the bytecode format (ssc.exe)
- an online guide
Some of these tools are still in development and not yet available.
Want to try it?
Go to https://next.sannybuilder.com and follow the interactive guide to learn more about new features. This website provides an online compiler that can be used to try new features in the browser and then test them in the game.
Let me know what you think in the comments below or on Discord at https://sannybuilder.com/discord. Happy coding!