Sometimes CPU cores are odd

51 points by cadey


fourfourthree

This has been a thing for longer than you might think - for example: https://www.techpowerup.com/cpu-specs/phenom-x3-8750.c513 - that’s from 2008!

azdle

There was a leap here that I didn’t quite follow:

However 4.5 is bigger than 1, so Math.max returns that:

threads = 4.5,

This means that each time the proof of work equation is calculated, there is a 50% chance that a valid solution would include a nonce with a decimal portion in it.

If anyone else was wondering, it’s because each worker uses threads as an increment to calculate its unique sequence of nonces itself. (via)

abbeyj

Is it just me or is the “Resulting Hash” box nearly impossible to read because of the colors? When the hash doesn’t pass the check it shows #9ca3af over #bf8e8e for a contrast ratio of 1.11. When the hash does pass the check it shows #9ca3af over #89a996 for a contrast ratio of 1.01.

dijit

I feel dirty for saying this, but…

… could a language compiled to WASM that has strict type safety have prevented this? If you’re looking for an int but a value is a float, what even happens in that scenario.

Using Rust as example (because, I know Rust but not how it works in WASM): would Rust even be able to prevent this kind of bug at runtime? I guess so because afaik WASM does a lot of internal type coercion (something like ~~(navigator.hardwareConcurrency / 2); to coerce to int)

Would that explode at runtime then?