Do you like Node.js but not its package manager [npm], and you want a more secure JavaScript runtime environment than. You might find the new open srource project Deno of interest. Although it's still under development.
What are your thoughts about this ?
The comments section is waiting for you !
PS: Feedback will be appreciated!
Top comments (15)
Either you don't understand what you're talking about, or your sarcasm is god tier.
You state: Go and Rust have grabbed mindshare for "stuff better than node".
I agree, particularly in the case of Rust. Considering things like dav1d (AV1 codec), WASM, and other projects of significance that will be of consequence to the web are written in it.
So do you know what one of the differences between node and deno is? Deno is written in Rust. Node still uses C/C++ via libuv...
Do you often contradict yourself? By your own logic, the first sentence of your comment is invalidated. 😁
Furthermore while Deno may not have a mature ecosystem internally (i.e. centralized tooling / repositories) currently giving off vibes of fragility, instead i suggest looking at how it will be supported externally. Example?
Microsoft are the proponent of typescript (arguable a very good preprocessor along with elm for JS), they also own github, npm and VScode.
With that in mind. Now ask yourself. Which of the 2 runtimes would MS rather support moving forward?
nodeJS: full of legacy hacks to make modules work that are not to spec, npm... a system they didn't really have much input in creating.
deno JS: Secure by default, native TS support, adheres to spec, has no centralized repo yet (opportunity to be active from the beginning in it's development), etc.
Furthermore consider for a moment electron. Electron also currently uses the node runtime and is quite difficult to compile with C/C++ modules. Compare that to Rusts crate system and ask, now that V8 has been implemented in Rust, how long before electron becomes obsolete (e.g. turn it into neutron or something 😂)?
NodeJS has tons of (arguably) unfixable problems regarding the updates given to JavaScript, and to be realistic it's only gonna get worse now that TypeScript team has voice in the implementations for the language.
On the other way, choose whatever language suits you the most :D
I love JavaScript, so I stick with Deno since I met it one year ago. Sticking with Node seems kinda pointless now
That's something I agree with. Although I am still using Node.js .
It's been a few months since I've checked on Deno, and hope the project continues to production soon. With regards to the secure execution, would the same features/functionality be available by running the application in a containerized environment like Docker?
I think they should be available. Although, I haven't tried that yet.
Hi,
I, didn't understand what you are referring to.
I was referring to Node Package Manager (npm) in my post.
It's a comparison to Node.js which has a package manager i.e. NPM. So if someone doesn't like Node's package manager, then it's good as Deno does not have a package manager.
That's why mentioned it.
Do you have any demos to run through?
Hey,
I haven't done any projects as of yet using Deno.js. Although, you can use the link given to know more about it.
Also, you can watch Fireship's YouTube channel, he made a video about it which will help you out.
Hope this helps!
Graal JS is likelier more secure than Deno IMO.
Because it is implemented via partial evaluation much of the JIT is very normal safe Java code interpreting JavaScript.
Hi,
That's a good point, I was just hyped about Deno.js as it's developed by the same person who made Node.js 😅.
Will check it out 📤.
Hello,
That's plausible and this might happen. But as someone who uses Node.js, I think Deno.js will be popular.