Embed Gravity programming language into your code(marcobambini.github.io) |
Embed Gravity programming language into your code(marcobambini.github.io) |
I wanted to create a programming language with the following properties:
- Class-based
- A JS/Swift/Kotlin like syntax
- Bytecode generation
- A clear distinction between front-end and back-end so at runtime, we need only the VM related code to execute the bytecode
- Lightweight and easy embeddable
- Extensible/customizable via bridge API(s) exposed via delegation (no need to hack/modify the code)
Would you recommend me to investigate Gravity further?
It's a bit unclear what I would get from Gravity that I don't have in Wren. Maybe a slight different syntax?
(to other who didn't know what data-driven programming meant https://en.wikipedia.org/wiki/Data-driven_programming "In computer programming, data-driven programming is a programming paradigm in which the program statements describe the data to be matched and the processing required [...] Standard examples of data-driven languages are the text-processing languages sed and AWK")
TCL would be somewhat comparable, various embeddable JS interpreters, lua, etc.
"The compiler and virtual machine combined, add less than 200KB to the executable on a 64 bit system." would make lua perhaps the most obvious alternative. Perhaps they really wanted traditional class based OO.
One of the tutorials for Creo is a good example of what they wanted it for: https://docs.creolabs.com/tutorials/game_tutorial_part1.html