Speaking as someone who doesn't have a lot of experience with lower-level languages, I have a lot of questions I have about that gist (actually interested, not just proving a point):
- Where do the utils come from? Is there a repo or build context somewhere?
- I assume the # stuff is for the compiler, what is shrink+ and runtime stub?
- What is resetError() for?
- What is heap.reset()? Is the VM stateful?
- Is the return type an enum? Why is 2 spam?
So yes, they're easy to write, but there's a reason people embed lua and javascript (as opposed to typescript) in applications like blender and after effects. It's really easy to learn and doesn't require a lot of background knowledge.