by olestr on 2/5/24, 9:23 AM with 228 comments
by ogoffart on 2/5/24, 11:46 AM
With Slint [1] we're working on a framework which allow to make a desktop GUI in Javascript/Typescript, without bringing a browser/webview. Currently, we do it by using binaries through napi-rs so we can bring in a window using the platform native API. And then we do some hack to merge the event loops.
But if Deno supports bringing up a window directly, this means we can just ship wasm instead of native binary for all platform. And also I hope event loop integration will be simplified.
Although we'd also need more API than just showing a window (mouse and keyboard input, accessibility, popup window, system tray, ...)
Edit: I got excited a bit too early. The WebGPU feature doesn't include the API to launch a Window. One still need to rely on an extra library binary.
by dingdingdang on 2/5/24, 11:31 AM
The exe output grew from from ~50MB to plus ~90MB from 2021 to 2024: https://github.com/denoland/deno/discussions/9811 which mean Deno is worse than Node.js's pkg solution by a decent margin.
by pachico on 2/5/24, 1:11 PM
I was forced to start coding again in JS some weeks ago and I wanted to try Deno. I must say it's been a very smooth and fast experience so far. Very well done!
by wldlyinaccurate on 2/5/24, 10:10 AM
by olestr on 2/5/24, 9:48 AM
I'm curious on what the Deno team is building here.
by kebman on 2/5/24, 12:57 PM
I love this! At the same time, who would want to do this, given Python's excellent support for numbers and mathematics? And what about Haskell?
by apatheticonion on 2/5/24, 11:34 PM
I'm writing a JavaScript bundler and need a Node.js runtime to execute plugins. Deno's executable has fantastic Node support (at least, good enough for my use case) however the deno-core crate is super barebones and difficult to embed.
At this stage I can't simply add the deno runtime into my Rust application, I need to copy/paste internal crates from the Deno executable and wire them up myself (without documentation on how).
I'd love to see expansion for my use case - Deno could become the "plugin runtime" for the JS tooling world if it had a nice embed story.
Right now I am just going with a Nodejs child process that I talk to from the Rust host process using stdio. In my tests, the stdio approach has 10x the communication latency when compared to an embedded Deno runtime (that adds ~1 second per round trip message in a project with 100k assets)
by rtcode_io on 2/5/24, 9:40 AM
by brodo on 2/5/24, 11:37 AM
by agos on 2/5/24, 4:01 PM
The fact that for the next iteration they are prioritizing view transitions and not CSS bundling is baffling.
by tarruda on 2/5/24, 9:48 AM
by cactusfrog on 2/5/24, 7:55 PM
by simlevesque on 2/5/24, 8:44 PM
Deno Deploy just works, albeit the cold start can be slow but I'm now using an hybrid setup with Fresh routes backed by a CDN.
The dev experience is great. I've used a couple of other solutions similar (Next, Nuxt and vite-ssr-plugin) and I sometimes I need to do somethings manually that would already exist on other platforms but in the end my projects stay simpler.
I love saaskit [1] and Netzo [2]
[1] https://deno.com/saaskit [2] https://github.com/netzo/netzo
by msoad on 2/5/24, 10:39 AM
by andsoitis on 2/5/24, 2:45 PM
Why should I choose Bun over Deno or vice versa?
by ohnoesjmr on 2/6/24, 12:29 AM
by bheadmaster on 2/5/24, 12:04 PM
Is it just a side-effect of using V8 engine for the heavy lifting, or is it some part of the ECMAScript specification which forbids multithreaded implementations of the language?
by asim on 2/5/24, 11:35 AM
by nerder92 on 2/5/24, 9:43 AM
I would love for this year to see the runtime support for either Google Cloud Functions or AWS Lambdas
by MadSudaca on 2/5/24, 11:00 AM
by nikisweeting on 2/6/24, 6:20 AM
It's amazing to see Deno mature so fast while staying well-thought-out, and I'm excited to use it in as many projects as I can now.
by apitman on 2/5/24, 9:43 PM
by winrid on 2/5/24, 5:11 PM
by ecmascript on 2/5/24, 11:00 AM
I like to run my shit on the metal and without Docker and it feels like Deno was designed to run on Docker or some other kind of virtual containerized environment.
However, you can run it on node thanks to pm2, but I guess why even run on Deno in the first place?
by brightball on 2/5/24, 12:54 PM
by mongrelion on 2/5/24, 2:08 PM
Shout out to all my fellow hang gliders.
by a3w on 2/5/24, 12:57 PM
so we know::
- it is not about a discussion of deno being new, relevant or modern in 2023, and
- avoid thinking that the article is from 2023?
by bmwolf102990 on 2/5/24, 11:46 AM
Why did he feel the need to build a competitor to his own product? Whatever features are supposed to make Deno "better" than Node...why didn't he just work on integrating them into Node?
I understand that sometimes changes to software can be infeasible, especially if they are large fundamental/foundational changes, but this is still a bit of a head scratcher to me.
by mborch on 2/5/24, 11:54 AM
You can do this using containerization technology, no need to invent this per language runtime.