Hacker Newsnew | past | comments | ask | show | jobs | submit | ukoki's commentslogin

Not OP but I'm currently make a city-builder computer game with a large procedurally-generated world. The terrain height at any point in the world is defined by function that takes a small number of constant parameters, and the horizontal position in the world, to give the height of the terrain at that position.

I need the heights on the GPU so I can modify the terrain meshes to fit the terrain. I need the heights on the CPU so I can know when the player is clicking the terrain and where to place things.

Rather than generating a heightmap on the CPU and passing a large heightmap texture to the GPU I have implemented the identical height generating functions in rust (CPU) and webgl (GPU). As you might imagine, its very easy for these to diverge and so I have to maintain a large set of tests that verify that generated heights are identical between implementations.

Being able to write this implementation once and run it on the CPU and GPU would give me much better guarantees that the results will be the same. (although necause of architecture differences and floating point handling they the results will never be perfect, but I just need them to be within an acceptable tolerance)


That's a good application but likely not one requiring a full standard library on the GPU? Procedurally generated data on GPU isn't uncommon AFAIK. It wasn't when I was dabbling in GPGPU stuff ~10 years ago.

If you wrote in open cl, or via intel libraries, or via torch or arrayfire or whatever, you could dispatch it to both CPU and GPU at will.


There are GPU-based picking algorithms. You really should not have to maintain parallel data generation systems on both the GPU and CPU just to support picking. Maybe you have a different issue that would require it, but picking alone shouldn't be it.

Interesting to consider the effects of GLP-1 drugs on the environment then


I don't think its about profits, its about incentivising using as many AWS products as possible. Consider it an 'anti-lock-in fee'


First I thought "WTF why" and I'm still thinking "WTF why"


First I thought "WTF why?", and then it appeared in my terminal and then I thought "what the hell, I thought I turned this stuff off!?!"


I remember DSL had a window manager that would allow you to merge applications into tabs ... it's nice having only one window ... I reminds me of the 50 MB operating system days. Except this time the browser doesn't suck ... I can't believe I'm watching youtube cat videos in iterm2 \m/


First I thought "WTF why?" and then I turned on RTL text. Now I'm thinking "?yhw FTW".


> If anything they're a hindrance.

Absolutely. As a brit used to waiters and waitresses in the UK and Europe generally leaving me alone until I ask for something, I find the constant fawning interruptions from American service staff cringe-inducing.

A refreshing aspect of US culture is the lack of a historical class system and associated cultural baggage that we have in the UK. So I find it so strange that once you step into a restaurant you are forced into this weird servant/master cosplay where you dictate the server's livelihood based on how you happen to be feeling that day and the resulting whim of your pen writing on the tip line.


it's the critical insight I was missing!


Ok so what if I run the website in a VM allowing full execution of ad/tracking code, and then stream the video to a "browser" that blocks out the adverts?


In London contactless payment via credit/debit/Apple/Android has automatic daily and weekly caps

https://tfl.gov.uk/fares/find-fares/capping

Depending on the frequency of travel, it can be cheaper to get season tickets though


New York's MTA does this as well. You just need to make sure it's the same card being used.

https://omny.info/fares


> was clocked to be offset after 5.3 months of running the turbine

.. if the power would have otherwise been generated using non-renewable sources.

But even when (if?) electricity generation is switched to 100% renewable, we will _still_ need to reduce carbon emissions to reduce climate change, so reducing carbon emissions invovled in the creation and maintanence of renewable electricity seems like a good idea to me.


If your grid is already 100% renewables, you have other stuff to work on before that becomes an issue. For example, transforming industries that depend on oil byproducts.


Your contract is legal and enforceable. The parent commenter is just saying that there's no _automatic_ right to work you do in your free time (ie it has to be specifically mentioned in the contract). You could try and negotiate that clause out of your contract though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: