Skip to content

Why is so much of Deno written in JS/TS? #9185

Answered by kitsonk
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

I had assumed that some constructs would be harder to write in JavaScript than Rust.

A bad assumption in my opinion. Having done some of the big APIs in Deno, I can assure you it is a lot easier in JavaScript.

stuff like "JavaScript prototype manipulation," can break a JS implementation of anything,

It can, but if we were really worried about that we would grab references to those globals when the code innited. So there are ways to address this. @bnoordhuis has mentioned this in passing and we have discussed freezing intrinsics before, but why take that tool out of users hands plus cause web compliance issues. I am just not sure this is more of a worry. Streams does now do some of thi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant