News for hackers. Stuff that matters.
Re:HTTP/3 is everywhere but nowhere by arccy on Monday March 17, 2025 @10:59AM (#43389270)
It wasn't good enough for the typescript rewrite...
Re:HTTP/3 is everywhere but nowhere by bjoli on Monday March 17, 2025 @11:04AM (#43389321)
Mostly because they didnt consider the AOT compilation mature enough.
Re:HTTP/3 is everywhere but nowhere by int_19h on Monday March 17, 2025 @05:16PM (#43392810)
Actually, the reason why they went with Go rather than C# is because they wanted to port the existing code as much as possible rather than rewriting from scratch. And it turns out that TS is syntactically and semantically much closer to Go, so you can often convert the former to the latter mechanically.
Re:HTTP/3 is everywhere but nowhere by CharlieDigital on Monday March 17, 2025 @06:39PM (#43393466)

    > And it turns out that TS is syntactically and semantically much closer to Go, so you can often convert the former to the latter mechanically.
Are there examples of this?

I ask because I've been working on a Nest.js backend in TS and it's remarkably similar to C# .NET Web APIs (controllers, classes, DI). Really curious to see the translation from TS to Go.

Re:HTTP/3 is everywhere but nowhere by neonsunset on Monday March 17, 2025 @08:00PM (#43394154)
TSC codebase is quite unlike regular TypeScript code you will see out there. So it is about specific way TSC is written in being the easiest to port to Go rather than the TS language as a whole.

There's a screenshot comparing the two side-by-side, IIRC it was showcased on the video of the talk (if someone has a timestamp - please post).

Re:HTTP/3 is everywhere but nowhere by CharlieDigital on Monday March 17, 2025 @08:13PM (#43394260)
Got it; thanks for the tip!
Re:HTTP/3 is everywhere but nowhere by int_19h on Monday March 17, 2025 @11:20PM (#43395439)
The TL;DR version is that they don't really use classes and inheritance (which is the part that would be hard to map to Go but easy to map to C#). It's all functions dealing with struct-like objects.

The other part of it is that C# is very firmly in the nominal typing camp, while TS is entirely structurally typed. Go can do both.