What does HackerNews think of node?

Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

Language: JavaScript

#37 in JavaScript
#2 in JavaScript
#32 in Linux
#25 in macOS
#3 in Node.js
#13 in Node.js
#4 in PHP
#17 in Windows
Hi Jarred, I am curious about your insight into the source of Bun's performance advantage over Node.js. The Bun website[1] writes this:

  Why is Bun fast?

  ... Zig's low-level control over memory and lack of hidden control flow makes it much simpler to write fast software. ...
Is your sense also that this is the root cause of Bun's outstanding speed? Node.js is written in C++ (although not primarily) which also requires low-level control over memory.

Is there something about C++ that makes it less well-suited than Zig for what Bun does?

Or is the problem with Node.js that it relies too much on JavaScript rather than C++ in hot paths?[2]

[1] https://bun.sh/

[2] https://github.com/nodejs/node

First: not a stupid question - the release cadence, multiple release lines and other minutia of a project like Node are not something I'd expect users to be intimately familiar with!

This _just landed today_. You can get it by building from master:

```

# there is more details in building.md

git clone https://github.com/nodejs/node

cd node

# may need to pass --openssl-no-asm

./configure

make -j12

./out/Release/node --experimental-fetch

```

Otherwise - wait a bit for the next v17 release to land per the normal release cycle :)

On Microsoft Github, in a repository such as https://github.com/nodejs/node press `.` (the full stop key) and it will take you away to github.dev, load Microsoft's VS Code in-browser to view and edit code with VS Code plugins and highlighting.

And from there you can use GitHub Codespace to "develop in a cloud-hosted, customizable environment" to run and debug.

> Explicit whitelisting for network access. > Explicit whitelisting for fs access.

Would you (or anyone else reading this) be interested in exploring what that would look like for Node.js?

(If you do, feel free to reach me at my email in https://github.com/nodejs/node under benjamingr)

I think it would be interesting - one solution could be a loader (ESM) that only lets you load other "unprivileged" files by default - then importing things like `child_process` or `fs` could require more privilege. A little like how apps work.

> A programmatic way to tell if the publisher of a module has 2FA enabled.

I will bring this up. Personally I think I understand the objection of the reply below about this information being risky. That's something NPM likely can/should solve and not Node.js.

For what it's worth GitHub orgs can already tell who has or doesn't have 2FA. Node.js itself for example enforces GitHub 2FA for all the organization. I assume GitLab has a similar feature.

"Again"? Node has 7,660 forks and counting:

https://github.com/nodejs/node

It's only notable if any substantial portion of the community forks.

The "previous" fork, Io.js, was key moment for Node. Because that was about fundamental technical questions of choosing between stability versus innovation.

This appears to be yet another tweet-fight about CoC's. I can't imagine the community actually fracturing over this, but if it did then I would be fine with that. Let there be one set of conferences for the Douglas Crockford's of the world to discuss code, and another set of conferences for people to discuss Douglas Crockford.

That same comment is in the Node.js readme as well. And if Ayo.js was objecting to the code of conduct, then they would have removed it when the edited the rest of the readme.

https://github.com/nodejs/node

I'll answer it: When you become popular and have a lot of momentum, the Github issue tracker becomes extremely hard to manage. This is partly Github's fault as well (the tracker is optimized for small repositories and throwaway issues, which is also why I like it a lot).

This is aggravated in the JS world which is extremely Github-centric.

NodeJS: 730 open issues, 4323 closed issues, 324 open pull requests, 7201 closed pull requests: https://github.com/nodejs/node

Ansible: 1863 open issues, 9204 closed issues, 1084 pull requests, 11762 closed pull requests: https://github.com/ansible/ansible/issues

Missing Node.js which has 30k stars and 5.4k forks... Second to Swift.

https://github.com/nodejs/node

Typical node being ninja stealth. I guess not technically a language on it's own. https://github.com/nodejs/node