Alternatives to Lua as an embedded language?

后端 未结 7 484
盖世英雄少女心
盖世英雄少女心 2021-01-30 05:23

I am working on an embedded system running Linux on a DSP. Now we want to make some parts of it scriptable and we are looking for a nice embeddable scripting language. These scr

相关标签:
7条回答
  • 2021-01-30 05:54

    I understand that Lua is the industry choice for problems like this.

    A bold claim! I would suggest that if you are already running Linux, the choice is wide open. Linux itself is by no means the "industry choice" for embedded systems; the 'industry' is far more fragmented than that.

    A language that is implementable on virtually any system regardless of performance, size, and OS (or even no OS), is Forth. Not the most fashionable language perhaps, but easily implementable and extensible.

    Another candidate might be ch, which is an embedable C/C++ interpreter, so you can use the same language for compiled and scripted code.

    0 讨论(0)
提交回复
热议问题