Live data from Hacker News

JavaScript: The Modern Parts

amontalenti.com

1–10 of 122 posts

Re: JavaScript: The Modern Parts

#6
I have some ES6 compliant JavaScript to run on the browser. Now I would like to compile it into web-assembly and serve that from a server to the browser, to make it faster to run and download.

Is that possible with the modern JavaScript tools?

Re: JavaScript: The Modern Parts

#8

The "modern" Javascript parts make me almost physically sick. Gimme back my plain old browser Javascript. It was primitive, but at least it wasn't actively harmful.

Care to elaborate? "Modern" javascript runs just fine in your plain old browser.

Parent is talking about all the vulnerabilities and slowness that can come with it. Fair enough, it runs, but it can also open the door to fingerprinting and other weird nasties. Particularly anything reliant on the `npm install` way of managing dependencies is a potential risk from both server and client point of view.

Re: JavaScript: The Modern Parts

#9

I have some ES6 compliant JavaScript to run on the browser. Now I would like to compile it into web-assembly and serve that from a server to the browser, to make it faster to run and download. Is that possible with the modern JavaScript tools?

Considering awsm still doesn't have a gc last I heard, I don't see what you have to gain from compiling JavaScript to it.

Re: JavaScript: The Modern Parts

#10
>Understanding webpack, and why it’s important

Not sure how Webpack is being attributed as being a part of Javascript here. It's a bundler, with Javascript support being one small piece in a much larger puzzle. It's not even the only bundler out there, JSPM is currently in beta which goes in a different direction than Webpack, then you have Parcel and other options as well.

>Understanding babel, and why it’s important

Eh. I haven't used Babel in years since switching to TypeScript.

This doesn't seem very focused on Javascript, seems like a lot of emphasis being placed on tooling more than the language itself.

Post reply on HN