Resource icon

Lua.js (luajs-interop on GitHub) commit 348913a

logo.png

Lua.js (caharkness/luajs-interop on GitHub)

"A bare-bones implementation of C Lua and Duktape JavaScript interoperability for future projects on the Nintendo Switch via libnx."

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:

  • 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)
  • Interoperability between C Language and scripting langauges (write code in C, Lua, & JavaScript and invoke functions defined in one language from another)
  • 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)
What is it not?

Lua.js, although it compiles to .nro, is not homebrew ready for the consumer. It is also not a fully-fledged interpreter that can translate existing Lua and JavaScript-based games into Nintendo Switch experiences... yet.
  • logo.png
    logo.png
    5 KB · Views: 906
Author
caHarkness
Downloads
503
Views
1,128
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. Improved Naming Conventions via Refactor, Detailed Comments, and Step Execution Debugging

    If you have been following along since the first release and found yourself a bit lost, this...
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Veho, Stepcroc, I'm stuck.
  • Veho @ Veho:
    Those are monitor lizards you dunce.
    +1
  • SylverReZ @ SylverReZ:
    I'm funny. lol.
  • K3Nv2 @ K3Nv2:
    Eggs and roasted potatoes came out good
  • K3Nv2 @ K3Nv2:
    Watching the first omen and so far it's not the priest doing the scaring
  • Veho @ Veho:
    Shouldn't the kid be the scary one?
  • K3Nv2 @ K3Nv2:
    The second omen: the chior boy gets his revenge
  • Veho @ Veho:
    Reverse exorcist: it's when you hire a demon to remove the priest out of a small child.
  • K3Nv2 @ K3Nv2:
    Hire Kendrick Drake possessed a minor again
  • Veho @ Veho:
    Yeah, I'd run away from his singing too.
  • K3Nv2 @ K3Nv2:
    I wonder if Drakes still allowed to use his Instagram
  • ZeroT21 @ ZeroT21:
    sounds like everyone has some great imaginary friends
  • SylverReZ @ SylverReZ:
    @K3Nv2, Yeah, that was insane.
  • SylverReZ @ SylverReZ:
    Don't know what Drake was even thinking.
  • K3Nv2 @ K3Nv2:
    What every rich scumbag thinks that they can put their dick on anything and get away with it
  • ZeroT21 @ ZeroT21:
    I better hide my silicone Tifa doll
    +1
  • Veho @ Veho:
    What did Drake do, exactly? I don't follow celeb gossip.
  • SylverReZ @ SylverReZ:
    @Veho, Supposed accusations that Drake groomed a minor.
  • K3Nv2 @ K3Nv2:
    Allegedly groomed a 17 year old Instagram model or something along those lines
  • SylverReZ @ SylverReZ:
    Yep, something like that.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=F1MJtV0UPI8