r/learnjavascript • u/ConnectAffect2346 • 2d ago
Advanced javascript?
So i am a student whom enjoys making various small projects in free time with few languages but i have been wondering, as i have used javascript to make few static websites, and programs since it was very interesting to try and as javascript has a lot of built in functions and elements that allow various ways to solve problems, is there a way to make desktop applications using javascript and how precisely? Please explain, even a hint would be useful
10
Upvotes
View all comments
Show parent comment
3
u/fckueve_ 1d ago
https://www.youtube.com/watch?v=fTBwD3sb5mw&t=7s
Here is a tutorial, on how do do virtual machine in javascript, emulate a specific processor architecture, and compile c-like language, all in javascript.
What is not part of javascript? The question is: "s there a way to make desktop applications using javascript".
Yes, you can do react in electron for example. I know Electron is not a part of javascript, but javascript is a part of electron, so you can easly do a desktop app using javascript, via electron.
Multithreading is a bit more complicated. You techncly have webWorkers, but those kind of sucks. But javascript is not single-threaded. It's single thead **execution**, but V8 for example uses multiplethreads to manage event-loop.