December 17

On Thursday, 14 December 2023 at 08:38:02 UTC, solidstate1991 wrote:

>

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.

I haven't seen it mentioned yet, but Roblox has forked Lua and improved it a bit, including adding types to it so it does have proper int types.

https://luau-lang.org/

I had a look and it seems to run twice as fast as Lua when types are specified... not groundbreaking but pretty good... and it seems to be about as small as Lua (they removed some stuff to make it safer to embed in games by default, but added some new stuff as well).

December 21

On Thursday, 14 December 2023 at 13:59:05 UTC, bachmeier wrote:

>

If you're willing to go with Lisp, there are small, embeddable Schemes: s7 and Chibi, one that is more Clojure-like: Janet, and one that's more like Lua: Squirrel.

Tried & FYI: ImportC cannot compile s7 for this issue:
https://issues.dlang.org/show_bug.cgi?id=24228

ImportC cannot compile Janet for this issue:
https://issues.dlang.org/show_bug.cgi?id=24291

December 21
>

If you're willing to go with Lisp, there are small, embeddable Schemes: s7 and Chibi, one that is more Clojure-like: Janet, and one that's more like Lua: Squirrel.

BTW, you can also use (native :-) DLisp (revived from undead)

https://code.dlang.org/packages/dlisp

December 21

On Thursday, 21 December 2023 at 00:39:11 UTC, mw wrote:

>

ImportC cannot compile Janet for this issue:
https://issues.dlang.org/show_bug.cgi?id=24291

One Problem with Janet is that it uses computed gotos which is a gcc extension
The code it complains about looks like:

    /* opcode -> label lookup if using clang/GCC */
#ifdef JANET_USE_COMPUTED_GOTOS
    static void *op_lookup[255] = {
        &&label_JOP_NOOP,
        &&label_JOP_ERROR,

As you can see &&label is not valid C11.
Which is what the import C parser complains about.

1 2 3 4
Next ›   Last »