Lua.js (caharkness/luajs-interop on GitHub)
What is it?
It's a project I started to help teach myself C/C++ programming while creating a platform for my up-and-coming project to run on. It's a a project worth looking at if you are either a new or experienced programmer in other languages looking to develop Nintendo Switch homebrew.
What makes it special?
This project demonstrates a few characteristics of larger, more sophisticated C projects in just a handful amount of files. Here's a list of things to look out for:
What is it not?
- Inclusion of fully open-source software's source code (such as Lua and its entirety)
- Project level source code organization (keeping your code separate from Lua)
- C Language level code organization (refactoring your code into separate, relevantly named .c and .h files)
- Working example of a Lambda "function literals" in C (the function is defined during execution)
- Reading whole files from romfs:/ (a demonstration of libnx and importance of convenience functions)
- Concise examples of source and header relationship (reducing clutter, redundancy, and compiler confusion)