Or, one could embed Chez Scheme, the compiler of which is like 800 kB in size and compiles stuff very quickly.
Or, one could embed Lua, which has simple syntax and built for that exact purpose
Possibly, but the dilemma of having to choose between Lua 5.4, with its portability and language features, and LuaJIT's performance isn't very pleasant. I'm sure that LuaJIT updated to 5.4 version language would be very popular, but it doesn't exist right now.