about summary refs log tree commit diff stats
path: root/src/notes
Commit message (Collapse)AuthorAgeFilesLines
* going through chapter 28 of https://www.lua.org/pilKartik K. Agaram2021-11-051-0/+15
| | | | | | | | | User-defined C data. I think I have some understanding of the Lua stack now. It's a different kind of verbose, error-prone syntax than Mu that requires me to play computer in my head. But I don't fully grok metatables yet. At least not well enough to grok everything that's going on in lcurses/ext.
* I don't yet understand the stackKartik K. Agaram2021-10-241-5/+1
|
* ok, starting to make sense nowKartik K. Agaram2021-10-241-3/+1
| | | | | | | | Putting together two resources: https://lucasklassmann.com/blog/2019-02-02-how-to-embeddeding-lua-in-c/#exposing-a-simple-variable https://www.lua.org/manual/5.3/manual.html, section 2.1, "Values and Types", particularly the description of light user data. And lo, I see lua_pushlightuserdata in lapi.c
* done reading lua_newstateKartik K. Agaram2021-10-241-1/+8
|
* get rid of userstate hooksKartik K. Agaram2021-10-241-1/+0
|
* get rid of fromstate/tostateKartik K. Agaram2021-10-241-1/+0
|
* get rid of state_sizeKartik K. Agaram2021-10-241-1/+1
|
* get rid of LUAI_EXTRASPACEKartik K. Agaram2021-10-241-0/+14
Lua's power may come from extensibility, but the indirections are currently in the way