News for hackers. Stuff that matters.
Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by honkycat on Saturday November 06, 2021 @03:36PM (#29133157)
Deno is such a nice little scripting tool. I've been using it for devops glue and scripts lately.

Native typescript, easy-as-pie dependency management. its great!

Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by 29athrowaway on Saturday November 06, 2021 @11:02PM (#29136173)
Personally I do not like the fact that it puts too much trust into DNS.

DNS wasn't created with security in mind, so to say Deno is secure because it uses a permissions system while relying directly into DNS for imports to me sounds weird.

Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by koprulusector on Sunday November 07, 2021 @01:41AM (#29137109)
How is this any different than any other package management system? If you npm or pip install a package and import it, you’re still relying on DNS to resolve pypi or npmjs.

But with deno, if you’ve just accidentally installed some malicious squatters’ package that mimics the one you meant to use, at least you’ve got less exposure because the malicious code won’t necessarily have blanket permissions to make network calls, read files, etc. virtually any other language/package management system cannot say the same.

deno will download and cache the dependencies you import, they’re right in the project folder vs buried in a sea of node_modules. It’s super convenient to look at and inspect, if there’s any doubt or idle curiosity.

Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by simonw on Saturday November 06, 2021 @11:20PM (#29136269)
It's not just DNS, thankfully - deno.land has a TLS certificate too, which I think means that DNS exploits wouldn't succeed in causing clients to install untrusted packages.
Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by IshKebab on Sunday November 07, 2021 @09:30AM (#29139694)
It uses https. Are you not satisfied that that is reasonably secure?
Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by IshKebab on Sunday November 07, 2021 @09:32AM (#29139709)
I agree - also rock solid IDE support helps. It's really lightyears ahead of any other scripting options (Bash, Python, etc.)
Re:Deno Deploy Demo: a multi-datacenter chat, client+server ... by andyfleming on Saturday November 06, 2021 @08:42PM (#29135311)
Do you have any libraries you use often with scripts or mostly just deno built-ins?