Hacker News new | past | comments | ask | show | jobs | submit login
Why Smart C Coders Love Lua (realtimelogic.com)
8 points by willhschmid 1 day ago | hide | past | favorite | 5 comments





I like Lua, but after going all in on Gambit-C^1 for a bit, I'm not sure anything can top its level of integration. Besides compiling to C, it just lets you straight up write C inside of a .scm file.

    (c-declare #<<c-declare-end
    #include <stdio.h>
    c-declare-end)

    ((c-lambda () void
    #<<c-lambda-end
    printf("Hello World!\n");
    c-lambda-end))
and then run the corresponding executable

    gsc -exe embed.scm && ./embed

1. https://www.deusinmachina.net/p/gambit-c-scheme-and-c-a-matc...

I think all the arguments of the article still hold if one changes "Lua" to "Tcl". (well, the general arguments, not anything related to the Xedge framework).

I love Tcl.

Title on article

Using Lua for Embedded Development vs. Traditional C Code


what is a smart C coders



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: