1,288 karma · joined June 4, 2016
This, from Hacker News, who not one week ago was complaining about "everything being perceptibly slower" and who constantly complains about latency in applications. Pretty sure everyone cares about browser speed.
What? The original WebAssembly announcement[1], which can be viewed as the manifesto for how WASM was envisioned, it clearly says "once browsers support the WebAssembly syntax natively, JS and wasm can diverge". Eich's goal with WebAssembly is not replacing JS, it's providing a better compilation target for other languages. WebAssembly is a replacement for asm.js, not JavaScript. No one is selling a lie here.
[1]: https://brendaneich.com/2015/06/from-asm-js-to-webassembly/
https://support.mozilla.org/en-US/kb/refresh-firefox-reset-a...
[1]: http://forums.mozillazine.org/viewtopic.php?f=38&t=3032457
Therefore, it follows that re-writing parsers in memory-safe languages would provide a nice bang-for-buck.
Well, I'm quite bored of the endless stream of memory safety vulnerabilities that can be systematically eliminated with memory-safe languages like Rust. Note that every single one of the CVEs disclosed yesterday in dnsmasq are memory safety violations, and the fact that buffer overflows, data races, and other related errors are not only pervasive, but also tend to sit around for years in codebases[1].
> Nobody would criticize assembly for letting you shoot yourself in the foot, C is much the same.
It's completely acceptable to criticize the choice of any tool. I can and do criticize the use of C for any code that touches a network and in some cases consider it willful negligence, as using a non-memory-safe language to parse untrusted data is asking for trouble.
[1]: https://twitter.com/johnregehr/status/914663997647069184
I don't disagree with your use of OpenSSH as an example.
Additionally Mozilla is not re-writing anything from scratch, instead working toward integrating components from Servo into Firefox.
The way I set up my tuned profile is pretty simple:
sudo dnf install tuned-utils
sudo powertop2tuned -n laptop
Then, I edited the profile in `/etc/tuned/laptop/tuned.conf` and enabled things. On my Thinkpad X220, simply enabling everything worked great, but my Asus ROG laptop and my friend's Razer Blade had issues with that, so YMMV wrt what to enable. Then, I added USB autosuspend support by adding the following to the profile: [usb]
autosuspend = 1
After that, I ran `sudo tuned-adm profile laptop`, which sets it and tells tuned to start on boot, and have had vastly improved battery life, good performance, and no hassles since.Not running apps you don't trust is an overly simplistic security model, and completely ignores exploits.