Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
1–10 of 115 posts
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#2EDIT: Sucrase! That’s what I was thinking of:
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#3Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#4Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#5What is ‘deno code’?
He had a great talk [2] about the lessons he learned when creating/maintaining NodeJS. Many of these lessons are being applied to Deno.
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#6Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#7It sounds like they are discussing the central code runner of deno. I would have expected this to be compiled to JS in any case, but it seems like they are compiling the runner, then compiling user code. Of course that's slow. It's also not representative of a normal TS use case, which is unfortunate because I expect we'll see this discussion shared all over the web as an argument for dropping TS.
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#8It's like them running the TypeScript compiler to generate one large JS file and using that intermediate as what people build against instead of the original TypeScript source. I'm not sure if this is what they're actually doing (or if they're somewhat manually doing the equivalent of it), but as a hopefully short-term workaround that allows them to solve the problems, that doesn't seem too bad (but it does possibly highlight some TypeScript problems).
Even if they actually move to a large core JS file that is the active development target, as long as they keep track of the TypeScript specifics (and don't code themselves into a corner assuming something works that they find much later errors), it may not necessarily be hard to go back to TypeScript from that (possibly with a lot of it automated with a lot of structured comments).
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#9This doesn't seem all that odd. I read this as a temporary solution to the fact that there's some real problems that TypeScript causes for the way their project is laid out and used with regard to certain types of introspection (noting duplicate classes) and performance (it's damn slow). It's like them running the TypeScript compiler to generate one large JS file and using that intermediate as what people build again…
To me this reads more like a list of issues in the deno architecture, and how they integrated TypeScript, than any issue with TypeScript itself.
Re: Design Doc: Use JavaScript instead of TypeScript for internal Deno Code
#10JS engines should be able to ignore TS annotations, out of the box. https://github.com/samuelgoto/proposal-pluggable-types