Hacking NodeJS on 3DS

hack3r2507

Well-Known Member
OP
Newcomer
Joined
Apr 17, 2017
Messages
69
Trophies
0
Age
98
XP
187
Country
Gambia, The
Hey! I have an O3DS XL and I just started to code a bit javascript and did a Discord Bot. So my question: Can I run nodejs programs on my 3DS? So it would be on 24/7. If I made any grammar or spelling mistakes sorry I am not English.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

Lunorian

Member
Newcomer
Joined
Oct 12, 2017
Messages
20
Trophies
0
Age
25
XP
72
Country
United States
Is there already a port? Because when I have to do it myself....I can't because I don't know why

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
That was a joke, don't take that seriously, Electron is basically Google Chrome full screen to make desktop apps using Javascript, it's a bit more complicated but you get the idea.

Now as for seriously running Javascript on the 3DS, Node.js hasn't been ported, I reached out to the Node.js Team Today and they told me this might be a better request of NodeOS. I'm looking into it now, although don't expect this to be available any time soon if ever.
 

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
722
Trophies
1
XP
3,968
Country
Germany
why would you run a Discord bot on a 3ds 24/7? There's no real multitasking, so you can't play games with it anymore.

Porting Electron? Have you ever used the 3ds browser? Eventhough it's extremely limited in it's capabilities, it's slow and a lot of sides don't even fit into the 3ds's memory.

Porting Node.Js isn't realistic. Duktape(which is a lightweight JS implementation, with a footprint similar to Lua) would be an option, if you want to run JS code, but then without Node.Js's networking or filesystem functions.
 

hack3r2507

Well-Known Member
OP
Newcomer
Joined
Apr 17, 2017
Messages
69
Trophies
0
Age
98
XP
187
Country
Gambia, The
That was a joke, don't take that seriously, Electron is basically Google Chrome full screen to make desktop apps using Javascript, it's a bit more complicated but you get the idea.

Now as for seriously running Javascript on the 3DS, Node.js hasn't been ported, I reached out to the Node.js Team Today and they told me this might be a better request of NodeOS. I'm looking into it now, although don't expect this to be available any time soon if ever.
Okay I didn't get the joke^^[emoji23]

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 
  • Like
Reactions: Lunorian

Sono

cripple piss
Developer
Joined
Oct 16, 2015
Messages
2,829
Trophies
2
Location
home
XP
9,413
Country
Hungary
Yeah, no... not that pthreads are infeasible on the 3DS, but you do a while(true); and you softlock the entire system, so yeah, no...
And you'd also need to port libuv which is a very thread-heavy library, so it's not going to happen any time soon™

Also, Discord bots are already possible on the 3DS :P You just need to write them in C/C++ instead of JS or CShasp or Python (there is no Discord library for Python 2.7, and Python 3.6 is not yet fully functional) or Java (it uses spinlocks which softlock the entire 3DS, so it's not portable without a major rewrite) or Lua (you'd need to write your own Discord Lua lib in C/C++ because all Discord Lua libs require libuv).

If you'd tell the reason you want NodeJS on the 3DS, I could try suggesting an alternative which is more feasible.
 
Last edited by Sono,

hack3r2507

Well-Known Member
OP
Newcomer
Joined
Apr 17, 2017
Messages
69
Trophies
0
Age
98
XP
187
Country
Gambia, The
Yeah, no... not that pthreads are infeasible on the 3DS, but you do a while(true); and you softlock the entire system, so yeah, no...
And you'd also need to port libuv which is a very thread-heavy library, so it's not going to happen any time soon[emoji769]

Also, Discord bots are already possible on the 3DS [emoji14] You just need to write them in C/C++ instead of JS or CShasp or Python (there is no Discord library for Python 2.7, and Python 3.6 is not yet fully functional) or Java (it uses spinlocks which softlock the entire 3DS, so it's not portable without a major rewrite) or Lua (you'd need to write your own Discord Lua lib in C/C++ because all Discord Lua libs require libuv).

If you'd tell the reason you want NodeJS on the 3DS, I could try suggesting an alternative which is more feasible.
I just started with NodeJS so I don't want to start a new coding language. But thanks to your long reply. I ordered a Raspberry PI Zero W and that's better for hosting a Discord Bot. Thanks again [emoji1303][emoji1303]

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 
  • Like
Reactions: Lunorian and Sono

Sono

cripple piss
Developer
Joined
Oct 16, 2015
Messages
2,829
Trophies
2
Location
home
XP
9,413
Country
Hungary
I just started with NodeJS so I don't want to start a new coding language. But thanks to your long reply. I ordered a Raspberry PI Zero W and that's better for hosting a Discord Bot. Thanks again [emoji1303][emoji1303]

Gesendet von meinem ONEPLUS A3003 mit Tapatalk

You could make Discord bots in C or C++ for the 3DS if that's what you want... Sure, it's a bit harder to do because you have to implement your own shit, but that's the fun in programming :D
 
  • Like
Reactions: Lunorian

Lunorian

Member
Newcomer
Joined
Oct 12, 2017
Messages
20
Trophies
0
Age
25
XP
72
Country
United States
I just started with NodeJS so I don't want to start a new coding language. But thanks to your long reply. I ordered a Raspberry PI Zero W and that's better for hosting a Discord Bot. Thanks again [emoji1303][emoji1303]

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
You'll be learning new languages your entire career as a developer. Get used to it now ;)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1