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: 908
Author
caHarkness
Downloads
506
Views
1,156
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:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=m2KV8MHRJlQ