HackerLangs
TopNewTrendsCommentsPastAskShowJobs

ukoki

1,182 karmajoined hace 14 años
Software developer currently working in London.

comments

ukoki
·anteayer·discuss
Only the median (or pair around the median) needs to be sorted, the other numbers can be unsorted :)
ukoki
·hace 3 meses·discuss
> lack of automated testing and TDD

Rust has testing in the standard library -- IMHO Bevy is far easier to test than most game engines because it's "just rust". You can test game logic by starting headless apps, proding the ECS, and making assertions on the results.

For acceptance tests I've dusted off cucumber (after ten years of not thinking about BDD), as I it works great with Bevy
ukoki
·hace 4 meses·discuss
If you get paid by the government to do research you should make all your raw data, code, results etc, accessible to the public.

If it then turns out any of it is fabricated, you should be personally liable for paying it back
ukoki
·hace 5 meses·discuss
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)
ukoki
·hace 6 meses·discuss
Interesting to consider the effects of GLP-1 drugs on the environment then
ukoki
·hace 8 meses·discuss
I don't think its about profits, its about incentivising using as many AWS products as possible. Consider it an 'anti-lock-in fee'
ukoki
·hace 10 meses·discuss
First I thought "WTF why" and I'm still thinking "WTF why"
ukoki
·hace 10 meses·discuss
> 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.
ukoki
·hace 10 meses·discuss
it's the critical insight I was missing!