News for hackers. Stuff that matters.
Re:Deno's Decline by throw1223323 on Thursday May 01, 2025 @09:34PM (#43865281)
It's kind of funny but also depressing watching all the frontend people try to force Javascript onto the backend. They've been slowly rewriting their tooling using more suitable languages:

- esbuild (Go) is 100x faster than webpack and friends

- Bun (Zig) and Deno (Rust) are ~2x faster than Node

- Typescript recently announced a rewrite in Go for an expected 10x performance gain

Maybe one day they'll realize that those languages are good for more than developer tooling? Maybe they can even be used for serving web content?

Re:Deno's Decline by worik on Thursday May 01, 2025 @09:39PM (#43865303)
> Typescript recently announced a rewrite in Go for an expected 10x performance gain

Really?

Why use Typescript at all, in that case?

I really do not know

Re:Deno's Decline by selljamhere on Thursday May 01, 2025 @09:43PM (#43865323)
The Typescript compiler, currently JavaScript, is being rewritten in Go. The 10x performance gain is in build time, which is still a major speedup and will shrink the development loop.
Re:Deno's Decline by riknos314 on Thursday May 01, 2025 @09:41PM (#43865311)
The improvement is in `tsc`, the type checker. The improvement is reduced build times and thus faster developer or agent cycle times.
Re:Deno's Decline by bluelightning2k on Friday May 02, 2025 @02:22AM (#43866723)
Couple things:

First, perf you mention is from fundamentally CPU intensive workloads, not a sparse async environment like a typical server.

Second (far more important) the reason we do this is type safety. We don't want types to break at the handover or to maintain them twice. We eliminate a huge category of issues and mental overhead.

This maintainability and simplicity is worth more (to me at least) than perf.

As a bonus there's also directly shared utils, classes etc. which again can be reused across client/server but more importantly stay in sync.

Re:Deno's Decline by throw1111221 on Friday May 02, 2025 @01:28PM (#43872618)
I am curious, how do you handle version skew between frontend / backend when you're reusing code + types?
Re:Deno's Decline by GianFabien on Friday May 02, 2025 @11:58PM (#43876765)
I design solutions so that there is a distinct frontend and backend. Instead of reuse, common code gets shared. Yes, it does take a bit of fiddling to get the architecture to support that. But once you get it bedded down, it becomes just a matter of conventions.
Re:Deno's Decline by pjmlp on Friday May 02, 2025 @03:22AM (#43867085)
More depressing is those of us that would rather use Java, C#, basically any JVM or .NET language, or even if it must really be, Go, but have to bother dealing with nodejs instead, because reasons.