In particular, I wish I could write a Tokio async program in Rust, and load plugins using deno, and have this work seamlessly
edit: actually, https://deno.land/manual@v1.25.0/embedding_deno https://crates.io/crates/deno_core https://docs.rs/deno_core/latest/deno_core/
It doesn't expose tokio so I suppose that it manages its own runtime separate from the executor of the application using it (edit 2: it doesn't, it lets the user bring their own executor. cool!)
> Our benchmarks show a 4x improvement in hello-world request per second performance compared to Node.js and a 3x improvement compared to our existing web server.
What the heck was wrong with the previous implementation? :P
https://github.com/denoland/deno/pull/15405
I think this is the PR for it though.
Unless the performance benefits are from something else in https://github.com/denoland/deno/releases/tag/v1.25.0
With bun claiming to be fastest I want to see how deno compares to bun.
Ryan Dale famously demoed his 10 line webserver for Node
Love to see the experimental npm support.
deno init is a bit silly imo.
It makes trying Deno for the first time frictionless, while placing learning pathways for both module layout and testing. It’s a small accelerant to learning – but one that probably reduces early churn on the learning pathway due to an unnecessary decision.
This command also means that the next 100 tutorials written about Deno will skip a step with `mkdir` and `touch` while standardizing the naming convention of _test.ts files clearly.
A little pebble can change the flow of a large river if it’s placed while the river is still a stream.
Just because Deno's blank project is literally just `/* main.ts */ console.log("hello world!");` doesn't mean that the `init` command is useless.
It's not useful if you are already aware how Deno works. The point of adding it is to help people who don't know. It's about discoverability.
"10 Things I Regret About Node.js - Ryan Dahl - JSConf EU" https://m.youtube.com/watch?v=M3BM9TB-8yA
The code with the more restricted set of permissions must run in the Worker. That code then communicates with the rest of your app through postMessage / SharedArrayBuffer, perhaps using ComLink [2].
[1] https://deno.land/manual@v1.25.0/runtime/workers#specifying-...
Where do they go for say... Docker container purposes?