News for hackers. Stuff that matters.
Re:I’m porting the TypeScript type checker tsc to Go by jkelleyrtp on Tuesday January 25, 2022 @03:20PM (#30077486)
TSC doesn't need to "stick around", right? Just a run-once and the program is over?

In those cases, https://github.com/fitzgen/bumpalo works amazingly as an arena. You can pretty much forget about reference counting and have direct references everywhere in your graph. The disadvantage is that it's hard to modify your tree without leaving memory around.

We use it extensively in http://github.com/dioxusLabs/dioxus and don't need to worry about Rc anywhere in the graph/diffing code.

Re:I’m porting the TypeScript type checker tsc to Go by anonymousCar on Tuesday January 25, 2022 @03:39PM (#30077709)
I think --watch mode means it's running while developing
Re:I’m porting the TypeScript type checker tsc to Go by connor4312 on Tuesday January 25, 2022 @03:52PM (#30077858)
Additionally, the language server used to power editors is long lived. TypeScript isn't just the compiler.