HNHacker News
TopNewBestAskShowJobs

etdeagle2

3 karma · joined February 13, 2020

submissionscomments
etdeagle2··on What Every Developer Should Know About GPU Computing (2023)
Please do! I would love to read about it. I have been playing with GPU hash tables shared between all the threads using locking (Interlocked.CompareExchange) and such in a Compute Shader. I have been wondering if there are better ways than locking.
etdeagle2··on Never Use Floats for Money (2016)
thanks!
etdeagle2··on Never Use Floats for Money (2016)
I tried a small C++ program and it does not exhibit this behavior. Why is it not showing there?

program: #include <iostream>

using namespace std;

int main(int argc, char argv) { float s = 165 * 1.40; cout << s << endl; }

output: ./floats 231