Looking for a Lua alternative

Sönke Ludwig sludwig at outerproduct.org
Fri Dec 15 14:30:43 UTC 2023


Am 14.12.2023 um 14:59 schrieb bachmeier:
> On Thursday, 14 December 2023 at 08:38:02 UTC, solidstate1991 wrote:
>> After losing a battle with trying to get Lua 5.4 working on my own 
>> end, with problems I previously solved kept reappearing, and other 
>> problems just were unable to fix for no good reason, I've decided to 
>> drop it from my own game engine in favor of some replacement.
>>
>> I need a lightweight scripting language with integer support that is 
>> either easy to interface with D (preferrably as a DLL/SO file, so I 
>> don't have to deal with godawful C/C++ build systems), or at least 
>> would be easy to port within a few weeks. Most scripting languages 
>> nowadays are de-facto application languages for people that are scared 
>> of compilers and type systems, thus are coming with 25-50MB worth of 
>> standard libraries, which I obviously would like to avoid packing with 
>> my way smaller game engine. At the very worst, I'll try to port 
>> pocketpy or something like that to D or make it a DLL file.
> 
> If you're willing to go with Lisp, there are small, embeddable Schemes: 
> [s7](https://ccrma.stanford.edu/software/snd/snd/s7.html) and 
> [Chibi](https://github.com/ashinn/chibi-scheme), one that is more 
> Clojure-like: [Janet](https://janet-lang.org/), and one that's more like 
> Lua: [Squirrel](http://www.squirrel-lang.org/).

I've used Squirrel as a LUA replacement about 20 years ago and liked it 
quite a bit. It's actually positively surprising that it is still (or 
again) receiving updates.


More information about the Digitalmars-d mailing list