4 ms·
Ask HN: Statically typed fast scripting languages?
For a weekend project I need to embed something like Lua in a C or C++ application. I'm looking for scripting languages small and fast and easily embeddable like Lua 5.4 is, but with full static typing like TypeScript with all the flags.
I can't find a list and it's hard to google so I'm hoping some of you have suggestions.
- PaulHoule 1y agoMy RSS reader just showed me https://teal-language.org/ https://teal-language.org/
- diggan 1y agoMaybe AngelScript (https://en.wikipedia.org/wiki/AngelScript https://en.wikipedia.org/wiki/AngelScript) could be a good fit, used in a bunch of released games, so seems to be good enough for real work. Wren (https://wren.io/ https://wren.io/) is another interesting language, but I haven't even tried it myself, but on the surface it seems to match. Edit: Scratch that, Wren isn't actually statically typed, but somehow I have it saved in my bookmarks as one.
- stefanos82 1y agoMaybe you need to play with Nelua? Read more at https://nelua.io https://nelua.io
- 90s_dev 1y agoAccording to this benchmark of Lua vs QuickJS[1] the Dino language[2] is supposedly much faster than Lua. It also seems to check most of my boxes? [1] https://sabotage-linux.neocities.org/blog/9/ https://sabotage-linux.neocities.org/blog/9/ [2] https://github.com/dino-lang/dino https://github.com/dino-lang/dino
- not_your_vase 1y agoHmmm, this looks pretty interesting. Shame that it didn't take off, and now it looks pretty much dead.
- 90s_dev 1y agoSeems that the ones with a genuine ability to innovate are always the least motivated to either start their project, follow through with it, or share it when finished, beyond a doctoral thesis that gets them a PhD they never really end up using. I wonder why...