Live data from Hacker News

Lua 5.4.0 beta

lua-users.org

101–103 of 103 posts

Re: Lua 5.4.0 beta

#102
post #79

Earlier quoted context omitted.

I'm not sure which embedded platform you're using but give AngelScript [0] a look. I've been using it to extend some C++ code (bsnes emulator) and it's been fantastic. It's so nice to have a C++-like scripting language with natural script-host bindings that I don't have to think hard about creating or spend a lot of time writing marshalling code or worrying about memory layouts. On top of that nice script-host interf…

https://news.ycombinator.com/item?id=21156235

AngelScript is not a transpiler. It's a runtime scripting language with an interpreter designed for easy script reloading at runtime, and I think there's even a JIT out there for it too. It's a valid competitor to Lua for the same use cases Lua serves. The only difference for integration may be that AngelScript is implemented in C++ and not C. Probably a C wrapper API could be (or has been) developed but that might not solve the problem of lacking a C++ compiler for your embedded platform.

Re: Lua 5.4.0 beta

#103
post #80

Earlier quoted context omitted.

> The thing is lua on embedded has no rival What about something like Nim which compiles to C? https://nim-lang.org/

I just had a short glimpse, but it seems that this is rather "transpiling" to C, right? We needed something that is being interpreted to allow easy updates of scripts. Comment on all subjects (I will just link it to other commenters): A lot of commenters posted some projects with JS interpreter. But we had to chose something that is stable and is being maintained. The last thing is always hard to argue about because…

Nim is compiling to C. It also supports scripting.
Post reply on HN