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
507
Views
1,158
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
  • MysticStarlight @ MysticStarlight:
    Do you have a surge protector or an UPS?
  • BigOnYa @ BigOnYa:
    Yea but to play the next gen games, you must have those games on internal, or buy the official ssd expansion cards, which are expensive
  • Xdqwerty @ Xdqwerty:
    @MysticStarlight, dunno what each one of those are
  • Xdqwerty @ Xdqwerty:
    @MysticStarlight, my PS3 was already modded when my dad bought it for me and my brother
  • MysticStarlight @ MysticStarlight:
    A surge protector is a device that protects your electronics from fluctuations. I recommend having your console plugged into one of those
  • MysticStarlight @ MysticStarlight:
    An UPS is even better because it has an internal battery that keeps your system on even if the power goes out, but it's much more expensive obviously
  • Xdqwerty @ Xdqwerty:
    @MysticStarlight, oh i recall seeing one in some in the houses of some relatives, including my dad's apartment
  • Xdqwerty @ Xdqwerty:
    @MysticStarlight, although whatever device we plug into them stops getting power anyways lol
  • MysticStarlight @ MysticStarlight:
    that's weird
  • Xdqwerty @ Xdqwerty:
    @MysticStarlight, and oh i was talking about ups
  • Xdqwerty @ Xdqwerty:
    No not that one
  • Xdqwerty @ Xdqwerty:
    Surge protectors are what i was talking about
  • Xdqwerty @ Xdqwerty:
    Yea I got confused for a bit
  • BakerMan @ BakerMan:
    @Xdqwerty literally juan:
    +1
  • BigOnYa @ BigOnYa:
    On the series s/x you can use a external HD but any next gen games must be on your internal ssd, or you can buy a ssd expansion card, but pricey. Any xbone, 360, or og Xbox games can be played from external tho.
  • K3Nv2 @ K3Nv2:
    Series §€×
  • BigOnYa @ BigOnYa:
    Insert **** here
    +1
  • K3Nv2 @ K3Nv2:
    What a tiny memory card
  • BigOnYa @ BigOnYa:
    Rumble packs are important
  • K3Nv2 @ K3Nv2:
    Make sure it's fully charged
  • Psionic Roshambo @ Psionic Roshambo:
    I remember someone made a vibrating Wiimote homebrew lol
  • K3Nv2 @ K3Nv2:
    Well you and bigonya love to sword fight your wiimotes
    +2
  • BakerMan @ BakerMan:
    classic controller funky kong flame runner is overrated, i prefer wii wheel wario flame runner
    K3Nv2 @ K3Nv2: https://www.digitaltrends.com/gaming/indiana-jones-and-the-great-circle-release-date-trailers-gam...