Commit Graph
6 Commits
Author SHA1 Message Date
BlackAngelTV 9587d1ed49 feat(gui): draw windowed apps through a batched SDL2 surface
Compiled programs could only write to the terminal, so the demo editor had no
real window. When CMake finds SDL2 the runtime now exposes a `gui` table and
Demo/guipaint.lua builds a 960x640 editor on top of it.

Frames are collected in Lua, merged into horizontal runs and sent with a single
`gui.rects` call: a full scene goes from 15071 draw calls and 42.9 ms per frame
to 1522 calls and 2.1 ms, and the rendered screenshot stays pixel-identical.
2026-11-18 10:18:44 +01:00
BlackAngelTV 1bfbe79cba feat(cli): create a build directory next to the Lua sources
The generated files landed in a luacpp-build folder named after the script, so
the executable could not be found where a build directory is usually expected.
The default layout is now build/<script> for the binary and build/src for the
generated sources, and the path is printed relative to the working directory.
2026-11-18 08:48:05 +01:00
BlackAngelTV fbdb3e73ba refactor(demo): keep the demo Lua-only
Calling the compiled modules required a CMake project and a C++ main, which
contradicted the point of the compiler. A Lua entry script now prints the same
report, and the modules sit next to it so require resolves without any flag.
2026-11-18 08:48:05 +01:00
BlackAngelTV fb8688890c docs: document the one-command workflow
The previous instructions described a CMake-only flow; the new entry point is
building the compiler once and running a script directly.
2026-11-18 08:48:05 +01:00
BlackAngelTV d8bd30918a docs: describe the transpiler, its C++ API and known limits
Users need to know how to build the compiler, integrate it in CMake and which
Lua features are not supported yet.
2026-11-18 08:48:05 +01:00
BlackAngelTV 62e950dbc5 Initial commit 2026-11-18 08:48:05 +01:00