[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] O'Reilly ebook: Creating Solid APIs with Lua
- From: Tyler Neylon <tylerneylon@...>
- Date: Sun, 10 Sep 2017 15:53:56 -0700
This is a ~100 page ebook that introduces Lua's C API to coders who
know C, along with some relevant best practices like sandboxing and
compile-time checks for declared globals.
https://www.safaribooksonline.com/library/view/creating-solid-apis/9781491986301/
I'm hoping this book will be useful to anyone interested in adding a
scripting interface to their app, such as game developers enabling
game mods, adding an API, or any kind of developer adding an in-house
domain-specific language to their app.
This Medium article gives a sneak peek at the kind of material covered:
https://medium.com/@tylerneylon/make-your-code-scriptable-19be885dda69
The example code in the ebook builds up a kind of (very minimal) game
engine built around text-based graphics. Atop the game engine is a
Pac-Man-like game with a randomly-generated maze and scriptable enemy
behavior. All the code is open source here:
https://github.com/tylerneylon/APIsWithLua
- Tyler