5 ms·
No we didn't?! Where did you get this info from? Deno is made to work with TypeScript out of the box. The Deno Standard Library is written in TypeScript: https:
by lucacasonato 6y ago
No we didn't?! Where did you get this info from? Deno is made to work with TypeScript out of the box. The Deno Standard Library is written in TypeScript: https://deno.land/std https://deno.land/std. Most userland modules are TypeScript too.
- threatofrain 6y agoWasn't a TypeScript runtime the original Deno selling point? Didn't the project have to pivot away from that?
- Soremwar 6y agoThey had to remove it from the Deno build process so Deno internals didn't need a compiler. However TypeScript support remains untouched and receives constant updates
- lucacasonato 6y agoNo. Nothing has changed about Typescript support since 1.0. It is just as well supported as JS. We never removed support...
- threatofrain 6y agoSo Deno is still committing to TS runtime?
- rhencke 6y agoY E S
- lucacasonato 6y agoHeck yeah
- threatofrain 6y agoI don't know where I got so misinformed. I thought Deno had stopped going for a TS runtime.
- rhencke 6y agoUnfortunately, the words "Deno", "TypeScript", and "removal" made for good headline material, and what was effectively a design document about performance optimization[1] became misinterpreted by many as heralding the removal of TypeScript from Deno, despite the document being updated with a explanatory warning that it was a very deep technical document about a specific part of architecture, and that Deno remains completely committed to supporting TypeScript forever. 1: https://docs.google.com/document/d/1_WvwHl7BXUPmoiSeD8G83JmS8ypsTPqed4Btkqkn_-4/preview?pru=AAABcrrKL5k*nQ4LS569NsRRAce2BVanXw https://docs.google.com/document/d/1_WvwHl7BXUPmoiSeD8G83JmS...
- forty 6y agoWas does a TS runtime means anyway? Doesn't checking types at run time rather than at compile time a pure loss?
- barry27 6y agoright. "typescript runtime" is nonsense.
- threatofrain 6y agoNo, because TS hints should also be able to translate to runtime savings. I do find the messaging to be confusing, because what would you think I meant if I talked about the runtime of Elixir or Scala? This is the marketing line on the front page of the Deno project: > A secure runtime for JavaScript and TypeScript. They are using the same term "runtime" to describe JS as well as TS. All replies here by Deno team members use the language "Typescript support" but nobody here is saying TypeScript runtime.
- asiachick 6y agoI feel like people are talking past each other here. To me "TypeScript runtime" means running TypeScript in a mode that runs faster than JavaScript by actually using the type info to generate better machine code. It does not mean translating to JavaScript at runtime and running in V8. For example at one time there was an experimental version of Chrome that had a Dart Runtime. A quick google finds this HN thread when they decided NOT to have a dart runtime https://news.ycombinator.com/item?id=9264531 https://news.ycombinator.com/item?id=9264531 So can we get clear? Does Deno plan to execute TypeScript natively (not via V8 or via a heavily modified V8) or are the plans to continue compiling TypeScript to JavaScript internally and actually just run JavaScript
- threatofrain 6y agoThat's what I understood as well, and now I'm confused at the messaging.
- deleted 6y ago[deleted]
- pocketgrok 6y agoI don’t remember “TS runtime” as you’re meaning it ever being pitched. I don’t think Ryan would consider that in scope for Deno unless MS wanted to collaborate on it.
- threatofrain 6y agoI do find the messaging to be confusing, because what would you think I meant if I talked about the runtime of Elixir or Scala? This is the marketing line on the front page of the Deno project: > A secure runtime for JavaScript and TypeScript. They are using the same term "runtime" to describe JS as well as TS. All replies here by Deno team members use the language "Typescript support" but nobody here is saying TypeScript runtime.
- not_knuth 6y agoIf it helps, I think this is the main source of misinformation: https://startfunction.com/deno-will-stop-using-typescript/ https://startfunction.com/deno-will-stop-using-typescript/ It featured on HN some time back: https://news.ycombinator.com/item?id=23592483 https://news.ycombinator.com/item?id=23592483
- threatofrain 6y agoI do find the messaging to be confusing, because what would you think I meant if I talked about the runtime of Elixir or Scala? This is the marketing line on the front page of the Deno project: > A secure runtime for JavaScript and TypeScript. They are using the same term "runtime" to describe JS as well as TS. All replies here by Deno team members use the language "Typescript support" but nobody here is saying TypeScript runtime.
- not_knuth 6y agoI can understand where the confusion comes from, but I think it's a matter of context. I would never have thought that they would want to build a runtime that runs TS directly. The effort would just be insane. Hence the implied step that TS needs to first be transpiled to JS before getting executed in the runtime was always in the back of my head and I'm guessing this is the way most people think as well. And from a black-box perspective, whether TS first gets transpiled to JS or run directly doesn't make a difference. In that sense one could argue that it is a "TS runtime". This is a petty semantics-fight I don't want to get into though and I've probably already said too much :). If you are interested in something that gets close to a TS runtime though, have a look at AssemblyScript [0]. It compiles to WASM and tries to keep most of the syntax of TS. Very interesting project imo.