Re:A Secure Runtime for JavaScript and TypeScript Built with...
by lajawfe on Sunday July 07, 2019 @01:51AM
(#20373744)
Watch 10 things I regret about node. js - https://youtu.be/M3BM9TB-8yA from the creator of both node and deno to undersatnd his motivations behind the deno project. A very intriguing talk.
[ Parent
| on HN ]
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by pvg on Sunday July 07, 2019 @03:00AM
(#20373909)
It is very interesting although I didn't really understand the 'security' part. The motivation seems to be twofold - some bad things have happened because of compromised npm packages and v8 happens to have a robust sandbox. This sounds like a solution looking for a vaguely defined problem. The illustrative example he gives is 'malicious linter'. Is malicious linter that important a threat?
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by ricardobeat on Sunday July 07, 2019 @12:34PM
(#20375931)
In the example the linter itself is not malicious, but used to deliver a malicious program that can have unrestricted filesystem access. Not vague at all, see recent news on the ‘event-stream’ package being used to steal cryptocurrency wallets.
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by pvg on Sunday July 07, 2019 @02:08PM
(#20376614)
The 'vague' part is not that it doesn't happen - see the comment you are replying to.
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by 29athrowaway on Sunday July 07, 2019 @02:18AM
(#20373808)
> Access between V8 (unprivileged) and Rust (privileged) is only done via serialized messages defined in this flatbuffer.
Expect to see this in "n things I regret about deno"
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by kevinkassimo on Sunday July 07, 2019 @04:10AM
(#20374072)
Replying to Flatbuffers concerns:
You are right, we will try to get rid of it for some faster serialization mechanisms (after some huge internal refactor lands). See the talk I posted, Ryan mentioned about it near the end.
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by spraak on Sunday July 07, 2019 @02:42AM
(#20373861)
Can you explain why?
Re:A Secure Runtime for JavaScript and TypeScript Built with...
by 29athrowaway on Sunday July 07, 2019 @04:07AM
(#20374064)
Every deno API function call goes through flatbuffer serialization + deserialization + more steps. Sounds like a lot of overhead.