News for hackers. Stuff that matters.
Re:A 10x Faster TypeScript by prisenco on Tuesday March 11, 2025 @11:27PM (#43339690)
| with no frills.

People say this like it's a bad thing. It's not, it's Go's primary strength.

Re:A 10x Faster TypeScript by j-krieger on Wednesday March 12, 2025 @02:22AM (#43340424)
Yes. For Webservers. Not for compilers. I wrote a bunch of compilers, and Go is not a language I would choose for this.
Re:A 10x Faster TypeScript by bilekas on Wednesday March 12, 2025 @03:25AM (#43340673)
Go is exceptionally fast for a transpiler. Esbuild is a great example.. Rust would offer any significant gains vs adoption for support.
Re:A 10x Faster TypeScript by 9rx on Wednesday March 12, 2025 @03:09PM (#43346640)
Unless, of course, you are not working on a greenfield project and instead are porting an existing compiler from Typescript, in which case Go is the language you would choose as it is the language that most closely resembles Typescript, allowing ease of bulk conversion by script. The same reason why it was chosen for Typescript.
Re:A 10x Faster TypeScript by j-krieger on Thursday March 13, 2025 @09:25AM (#43353093)
I read that response and I agree entirely! Porting Js to Rust isn’t feasible. I love Rust but it’s good to know your constraints.
Re:A 10x Faster TypeScript by whattidywhat on Wednesday March 12, 2025 @07:19AM (#43342040)
I can see the appeal. Not having to write C# style oop probably gave the team a huge productivity boost. I bet it compiles hundreds of times faster making the team, cicd, and dev efforts substantially more productive. Cohesive integrated modern tooling is also a huge plus. Project structure is considerably simpler... I am not really a go fan but I would chose it over c# in a majority of cases as well.

I think they missed out by not going with Rust. It seems like the social factors weighed out. Probably hard to quickly assemble a rust team within msft. Again though that makes Go a practical choice. I don't see why people are so confused by it. Go is a pretty widely used and solid choice to get things done reliably and quickly these days.

Re:A 10x Faster TypeScript by commandersaki on Wednesday March 12, 2025 @08:14AM (#43342414)
The reason they didn't do Rust is because it was faster and more reliable to port the compiler and Go was a strong match particularly because of struct layout, types, concurrency, etc. but most importantly because it was native code with automatic garbage collection which Rust simply doesn't have. There's a video of Anders talking specifically about this.
Re:A 10x Faster TypeScript by whattidywhat on Wednesday March 12, 2025 @08:21AM (#43342451)
The automatic gc doesn't seem like an actual deal breaker though. They probably just didn't want to redesign a bunch of data types that assumed one existed.

I'm not arguing saying they made a bad call. I think what they did was smart with the options in front of them and whatever budget they have. The world isn't good for idealism, but it ideally could have been written in rust in my opinion.

Re:A 10x Faster TypeScript by commandersaki on Wednesday March 12, 2025 @09:01AM (#43342755)
> it ideally could have been written in rust in my opinion

What exactly would that buy and would the outcome matter much?

In my opinion: pragmatism > idealism.

Re:A 10x Faster TypeScript by Imustaskforhelp on Wednesday March 12, 2025 @09:51AM (#43343256)
exactly , it sounds as if he is entitled to rust software.

Golang is generally very fast and simple as well , the only problem is of memory allocation / garbage collector overhead but the benefits outweigh the loss.

Re:A 10x Faster TypeScript by whattidywhat on Wednesday March 12, 2025 @01:00PM (#43345286)
I do like rust and like I said, ideally in my opinion. I also did say choosing go was more pragmatic. We are on the same page believe it or not.
Re:A 10x Faster TypeScript by zveyaeyv3sfye on Wednesday March 12, 2025 @10:20AM (#43343548)
> They probably just didn't want to redesign a bunch of data types that assumed one existed.

Dude, just read the article being discussed, this is addressed so you can just stop making shit up.

The audacity of people like you to just keep adding speculations upon speculations on a subject without even bothering to learn what is being discussed.

Re:A 10x Faster TypeScript by whattidywhat on Wednesday March 12, 2025 @01:01PM (#43345312)
Yes they said there were issues with cyclic data structures. Not really speculating just wrote it funny. I get why they chose what they did and even said I agree with it.
Re:A 10x Faster TypeScript by Imustaskforhelp on Wednesday March 12, 2025 @09:50AM (#43343244)
Dude not all things have to be written in rust just for the sake of it.

Rust is really hard , compared to golang. This can increase outside contributors as well.

Golang is love , Golang is life.

Re:A 10x Faster TypeScript by zveyaeyv3sfye on Wednesday March 12, 2025 @10:18AM (#43343531)
> I think they missed out by not going with Rust. It seems like the social factors weighed out.

They absolutely address this in the linked article, so why are we even speculating here?

> Probably hard to quickly assemble a rust team within msft.

The same MSFT that is rewriting their Windows OS in rust as we speak? I think you should stop commenting when you don't know anything about the subject.

Re:A 10x Faster TypeScript by oldmanhorton on Wednesday March 12, 2025 @10:28AM (#43343630)
Saying that Microsoft is "Rewriting Windows in rust" suggests you might not be as informed as you think... Very specific components with history of performance or security issues are getting ported in a very uncoordinated effort. Windows will be primarily C, C++, and C# for a very long time to come
Re:A 10x Faster TypeScript by whattidywhat on Wednesday March 12, 2025 @01:04PM (#43345333)
Also those are two different skill sets. Writing critical sections of an OS is not the same thing as writing a compiler. And completely agree, windows to what I have read, is being deliberate and isn't doing a total rewrite at all. Thanks for chiming in so I could type less.
Re:A 10x Faster TypeScript by za3faran on Thursday March 13, 2025 @01:01AM (#43350529)
> Not having to write C# style oop probably gave the team a huge productivity boost.

I wrote a lot of Go code as well as Java. When people say things like this, I'm not quite sure what exactly they are referring to. No one is forcing you to write mutli-level deep inheritance hierarchies in Java/C#, and Go itself is OOP. Structural typing has its issues as well. Where does this supposed inherent productivity boost lie?