News for hackers. Stuff that matters.
Re:Tsrs: A Port of TypeScript to Rust by DanRosenwasser on Tuesday October 20, 2026 @11:31AM (#50167925)
Hey there, TypeScript team member here. The tsrs project has been extremely interesting to see come together. We've been working with the maintainers to better understand how tsrs is fast and what sorts of optimizations it uses are safe. We even did our own Rust vibe port and what we currently suspect is that a lot of the speed does not just come down to language choice, and some of what is going to make TS 7.1 faster and leaner (see the charts in the blog post) actually comes from optimizations discovered in tsrs.

We think the wasm and oxlint integration makes a lot of sense for Cloudflare's needs, so this investment makes sense. At the same time, we'll be working hard and collaborating to make the official TypeScript toolset faster and even more efficient.

Congrats to the tsrs team on making this official. We're excited and we look forward to continuing on collaboration!

Re:Tsrs: A Port of TypeScript to Rust by samuelstros on Tuesday October 20, 2026 @11:47AM (#50168179)
At this point, why invest further in TSGO?

No matter how many optimizations can be ported from tsrs to ts-go, Rust will be more efficient and enable the WASM use case.

The premise of porting the compiler from TS to GO was ease of migration due to Go's garbage collector. That doesn't hold anymore? AI doesn't care how hard or easy a migration is if a test suite exists.

Re:Tsrs: A Port of TypeScript to Rust by magicalist on Tuesday October 20, 2026 @12:04PM (#50168437)
> That doesn't hold anymore? AI doesn't care how hard or easy a migration is if a test suite exists.

Sure, but that only matters if migration is going to be the last thing anyone does on a project. Unless you think typescript 7.1 ought to be enough for anybody, it also matters what the typescript team wants to write/read/reason in.

Re:Tsrs: A Port of TypeScript to Rust by collabs on Tuesday October 20, 2026 @03:25PM (#50171409)
I would love this to be typescript 8 and 8.1 story (:
Re:Tsrs: A Port of TypeScript to Rust by wavemode on Tuesday October 20, 2026 @12:06PM (#50168461)
Your answer is within the comment you wrote. AI is maintaining tsrs whereas humans are maintaining tsgo.

Your question boils down to "why would humans maintain something?" which could have a variety of answers depending on context.

Re:Tsrs: A Port of TypeScript to Rust by greenavocado on Tuesday October 20, 2026 @12:49PM (#50169194)
No, the question is now: "How much human mental momentum, ego, and investment is there in and behind any particular project or its forks?"
Re:Tsrs: A Port of TypeScript to Rust by stephbook on Tuesday October 20, 2026 @01:41PM (#50169934)
I for one would be demotivated. Why maintain an official compiler that's not even half as fast as the vibe-coded one?

"Just" publish the language specs and be done.

Re:Tsrs: A Port of TypeScript to Rust by Rapzid on Tuesday October 20, 2026 @03:22PM (#50171374)
These ports are borrowing large parts of the architecture, algorithms, and data structures from the official implementation.

I don't think a spec would facilitate them at such a low effort level and cost.

Re:Tsrs: A Port of TypeScript to Rust by greenavocado on Tuesday October 20, 2026 @03:26PM (#50171417)
> Why maintain an official compiler that's not even half as fast as the vibe-coded one?

Because at the end of the day, someone has to actually care and put in effort, even if the thing is machine generated, because it can go off the rails.

Re:Tsrs: A Port of TypeScript to Rust by lifeisloving on Tuesday October 20, 2026 @04:37PM (#50172331)
Because its impossible to stay motivated working on non trivial project when AI is running the show. Its the last thing Id want to do, its soul sucking and the code is terrible. Remember these guys have poured years of actual work, not slop into tsgo. You sloppers wouldnt understand that.
Re:Tsrs: A Port of TypeScript to Rust by mrgoldenbrown on Tuesday October 20, 2026 @08:09PM (#50174435)
You need the experience of building and maintaining a compiler to make a great language spec. The tsrs team specifically said they don't want to be trying to change the spec.
Re:Tsrs: A Port of TypeScript to Rust by pjmlp on Wednesday October 21, 2026 @07:18AM (#50179007)
There are plenty of CoPilot contributions on tsgo repo, forgotten which company Typescript development is sponsored by?

https://github.com/microsoft/typescript-go/pull/4313

Re:Tsrs: A Port of TypeScript to Rust by pier25 on Tuesday October 20, 2026 @12:54PM (#50169264)
TSGO is already plenty fast and overkill for most projects.

Sure the Rust version is faster but the difference is probably only noticeable in the top 1% largest projects.

Re:Tsrs: A Port of TypeScript to Rust by theappsecguy on Tuesday October 20, 2026 @01:01PM (#50169375)
Fast is one thing, TSGO is fast enough I think, but my god does it suck up memory
Re:Tsrs: A Port of TypeScript to Rust by alain_gilbert on Tuesday October 20, 2026 @01:00PM (#50169354)
I'm always mind-blown when I read stuff like "speed is overkill". Speechless!
Re:Tsrs: A Port of TypeScript to Rust by pier25 on Tuesday October 20, 2026 @01:06PM (#50169440)
do you go to the supermarket with an F1 car?
Re:Tsrs: A Port of TypeScript to Rust by AnnikaL on Tuesday October 20, 2026 @04:13PM (#50172014)
If you are travelling a long distance, say over 1000 miles/km, do you always drive? Or do you take an airplane (or a train)?
Re:Tsrs: A Port of TypeScript to Rust by wiseowise on Tuesday October 20, 2026 @03:24PM (#50171395)
No, but I sure wouldn’t mind if I opened my fridge and the food was already there.
Re:Tsrs: A Port of TypeScript to Rust by suriyaG on Tuesday October 20, 2026 @02:27PM (#50170569)
the cost between an F1 car and a "regular" car is high, both financially and functionally.

but tsrs and tsgo are not a similar comparison. they cost the same (you download a binary and run it) and are functionally identical. in that case why would you not use the faster & better one?

the question should be, do you always want your groceries 50% faster ?

Re:Tsrs: A Port of TypeScript to Rust by sophacles on Tuesday October 20, 2026 @03:49PM (#50171697)
Bad comparrison. The less time my computer spends doing things the less battery I use.

An F1 car goes faster but also uses more fuel to do so.

Any one tool being a bit faster doesn't make my batter last noticeably longer, but defaulting to using the efficient tooling gets me results I can see.

Re:Tsrs: A Port of TypeScript to Rust by alain_gilbert on Tuesday October 20, 2026 @01:14PM (#50169555)
Do you usually dig up your garden by hand with a shovel, or do you use a rototiller?
Re:Tsrs: A Port of TypeScript to Rust by pier25 on Tuesday October 20, 2026 @01:24PM (#50169697)
Now we're getting somewhere. This is a great example because obviously speed depends on the context.

Obviously a shovel is quite an improvement for home gardeners but big constructions need a completely different tool.

For +99% of TS projects going from eg 10ms to 1ms is not going to make any difference even though it's a 10x improvement. In part because most monitors refresh at 60hz (16ms per frame) but even with +120hz monitors this is not going to have an impact on any workflow. Even for CI network latency is going to be a much bigger factor than improving TS compilation beyond the performance that TSGO already provides.

Re:Tsrs: A Port of TypeScript to Rust by eyelidlessness on Tuesday October 20, 2026 @02:06PM (#50170263)
I think it might have more meaningful impact on high volume use cases, i.e. where cumulative run time is still significant.

That’s already meaningful for at least a couple of companies I’ve seen investing in these ports. It might be niche for individual dev workflows now, but as those evolve it could become less niche (albeit probably still less uniform).

Re:Tsrs: A Port of TypeScript to Rust by pier25 on Tuesday October 20, 2026 @07:39PM (#50174206)
> I think it might have more meaningful impact on high volume use cases, i.e. where cumulative run time is still significant

For sure but those high volume use cases are extremely rare.

Re:Tsrs: A Port of TypeScript to Rust by seanw444 on Tuesday October 20, 2026 @01:21PM (#50169655)
Do you dig your garden with an excavator?
Re:Tsrs: A Port of TypeScript to Rust by wiseowise on Tuesday October 20, 2026 @03:25PM (#50171407)
Why are bringing Java into this?
Re:Tsrs: A Port of TypeScript to Rust by Tadpole9181 on Tuesday October 20, 2026 @02:29PM (#50170602)
I mean... If I had an excavator it beats using a shovel? This is such a silly "gotcha" analogy because the only reason I wouldn't is cost. And cost is not a reason for tsgo to be slower?

"Would you rather have worse software for literally no benefit?"

We should aim to make software as performant, bug free, feature-complete, and maintainable as is cost effective. It's asinine to argue that software shouldn't be fast, not because of some trade off, but just because someone doesn't need it to be fast for small tasks.

Which, mind you, isn't even the case here. Thousands of businesses use typescript for millions of lines of code. Performance gains can mean tens of thousands of dollars in compute or hardware or time; tons of carbon saved from being emitted.

Re:Tsrs: A Port of TypeScript to Rust by afiori on Tuesday October 20, 2026 @02:49PM (#50170888)
Yep cost is the reason, allegedly the ts team found go a better language for a port and both using a less ergonomic language and switching target every six months have associated costs
Re:Tsrs: A Port of TypeScript to Rust by Tadpole9181 on Tuesday October 20, 2026 @03:12PM (#50171223)
And that's a fine argument to make! But this stupid garden analogy is nonsense.
Re:Tsrs: A Port of TypeScript to Rust by afiori on Wednesday October 21, 2026 @03:17AM (#50177147)
no, it is the same idea, even if the excavator was magically free there are associated costs like keeping an industrial machine in your garden, danger or heavy machinery and possibly it is going to destroy you garden.

the analogy is not between each specific consequence/cost, it is relative to "single axis optimization" not being a solid strategy

Re:Tsrs: A Port of TypeScript to Rust by com2kid on Wednesday October 21, 2026 @02:19AM (#50176740)
By hand. I've been gardening for years now and I only have a loose idea what a rototiller is.

But in any given year I maybe plant a dozen new plants tops. 6 tomato plants and half a dozen other random things.

Re:Tsrs: A Port of TypeScript to Rust by tialaramex on Tuesday October 20, 2026 @04:27PM (#50172183)
I walk to the supermarket. I'm pretty sure an F1 car would be noticeably slower.

On foot I cross the little residential street where I live, walk to the corner, cross the busier road using a Zebra that was installed by thoughtful "pedestrian first" local government, then walk to the next corner where the main entrance to the supermarket is.

In the F1 car lets assume somebody already pre-warmed it and so it's ready to go (F1 cars do not "just work" like your family car because that's not required in the F1 rules) I walk to the car park and get in, I need to accelerate quite hard to get the slippery F1 car up the steep drive, but then brake hard to stop and have somebody else check both ways since an F1 car isn't equipped for this in a side street. Now I pull out, takes no time to reach that street where pedestrian me crossed but I can't use that route in a car, so, go through another residential area, turn onto an old main road, turn again, to a roundabout, go into the underground carpark of the supermarket. Once I've parked I'm about as close to the front door as if I were walking from the Zebra. Huh.

Re:Tsrs: A Port of TypeScript to Rust by baq on Tuesday October 20, 2026 @04:57PM (#50172570)
Oh boy that’s about the most off the mark car analogy I’ve ever seen and I’ve seen some
Re:Tsrs: A Port of TypeScript to Rust by solyin on Tuesday October 20, 2026 @05:37PM (#50173046)
If I could afford one, I absolutely would! I'd add a tow hitch so it had some storage and get it all street legal and add blinkers.
Re:Tsrs: A Port of TypeScript to Rust by riknos314 on Tuesday October 20, 2026 @06:03PM (#50173304)
My car doesn't require a dedicated team of engineers to start and has a trunk to hold groceries :P

The question isn't really if the speed is bad, it's what tradeoffs you need to make to realize it. The F1 car has a very narrow operating condition and so can make tradeoffs that are completely unreasonable for vehicles that need to do other things.

From what cloudflare is claiming, Tsrs gives me more speed without tradeoffs I care about, so why not have the free speed?

Re:Tsrs: A Port of TypeScript to Rust by norman784 on Wednesday October 21, 2026 @03:01AM (#50177046)
tsrs also has an LSP, so will be interesting to see how much memory it consumes vs tsgo.
Re:Tsrs: A Port of TypeScript to Rust by fallingbananna on Tuesday October 20, 2026 @01:26PM (#50169738)
Because TSGO is stable and compatible?

I assume that most of the speedup in ts-rs does not simply stem from using a language without garbage collection, but actually from doing smart optimizations that can be done in any langauge.

Similar to how uv in the Python world explained that their implementation being in Rust has very little to do with the most impactful speedups they did.

Re:Tsrs: A Port of TypeScript to Rust by platinumrad on Tuesday October 20, 2026 @01:27PM (#50169751)
I just vibecofed tsasm. tsrs is obsolete now and anyone who still uses it is hopelessly behind the times. The tsrs team should delete the repository immediately and join my project.
Re:Tsrs: A Port of TypeScript to Rust by written-beyond on Tuesday October 20, 2026 @03:10PM (#50171198)
Too late I just shipped tsvhdl so you have a hardware implementation of the actual TS compiler. Why steal valuable CPU cycles from agent workflows, off load all transpilation and type checking to a dedicated TSC chip.
Re:Tsrs: A Port of TypeScript to Rust by simplesocieties on Tuesday October 20, 2026 @07:56PM (#50174325)
Too late I just shipped tsasic so you can have a custom-made board for every single application you will ever write.
Re:Tsrs: A Port of TypeScript to Rust by hdjdnxjzhzhs on Tuesday October 20, 2026 @09:57PM (#50175127)
Too late, I just shipped tsqntm, who needs silicon when you can use qubits to accelerate every state of every program all at once
Re:Tsrs: A Port of TypeScript to Rust by z3t4 on Wednesday October 21, 2026 @08:10AM (#50179563)
Too late, I just encoded a quantum spin oscillator crystal that can infer the types of all existing and future programs
Re:Tsrs: A Port of TypeScript to Rust by huddo121 on Tuesday October 20, 2026 @09:57PM (#50175129)
Egg upon all your faces! I have released tsoracle, which knows (by unknown means) whether your ts compiles correctly, instantly!
Re:Tsrs: A Port of TypeScript to Rust by stymaar on Wednesday October 21, 2026 @03:35AM (#50177274)
Larry Ellison's hitmen are already on your tracks for trademark infringement.
Re:Tsrs: A Port of TypeScript to Rust by kittomic on Friday October 23, 2026 @03:29AM (#50205571)
Just input the correct prime number and watch your code compile instantly
Re:Tsrs: A Port of TypeScript to Rust by fmbb on Wednesday October 21, 2026 @01:52AM (#50176583)
I already started manufacturing 100 shipping containers of left pad machines. Taking orders.
Re:Tsrs: A Port of TypeScript to Rust by cute_boi on Tuesday October 20, 2026 @03:07PM (#50171156)
I am okay if agents can write code that is very safe in ASM. I am sure code written in Rust are naturally safe compared to asm or c. Waiting for tsasm to be significantly faster and safer than tsrs.
Re:Tsrs: A Port of TypeScript to Rust by awesome_dude on Tuesday October 20, 2026 @05:05PM (#50172661)
People massively overestimate Rust's "safety" - it has a very nice approach to managing data races, and. that's it.

It still, like every other language/tool we have that shares state between threads, has race conditions, for example.

Re:Tsrs: A Port of TypeScript to Rust by vovavili on Tuesday October 20, 2026 @06:37PM (#50173645)
That is a confidently incorrect assertion.
Re:Tsrs: A Port of TypeScript to Rust by Kamq on Tuesday October 20, 2026 @08:16PM (#50174474)
They said race conditions and specifically exempted data races. You can absolutely write race conditions in rust, they're a logic bug.

As an example, let's say you have two functions A and B. A only works properly if B has never ran for some reason. Let's say they both accept a reference to a value C, and B changes C's value somehow. Because this is rust, we can't have data races, so we wrap it in an ArcMutex or what have you. That doesn't impact the ordering of A and B at all.

If we spawn threads that execute A and B at the same time, it's up to the scheduler if A functions properly.

Re:Tsrs: A Port of TypeScript to Rust by awesome_dude on Thursday October 22, 2026 @01:04AM (#50191381)
Thanks, I think that most people read "data races" and jump to "race conditions in general"

And that is my core complaint - data races are well-understood and preventable now, whether statically via Rust's borrow checker (or pure immutability in functional languages) or dynamically with tools like Go's -race detector.

Logic races remain an application-level problem regardless of language design.

Re:Tsrs: A Port of TypeScript to Rust by rrvsh on Tuesday October 20, 2026 @07:07PM (#50173921)
You are being downvoted but you are absolutely correct. I have never seen someone assert Rust is a 100% safe. Its touted purely as a _memory_ safe language. To claim otherwise is absurd and very telling of the writer's biases
Re:Tsrs: A Port of TypeScript to Rust by awesome_dude on Tuesday October 20, 2026 @07:56PM (#50174330)
> I have never seen someone assert Rust is a 100% safe

Please copy and paste from my post where that's being asserted

> Its touted purely as a _memory_ safe language

Which is different from what was said... how?

> To claim otherwise is absurd and very telling of the writer's biases

To pretend that those claims were made is what's actually telling of biases.

Re:Tsrs: A Port of TypeScript to Rust by afdbcreid on Tuesday October 20, 2026 @08:47PM (#50174696)
> How can Codex write fast-to-compile Rust code, do tell?? Do tell!

Because memory safety isn't just about data races. In fact data races are far from Rust's most innovative or important feature. They are a side-effect, the designers had a nice system and saw it can also prevent data-races, so they said "sure, why not".

Re:Tsrs: A Port of TypeScript to Rust by dnautics on Wednesday October 21, 2026 @02:06AM (#50176663)
> I have never seen someone assert Rust is a 100% safe

Maybe I spend too much time on tech internet...

Re:Tsrs: A Port of TypeScript to Rust by RussianCow on Tuesday October 20, 2026 @08:43PM (#50174661)
Borrow checker aside, I would like to think that its type system inherently makes it safer than a language like C.
Re:Tsrs: A Port of TypeScript to Rust by solyin on Tuesday October 20, 2026 @08:47PM (#50174694)
You can write bad unsafe code in any language. Rust has a convenient keyword for that. C++ has types.
Re:Tsrs: A Port of TypeScript to Rust by afiori on Wednesday October 21, 2026 @02:33AM (#50176855)
unsafe rust is still typed orders of magnitude better than C
Re:Tsrs: A Port of TypeScript to Rust by pjmlp on Wednesday October 21, 2026 @02:24AM (#50176786)
Even Modula-2 (1978) type system is safer than C.
Re:Tsrs: A Port of TypeScript to Rust by afdbcreid on Tuesday October 20, 2026 @08:48PM (#50174705)
I'm pretty sure a program written in asm by agents will not only be very unsafe, but also very slow compared to Rust, or even Go or Java.
Re:Tsrs: A Port of TypeScript to Rust by solyin on Tuesday October 20, 2026 @05:35PM (#50173010)
Did you? GitHub link? because that would be awesome! which asm target did you pick? I looked at using LLVMs' LVM because I didn't want to have to choose ARM or x86? What are some of the trade-offs you made along the way? Wait, are you making a joke and think you're funny? (Hate to be the bearer of bad news but you're not.)
Re:Tsrs: A Port of TypeScript to Rust by Too on Wednesday October 21, 2026 @04:31AM (#50177646)
Can someone please instead spend their tokens on vibe coding an electron2rust.
Re:Tsrs: A Port of TypeScript to Rust by jon-wood on Wednesday October 21, 2026 @04:54AM (#50177823)
Its called Tauri: https://tauri.app/
Re:Tsrs: A Port of TypeScript to Rust by cpursley on Wednesday October 21, 2026 @06:38AM (#50178681)
https://github.com/redbadger/crux

Native UI with Crux backend. Best of both worlds.

Re:Tsrs: A Port of TypeScript to Rust by melodyogonna on Tuesday October 20, 2026 @01:50PM (#50170055)
I never understand why people say things like this. It is not uncommon for languages to have multiple implementations, everything must not be abandoned for Rust man.
Re:Tsrs: A Port of TypeScript to Rust by zarzavat on Tuesday October 20, 2026 @08:27PM (#50174546)
There are precisely two languages that make the most sense to implement the TypeScript compiler in: Rust and TypeScript itself.

A Rust implementation will have the fastest compilation speeds, memory safety, can easily be compiled to WASM, or compiled to a native node module.

A TypeScript implementation provides the most convenient way for TypeScript code to use the typescript package as a library. Pure JS, no native code or WASM dependencies. No FFI tax, can be jitted.

Go was always a compromise to make a port easier for humans. Go's GC makes it easier to keep the general code structure from the TS implementation. However that GC is also a liability, you sacrifice speed and embeddability.

Personally I'd prefer they went back to TypeScript for the reference implementation, and used Rust for the performance implementation. Go doesn't bring anything to the table anymore.

Re:Tsrs: A Port of TypeScript to Rust by afdbcreid on Tuesday October 20, 2026 @08:50PM (#50174717)
> There are precisely two languages that make the most sense to implement the TypeScript compiler in: Rust and TypeScript itself.

Incorrect. I can maybe agree that those are the only perfect languages to implement tsc in them (if there is such thing). But in the real world, "perfect" does not actually mean "it's a good idea". Go made the most sense to port to (especially before agents), more than Rust (although C# could also be a good idea IMO).

Re:Tsrs: A Port of TypeScript to Rust by ameliaquining on Tuesday October 20, 2026 @09:23PM (#50174932)
C#'s embeddability/interop story is even worse than Go's; IIUC this was the primary reason they chose not to use it.
Re:Tsrs: A Port of TypeScript to Rust by WorldMaker on Tuesday October 20, 2026 @11:37PM (#50175787)
C#'s embeddability/interop story is as good or better than Golang's. The primary reason they chose not to use it was that C# was seen as too verbose compared to the TS original source. In particular TS used a lot of top level functions and bare/anonymous data types and while C# has picked up top level function support it's still not "idiomatic" and while C# has a long standing anonymous data type support it's not very "ergonomic", certainly not compared to TS structural typing. Golang's traits are a bit more ergonomic by comparison, unfortunately.

I also still think C# would have been a better long term option for maintainability, but I'm not on the Typescript team and didn't get a vote, and I can understand their methodology even if I don't agree with it.

Re:Tsrs: A Port of TypeScript to Rust by anonymous908213 on Wednesday October 21, 2026 @09:43PM (#50190103)
> while C# has picked up top level function support it's still not "idiomatic"

It has no such thing. C# has top-level statements in one file per project, which omit the usual entrypoint Main boilerplate, but that's the extent of it.

Re:Tsrs: A Port of TypeScript to Rust by skybrian on Tuesday October 20, 2026 @03:59PM (#50171821)
Another advantage of AI, though, is that it becomes easier to maintain more than one TypeScript compiler. Perhaps there's some benefits to having some diversity?
Re:Tsrs: A Port of TypeScript to Rust by lifeisloving on Tuesday October 20, 2026 @04:34PM (#50172272)
Please you port it if its so easy, the tests are available on gh. I wont be using an llm ported ts compiler anyways, and neither would many others

Its a great way to divide and kill the popularity of your project. I made sure bun is no longer used in my devices or projects that depend on it for example, I'm not alone in this.

Re:Tsrs: A Port of TypeScript to Rust by madeofpalk on Tuesday October 20, 2026 @06:17PM (#50173454)
If an AI agent could vibe-optimise tsgo, why port it all again over to rust?
Re:Tsrs: A Port of TypeScript to Rust by samuelstros on Tuesday October 20, 2026 @06:25PM (#50173523)
because Rust will be faster and can compile to WASM which the TS ecosystem needs
Re:Tsrs: A Port of TypeScript to Rust by throw567643u8 on Tuesday October 20, 2026 @11:21PM (#50175669)
The reason Anders gave at the time was Rust effectively outlaws cyclic data structures, which was not fitting of their implementation.
Re:Tsrs: A Port of TypeScript to Rust by jbellis on Wednesday October 21, 2026 @04:30AM (#50177640)
As someone maintaining a close to 3M life Rust codebase, the downsides are real, especially rustc speed. I contribute to the mbx cache project but it only helps so much. It's only a small exaggeration to say that I fantasize daily about pursuing to Go.
Re:Tsrs: A Port of TypeScript to Rust by zyf on Tuesday October 20, 2026 @12:09PM (#50168526)
Been with TS for many years now and the work your team's done over the years is amazing. Thank you
Re:Tsrs: A Port of TypeScript to Rust by egonschiele on Tuesday October 20, 2026 @11:36AM (#50168000)
Thanks for the response and it is encouraging to hear that there's more to this project than vibe coding! Sounds like some interesting things were found in the process, and I'm all for vibe coding as a way to learn new things.
Re:Tsrs: A Port of TypeScript to Rust by lifeisloving on Tuesday October 20, 2026 @04:41PM (#50172386)
Im not because nobody actually ever learns anything. For every one person that learns something the other 99% of the population gets lazier and dumber, ponder how that might play itself out.

This is probably the most harmful tech ever created simply because how many people trick themselves into thinking they're smarter while actually becoming much dumber. We're actually cooked.

Re:Tsrs: A Port of TypeScript to Rust by lemagedurage on Tuesday October 20, 2026 @11:48AM (#50168184)
Thanks for the input, glad to hear both parties benefit.

Could you elaborate on what type of optimizations were added to TS 7.1? As in, were they more algorithmic or related to memory management?

Re:Tsrs: A Port of TypeScript to Rust by DanRosenwasser on Tuesday October 20, 2026 @12:30PM (#50168904)
If I recall correctly, a few of both - there were instances where some work could be done more lazily/minimally (https://github.com/microsoft/TypeScript/pull/64476), and there were instances where we changed our allocation patterns and played around with some struct layouts. We originally strived not to drastically reorganize our data structures to make things easier to port, and we have more flexibility now. We're continuing to experiment more here.
Re:Tsrs: A Port of TypeScript to Rust by satvikpendem on Tuesday October 20, 2026 @12:51PM (#50169210)
Ah I was gonna ask what happened with tsc-rs by Theo but looks like you guys are merging it in, at least it won't be a waste of his $500k in token spend, lol.
Re:Tsrs: A Port of TypeScript to Rust by zylepe on Tuesday October 20, 2026 @06:41PM (#50173679)
+1 from what I’ve seen, porting apples to apples to rust only impacts performance by a few % (sometimes in the wrong direction). The main speed up comes from algorithmic improvements that can also be applied to the original project.
Re:Tsrs: A Port of TypeScript to Rust by afdbcreid on Tuesday October 20, 2026 @11:36AM (#50167990)
It appears they're using a unique memory model (https://github.com/oxc-project/tsrs/blob/main/docs/PORTING.m...) to overcome the challenge that prevented the TypeScript team from choosing Rust to begin with: Rust has no GC and porting from a GC language to it often requires restructure of data.

Essentially, they fake a GC via never-freed arenas for long-living objects. It's interesting that Rust can do that (hopefully soundly)!

Re:Tsrs: A Port of TypeScript to Rust by jcmontx on Tuesday October 20, 2026 @12:17PM (#50168655)
Wouldn't that eat the whole ram?
Re:Tsrs: A Port of TypeScript to Rust by panzi on Tuesday October 20, 2026 @01:34PM (#50169825)
Compilers often just build up more and more data structures in memory until the end when they then release everything more or less at once. With an arena you can then just throw away the whole arena at the end, assuming there are no resource handles that need to be closed in drop().

A long time ago I read an article about someone speeding up a C++ compiler that is itself written in C++ (was it g++? maybe clang?). They simply patched out delete so it did nothing. The compiler used marginally more memory but ran much faster, since releasing all the small objects one by one is just useless work at the end of the compilation.

A GCed language has a similar behavior and could therefore be fast in that case. It just builds up all the objects and then when the program exists it doesn't have to GC them all, it just throws away the whole process memory. So I can imagine one could "optimize" a compiler written in a GCed language by deactivating the GC.

Re:Tsrs: A Port of TypeScript to Rust by jamesfinlayson on Tuesday October 20, 2026 @09:19PM (#50174903)
I read on here a few months ago about some high-frequency trading system being written in Java and running with no garbage collector enabled, because the application is closed at the end of trading each day and it's extremely fast without garbage collection.
Re:Tsrs: A Port of TypeScript to Rust by zamalek on Tuesday October 20, 2026 @11:51AM (#50168234)
From the file:

>Create with P::new(value). p.get() returns &'static T. [...] unless an explicit recycling site proves them dead

It's unsound, the LLM/human is doing the proving. They've hidden unsafe in an abstraction without removing the unsafeness. Using the arena allocator's lifetime would have been safe and easy (bumpalo recommends this AFAIK).

I'm guessing a sycophantic LLM either found or praised this load-bearing seam.

Never deallocating would have been sound (missile memory management: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98... ).

Re:Tsrs: A Port of TypeScript to Rust by afdbcreid on Tuesday October 20, 2026 @12:13PM (#50168590)
With sanitizers (https://github.com/oxc-project/tsrs/blob/main/notes/mem-recy...). We're back to C I guess. I hate this project now.
Re:Tsrs: A Port of TypeScript to Rust by lioeters on Tuesday October 20, 2026 @12:54PM (#50169255)
> load-bearing seam

Zing!

Re:Tsrs: A Port of TypeScript to Rust by tengbretson on Tuesday October 20, 2026 @01:43PM (#50169961)
> Never deallocating would have been sound (missile memory management: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98... ).

Calling this a breakthrough in memory management is an understatement. Call up the Turing Award committee. We just discovered a solution to the halting problem! Turns out that for certain applications the answer is unequivocally "yes"

Re:Tsrs: A Port of TypeScript to Rust by solyin on Tuesday October 20, 2026 @05:43PM (#50173098)
We've have found an engineering solution to some of the cases for the halting problem, yes. It's still not solved science problem though. Science isn't engineering though.
Re:Tsrs: A Port of TypeScript to Rust by dabinat on Wednesday October 21, 2026 @03:29AM (#50177232)
This is what bothers me about all the vibe-coded Rust ports. The LLMs are mostly porting the existing architecture and code as-is, which was intended for a different language with different features and tradeoffs. A port that actually uses Rust’s features and is architected in a way that makes sense for Rust code would be a lot better, more maintainable (if that matters anymore) and probably faster too.

Another advantage human ports have is the opportunity to reconsider earlier architectural decisions and change them, instead of just enshrining them in the new language.

Re:Tsrs: A Port of TypeScript to Rust by wewxjfq on Wednesday October 21, 2026 @04:41AM (#50177724)
I never see this caveat mentioned in all the "... vibe-ported to Rust" threads, which makes me wonder who comments on these projects. I hand-ported a few TS hobby projects to Rust+WASM pre-AI and realized there are only two ways to go: Do a low effort translation and create very unidiomatic Rust code or redesign the application from the ground up. There's no middle ground. Option 1 is almost a waste of time and option 2 is incredibly difficult.
Re:Tsrs: A Port of TypeScript to Rust by rk06 on Wednesday October 21, 2026 @06:55AM (#50178829)
option 2 is also impractical for most part. doing a rewrite is big thing already, changing implementation paradigm would make "catching up" impossible.

Only practical option is to do low level rewrite (otpion 1) and then rewrite module by module into better approaches.

Re:Tsrs: A Port of TypeScript to Rust by sheepscreek on Tuesday October 20, 2026 @11:13AM (#50167635)
Ah took me a while to understand the reason behind this.

It wasn’t “let’s build a faster Rust based Typescript compiler” at all. That was a nice side-effect.

They needed a Typescript compiler that can run on their WASM only sandbox. So the only existing option was to export tsc Go to WASM, but that comes with the full Go runtime.

And to avoid that cost, they experimented with a Rust compiler and turns out it’s even faster than the reference tsc/Go implementation.

Re:Tsrs: A Port of TypeScript to Rust by nitsky on Tuesday October 20, 2026 @11:31AM (#50167924)
Another reason: type aware listing in oxlint.
Re:Tsrs: A Port of TypeScript to Rust by anamexis on Tuesday October 20, 2026 @11:45AM (#50168134)
Oxlint already has type-aware linting, integrated with TS7/typescript-go.
Re:Tsrs: A Port of TypeScript to Rust by nitsky on Tuesday October 20, 2026 @03:53PM (#50171757)
Yeah but now it can just all be in rust, which is a lot simpler.
Re:Tsrs: A Port of TypeScript to Rust by simplesocieties on Tuesday October 20, 2026 @08:25PM (#50174545)
> It wasn’t “let’s build a faster Rust based Typescript compiler” at all. That was a nice side-effect.

Then why are the performance graphs the headliner topic in the article? The WASM sandbox is barely a footnote.

Re:Tsrs: A Port of TypeScript to Rust by sheepscreek on Tuesday October 20, 2026 @09:34PM (#50174997)
> Then why are the performance graphs the headliner topic in the article?

If you’ve got it, flaunt it?

> The WASM sandbox is barely a footnote.

This one is a real head scratcher. The sandbox was clearly what set them on this path.

Maybe they believe the performance gains are worthy of being discussed by themselves?

Re:Tsrs: A Port of TypeScript to Rust by xboxnolifes on Wednesday October 21, 2026 @02:47AM (#50176953)
What objective things can you mention about the WASM sandbox besides saying "it works"? People prefer seeing good benchmarks.
Re:Tsrs: A Port of TypeScript to Rust by sara_kumodeck on Wednesday October 21, 2026 @12:50AM (#50176211)
that makes sense, shinpping the whole go runtime into a WASM sandobox would have been a feavy price just to compile TypeScript
Re:Tsrs: A Port of TypeScript to Rust by h14h on Wednesday October 21, 2026 @02:31PM (#50185454)
I've been playing with running Gleam's official WASM compiler on Cloudflare's sandboxes and it's pretty cool what you can do.

Built this little vibe-coding app as an experiment/cost exploration: https://glare.run

It's awesome how cheaply you can run an entire agentic coding loop (including compilation & live reload) in their v8 isolate sandbox.

Re:Tsrs: A Port of TypeScript to Rust by egonschiele on Tuesday October 20, 2026 @10:53AM (#50167341)
It's exciting to see the speed gains. I use TypeScript every day on a large codebase, and it is too slow to run locally. I don't love this change though:

> However, frontier AI models can now do large-scale ports almost independently in a matter of days

> I wrote zero code. Not "barely any". Zero

So we are going to move from a carefully handwritten port to an entirely AI-generated port. I know this is the way the industry is headed, I use coding agents a ton. But I still review their output because they often don't make sound architectural decisions. Maybe this is a sign that my way of working is going away. I'm not sure how to justify that kind of time spent when someone can do the same thing in a matter of days with barely any effort.

I am working on my own language now, I've spent most of this year on it. The idea that someone could just replace it in a matter of days is wild. Wonder how the TS team at Microsoft feels about this.

Re:Tsrs: A Port of TypeScript to Rust by TheSamFischer on Tuesday October 20, 2026 @11:03AM (#50167503)
> The idea that someone could just replace it in a matter of days is wild.

They didn’t design a language that millions of human engineers enjoy (?, lol) using. They took an existing codebase and ported it. Yes, the porting part is easier now but only because another project and spec exist.

Re:Tsrs: A Port of TypeScript to Rust by FuckButtons on Tuesday October 20, 2026 @11:27AM (#50167854)
While this is true - and I see the same sentiment as i am about to make ad nauseam - it is kind of amazing how far the goal posts have moved in such a short space of time.
Re:Tsrs: A Port of TypeScript to Rust by TheSamFischer on Tuesday October 20, 2026 @11:53AM (#50168285)
It’s not a goal post. It was literally a fucking benchmark of the very first LLMs.
Re:Tsrs: A Port of TypeScript to Rust by pas on Tuesday October 20, 2026 @03:57PM (#50171798)
sorry, can please explain this? which benchmark are you referring to?
Re:Tsrs: A Port of TypeScript to Rust by egonschiele on Tuesday October 20, 2026 @11:11AM (#50167611)
That's fair, I was thinking the same – porting must be simpler, especially if there's already a substantial test suite
Re:Tsrs: A Port of TypeScript to Rust by onlyrealcuzzo on Tuesday October 20, 2026 @11:07AM (#50167562)
If TypeScript has the integration testing framework in place to verify that the compiler actually works (and it should) - then, presumably, you should be able to swap in a Chinese Room black-box and - at least - know that it works.

You do have to be worried that it's possibly installing trojan horses on your computer while compiling code, or any other number of unwanted side effects.

But you can and should be able to have integration testing in place to know that a compiler - at a minimum - actually works.

Re:Tsrs: A Port of TypeScript to Rust by egonschiele on Tuesday October 20, 2026 @11:13AM (#50167641)
Totally fair. The thing is, though, agents often write code in ways I don't expect, and I don't think any human would write, which makes me think that code may also break in a way that no human expects or would have written a test for.
Re:Tsrs: A Port of TypeScript to Rust by spiderice on Tuesday October 20, 2026 @01:03PM (#50169394)
Your way of working is definitely going away. And quickly. The idea of reviewing code today is already a questionable use of time. In a few more months to a year it will clearly be a waste of time.
Re:Tsrs: A Port of TypeScript to Rust by 0x696C6961 on Tuesday October 20, 2026 @06:55PM (#50173818)
The only group of people saying this are those who didn't have much technical ability to begin with.
Re:Tsrs: A Port of TypeScript to Rust by lioeters on Tuesday October 20, 2026 @08:24PM (#50174530)
Found the meat proxy. Your kind will be the first to be replaced. Useless without the machine doing the actual work of thinking.
Re:Tsrs: A Port of TypeScript to Rust by vips7L on Tuesday October 20, 2026 @11:51PM (#50175886)
You’re a waste of time.
Re:Tsrs: A Port of TypeScript to Rust by jscheel on Tuesday October 20, 2026 @11:56AM (#50168322)
I benchmarked tsrs a few weeks ago. I was testing out tsgo, ts-rust, tsrs, and bun for typechecking on our monorepo. tsrs is definitely awesome, it is very memory efficient when bumping up the number of threads. Not as efficient as bun, but it has incremental checks, which bun does not have.
Re:Tsrs: A Port of TypeScript to Rust by AbuAssar on Tuesday October 20, 2026 @10:20AM (#50166870)
According to voidzero, this port is up to 8x faster than TS 7.0 & ~70% less memory.

Microsoft should seriously consider porting typescript to rust at this point

Re:Tsrs: A Port of TypeScript to Rust by Rapzid on Tuesday October 20, 2026 @11:28AM (#50167878)
Up to 8x faster seems kinda of a crazy claim. 8x faster at what?! TS 7.0 is reasonably well optimized and compiles VSCode in well under 10 seconds..

This can type check and compile VSCode in less than a second?

Re:Tsrs: A Port of TypeScript to Rust by lemagedurage on Tuesday October 20, 2026 @11:52AM (#50168268)
For VSCode: 4x speedup vs TS 7, 3x vs TS 7.1
Re:Tsrs: A Port of TypeScript to Rust by rs_rs_rs_rs_rs on Tuesday October 20, 2026 @11:34AM (#50167972)
Yes, it's in the article.
Re:Tsrs: A Port of TypeScript to Rust by magicalist on Tuesday October 20, 2026 @11:49AM (#50168200)
Well, no, not exactly. The article says vscode is compiled in 5.28s in typescript 7.1 (nightly), and in 1.73s in tsrs (dev), which is 3x faster.
Re:Tsrs: A Port of TypeScript to Rust by Rapzid on Tuesday October 20, 2026 @12:07PM (#50168473)
3x isn't so wild but still very impressive.
Re:Tsrs: A Port of TypeScript to Rust by aleksandrm on Tuesday October 20, 2026 @11:17AM (#50167702)
I'm pretty sure they already considered it before settling on Go. Allegedly, they chose Go because it was easier to translate to.
Re:Tsrs: A Port of TypeScript to Rust by satvikpendem on Tuesday October 20, 2026 @12:48PM (#50169179)
That was pre-AI. Ironically if they waited just another year they could've done this port directly to Rust themselves.
Re:Tsrs: A Port of TypeScript to Rust by nish__ on Tuesday October 20, 2026 @04:43PM (#50172408)
Not really because this port is based on the Go version. I doubt it would be as easy for an LLM to port the TS 6 codebase.
Re:Tsrs: A Port of TypeScript to Rust by satvikpendem on Tuesday October 20, 2026 @10:53PM (#50175505)
The Go version was a line by line port of the TypeScript version.
Re:Tsrs: A Port of TypeScript to Rust by rk06 on Wednesday October 21, 2026 @07:03AM (#50178886)
after 7.0, tsgo version is The canonical version. so, there is no other choice here
Re:Tsrs: A Port of TypeScript to Rust by ndr on Tuesday October 20, 2026 @10:25AM (#50166944)
I wonder how more frustrating is it to work on the compiler in rust vs go.

IIRC at the time of the port to go they wanted fast test and compile time, of course it's a different era now.

Re:Tsrs: A Port of TypeScript to Rust by lemagedurage on Tuesday October 20, 2026 @11:55AM (#50168309)
That's interesting. A go version to iterate on the code and a rust version to run the code might be an optimal split here.
Re:Tsrs: A Port of TypeScript to Rust by tgv on Tuesday October 20, 2026 @10:31AM (#50167037)
Idk. Apart from the fact that benchmarks are generally of questionable value, what's the point? Is the TS compiler unbearably slow?
Re:Tsrs: A Port of TypeScript to Rust by ruther4d on Tuesday October 20, 2026 @10:43AM (#50167199)
They say the point in the article - WASM
Re:Tsrs: A Port of TypeScript to Rust by msdz on Tuesday October 20, 2026 @10:49AM (#50167279)
(Not sure if this could be a genuine remark or is more of a joke, but)

Why not vibecode a Go -> WASM cross-compiler, then?

Re:Tsrs: A Port of TypeScript to Rust by AbuAssar on Tuesday October 20, 2026 @10:53AM (#50167338)
Go needs a garbage collector while rust doesn’t.
Re:Tsrs: A Port of TypeScript to Rust by Lvl999Noob on Tuesday October 20, 2026 @10:58AM (#50167424)
Wasm comes with a garbage collector though, no? So a garbage collected language that offloads all memory management to the runtime would actually be better than one that ignored the platform and does its own stuff.
Re:Tsrs: A Port of TypeScript to Rust by zamalek on Tuesday October 20, 2026 @11:01AM (#50167475)
Apparently there were some design issues (raised and ignored) that made it unusable for many languages.
Re:Tsrs: A Port of TypeScript to Rust by kg on Tuesday October 20, 2026 @02:44PM (#50170803)
Ignored is a little unfair to the Wasm committee, the Wasm GC is constrained by what is possible to ship in existing Wasm runtimes and the stuff needed by many languages is way beyond what those existing runtimes have available to them.

I think it made sense for them to compromise, at least on the initial version of Wasm GC, to get it out the door. I say this as someone who wants the features that got left out, like interior references :)

Re:Tsrs: A Port of TypeScript to Rust by Tadpole9181 on Tuesday October 20, 2026 @11:14AM (#50167665)
The JVM alone has, what, 4 different modern GCs now? Garbage collectors aren't really universal, so they can pose different issues for different languages.
Re:Tsrs: A Port of TypeScript to Rust by WorldMaker on Tuesday October 20, 2026 @11:45PM (#50175844)
Wasm GC is not an object-level GC yet. It's still a very low level bit buffer GC. It's closer to the memory page management of an operating system than anything like JS's own GC.
Re:Tsrs: A Port of TypeScript to Rust by msdz on Tuesday October 20, 2026 @10:54AM (#50167358)
Yes, of course, but couldn’t you have/make one in WASM too? (I have no clue how memory is allocated there)
Re:Tsrs: A Port of TypeScript to Rust by jerf on Tuesday October 20, 2026 @11:11AM (#50167606)
Yes, and when you ship a Go WASM package it is already included. But it has a certain impedence mismatch with WASM since it is rolling its own stuff that WASM can't see, I believe the performance is a bit less good than it could be, and it results in very large WASM packages for small amounts of code.

Since a typescript compiler isn't "a small amount of code", you'd have to see specific numbers on the final WASM assembly size to know how relevant that is. I'd expect well-written Rust code to beat well-written Go code on final assembly size by some amount, which may or may not be relevant to any particular use case (since in a lot of cases one "couple dozen megabytes" is much the same as another when it really gets down to it, it's not like Go is going to be emitting gigabytes to Rust's hundreds of kilobytes or something). However I can't judge what AI-written Rust code versus well-written Go code would come out as. AI is not terribly good at being concise (he said, while writing this post between prompts fighting with an AI to make a PR much more concise than it currently is).

Re:Tsrs: A Port of TypeScript to Rust by ZiiS on Tuesday October 20, 2026 @11:07AM (#50167558)
You already can run the Go tsc in WASM using mature tools; but it further amplifies the memory and performance difference between the Rust version (which maps more cleanly onto WASM's design).
Re:Tsrs: A Port of TypeScript to Rust by Tadpole9181 on Tuesday October 20, 2026 @11:12AM (#50167621)
1. Porting typescript is made easier by the enormous test suite they can copy for verification.

2. They're doing this for workers, so with a systems-level language, there's a much higher potential for CPU and memory savings (an order of magnitude on this first pass, apparently). Driving their compute costs down is very revenue-efficient at this scale.

Re:Tsrs: A Port of TypeScript to Rust by tgv on Tuesday October 20, 2026 @11:29AM (#50167901)
For workers, you only need to strip the types. There's no need to do the expensive checking.
Re:Tsrs: A Port of TypeScript to Rust by Tadpole9181 on Tuesday October 20, 2026 @11:35AM (#50167986)
Did you read TFA?

> Just a few weeks ago we announced supporting native Rust in Workers with the new Emscripten target for wasm-bindgen. When you run entire software build and deployment systems in tight loops on Workers, the benefits of a small memory footprint pay off quickly.

Re:Tsrs: A Port of TypeScript to Rust by TheMrZZ on Tuesday October 20, 2026 @10:38AM (#50167132)
The success of "modern" CLI tools written in Rust (uv, oxlint, turbopack) show there's a clear demand for faster tools in general.

Also, faster feedback loop is crucial for AIs, so I guess this makes sense.

Re:Tsrs: A Port of TypeScript to Rust by pjmlp on Tuesday October 20, 2026 @10:48AM (#50167260)
What they show is that JavaScript should never have left the browser into the backend.

Don't rewrite into Rust, Go, Java, .NET, Zig, Odin, whatever.

Start with them directly.

Re:Tsrs: A Port of TypeScript to Rust by eterm on Tuesday October 20, 2026 @10:38AM (#50167126)
Faster feedback loops almost always deliver improvements elsewhere.
Re:Tsrs: A Port of TypeScript to Rust by pier25 on Tuesday October 20, 2026 @12:57PM (#50169302)
> Is the TS compiler unbearably slow?

It's not. Even the JS compiler is still fast enough for many projects given the single core improvements in hardware (eg Apple Silicon).

Re:Tsrs: A Port of TypeScript to Rust by gzapp on Tuesday October 20, 2026 @11:37AM (#50168013)
Shameless plug of my Typescript C# port. It's a case study with some interesting (perhaps) notes from me in the README about approach, performance, and cost(~$75).

https://github.com/stepwisehq/typescript-dotnet

Re:Tsrs: A Port of TypeScript to Rust by gzapp on Tuesday October 20, 2026 @08:44PM (#50174676)
I'm going to do a taboo and comment on my own comment.

I didn't push performance in a way that would cause big deviations from the Golang project's algorithms and data structures; similar to how the TS team didn't want to deviate too far from the JavaScript source till now. Aggressive unmanaged arenas and object pooling was the direction I would have pursued..

The GC in DotNet is a source of major frustration for a tool like this. Without tuning lots of gen 0/1 work occurs to determine if objects should be promoted. The tuning is still not an ideal solution IMHO. Fully unmanaged arenas and aggressive object pooling could help here, but an alternative GC may be part of an ideal, comprehensive solution.. I have have a play with ZeroGC.

There is a warning on the repo that it's not maintained, but I've been curious about the process of updating it to sync "upstream" changes. And it sounds like the TypeScript team are going to start incorporating some of the performance techniques identified in the Rust port in the 7.1 release so... I'll probably at least sync it to up to 7.1 and keep it as an active experiment and case study on LLM porting and DotNet AOT performance.

It's just good fun.

Re:Tsrs: A Port of TypeScript to Rust by WorldMaker on Tuesday October 20, 2026 @11:42PM (#50175826)
It sounds like the big 7.1 performance trick will be unmanaged arenas, so yeah maybe something your LLM agent picks up for "cheap".
Re:Tsrs: A Port of TypeScript to Rust by gzapp on Tuesday October 20, 2026 @11:59PM (#50175931)
Yeah, that definitely seems like the case.

The benefit of those enhancements being wrapped into the reference implementation is it's "easier" for humans and LLMs to reconcile and keep things in sync.

Re:Tsrs: A Port of TypeScript to Rust by Leynos on Tuesday October 20, 2026 @10:28AM (#50167001)
So that's three now. This, tsgo-rs, and `bun check`
Re:Tsrs: A Port of TypeScript to Rust by alexanderson on Tuesday October 20, 2026 @10:58AM (#50167413)
They mention in the post they are working with Theo to absorb tsgo-rs into tsrs.
Re:Tsrs: A Port of TypeScript to Rust by Rapzid on Tuesday October 20, 2026 @11:31AM (#50167930)
Why would they bother merging his vibe slop if theirs is better?
Re:Tsrs: A Port of TypeScript to Rust by shimman on Tuesday October 20, 2026 @11:39AM (#50168040)
Big tech looks out after their own. That's all there is to it.
Re:Tsrs: A Port of TypeScript to Rust by Rapzid on Tuesday October 20, 2026 @12:08PM (#50168500)
Prob a PR thing with a quick merge to /dev/null
Re:Tsrs: A Port of TypeScript to Rust by preommr on Tuesday October 20, 2026 @03:07PM (#50171146)
so this is software now?

youtuber vibe codes a transpiler says they're not going to bother maintaining it - but big company like cloudflare takes it seriously enough to absorbe into their own official services.

What is happening?

What is even software dev anymore?

What didnt the labs or cloudflare do this themselves, I mean they did, but then if it's all vibe coded, why do they need someone else's vibe coded stuff?

How is any of this serious?

Re:Tsrs: A Port of TypeScript to Rust by x-complexity on Wednesday October 21, 2026 @02:23AM (#50176768)
> why do they need someone else's vibe coded stuff?

Because even if vibecoded, the initial work has already been done, and it would be absolutely foolish to outright dismiss it just because it doesn't meet puritanical standards.

> How is any of this serious?

It isn't & shouldn't be. The upfront demand for "serious" is what kills public projects in the first place, where they all come from an experimentation perspective.

There is no public project out there that (from its first commit) was fully serious: Each & every one of them were offshoots & experiments, testing to see if the thing was possible in the first place.

Re:Tsrs: A Port of TypeScript to Rust by Leynos on Tuesday October 20, 2026 @11:05AM (#50167527)
Nice. I missed that. This is good news.
Re:Tsrs: A Port of TypeScript to Rust by norman784 on Tuesday October 20, 2026 @10:59AM (#50167435)
I'm tired of all the new tools that comes out every day, but I would say, this is basically the Vite team and if they implement it with Vite+, then I'm all for it, less decisions about tooling to be made, one config file, etc.
Re:Tsrs: A Port of TypeScript to Rust by frangonf on Tuesday October 20, 2026 @10:57AM (#50167405)
I use oxc tooling and it's great to see the rust rewrite singularity in action and get to ride the fastest horses, but I would like that they made a branch for 7.2 as experiment to see how it compares. Maybe this ends in a win for Microsoft, they could cut operating expenses by keeping just Anders Hejlsberg in a hammock reciting invariants to claudpilot.
Re:Tsrs: A Port of TypeScript to Rust by wannabe44 on Tuesday October 20, 2026 @10:57AM (#50167403)
Y'all building the same thing.
Re:Tsrs: A Port of TypeScript to Rust by nsm on Tuesday October 20, 2026 @11:00AM (#50167452)
Obligatory reminder that their needs from a TS compiler are extremely different from a regular web developers iteration cycle. They are trying to run millions of these while saving on costs.

You almost definitely don't need to immediately plan to switch.

Re:Tsrs: A Port of TypeScript to Rust by cryptonym on Tuesday October 20, 2026 @11:18AM (#50167720)
> This enables new possibilities when combined with agents: You are now able to run a development toolchain end-to-end in a fully sandboxed environment on Cloudflare.

True. Looks like main use-case is AI Agent Sandboxing

Re:Tsrs: A Port of TypeScript to Rust by ameliaquining on Tuesday October 20, 2026 @04:49PM (#50172469)
I expect I'll switch once Vite starts shipping it by default.
Re:Tsrs: A Port of TypeScript to Rust by retropragma on Tuesday October 20, 2026 @10:46AM (#50167246)
please support TSRX (https://github.com/tsrx-org/tsrx)
Re:Tsrs: A Port of TypeScript to Rust by jdw64 on Tuesday October 20, 2026 @10:52AM (#50167334)
These days the trend seems to be rewriting everything in Rust.
Re:Tsrs: A Port of TypeScript to Rust by zeroq on Tuesday October 20, 2026 @11:10AM (#50167601)
I'm staying stainless
Re:Tsrs: A Port of TypeScript to Rust by jdw64 on Tuesday October 20, 2026 @11:29AM (#50167895)
Did you know? Even stainless steel RUSTs in sea wind.
Re:Tsrs: A Port of TypeScript to Rust by satvikpendem on Tuesday October 20, 2026 @12:50PM (#50169195)
You should say you're staying fungal infection free as it's named after the Rust fungus not the chemical reaction even if that's what people think these days.
Re:Tsrs: A Port of TypeScript to Rust by tonyhart7 on Tuesday October 20, 2026 @10:42AM (#50167188)
I thought its TS port of theo
Re:Tsrs: A Port of TypeScript to Rust by AntonyGarand on Tuesday October 20, 2026 @10:44AM (#50167218)
Theo's port is tsc-rs[0] as reference, and is significantly slower and uses more memory than this new version.

[0] https://github.com/pingdotgg/ts-rust

Re:Tsrs: A Port of TypeScript to Rust by francislavoie on Tuesday October 20, 2026 @10:46AM (#50167245)
A new one but they're merging it with Theo's.
Re:Tsrs: A Port of TypeScript to Rust by nalekberov on Tuesday October 20, 2026 @11:15AM (#50167677)
Oh god, I wish this Rust fetishism would end soon.
Re:Tsrs: A Port of TypeScript to Rust by g0ld3nrati0 on Tuesday October 20, 2026 @01:01PM (#50169365)
so rust is now go-to slop language? can't you guys use C or something. I want rust back.
Re:Tsrs: A Port of TypeScript to Rust by cpursley on Tuesday October 20, 2026 @02:47PM (#50170855)
What? You realize how many people now are excited about Rust that were not before? I am, for one.
Re:Tsrs: A Port of TypeScript to Rust by bakugo on Tuesday October 20, 2026 @04:47PM (#50172456)
So excited that you avoid writing a single line of it at all costs.
Re:Tsrs: A Port of TypeScript to Rust by cpursley on Wednesday October 21, 2026 @05:30AM (#50178047)
Well, it's either typed and memory managed Rust or underperforming NextJS/Python slop. Also, I've read way more Rust and understand it more than I ever did before AI tools became good enough. Using a neat package called Crux for cross platform apps which uses the Elm architecture, which I've very familiar with and have written in the past. Instead of gatekeeping, try opening the door and finding out how to help - it's Rust's time to shine.
Re:Tsrs: A Port of TypeScript to Rust by vips7L on Wednesday October 21, 2026 @10:26AM (#50181589)
There are so many more amazing options between Rust and JS/python.
Re:Tsrs: A Port of TypeScript to Rust by preg_match on Tuesday October 20, 2026 @05:24PM (#50172887)
Rust is basically the perfect language for LLMs because it has a strong, comprehensive, and strict compiler. For coding you really need a tight loop for models so they can iterate. C doesn’t accomplish this because it’s far too “anything goes” so bugs slip through. Dynamically typed languages don’t work either because their source code doesn’t contain enough context.
Re:Tsrs: A Port of TypeScript to Rust by panzi on Tuesday October 20, 2026 @01:26PM (#50169720)
I wonder how fast "Doom in TypeScript" runs in tsrs now. XD
Re:Tsrs: A Port of TypeScript to Rust by dalmo3 on Wednesday October 21, 2026 @02:33PM (#50185492)
How long until Crysis in typescript?
Re:Tsrs: A Port of TypeScript to Rust by jrop on Tuesday October 20, 2026 @02:29PM (#50170594)
What strange times. A few years ago seeing a headline like this, my jaw would have literally dropped. Instead I'm wondering what kind of software projects will have meaning in the future if this headline feels common.
Re:Tsrs: A Port of TypeScript to Rust by sinameraji on Tuesday October 20, 2026 @02:48PM (#50170872)
this is insane! saw a quote tweet of this by an infra engineer at chat gpt who said “ I'm looking at migrating over for the ChatGPT codebase and saw ~70% improvements on both wall time perf + peak cpu/memory usage.

this is great for getting work done faster but also much better if you want to run concurrent agents/worktrees at scale”. https://x.com/feedthejim/status/2112584843368570921?s=46

then i went and tried this on my own open source harness. type checking went from 10 seconds to under half a second and uses a quarter of the memory. madness

Re:Tsrs: A Port of TypeScript to Rust by sashank_1509 on Tuesday October 20, 2026 @03:00PM (#50171048)
I guess it will be soon that typescript won’t matter anymore since agents will be writing code is Rust compiled to WASM or similar for everything. typescript added human readability or JavaScript, if no human is coding, I don’t see the point of wasting tokens on this.
Re:Tsrs: A Port of TypeScript to Rust by hollowturtle on Tuesday October 20, 2026 @03:12PM (#50171245)
> typescript added human readability

Ehm no, added type safety, and dealing with a type checker it's exactly what agents need.

> if no human is coding

Nope outside the bubble there are many still hand coding(me too)

> I guess it will be soon that typescript won’t matter anymore since agents will be writing code is Rust

Oh hold on a second isn't Rust the same as Typescript "adding human readability"?! Why not trashing Rust and just have LLMs output WASM directly? XD Wasm which is basically useless outside the browser or some microvms on the edge, and in the browser you don't even have an interface for directly rendering anything and still have to deal with the dom

You either are highly non technical, very junior or I just don't know

Re:Tsrs: A Port of TypeScript to Rust by fg137 on Tuesday October 20, 2026 @07:34PM (#50174163)
Which language do you write to run code in browsers, especially that can manipulate DOM?

You need a quick reality check.

Re:Tsrs: A Port of TypeScript to Rust by hollowturtle on Tuesday October 20, 2026 @03:07PM (#50171151)
All of this just for enabling the WASM use case? Why not keep supporting Deno then that is written in Rust? To me it just sounds like a technical ai journey and a blow to the go port
Re:Tsrs: A Port of TypeScript to Rust by brazukadev on Tuesday October 20, 2026 @03:25PM (#50171404)
I think it is a response to tsc-ts and scriptc from Vercel. CloudFlare and vercel CEOs have a personal competition going on.
Re:Tsrs: A Port of TypeScript to Rust by sethaurus on Wednesday October 21, 2026 @06:37AM (#50178668)
Deno does not have its own type-checker. The `deno check` command is a wrapper for `tsc`. It will use the Go version if given a flag. The code is not first-party and is not in Rust.
Re:Tsrs: A Port of TypeScript to Rust by ComputerGuru on Tuesday October 20, 2026 @03:32PM (#50171502)
Apparently only supported under darwin and linux for arm64 and x64? At least via npm.
Re:Tsrs: A Port of TypeScript to Rust by egeozcan on Tuesday October 20, 2026 @03:35PM (#50171550)
I think we'll see TypeScript ported to minecraft ported to rust ported to typescript before GTA6.
Re:Tsrs: A Port of TypeScript to Rust by mohsen1 on Tuesday October 20, 2026 @03:56PM (#50171781)
I ran out of patience before models got good enough to get this done.

https://tsz.dev

Congrats to the team on getting this out

Re:Tsrs: A Port of TypeScript to Rust by _sinelaw_ on Tuesday October 20, 2026 @04:10PM (#50171978)
Or we can just drop TypeScript completely and type-check JavaScript directly.

With HM-style type inference, row-polymorphism, sum types, type classes for overloading + operations, recursive types for object methods, and type annotations for edge cases.

I've been working on this since before TypeScript existed. Latest incarnation: https://github.com/sinelaw/inty

Demo: https://sinelaw.github.io/inty/ (you may need to reload once)

Re:Tsrs: A Port of TypeScript to Rust by brazukadev on Tuesday October 20, 2026 @04:38PM (#50172347)
isn't it better to use JSDoc ?
Re:Tsrs: A Port of TypeScript to Rust by _sinelaw_ on Tuesday October 20, 2026 @04:54PM (#50172534)
I assume you mean jsdoc + tsc in js type checking mode (tsc --allowJs --checkJs --strict)?

inty infers more - including generics (parametric polymorphism), while tsc is more of a simpler local inference.

inty is more strict - it accepts less programs than tsc would. This is mostly on purpose (to our benefit) as some of those programs have unsound code like array covariant (downcasting array members of the wrong type). tsc makes it easier to slip through these bugs.

And if tsc + jsdoc is good then the same question remains (do we really need the TypeScript language?)

Re:Tsrs: A Port of TypeScript to Rust by madeofpalk on Tuesday October 20, 2026 @06:23PM (#50173510)
typescript is two things: a language, and a type system.

that same type system exists in the javascript language (jsdoc). doing those type checks is the 'slow' part that makes go / rust appealing. not just stripping types to emit js.

Re:Tsrs: A Port of TypeScript to Rust by yabirgb on Tuesday October 20, 2026 @04:24PM (#50172156)
I wonder if something similar has been attempted with Python. CPython is a project where I don't know how they are taking advantage of AI.
Re:Tsrs: A Port of TypeScript to Rust by LudwigNagasena on Tuesday October 20, 2026 @04:57PM (#50172573)
The problem with Python is that the whole ecosystem is based on CPython’s implementation details, so every change inevitably breaks something and requires effort of package maintainers to fix compatibility. There is no test suite an agent can follow.
Re:Tsrs: A Port of TypeScript to Rust by esafak on Tuesday October 20, 2026 @05:01PM (#50172618)
It's a nit, but do you guys need to embed the TS version in semver? https://www.npmjs.com/package/tsrs?activeTab=versions
Re:Tsrs: A Port of TypeScript to Rust by austin-cheney on Tuesday October 20, 2026 @06:54PM (#50173803)
I use the Typescript compiler to report errors to the shell, but that's it.

Both Bun and Node.js will execute Typescript directly without a compile step. If you are able to write your own front-end bundler then the front-end code also gets the same type stripping from either Bun or Node.js. Since both Bun and Node.js start up my large applications about twice as fast as the Typescript compiler executes I don't see any reason to bother.

Re:Tsrs: A Port of TypeScript to Rust by zarzavat on Tuesday October 20, 2026 @08:42PM (#50174659)
This is like saying you only use your car for transportation, but you don't sleep in it anymore because your bed is more comfortable.
Re:Tsrs: A Port of TypeScript to Rust by fg137 on Tuesday October 20, 2026 @07:32PM (#50174144)
How is EmDash doing?

Never heard the name again after the initial hype.

Re:Tsrs: A Port of TypeScript to Rust by sakesun on Tuesday October 20, 2026 @07:55PM (#50174322)
Re:Tsrs: A Port of TypeScript to Rust by fg137 on Wednesday October 21, 2026 @07:29AM (#50179129)
What does that prove?

I can vibe code my own CMS with one major version update everyday but that means nothing.

Re:Tsrs: A Port of TypeScript to Rust by sakesun on Wednesday October 21, 2026 @10:02PM (#50190255)
Just for you.
Re:Tsrs: A Port of TypeScript to Rust by simplesocieties on Tuesday October 20, 2026 @08:00PM (#50174356)
AI isn't improving productivity if EVERYONE is trying to reinvent the same f*king thing. What are we doing here? Why publish any open source software at all if someone is gonna swoop in and vibe something better™ faster™ and more memory efficient™ the next day?
Re:Tsrs: A Port of TypeScript to Rust by oersted on Tuesday October 20, 2026 @10:01PM (#50175163)
Just like science, open-source is a collective effort to build increasingly better solutions to the problems we have. We cannot ignore individual benefits in contributing, but that is not everything. It’s about collaborating/competing to build better things, standing on each other’s shoulders.
Re:Tsrs: A Port of TypeScript to Rust by simplesocieties on Tuesday October 20, 2026 @10:23PM (#50175294)
Just to put everything in perspective, I recognize fully that Cloudflare had a use case for tsrs with WASM sandboxing. I am addressing your larger point about this sort of thing becoming the norm.

> We cannot ignore individual benefits in contributing, but that is not everything.

Individual benefits are the very foundation of most collaborative efforts. Pharmaceutical companies get payouts via patents for researching life-saving medicine. Even with money taken out of the equation, many academics slave for years over their research in hope of recognition either via Tenure or Nobel Prize. Ignoring the fact that people want credit for their work is dangerous and irresponsible.

Forking projects that are near-complete or have already undergone major refactors just to snipe them last-minute with vibe coded efforts is going to kill collaboration. I'm never building another project in the open again because that is precisely what I'm aiming to avoid.

Re:Tsrs: A Port of TypeScript to Rust by vips7L on Tuesday October 20, 2026 @11:54PM (#50175901)
Faster ™ doesn’t matter
Re:Tsrs: A Port of TypeScript to Rust by throw567643u8 on Tuesday October 20, 2026 @11:38PM (#50175791)
I'd love to hear from a Rust programmer on the human readability of the Rust code produced in this port.
Re:Tsrs: A Port of TypeScript to Rust by weinzierl on Wednesday October 21, 2026 @04:05AM (#50177475)
"[..] that a lot of the speed does not just come down to language choice, and some of what is going to make TS 7.1 faster and leaner [..] actually comes from optimizations discovered in tsrs."

If the improvements were discovered by porting to a different language they very much come down to language choice (even if they can be implemented in the source language of the port).

The "fearless ..." mottos of Rust are not hyperbole but a serious point. They allow you (and the LLM) be brave with optimizations.

Re:Tsrs: A Port of TypeScript to Rust by ninalanyon on Wednesday October 21, 2026 @05:26AM (#50178023)
I wonder if I'm the only one to see Tsrs and immediately think of Terminate and Stay Resident?