HNHacker News
TopNewBestAskShowJobs

crocodileJS

10 karma · joined February 9, 2017

not affiliated with the CrocodileJS framework
submissionscomments
crocodileJS··on The True Cost of Bitcoin Transactions
The "average" cost of a Bitcoin transaction is just that, the average. It's not (part of) the true cost. The "true" cost is specific to the transaction. The last time I sent around some Bitcoin, it was around 20$ worth and the fee was whatever the client recommended me. It didn't amount to anything near the average. Why would I care about the average?
crocodileJS··on The Anti-Hero of CSS Layout – “display:table” (2014)
Is that really true? You'd think that the government has security provisions that requires software updates.

As for K-12, is that really a requirement in some places, or is it just the case that some clients just happen to not be updated?

crocodileJS··on The Anti-Hero of CSS Layout – “display:table” (2014)
What audience is that? Who are these people relevant to? Microsoft isn't holding back anything, they can't force these people to update their software. If everyone keeps supporting them, they never will have a reason to update.
crocodileJS··on A first look at WebAssembly performance
You actually can lay things out in memory using Typed Arrays.

There's some overhead to reads/writes though (there is memory safety, after all).

crocodileJS··on A first look at WebAssembly performance
You must mean:

x = bodies_x[body_index]

versus

x = bodies[body_index].x

The "issue" with the nbody benchmark from the benchmarks game is that there's only four bodies, making this SOA-style approach have little payoff.

It would be great if you could do such a test, but with a significantly larger amount of bodies.

crocodileJS··on A first look at WebAssembly performance
Javascript doesn't have the same type information as WASM, also it lacks a native 64-bit integer. The JIT can do some type inference to use integers internally in some cases, but it's not optimal.

Predicting what sort of Javascript turns into what kind of native code on different JIT implementations is far from simple, too.

Even if in theory, an equivalent result should be possible in some cases, it's unrealistic to expect that in practice.