A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
31–40 of 68 posts
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#32As a long time Node.js developer I took a look at the project but it's still a really half-baked implementation of the security flags. You almost always end up flipping all security switches off because your application needs every feature (network, filesystem, etc). No package signing, no flags per module, no syscall whitelisting, etc.
You turn all permissions on if you are actually using it as if it is Node for writing servers. But in the case when you are using a (potentially untrusted) code snippet to perform certain operations (like encode/decode base64 values), you do might want a sandbox. (For the case of Node-like usage, we actually also have a basic implementation of whitelisted directories/files for certain permissions, though not perfect…
Actually I saw yt presentation and it didn't convinced me to switch from nodejs. The differences to nodejs are so little, specially when you're using typescript already. The only significant change is "es modules" with ability to resolve modules from url (plus the sandbox).
Still big kudos to Ryan for nodejs.
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#33So, does it support a specific ECMAscript version? Or am I restricted to the Typescript JS definition? This is confusing..
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#34Careful with Deno, performance is still low: https://user-images.githubusercontent.com/3397140/48649635-8...
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#35Careful with Deno, performance is still low: https://user-images.githubusercontent.com/3397140/48649635-8...
That's just FUD through a synthetic benchmark by the person who wrote uWS after he approached Ryan and Ryan wouldn't do everything he asked for...
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#36For the inevitably "what differentiates this from node?" Single executable Allows imports from url File system & network Sandboxing is controlled with flags Dies on uncaught errors https://deno.land/manual.html#introduction
how can JS programmers deal with this?
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#37For the inevitably "what differentiates this from node?" Single executable Allows imports from url File system & network Sandboxing is controlled with flags Dies on uncaught errors https://deno.land/manual.html#introduction
>Dies on uncaught errors how can JS programmers deal with this?
Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#38Re: A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
#39Careful with Deno, performance is still low: https://user-images.githubusercontent.com/3397140/48649635-8...
Performance should improve over time, there's no fundamental reason from what I understand that it shouldn't be as fast or faster than node.
node has had 10 years of work and performance effort from so many people and organisations.