r/typescript • • May 13 '20

Deno 1.0 Released

https://deno.land/v1
252 Upvotes

22 comments sorted by

64

u/CodeToLiveBy May 13 '20

He finally fucking did it... I swear I have nothing but respect for this guy and all the shit he's pulled through to make this happen. Bra-fucking-vo 🤘

11

u/[deleted] May 14 '20

Is this just a single persons project?

27

u/sudokys May 14 '20

not just him, but a lot was him. He also created NodeJS.

35

u/McSlurryHole May 14 '20

I for one am looking forward to eond, his third project, for when he decides he doesn't like how he built deno.

10

u/TheScapeQuest May 14 '20

Deno is Node shifted by 2, so if the trend continues, the sequel to Deno will be... Node.

5

u/[deleted] May 14 '20

Crazyyyy

0

u/[deleted] May 14 '20

[deleted]

5

u/[deleted] May 14 '20

I wish I were smart enough to create a language for funsies

9

u/BAM5 May 14 '20

He didn't create a language, he created a great environment and apis for an already existing language (javascript / typescript) to use.

-1

u/Incraigulous May 14 '20

I know right?

10

u/[deleted] May 14 '20

A little disheartening to see that the performance lags and the only way out is to reimplement typescript in Rust. A separate implementation will always trail the official releases, maybe even by years.

11

u/cspotcode May 14 '20

I think they should not try to reimplement the type-checker, and just go for ts->js transformation. That's going to be so much easier, and they stand a chance of keeping pace with the official compiler.

9

u/olanod May 14 '20

Since Microsoft is now a Rust lover maybe they will support the Rust port directly?

2

u/dread_deimos May 14 '20

Can you give an example of Microsoft love for Rust? I've found this with a quick search.

4

u/olanod May 14 '20

I think it started with this https://msrc-blog.microsoft.com/2019/07/16/a-proactive-approach-to-more-secure-code/ from there I've seen several times news of Microsoft doing something Rust related https://msrc-blog.microsoft.com/tag/rust/ and their github https://github.com/microsoft?q=&type=&language=rust

2

u/sharlos May 14 '20

Also seems like porting it to Rust would be less portable if they're essentially making their own version of V8 but for typescript. Something like that could be used in lots of places, not just Rust.

1

u/cspotcode May 14 '20

Where and who is making their own v8 for TypeScript? I haven't heard that anywhere. Deno is using v8. And I assume a rust port of TS could be run both in a native binary and as WASM on top of node or v8.

1

u/sharlos May 15 '20

I guess I must have misunderstood what they meant by rewriting the typescript compiler then. Are they just converting everything to JavaScript behind the scenes instead of parsing the typescript directly?

2

u/cspotcode May 15 '20

Ah, yes, they converting to JavaScript. I think they're being smart about caching the results, but for any changes to a file, they still need to parse it and emit to JavaScript using the TypeScript compiler.

swc is a Typescript -> JavaScript compiler written in Rust, but it doesn't perform typechecking. Typechecking is way tougher because files typically cannot be considered in isolation. Type info in one file affects the semantic validity of others. Plus, it relies on inference. So if type inference in the official compiler gets better, it may cause semantic errors to appear or disappear.

9

u/[deleted] May 14 '20

Nice, just in time that we're doing a proof-of-concept project. May be a good time to try Deno

18

u/NathanSMB May 14 '20

The standard library hasn't reached 1.0 yet. I think that will be a bigger milestone than the runtime hitting 1.0. Been playing with Deno the last few days and one of the things I've noticed is most 3rd party packages are broken in some way or another since STD is still changing quickly.

4

u/[deleted] May 14 '20

Only thing heavier I know than black hole is 'node_modules' directory. I'm going to try this!

1

u/techiekram Jul 09 '20

Join r/Deno for Deno related discussions