Homebrew [POC] Nameless js interpreter : JS and C# homebrews on 3ds

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
Please note: I made this during winter as an experiment and was never meant to be released but I've seen brew.js so I thought someone might be interested in this as well (also it would be a shame not showing it to anyone :P)
I don't plan to keep working on this and don't recommend using it to make any full-blown homebrew.

SO.... In the category projects that i start but never finish, introducing: Nameless js interpreter also known just as JsTest.
Basically it's duktape with some bindings to ctrulib and pp2d, but there is a twist, i made this because i found out that there is a tool to "compile" C# to JS hoping it would just work.
And surprisingly it works !
...Kind of: As you might imagine C# is not 100% compatible with JS, some features are missing such as class destructors and others are replaced with wrappers to JS counterparts like arrays. Also the o3ds is not powerful enough to run complex homebrews but they work nicely on the n3ds.

The following APIs are implemented:
Input and touch, console, audio, GPU through pp2d and a very basic FS (just readAllBytes)

everything is on my github: source and 3dsx, api list, js examples and a C# example project
if you want to try it out just make a folder called js in your sd root and put the scripts there, you can also run it in citra.


Raycaster:
DPytizS.png


C# game:
k7n7d1S.png


Paint demo:
hzaynlV.png

All and all it was a nice project and I had fun working on it, I hope it will be ehm.. a source of inspiration for others (?), anyway have fun messing with it.
 
  • Like
Reactions: Nutez and XorTroll

XorTroll

Switching between my 2DS and my Switch
Developer
Joined
Dec 28, 2017
Messages
642
Trophies
1
Location
Nowhere
Website
github.com
XP
4,230
Country
Spain
BTW, I must admit it's a good implementation of duktape for a 3DS system.
I was going to develop the 3DS version after the Switch version.
Quite interesting the idea of compiling C# or eny other language to JS.
 

Calegxm999

Active Member
Newcomer
Joined
Apr 16, 2020
Messages
26
Trophies
0
Age
115
XP
107
Country
Australia
Can you make a .cia versions instead of a .3dsx version of Nameless Javascript Interpreter please?
Can you also make it that you can export your javascript into .cia ?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @CameronCataclysm...