by ecmascript · 5y ago · 0 comments
- Follows the ecmascript standard and supports browser apis
- No npm, no Microsoft lock-in
- So far, no political bs like node has had
You still need packages
> no Microsoft lock-in
Does Deno implement its own TypeScript compiler? Even if it does, it's entirely at the mercy of Microsoft who are the only ones who develop Typescript specs.
Which you import just like you would in a browser.
> Does Deno implement its own TypeScript compiler?
Deno is a JS engine that aims for maximum compatibility with browsers.
While not exactly a second class citizen, losing Typescript (if it comes to that) is something the platform can survive. Ryan is on record saying that adding Typescript support at a very early stage was probably a mistake.[1]
Import them from where?
Also, if I have more than 10 packages, it makes sense to bundle them
> While not exactly a second class citizen, losing Typescript (if it comes to that) is something the platform can survive.
That is not what I asked/pointed out
A url. The files are cached. You can always explicitly vendor dependencies and use relative imports (or import maps) if you don't want to rely on random urls.
> Also, if I have more than 10 packages, it makes sense to bundle them
And Deno has a built-in bundler.
Yes but with ES modules you can just import them straight into the code and there is really no need for a package manager.
> Does Deno implement its own TypeScript compiler? Even if it does, it's entirely at the mercy of Microsoft who are the only ones who develop Typescript specs.
This may be somewhat true. However I am not using typescript so I am not really sure about this.
My point is not really tied to the language typescript which I am sure will continue just fine. What I am much more worried about is all the packages hosted on npm. At any time Microsoft could do something to restrict it in ways I can't control. Highly unlikely that something extreme will happen perhaps, but I don't trust Microsoft enough.
For example, I could easily see them forcing everyone to use github for node packages in the future etc.
"Just import them". From where?
> What I am much more worried about is all the packages hosted on npm. At any time Microsoft could do something
So, how does deno help?
> So, how does deno help?
By decentralizing the package hosting.
What limitations have you run into?
Yes.
> What limitations have you run into?
Libraries that exist for node that can't easily be ported over that don't yet exist for Deno. But that is basically it. In the beginning it was a bit hard to keep up with the rapid changes as well but that seems like a positve thing anyway.