News for hackers. Stuff that matters.

ukoki

Re:The Economic Benefit of Refactoring on Friday July 31, 2026 @09:07AM (#49122639)
I have a blanket, unignorable 'files must be <= 1000 lines' lint for my Rust projects for exactly this reason. Exploring large files is _costly_ for agents, so it's much better to lean into the filesystem hierarchy to a greater extent than you would normally with a team of human developers.
Re:EU Fines Google $1.02B for Favoring Its Own Services on Monday July 27, 2026 @04:37AM (#49066703)
The solution is to mandate that websites are built for browsers/devices as much as they are for humans. That way you never see a cookie banner because you've set up your device to never accept marketing cookies; A Google Maps link clicks through to Google Maps because you told your browser Google Maps was your preferred online mapping tool.
Re:Goodbye, and Thanks for All the Bikesheds on Sunday July 19, 2026 @07:44AM (#48967227)
This reminds me of my experience as a senior contractor joining teams that seem to enjoy endless discussion. For example, when implementing a new feature using an open-source library or framework they will want to make a prototype of all possible libraries, make a report about each of them, have some big discussions about which to choose, and only _then_ start the real implementation. My advice is always to just pick the one your gut tells you is the right one -- if the prototype works, then that _is_ the implementation and we can stop considering alternatives unless we have a good reason to reconsider them.

If a decision is hard to make, its often because the differences are small, and therefore it doesn't matter much and you might as well decide by dice-roll.

Only the median (or pair around the median) needs to be sorted, the other numbers can be unsorted :)
Re:Bevy game development tutorials and in-depth resources on Sunday April 12, 2026 @12:03PM (#47741301)
> 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

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

Re:Rust's Standard Library on the GPU on Wednesday January 28, 2026 @07:23AM (#46794414)
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)

Interesting to consider the effects of GLP-1 drugs on the environment then
Re:The $1k AWS Mistake on Wednesday November 19, 2025 @06:07AM (#45978178)
I don't think its about profits, its about incentivising using as many AWS products as possible. Consider it an 'anti-lock-in fee'
Re:iTerm2 Web Browser on Friday September 19, 2025 @04:48AM (#45299417)
First I thought "WTF why" and I'm still thinking "WTF why"
Re:"No Tax on Tips" Includes Digital Creators, Too on Thursday September 11, 2025 @03:34AM (#45208864)
> 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.

Re:You're absolutely Right! on Friday September 05, 2025 @11:43AM (#45139875)
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

Re:Tallest Wooden Wind Turbine on Sunday May 25, 2025 @07:07AM (#44086989)
> 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.

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.
Re:The Barbican on Monday May 12, 2025 @01:46PM (#43965667)
Michael Fassbender's character has an apartment there in The Agency as well
Two additions:

* Teams wanting to be a viewer for all kinds of filetypes. Why the hell would I want to view a Powerpoint presentation in Teams? What if I want to chat about the presentation, while viewing the presentation?

* Clipboard injection attacks. Who in the history of the humanity ever thought prefixing "[2:10 PM] Kimble, Richard:" into the URL/API key/thing-you-want-to-copy a colleague just sent you was a good idea? Yes I know you can manually highlight the text and copy, but you're forcing me to do intricate mouse movements that take time, dozens of times a day. I just want to triple-click, cmd+c, alt+tab, cmd+p

Re:Show HN: I Built a TypeScript Game on Friday May 09, 2025 @06:43AM (#43935372)
My version from ten years ago with Victorian erotic fiction :)

https://gentletouch.peterellisjones.com/

It doesn't matter if it rots, burns etc -- all that matters is that it rots slower than the time it took to grow the wood it was made of

Eg:

You have a forest of trees that take 20 years to mature

You cut the trees and regrow the forest every 20 years

You use the timber to build houses (or furniture or whatever) that are _on average_ replaced after 60 years.

This will pull 3x the carbon from the atmosphere than just the forest by itself

Re:How to Start a Conversation on Sunday April 13, 2025 @07:43AM (#43672056)
This technique and a lot more was discussed recently in Diary of a CEO's interview with Vanessa Van Edwards

https://www.youtube.com/watch?v=ldizQkuWpDE

https://podcasts.apple.com/gb/podcast/new-body-language-expe...

Re:Show HN: LinkedIn sucks, so I built a better one on Monday March 24, 2025 @06:58AM (#43459494)
> Pretty sure that I’m really the only person that cares about it.

Even if you don't get any useful organic traffic, I find having a technical blog is useful so that when you do go to interviews or submit resumes, hirers can read your blog and quickly establish that you know what you are talking about.

The News Agents podcast just did an interview with Wynn-Williams

https://podcasts.apple.com/gb/podcast/special-episode-inside...

tailwind would not counteract headwind because drag increases with the square of windspeed.
I remember living in Beijing when the US Embassary Air Quality Twitter account tweeted "Error: value above measurable range" (paraphrasing) -- that was a fun day.
Re:Ask HN: Who wants to be hired? (March 2025) on Monday March 03, 2025 @11:46AM (#43243655)
Senior platform engineer contractor with 10+ years experience working for large enterprises building and operating container-based internal platforms-as-a-service.

Location: London, UK

Remote: Yes or on-site in London

Willing to relocate: no

Technologies: Kubernetes, Go, Ruby, Python, Rust, Bash, most platform engineering / devops / SRE / IaC tools and best practices, most public clouds.

Resume / CV: https://www.linkedin.com/in/peterellisjones

Email: [email protected]

Plasma donation can reduce microplastics https://pmc.ncbi.nlm.nih.gov/articles/PMC8994130/

Maybe being a rich guy's (Peter Thiel / Bryan Johnson / etc) blood boy is a win/win after all.

Re:Don't Be Frupid on Monday February 10, 2025 @05:49AM (#42998963)
Why do enterprises give developers shitty laptops? Why does it take a month to onbaord a new dev? Why does it take weeks to get a new dev tool installed that requires admin access? To get a firewall request reviewed? To get your team access to a fresh public cloud account for a new project?

The answer to all these questions is that things that are measurable will always be prioritised over things that are not easily measured. And the more mature the enterprise, the more the measurable has been squeezed to the detriment of the immeasurable.

IT hardware spend it very easily measured, but the time wasted and morale hit you get working on a shitty laptop is very hard to measure.

Anything that is measurable, you just turn a knob and announce 10% savings: well done you! enjoy your promotion -- the intangible negative externalities of your recklessness will rarely be considered or even known by the person whose job it is to review your performance.

Older »