Top
Best
New

Posted by roflcopter69 8 hours ago

Deno 2.8(deno.com)
208 points | 94 commentspage 2
orf 8 hours ago|
The release post for v2.8 is not yet published. Check GitHub releases page for the latest release status of Deno.
Curosinono 3 hours ago||
I don't get it why the hell is TypeScript still not nativly supported in modern browsers?
vmg12 3 hours ago||
Likely because everybody would still strip types, bundle and minify their typescript code anyway.
yoyohello13 2 hours ago|||
My gripe is why doesn't Webassembly fully support dom manipulation. If we got that working anyone could just bring any language to the browser and we would finally be free from the shackles of JS.
WorldMaker 3 hours ago|||
Because standardization is a political process that takes time and consensus to achieve?

https://github.com/tc39/proposal-type-annotations

hollowturtle 3 hours ago|||
Because "it doesn't exist". It's just a layer on top of js, it doesn't have its own runtime, and btw what would supporting ts a the browser level mean? If you want to support a static typed language then you could just compile it down to wasm, if you just want to support types and ignore them at runtime there's an overhead price to pay, or should do runtime type checking? And with which tsconfig? Strict or not?
VerifiedReports 2 hours ago||
All good questions. But... it would simply eliminate a step and result in a single language.

Python supports types and is interpreted, right?

tuananh 3 hours ago|||
JS promise to never break the web. can't say the same about TS
IshKebab 2 hours ago||
There wouldn't be any benefit. It's not sound so it can't really be used to improve performance.

There was a proposal to support TypeScript syntax, but ignore the actual types (this is basically how Python works). That would be kind of nice because you can skip the compilation step completely (less faff for small projects), but I don't think it went anywhere... or if it is it's getting there at a snail's pace:

https://github.com/tc39/proposal-type-annotations

mohsen1 4 hours ago||
> Deno now defaults to npm:

This is an interesting development. npm after all is the de-facto ecosystem and leaning into it makes sense.

I'm wondering how Deno would've been received if it supported npm and package.json from day 1.

afavour 4 hours ago|
I actually lost interest in Deno once it started leaning into NPM. I thought it was a bold and wise idea to make a clean break from the mess of Node and restart with a sensible ecosystem. Absent that... I'm just sticking with Node.
WorldMaker 4 hours ago|||
I think Deno's done a pretty good job at keeping what it did well in Deno 1 while also playing ball with Node/npm compatibility. JSR feels like the more sensible ecosystem we all need (especially high scoring packages) and while this current change leaves JSR prefixed when doing a `deno install` it doesn't change the fact that the more packages you install from JSR instead of npm the better things feel. (Especially once you can break from package.json and node_modules, but even the baby steps along the way to that goal still feel pretty good.)
mmastrac 3 hours ago||||
I previously worked at Deno and even with all that tbh, I am not sure the http deps were the right way to go. I've really wanted to like them but package managers really have advantages.

I would not say npm was the right direction. I actually was a fan of JSR (didn't work on it but all my experience with it was great)

pjmlp 4 hours ago|||
As someone that works in projects with standard IT tools, not supporting NPM made it a non starter for us.

No way it would go through standard build pipelines, or team skills.

afavour 2 hours ago|||
Oh, for sure. But I'm old enough to remember when standard IT tools would have never supported Node in the first place and the idea of JS on the server made everyone scream. You just need to build demand for that support.
pjmlp 2 hours ago||
For us the demand is, does it run everything that either Angular or Next.js require, or the SDKs from headless SaaS products.
ale 4 hours ago|||
"standard" IT tools?
pjmlp 2 hours ago||
Yes, IT from customer, or agency delivery operations, dictates what are the official tools in specific projects, including 3rd party dependencies in internal repos, and CI/CD is cut off from accessing public Internet.
IshKebab 3 hours ago||
I don't know why they copied NPM's backwards `npm install/ci` thing. Most people think that `install` does use the lock file.
ezekg 5 hours ago|
[dead]