Re:Hello Yarn 2, Goodbye node_modules
by buu700 on Monday August 09, 2021 @09:27PM
(#28124291)
Rust or Go would work. Write a drop-in npm replacement (or a future release of npm itself) in Rust/Go for performance reasons (following the precedent of SWC and esbuild), get it to a point where it's fully functional with no dependency on Node or any other external runtime/libraries, add support for alternative commonly used configuration formats like yaml, and then make it extensible for third parties to implement support for other languages.
[ Parent
| on HN ]
Re:Hello Yarn 2, Goodbye node_modules
by danielheath on Monday August 09, 2021 @09:33PM
(#28124317)
Great! Then we could have three package managers.
Ha. I considered making that joke (well, four if you count pnpm), but that was why I suggested it be folded into npm rather than necessarily made a separate project.
Either way, the trope doesn't really apply. Even if this were a new implementation, it wouldn't be a new standard. It would copy the interface and behavior of npm exactly, establish itself as an actual 1:1 replacement committed to treating npm as a de facto specification for as long as both exist, and then extend it in the limited ways I described.