have you ever done a project where you added an em...
# present-company
e
have you ever done a project where you added an embedded programming language for scripting, configuration, fun, etc? what's your go-to choice for the language? why?
m
the default answer probably is lua but it depends on the host language you are using and what you want to do. what's your host language?
e
I know exactly enough C to quickly embed either lua or janet into a project, and from there I try to stick to the embedded language
I wouldn’t say it is a good idea, but I enjoy it
e
@Mariano Guerra not really asking for any specific project, just curious to learn the what/how/why of it
@Eli Mellen oh lua is a pretty common choice from what i've seen. i've done plenty of mac os crimes with it in hammerspoon.
❤️ 1
1
m
I can vouch for Python. The docs are really good: https://docs.python.org/3/extending/embedding.html . There is also V8 (https://v8.dev/docs/embed) which gives you JavaScript but might be a little quirky to set up.
s
Lua
j
Python — I authored this library to allow exposing subsystems/objects in a LabVIEW application to Python. The LabVIEW application can also invoke these scripts (that call back into labVIEW) https://github.com/JKISoftware/jki-labview-python-server
g
mRuby deserves a mention. https://mruby.org/ A strict subset of full Ruby, from the same team that makes Ruby, designed for embedding.