News for hackers. Stuff that matters.
Re:Deno 2.8 by sheept on Friday May 22, 2026 @03:04PM (#48240024)
Deno's goal was to address Node's design weaknesses, while Bun came out with the promise of faster performance. Especially if you're coming from Node or migrating an existing project, it's easier to justify switching to Bun than to Deno.

Since then, all three runtimes have been gradually converging (adopting Web APIs, first class TypeScript support), so there's little reason to move away from Node's vast ecosystem to Deno; most npm packages weren't made with Deno's security model in mind.

Deno's biggest strength is when you want its security model and don't plan on using npm packages, e.g. if you want to let agents write and run quick scripts on your machine without awaiting your permission.

Re:Deno 2.8 by coffeebeqn on Friday May 22, 2026 @03:29PM (#48240381)
In my area it feels like it’s competing against go which is a language purposefully designed for the thing we’re building and has a great tool chain already. I never really wanted JavaScript. It’s not a very thoughtfully designed language and the not very good design was made for the browser. I just used node because it was simple to get it working. And you have bun and things like that competing for the space too
Re:Deno 2.8 by moron4hire on Friday May 22, 2026 @04:42PM (#48241367)
> It’s not a very thoughtfully designed language...

This meme has to die. It hasn't been true for longer than it was ever true. Yes, we all know Brendan Rich "designed JavaScript in a week" in 1995, but that initial design was A) actually quite elegant for its goals, and B) has really only been an historical curiosity since the ECMAScript standardization process started in 2005. There are people who were born, grew up, learned JS, and have solid careers working in it since that time.

The ECMAScript we have today, and the Typescript extensions of it, is one of the most robust, best performing, intentionally designed dynamic scripting languages on the market. It helps that every major tech corporation in the world has gobs of the stuff bearing loads somewhere in their organizations; they invest massively in making sure it's pretty good.

Before any pedant comes in to post the "Wat" talk, no, JavaScript is not a perfect language. While I personally prefer strictly typed JIT language to it, I still write a lot of it, might even be most of what I write. JavaScript today is as good of a design of a dynamic scripting language as you will find.

Re:Deno 2.8 by moron4hire on Friday May 22, 2026 @07:15PM (#48242790)
(I know it's Brendan Eich, I just didn't notice the damn glass keyboard made its own decisions on what I meant.)
Re:Deno 2.8 by arikrahman on Saturday May 23, 2026 @04:41AM (#48245929)
Rich as in Hickey Freudian slip came out when talking about well designed languages. Can't blame you.
Re:Deno 2.8 by arikrahman on Friday May 22, 2026 @10:39PM (#48244038)
It's not thoughtfully designed. Just look at the effort Rich Hickey took with Clojure and then compare. It's not even in the same league.
Re:Deno 2.8 by dmit on Saturday May 23, 2026 @12:33AM (#48244708)
> no, JavaScript is not a perfect language

Such a brave stance against a claim literally nobody has ever staked.

Re:Deno 2.8 by sysguest on Friday May 22, 2026 @03:06PM (#48240050)
yeah it's such a pity deno's security features could have made recent npm attacks moot...
Re:Deno 2.8 by sheept on Friday May 22, 2026 @03:15PM (#48240191)
The recent npm supply chain attacks relied on lifecycle scripts, which Deno doesn't run by default, but neither do pnpm or Bun. While Deno, like npm, supports a minimum release age, it doesn't enable it by default.
Re:Deno 2.8 by sysguest on Friday May 22, 2026 @03:18PM (#48240238)
well deno has 'allow-read' 'allow-write' kind of permission, so if something tries to read from my ~/.ssh or other important folder, it can just block it

even with blocking lifecycle scripts, the attacker could have planted it somewhere else or just trick the dev somehow to run it

Re:Deno 2.8 by cyanydeez on Friday May 22, 2026 @03:16PM (#48240201)
the problem was at the start of deno, it didn't integrate with npm; the same way Macintosh used to be free of virus and trojan horses was because people just didn't use it enough.