News for hackers. Stuff that matters.
Re:TypeScript 7 by Exoristos on Wednesday July 08, 2026 @02:37PM (#48835667)
Seeing these graphs of astounding performance gains with less memory requirements makes one wonder, Why am I using server-side TypeScript and not Go?
Re:TypeScript 7 by semiquaver on Wednesday July 08, 2026 @03:35PM (#48836436)
For one, you’re not using TypeScript server-side. Whatever execution engine you are using is executing transpiled or JavaScript.

And yeah, I don’t know who in their right mind is starting projects in TS/JS/python these days except when they don’t have an option.

Re:TypeScript 7 by IshKebab on Thursday July 09, 2026 @04:00AM (#48842412)
> I don’t know who in their right mind is starting projects in TS/JS/python these days except when they don’t have an option.

I agree, although I would say that for web projects, writing the backend in TS is still a really great option because it means you can use TSX, which has a much better UX than any alternatives. For example https://usefresh.dev/ is much nicer to use than any non-TS options I've found, including Go and Rust where you basically end up using text-based templates along the lines of Jinja.

Re:TypeScript 7 by dbbk on Thursday July 09, 2026 @08:38AM (#48844950)
"In their right mind?" I wouldn't start a project in anything other than TypeScript now. My platform is a monorepo across web and native mobile (Expo), and is TypeScript throughout. All my types flow everywhere automatically. Even the shape of a database table is shared with the native app with tRPC. Nothing can break the type contract anywhere. How would you do that with another language?
Re:TypeScript 7 by simg on Saturday July 11, 2026 @12:43PM (#48873528)
>How would you do that with another language?

WASM

All my side projects for the last year+ have used full stack Rust.

Re:TypeScript 7 by atraac on Friday July 10, 2026 @04:08AM (#48857134)
Absolutely everyone who doesn't work with hardware, or on specific problems, because it's far more popular, easy to hire for, easy to deliver an MVP with and easy to have people jump between frontend and backend with. I'm saying this as someone who specialized in .NET before and now writes Node/TS. I simply grew out of the opinion that language/architecture is everything. When you make a product delivering quicker matters more than choosing a marginally more performant language, unless you're solving a very specific problem that requires that performance. Adding one more server costs less than hiring engineer for a more niche language and if you have the success that requires you to scale up that much, money is probably not the problem anymore. Granted we're in LLM era where everyone can write anything but it's still better to have people vibe in language they actually know, so they understand what's happening. You can always extract services later on and rewrite them in a more performant way, noone's stopping you.
Re:TypeScript 7 by Scarbutt on Wednesday July 08, 2026 @03:57PM (#48836689)
Because it’s easier to work with one main language if you can get away with it.
Re:TypeScript 7 by throw310822 on Wednesday July 08, 2026 @04:24PM (#48836974)
Because you can share types and even modules with your frontend project? Because for applications that aren't CPU-intensive it makes almost no difference? Because you are familiar with it and like it? Because of the humongous amount of libraries?
Re:TypeScript 7 by recursive on Wednesday July 08, 2026 @04:55PM (#48837287)
This is build-time performance, not run-time.
Re:TypeScript 7 by jenadine on Thursday July 09, 2026 @02:23AM (#48841708)
It is the run-time performance of the compiler depending on its implementation language. So totally relevant.
Re:TypeScript 7 by recursive on Thursday July 09, 2026 @02:50AM (#48841877)
Oh yeah. I get it. Good question. Maybe a lot of things aren't CPU bound.
Re:TypeScript 7 by thunderfork on Wednesday July 08, 2026 @05:43PM (#48837817)
Whether the performance difference between Go and JS (via node or whatever) matters depends on your use case - it definitely matters for the TS compiler, but it might not matter at all for your CRUD app.
Re:TypeScript 7 by madeofpalk on Thursday July 09, 2026 @03:58AM (#48842396)
I like TypeScript. It catches bugs in programs that Go doesn’t.
Re:TypeScript 7 by Exoristos on Thursday July 09, 2026 @05:40PM (#48852733)
Isn't Go strongly, statically typed?
Re:TypeScript 7 by madeofpalk on Friday July 10, 2026 @05:44AM (#48857836)
For various definitions of "strong". People (ab)use pointers to hack in nil support, and the type system can't perform nil checks for you, so you still end up with runtime errors if you're not careful enough.