alexec / fn

Apache License 2.0
2 stars 0 forks source link

Embedded scripting language #2

Open alexec opened 2 years ago

alexec commented 2 years ago

Today, if you want to include configuration or code from other teams into apps, when those apps written in different languages, you have a few options:

I don't think there are any great options today.

There are various use cases, such as complex policies or plugins systems. I imagine LUA can meet most of these. However, I want something simpler and faster.

Finally, (and unlike CeL), LUA and JS need to be sandboxed, which adds complexity.

We can go into discussions of the Halting Problem, but 🤷

alexec commented 2 years ago

https://github.com/google/cel-go#why-not-javascript-lua-or-wasm

alexec commented 2 years ago

What if the language was a subset of another language, e.g. a subset of C? We can then always compile it using existing tools.

alexec commented 2 years ago

C BNF C- BNF Simple BNF