Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
azakai
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
66 ms
·
721.
▲
by
azakai
11y ago
No link to play the game?
722.
▲
by
azakai
11y ago
I think you're right. While downloading a VM doesn't make sense for a small site, for many cases it could. There are also fairly compact VMs for some languages. And WebAssembly will make the VM download substantially smaller.
723.
▲
by
azakai
11y ago
Which area were you interested to contribute to? For Binaryen specifically, this bug could be a good starting point: https://github.com/WebAssembly/binaryen/issues/2 Other issues in the tracker there as well.
724.
▲
by
azakai
11y ago
SIMD.js is in progress for JS, so JS VMs are already working on it. It is on the roadmap for being added to WebAssembly, likely with a similar API.
725.
▲
by
azakai
11y ago
I agree asm.js isn't fun to write by hand, but wasm is also primarily a compiler target. You might not necessarily find it easier to write (its text format isn't defined or even sketched out yet, so it's impossible to guess).
726.
▲
by
azakai
11y ago
The main difference is that NaCl used a plugin API (PPAPI). WebAssembly, like asm.js, can access JavaScript, and so it has indirect access to DOM APIs, with no new powers over the existing web. The main point of wasm, from my perspective, i
727.
▲
by
azakai
11y ago
Mostly. The initial target is C++ and similar languages, and it will not have DOM access, but using suitable libraries (libc, SDL, etc., for example emscripten's) you can write a normal C++ program and have it run in the browser. You c
728.
▲
by
azakai
11y ago
The article also says > Gun homicide rates have actually fallen in recent years, but those gains have been offset by rising gun suicide rates. Today, suicides account for roughly two out of every three gun deaths.
729.
▲
by
azakai
11y ago
You may not have seen one yourself, but browser vendors have data on this: there is a lot of malware out there that infects browsers. Browsers are putting a lot of effort into preventing this, they wouldn't do it if they didn't ha
730.
▲
by
azakai
11y ago
Windows is indeed the last (64-bit on Linux and Mac has been there for a long time). I think the main issue was binary plugins, which are more common on Windows, and can be incompatible with a 64-bit browser.
731.
▲
by
azakai
11y ago
Snappy behavior depends on a lot of things: which sites you're on (some browsers are better at some sites than others, and none is great at all of them), multiprocess separation (e10s in Firefox, on in Nightly and it really helps a lot
732.
▲
by
azakai
11y ago
Indeed. If the smallest element is deleted, then we are removing the singleton element of the first heap. We need to find the second-smallest element, which will be in the next heap after it, but it could be any of the leaves. That means we
733.
▲
by
azakai
11y ago
Agreed that using the C API can be easier. But for text IR though, the changes were extensive. Scripts were provided that helped, but still, it was a bunch of work to add types/remove types due to the pointer types changes.
734.
▲
by
azakai
11y ago
Aside from metadata, some other large changes that have been going on are * the removal of pointer types (still happening) * the use/user flip In my experience these have been significant in the amount of work it takes to track.
735.
▲
by
azakai
11y ago
Yes, the corner cases are quite bad. But still, C code can be remarkably portable. Back in the older days, using autoconf you could run - well written&portable - C code on a very wide variety of OSes and architectures. Since then both O
736.
▲
by
azakai
11y ago
There's quite a lot, I'm afraid. For example, the precision of sin/cos (this led to bugs on real websites), the precision of random numbers (this led to a bunch of recent blogposts). And there are also non-semantic difference
737.
▲
by
azakai
11y ago
Sure, multiple implementations always brings with it those downsides you quoted. Same thing with web browsers, etc. But the benefits of multiple implementations are pretty significant as well, so it ends up worth it in some cases, and not i
738.
▲
by
azakai
11y ago
A long-time disagreement between us :) > [in C] It's very difficult to avoid undefined behavior, True, but LLVM IR and other IRs have undefined behavior as well. > you won't be able to modify the compiler backend (and you wi
739.
▲
by
azakai
11y ago
If it's a version number, it seems out of date - Firefox is at 42, Chrome at 46, but the axis only goes up to 30. That's why I suspect it's market share, but that's just a guess.
740.
▲
by
azakai
11y ago
What does the X axis in the "browser support" graphs mean? It seems to go up to 30, and has fractions along the way, both of which suggest it isn't a simple version number. A percentage of something, perhaps? edit: I guess it
741.
▲
by
azakai
11y ago
> You have it backwards: all of her personalities were blind, and then the sight returned for one of them. We are saying the same thing. Some of the personalities are neurologically (not just psychologically) blind, some are not. That&#x
742.
▲
by
azakai
11y ago
I don't think hysterical blindness is an alternative explanation. It's what's going on here, but , it happens in just one personality. That the different personalities can have entirely separate conditions like hysterical bl
743.
▲
by
azakai
11y ago
The article mentions just that: yes, it is a controversial diagnosis among psychologists and psychiatrists. However, the point of the article is that data is accumulating that shows that DID can manifest in ways we can measure on brain scan
744.
▲
by
azakai
11y ago
> This is my bet: the age of dynamic languages is over. I doubt it. Yes, all the points the author makes are valid benefits of static typing. But the benefits of dynamic languages still exist. There are reasons people like both types of
745.
▲
by
azakai
11y ago
> but what are we supposed to do? One rational response is that we know plenty of terrorist plots are foiled by intelligence agencies and police, so giving them more resources to act could be a logical thing to do. Similarly, improving c
746.
▲
by
azakai
11y ago
The ROMs may be copyrighted of course, but there is an argument to be said for there being a fair use case here, namely archiving of historical content that is no longer accessible otherwise. That's what the Internet Archive nonprofit
747.
▲
by
azakai
11y ago
It's in release Chrome currently.
748.
▲
by
azakai
11y ago
That's correct, all JS engines except for Safari's detect "use asm". More specifically, Firefox and Edge detect "use asm" and run an asm.js type-checker, while Chrome detects "use asm" and runs TurboF
749.
▲
by
azakai
11y ago
> I don't know enough about asm to know if their annotations are slower than vanilla JS in unoptimized engines, but I suspect they might be. The opposite is true, for the most part. JS engines, even without asm.js optimizations, uti
750.
▲
by
azakai
11y ago
> Starting April 2016, Chrome will continue to function on these platforms but will no longer receive updates and security fixes. Wouldn't it be better to stop functioning? Without security fixes, it will get hacked, and it would b
More ›