← Back to context

Comment by udhghhe

3 days ago

There are architectural concerns. Even when Rust proponents and cultists try to harass unrelated projects into submission, as they are wont to do.

https://github.com/microsoft/typescript-go/discussions/411

TS decision to choose Go was primarily, because they could take the existing code and do a near 1-1 translation. You can frame that as an architectural concern, but it's really only one that applies when your attempting to migrate an existing program to a new language. The Go rewrite has some negative outcomes as well, most concerning is the performance of the WASM builds is worse than the old JS/TS version.

A TS compiler from scratch built in Rust would be fine.

> cultists

The cult is in your imagination.

  • Not your parent commenter but:

    > You can frame that as an architectural concern...

    "Go also offers excellent control of memory layout and allocation (both on an object and field level) without requiring that the entire codebase continually concern itself with memory management."

    "The TypeScript compiler's move to Go was influenced by specific technical requirements, such as the need for structural compatibility with the existing JavaScript-based codebase, ease of memory management, and the ability to handle complex graph processing efficiently. "

    If memory management and ability to handle complex graph processing efficiently isn't related to architecture to you I don't know what to tell you.

    [0] https://github.com/microsoft/typescript-go/discussions/411

    > The cult is in your imagination.

    CTRL+F "rust" on the Go issue and see how many results you get. 31 for me and that's before expanding spam.

    • > If memory management and ability to handle complex graph processing efficiently isn't related to architecture to you I don't know what to tell you.

      Rust can do complex graph processing, as well as efficient easy memory management, but it's going to do it in a different structure than a GCed lang would. Hence my statement that 1 to 1 translation was the primary factor.

      > CTRL+F "rust" on the Go issue and see how many results you get.

      Yes and so what? There's 35 for .NET or 74 for C#, yet you don't see people claiming the C# cult was harassing the TS team.

      4 replies →