News for hackers. Stuff that matters.
Re:Deno 1.9 by remexre on Tuesday April 13, 2021 @04:12PM (#26798538)
Well, Deno's not really a framework, it's a runtime (like node.js). If you're writing Typescript, it makes that way easier. If you're doing lots of IO, it makes that easier (promises). If you want sandboxing, it has that (though if it's for server software, you should use firejail or Docker or something around it anyway).
Re:Deno 1.9 by devmunchies on Tuesday April 13, 2021 @04:16PM (#26798602)
does it interop with libs made for node.js and are on npm? e.g. using the official the AWS node.js library
Re:Deno 1.9 by brundolf on Tuesday April 13, 2021 @04:17PM (#26798625)
It doesn't load libs from NPM directly, it has its own package management system based around URLs. Most JavaScript/TypeScript logic should port to it trivially, unless they use system APIs, in which case those will have to be converted to Deno's system APIs. But mostly that just comes down to "swap out function X for Y and rearrange the parameters a bit".

So in practice: it's super easy to port something, but most of the time you do actually have to port it, unfortunately.

Re:Deno 1.9 by wperron on Tuesday April 13, 2021 @04:19PM (#26798659)
The canonical answer is _maybe_. If your Node lib relies on Node built-ins, you won't be able to import it directly from GitHub for example. However, CDNs like Skypack and esm.sh do polyfill some of those to Deno. Your mileage may vary depending on the lib you're trying to import. Some will work better on one CDN, some on another -- you really just have to try it for yourself. A surprising amount of libs work without issues.

The AWS sdk v3 works really well from Skypack, check out our docs for our Deploy platform, it has an example with DynamoDB https://deno.com/deploy/docs/tutorial-dynamodb#write-the-app...

Re:Deno 1.9 by remexre on Tuesday April 13, 2021 @04:19PM (#26798649)
Can't comment on sibling, but https://www.skypack.dev/ lets you import many npm packages; I haven't tried the AWS library, though.
Re:Deno 1.9 by brundolf on Tuesday April 13, 2021 @04:20PM (#26798668)
That looks pretty cool; it's unsurprising that there's an automated solution since the differences are so small and predictable

Edit: Does this do automated conversion? I can't actually tell

Re:Deno 1.9 by remexre on Tuesday April 13, 2021 @06:02PM (#26799915)
Yes, it's automated.