by dmitriid · 5y ago · 0 comments
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.
Which url? How do I find this URL? What happens when that package specified dependencies?
> You can always explicitly vendor dependencies
How? Manually? By scraping urls?
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.
https://news.ycombinator.com/item?id=28284930
> By decentralizing the package hosting.
These are empty words that literally mean nothing. The rest is at the link so as not to have the same conversation in several places.