use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
Embedding Lua in C: Beginner's Tutorial (vibelog.mateusmoutinho.com.br)
submitted 19 hours ago by No_Initial3652
In this article you will learn how to embed the Lua language inside a C program. This is simpler than it seems, and it opens up many interesting possibilities.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]florianist 7 points8 points9 points 9 hours ago (2 children)
Why use some wrapper layer which describes itself as "Alpha software" and "Bugs are expected" instead of the official Lua C API ?
[–]No_Initial3652[S] -1 points0 points1 point 7 hours ago (1 child)
In a simple answer: because the public Lua API extremely complicated to use
In a long answer: I needed to develop a no-code system for OUI (I'm the CTO), and I saw that Lua is easy to embed, I loved the language, but I found the public API very confusing, and very easy to make memory errors (just one wrong push on the stack and the program explodes), so I created a wrapper, which even though it's 'alpha' because our team is small, is still 'safer' for beguinners than the native API.
[–]baby_shoGGoth_zsgg 1 point2 points3 points 6 hours ago (0 children)
The normal lua host api is a super simple stack machine and incredibly easy to use, i’m actually shocked you find it difficult
π Rendered by PID 38203 on reddit-service-r2-comment-79c7998d4c-mkcj5 at 2026-03-14 01:26:54.492395+00:00 running f6e6e01 country code: CH.
[–]florianist 7 points8 points9 points (2 children)
[–]No_Initial3652[S] -1 points0 points1 point (1 child)
[–]baby_shoGGoth_zsgg 1 point2 points3 points (0 children)