News for hackers. Stuff that matters.
Re:Case Study: Npm uses Rust for its CPU-bound bottlenecks [... by Outpox on Sunday March 03, 2019 @12:24PM (#19295565)
Well I'd say that if it's an authorization service there will be cryptographic calculation which is "heavy" on the CPU.
Re:Case Study: Npm uses Rust for its CPU-bound bottlenecks [... by tyingq on Sunday March 03, 2019 @12:39PM (#19295644)
I don't think that's what it does. "the authorization service that determines whether a user is allowed to, say, publish a particular package"

Also, I would assume any crypto in v8 is already written in C, with JS calling into it.

Re:Case Study: Npm uses Rust for its CPU-bound bottlenecks [... by throwaway66666 on Sunday March 03, 2019 @10:54PM (#19298643)
Users who suggest cryptography are getting downvoted (myself included). I am curious as to why. Is it perceived as spam or an attack on nodejs? Encrypted cookies and JWT (json web tokens) rely on a similar strategy so this is pretty standard. It would be pretty secure as long as the encryption key is not unique, so definitely not criticism on the NPM team but mere theories as to why a (what one would assume is a) database or memory bottle-neck is being presented as a CPU bottleneck in this scenario.