Top
Best
New

Posted by em-bee 10/26/2024

Should JavaScript be split into two languages?(devclass.com)
142 points | 312 commentspage 5
n00b101 10/26/2024|
Can anyone explain the layout and formatting of the slides?
jauntywundrkind 10/26/2024||
This sounds like a crock of shit.

No, it won't be faster, if you only optimize a lesser language. If you have higher level code running your optimizer can do more than if it only has a low level version.

No, it won't be more secure. Js0 might be more secure, but if we sites all run any of dozens of different tools those tools are going to be creating the vulnerabilities. It's shifting where security issues occur, and creating more of them.

I'm terrified this could happen. JS has gotten so much better over time. We are so close to being able to not need transpilers. This sounds like such an absurd cop out for browsers to say, meh, we just don't want to do the work to implement. Being so close & then saying, sorry, you must use big toolchains to develop for the web is a monstrously bad future.

avvvv 10/27/2024|
JS0 is supposed to be a high level language. Theoretically it could improve performance by allowing more explicitness in the generated code than in normal JS, thus helping out the JIT optimizer.

I don't see how a browser running JS0 can be any less secure than a browser running JS

pier25 10/27/2024||
Just no.

Browsers operate at a scale never seen before. Imagine all the extra energy and bandwidth needed if core functionality is moved to the application code when you have billions of users.

What we need is more native functionality (implemented in the JS engine with C++ or Rust) to have as less user land code as possible.

As an example, imagine how much energy, bytes, and CPU would be saved if browsers and JS engines included reactivity and JSX. Or if browsers included an API similar to jQuery.

Quick math to grasp the scale: 100kb * 1 billion users = 100TB of data that needs to be transferred and parsed many times, every single day. It's absurd.

remify 10/26/2024||
In my opinion Typescript made a mistake staying in sync with the ECMA Script specs.
neocon4life 10/26/2024||
JavaScript developers yet again rediscover bytecode!
bitwize 10/26/2024||
JavaScript so wants to be Scheme. Can we just do Eich's original thing and put Scheme in the browser?
peutetre 10/26/2024|
WebAssembly enables that: https://www.spritely.institute/hoot/
davexunit 10/26/2024||
Heh thanks for dropping the link! The dream of the 90s is alive thanks to Wasm GC.
belter 10/26/2024|
https://news.ycombinator.com/item?id=41936300
dang 10/26/2024|
Thanks—that thread had two comments, which I've merged hither since the current thread is ongoing.