546
you are viewing a single comment's thread
view the rest of the comments
[-] ObsidianBlk@lemmy.world 28 points 1 year ago

My issue with typescript... and, correct me if I'm wrong... is it doesn't exist without Javascript. Typescript needs to be compiled down into Javascript to be run. It has no stand alone interpreter (that I'm aware of) and definitely not one baked into web browsers or NodeJS (or adjacent) tools. In essence, Typescript is jank sitting on top of and trying to fix Javascript's uber jank, simultaneously fracturing the webdev space while not offering itself as a true competitive and independent language for said space.

That's my amateur two cents for what it's worth.

[-] lily@shinobu.cloud 9 points 1 year ago

Just fyi, while they don't help with running TS in the browser, the Bun and Deno runtimes both natively run TS without any compilation.

[-] severien@lemmy.world 2 points 1 year ago

That's not true, deno compiles TypeScript to JavaScript, it just does it transparently. The code still runs on v8.

[-] brian@programming.dev 1 points 1 year ago

V8 also doesn't run js, it does some byte code compilation stuff amongst other things, then interprets that. But that's all a bit pedantic too, V8 runs js, deno runs ts.

fwiw https://deno.com even has as one of their first bullet points that they have "native support for TypeScript and JSX"

[-] severien@lemmy.world 1 points 1 year ago

Sure, but part of the claim was "without any compilation". But bun/deno do compile TS into JS.

load more comments (21 replies)
this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

19187 readers
1493 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS