Yeah. Awesome. Are there any collaborations planned between the Node team and like Bun or Dino for running TypeScript code? Do you talk with them about this kind of stuff at all? Not really. But if you work at Bun or Dino, we can talk. That's cool. Yeah. All right.
At what point? Is there a chance, is there a point where it's going to be possible to run any valid TypeScript app directly in Node? That is, without changing input statements, without removing your enums? I don't think so, because the subset of syntax that we decided to support is smaller. TypeScript gives you a lot of configuration, you can do all sorts of unholy kind of syntax, like import requires stuff that we cannot support, because that requires transformation, requires configuration, extensions, less imports, many things that we don't like. Our TypeScript implementation is JavaScript with types, and that's it. So whatever you're doing already in Node, plus types. Yeah, nice.
Yeah. I think it's actually fairly... With the flag in TypeScript, where you can say only use the strippable stuff, I think that is a good subset of TypeScript to pick up on and use. And it gives you those guardrails to make sure you're going to do things right for Node, and that you're not using enums, which most people don't seem to like. Exactly. All right, this is good. Okay. What's the biggest challenge that you had in implementing this? The biggest challenge was getting consensus. So it was not technically challenging, but getting consensus on landing this, it was wild, because people have different opinions. I got a lot of hate from social media like, oh no, this is not real TypeScript, and this is bullshit, but then people saw the value of type stripping, and then they became supporters, and they liked it. So was it the most upvoted and most downvoted issue? Not the most downvoted, but the most... Nice. Yeah. That's good. No, I mean, that seems... That points to a greater challenge in open source work on major projects anyway, is consensus and building that between people who want this stuff. Yeah. There's so much more to programming than there is just programming. Okay.
Comments