You are viewing archived messages.
Go here to search the history.

Ezhik 2024-06-19 15:44:51

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?

Mariano Guerra 2024-06-19 15:52:34

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?

Eli Mellen 2024-06-19 15:57:19

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

Eli Mellen 2024-06-19 15:57:25

I wouldn’t say it is a good idea, but I enjoy it

Ezhik 2024-06-19 16:00:53

Mariano Guerra not really asking for any specific project, just curious to learn the what/how/why of it

Ezhik 2024-06-19 16:02:33

@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.

Marek Rogalski 2024-06-21 19:34:59

I can vouch for Python. The docs are really good: . There is also V8 ( which gives you JavaScript but might be a little quirky to set up.

📝 1. Embedding Python in Another Application

The previous chapters discussed how to extend Python, that is, how to extend the functionality of Python by attaching a library of C functions to it. It is also possible to do it the other way arou...

📝 Getting started with embedding V8 · V8

This document introduces some key V8 concepts and provides a “hello world” example to get you started with V8 code.