Search found 5 matches

by gilzoide
Tue Sep 22, 2020 6:27 pm
Forum: Libraries and Tools
Topic: Automatic FFI binding generation from C headers
Replies: 1
Views: 2645

Automatic FFI binding generation from C headers

I recently resurrected a project for automatically generating bindings from C to Lua: inclua ( https://github.com/gilzoide/inclua ). It is currently able to generate LuaJIT FFI bindings directly from C header files using clang . Generated Lua code defines metatypes with automatically deduced __gc me...
by gilzoide
Sun Aug 16, 2020 3:10 pm
Forum: General
Topic: Need advice on splitting program into multiple files
Replies: 2
Views: 3486

Re: Need advice on splitting program into multiple files

Some of the things about globals are that: they may be accidentally accessed or overriden, for example if you give it a generic name like "object" or "image" that is easy to be misused if it's a table with too many variables/state inside, it's easy to introduce subtle bugs, like ...
by gilzoide
Sun Aug 16, 2020 2:03 pm
Forum: General
Topic: Love Editor
Replies: 7
Views: 5175

Re: Love Editor

Would be useful to tie it all together. Well, it is a way of living. I'm more fond of the UNIX philosophy where you "Write programs that do one thing and do it well" and "Write programs to work together" . I really don't see why have a separate asset/file browser if it doesn't d...
by gilzoide
Sun Aug 16, 2020 1:06 pm
Forum: General
Topic: Love Editor
Replies: 7
Views: 5175

Re: Love Editor

I would say that for textual assets you are better off using any good code editor out there, like Sublime Text , Atom or Visual Studio Code , to name a few. For asset browsing and project management, you can use your OS file browser to do everything you mentioned, even filtering by type using the fi...
by gilzoide
Thu Jul 23, 2020 2:21 am
Forum: Libraries and Tools
Topic: Using fswatch to detect updated files
Replies: 0
Views: 4697

Using fswatch to detect updated files

Hi everyone! I'd like to share with you an easy and effective way of detecting updated files in a project, so you could hot reload them, for example. The idea is to have an external program monitoring the filesystem and have your game just listening for when an update really occurs, no need for trac...