zlacker

[parent] [thread] 5 comments
1. Tade0+(OP)[view] [source] 2026-02-07 09:26:34
> In JS, you have the Node / Deno split,

You do? Deno is maybe a single digit percentage of the market, just hyped tremendously.

> E.G. compare tsx versus Node's native ts execution

JSX/TSX, despite what React people might want you to believe, are not part of the language.

> which only work if you pray three times on the day of the full moon.

It only doesn't work in some contexts due to legacy reasons. Otherwise it's just elaborate syntax sugar for `Promise`.

replies(2): >>Kerric+S1 >>mcinty+u2
2. Kerric+S1[view] [source] 2026-02-07 09:59:53
>>Tade0+(OP)
> JSX/TSX, despite what React people might want you to believe, are not part of the language.

Similarly: TypeScript, despite what Node people might want you to believe, is not part of the JavaScript language.

replies(2): >>pjmlp+T5 >>Tade0+d8
3. mcinty+u2[view] [source] 2026-02-07 10:10:20
>>Tade0+(OP)
> JSX/TSX, despite what React people might want you to believe, are not part of the language.

I think you misunderstood this. tsx in this context is/was a way to run typescript files locally without doing tsc yourself first, ie make them run like a script. You can just use Node now, but for a long time it couldn’t natively run typescript files.

The only limitation I run into using Node natively is you need to do import types as type imports, which I doubt would be an issue in practice for agents.

replies(1): >>Tade0+S8
◧◩
4. pjmlp+T5[view] [source] [discussion] 2026-02-07 11:04:00
>>Kerric+S1
People have to look into Typescript as a JavaScript linter and a babel replacement, nothing else.

In fact, the team has back pedaled into trying to make its own thing like in the early days.

◧◩
5. Tade0+d8[view] [source] [discussion] 2026-02-07 11:35:20
>>Kerric+S1
Yes. As pointed out by someone else I misunderstood and it's the other tsx they were talking about.

I've always used ts-node, so I forgot about tsx's existence, but still those are just tools used for convenience.

Nothing currently actually runs TypeScript natively and the blessed way was always to compile it to JS and run that.

◧◩
6. Tade0+S8[view] [source] [discussion] 2026-02-07 11:42:03
>>mcinty+u2
Yes, thank you for pointing that out. Forgot that there's a another thing named "tsx" out there.

I wouldn't call it running TS natively - what they're doing is either using an external tool, or just stripping types, so several things, like most notably enums, don't work by default.

I mean, that's more than enough for my use cases and I'm happy that the feature exists, but I don't think we'll ever see a native TypeScript engine. Would have been cool, though, considering JS engines define their own internal types anyway.

[go to top]