Live data from Hacker News

Node.js needs a virtual file system

blog.platformatic.dev

241–250 of 275 posts

Re: Node.js needs a virtual file system

#241
post #238

Earlier quoted context omitted.

I probably review about 1k LoC worth of PRs / day from my coworkers. It certainly doesn't take me 33 hours (!!) to do so, so I must be one of those rockstar 10x superhero ninja engineers I keep hearing about.

Are your coworkers producing the code using LLMs? And what level of trust do you place in them?

For half my coworkers, their LLM code is better than their code.

Re: Node.js needs a virtual file system

#242

Earlier quoted context omitted.

Imagine if every profession reasoned liked that when doing something they don't enjoy.

We'd have a lot less enshittification all around, I suspect.

Sure thing, your nurse ain't gonna clean your mom, in the restaurant the chef ain't gonna prepare a dish he doesn't like, your accountant ain't gonna file your taxes if you've given him data he doesn't like, etc.

Your paid to do a job, you're either professional or you aren't.

Re: Node.js needs a virtual file system

#243

Earlier quoted context omitted.

We'd have a lot less enshittification all around, I suspect.

Sure thing, your nurse ain't gonna clean your mom, in the restaurant the chef ain't gonna prepare a dish he doesn't like, your accountant ain't gonna file your taxes if you've given him data he doesn't like, etc. Your paid to do a job, you're either professional or you aren't.

I’d probably leave the hospital if I heard the doctor filed an LLM generated diagnosis for the nurse to validate

Re: Node.js needs a virtual file system

#244

Earlier quoted context omitted.

> I mean they couldn’t be bothered to write it, so what are the chances they read it all? What kind of logic is this?

It’s much harder to read code carefully than to write it. Particularly code generated by LLMs which is mostly correct but then sometimes awful.

usually yes, but that's why there are tests, and there's a long road before people start depending on this code (if ever). people will try it, test it, report bugs, etc.

and it's not like super carefully written code is magically perfect. we know that djb can release things that are close to that, but almost nobody is like him at all!

Re: Node.js needs a virtual file system

#245

yarn pnp is currently broken on Node v25.7+; - https://github.com/yarnpkg/berry/issues/7065 - https://github.com/nodejs/node/issues/62012 This is because yarn patches fs in order to introduce virtual file path resolution of modules in the yarn cache (which are zips), which is quite brittle and was broken by a seemingly unrelated change in 25.7. The discussion in issue 62012 is notable - it was suggested yarn just wai…

> firstly, the node team seems quite happy for non-trivial amounts of the ecosystem to just be broken

yarn/node relations specifically are... complicated. On display on corepack (yarn project which got bundled into official nodejs distribution) issue tracker.

> secondly, it implies a lot of confidence that this feature will land before LTS.

This confidence is somewhat concerning. Will it get reviewed at all or has the "trust the LLM" mandate arrived at Node too now.

Re: Node.js needs a virtual file system

#246

Earlier quoted context omitted.

Considering the many hundreds of technical comments over at the PR ( https://github.com/nodejs/node/pull/61478 ), the 8 reviewers thanked by name in the article, and the stellar reputations of those involved, seems likely.

My mistake 19k lines. At 2 mins per line that’s (19000*2)/60/7=90 7-hour days to review it all, are you sure it was all read? I mean they couldn’t be bothered to write it, so what are the chances they read it all? For someone’s website or one business maybe the risk is worth it, for a widely used software project that many others build on it is horrifying to see that much plausible code generated by an LLM.

The PR has been open for 3 months, and all the reviewers involved have actually read the whole code and are experts on the matter.

Re: Node.js needs a virtual file system

#247

Earlier quoted context omitted.

When npm decided to have per-project node_modules (rather than shared like ruby and others) and human readable configs and library files I think the goal was to be a developer friendly and highly configurable, which it is. And package.json became a lot more than that as a result, it’s been a great system IMO. Combined with a hackable IDE like Atom (Pulsar) made with the same tech it’s a pretty great dev exp for web d…

It’s one thing or another. Python had shared packages for a long time and those are fine up to a point but circa 2017 I was working at a place where we had data scientists making models using different versions of Tensorflow and stuff and venv’s are essential to that. We were building unusually complex systems and having worse problems than other people but if you do enough development you will have trouble with shar…

[dead]

Re: Node.js needs a virtual file system

#248

Earlier quoted context omitted.

When npm decided to have per-project node_modules (rather than shared like ruby and others) and human readable configs and library files I think the goal was to be a developer friendly and highly configurable, which it is. And package.json became a lot more than that as a result, it’s been a great system IMO. Combined with a hackable IDE like Atom (Pulsar) made with the same tech it’s a pretty great dev exp for web d…

It’s one thing or another. Python had shared packages for a long time and those are fine up to a point but circa 2017 I was working at a place where we had data scientists making models using different versions of Tensorflow and stuff and venv’s are essential to that. We were building unusually complex systems and having worse problems than other people but if you do enough development you will have trouble with shar…

[dead]

Re: Node.js needs a virtual file system

#250

Earlier quoted context omitted.

Go actually does https://pkg.go.dev/embed I do think it's more painful to distribute files when you're a distributed as a single binary vs scripts, since the latter has to figure out bundling of files anyway. But still - it does exist

Embed is read-only at runtime. This proposed vfs module for Node.js is a full virtual file system.

true
Post reply on HN