TypeScript has SWITCHED to Go Lang 💻 #software #coding #tech #javascript #programming

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Twitter be like:
Why not use rust + Haskell + Cpp + C + assembly

TheCommunistRabbit
Автор

They choose the best language for that use case without any bias. Props to them.

keithframe
Автор

Now they need to make a Python version so you have time to make some coffee while waiting for compilation

overbored
Автор

Anders Hejlsberg explained both. They needed language with garbage collection for easier port, so Rust was off. They also needed multi-platform native binary compilation, but C# is IL first language, with relatively new native compilation support.

nenadvicentic
Автор

They justified it in the presentation, idk why people are complaining about it.

clowesydan
Автор

In fact the compiler code is not even translated by human from typescript to Go, it is mostly just a script

sonychandel
Автор

We should rewrite it in assembly for Nokia N-Gage.

konoko-oo
Автор

They're so similar (as they both use structural typing) that they just used a script to transform from TS code to Go code. Whereas if they had gone for one of the nominally typed languages (like Rust, C#), it would have required them to do a ground-up rewrite (which could have taken years). Whereas with the Go version it's already running and they think it will be fully ready in less than a year

yewo.m
Автор

"Why didn't they use C#" has the same energy of "Why didn't you screw those boards together with a hammer?"

mightygingercles
Автор

Funny how go is having this mini revival lately

romangeneral
Автор

people really gloss over the point about how TypeScript uses acyclic types which are illegal in Rust, which would require a whole new type design

Skuiggly
Автор

Programmers are so annoying just let them use whatever is best for their use case, you’re not on their team stop saying everything needs to be written in your fav lang or the fastest lang. is using rust for a slight speed boost over go for a project where security isn’t an issue a good idea when the team can work much faster and have a much more main-table codebase by just using go? I don’t think so. I love rust and its very well designed but lets be honest when the project doesn’t require the upmost of memory safety and performance I would honestly rather use go (especially for async stuff) over rust cause it’s just so much easier and nicer to use

dubstepaztec
Автор

bruh 5 mins ago and a prawn bot is already attacking. yt is a mess 💀

cmaxz
Автор

Last point really nails why they chose Go over Rust or C#

harshanawijesinghe
Автор

Its a massive W because they didnt use Rust

peacefuldeityspath
Автор

Microsoft created TypeScript, Google created Angular on top of it, which Microsoft uses in most of its product.
Google created Golang, so now this was the time for Microsoft to pay back by utilizing go.
Moreover, finding Rust devs might be hard since you need to maintain this for decades. And with Speed and rapid adoption of go by devs, this was genius move.

zilaidawwab
Автор

Go's syntax is actually a good reason ngl

lpbigfish
Автор

Faster compile times to test changes would make TS less painful to use. My world is all APIs and Py server side rendered websites if any are needed so I only sometimes use a little vanilla JS to drive forms. This sounds like a sweet gift to people like React devs.

eltreum
Автор

I didn't even know typescript was using a self hosted compiler

jpegxguy
Автор

Folks forget that C# depends on an entire VM

gabriberthier