News for hackers. Stuff that matters.

sambeau

Re:Monte-Carlo Simulations on Saturday October 17, 2026 @07:59AM (#50130327)
I used Monte-Carlo simulations to work out the rules to a small kids’ game.

The idea was to start with a seemingly biased game—a race between a tortoise (rolling one die) and a hare (rolling 2 dice)—and to tweak the rules until both players had an equal chance of winning.

It was a fun experiment and the game actually works well!

https://github.com/sambeau/tortoise-vs-hare

Re:Why Is Sam Altman a Free Man? on Wednesday September 30, 2026 @05:23AM (#49906394)
I feel for Aaron Swartz, his poor mother, and what the US government put him through.
Here in Scotland, 'ginormous' is normal, possibly more regularly used than 'enormous' or 'giant'.
Re:Time to Start De-Appling on Tuesday November 11, 2025 @09:01AM (#45887345)
I turnips were watches, I'd wear one by my side.
Thritto.
This is the main issue. People simply cannot afford to use this extra power. If power was cheap then all kinds of devices would switch to electric, especially heating and cars.

The other issue is that the UK has unpredictable weather and no way to store energy at a grid-level. It can store enough to load balance spikes but there is still nothing to replace the months of gas we once had stored in giant salt chambers (you can thank Liz Truss for decommissioning those).

Without vast amounts of long-term energy storage we will continue to throw away power when we have too much and fire up gas generators when wind power isn't making any (which happens surprisingly often).

I like it, but it's too late.

It could also do with a datetime datatype, the one thing (apart from comments) that I constantly feel the need for in JSON.

The Oakham brewery has a rather fine beer named after him:

https://www.oakhamales.com/product/jhb/

Re:The right wing is coming for Wikipedia on Tuesday September 30, 2025 @01:01PM (#45428077)
Wikipedia is a global resource, edited by educated—often academic—people all over the world. Why would anyone expect it to conform to the US idea of what is left and right? For most of Europe the American Democrats are to the right of their mainstream right-wing parties.

There is no bias to the left. The USA has shifted so far to the right that balance now looks leftist.

This is face detection, not recognition. Face recognition would have a correct name underneath each face.
Re:What Is Synthetic Gasoline? on Thursday August 28, 2025 @08:20AM (#45051274)
The focus for these kind of alternatives should be on aviation—with the most difficult fuel to replace. Maybe we'd need this for classic cars, emergency generators and a few other smaller things, but even classic cars can get electric refits. Cars, motorbikes, trucks etc should be electric; shipping needs to embrace sail-electric hybrids; and bio-fuels/synthetic fuel should be aimed at aviation (and maybe as a stop-gap for shipping). My 10¢.
These giant datacentres bring nothing to a community; they only take, take, take. Why would anyone want one in their neighbourhood?
Re:CO2 Battery on Saturday July 26, 2025 @08:58AM (#44693766)
What is the advantage here over compressed air?
Re:Tell HN: Stop using "dropped" to mean "added" on Tuesday June 24, 2025 @08:10PM (#44372406)
I can't think of a single example where dropped means added.
Re:Tell HN: Stop using "dropped" to mean "added" on Tuesday June 24, 2025 @08:07PM (#44372386)
"The player was dropped and released from his contract."

Dropped == released

Re:Tell HN: Stop using "dropped" to mean "added" on Tuesday June 24, 2025 @12:55PM (#44368259)
Dropped doesn’t mean added: it means released.
Re:Show HN: AI game animation sprite generator on Saturday June 07, 2025 @05:58AM (#44208608)
This is so depressing.

Also, why does the female ninja suddenly grow a penis?

Re:Is It JavaScript? on Monday June 02, 2025 @06:50AM (#44157488)
Typescript is not just javascript; Javascript is just Typescript.

/pedantry

Can we so CrowdStrike next?
Re:Amdash – Human only punctuation mark on Friday May 23, 2025 @03:19PM (#44075737)
Is that a British vs American thing? I had always thought it was a newspaper vs Novel thing.
Amongst other things, I'm writing children's books.

Each one is a labour of love that takes years to produce. It requires detailed thought from word choices, character design, world-building, characters, to fun plot twists. It's really hard and takes a lot of work. It's taken me over a decade to teach myself how to do it. I've been working on my current book for over two years.

My government has decided that my copyright is invalid for AIs. So, as soon as it is published, years of hard work will be slurped into the mediocracy machine for anyone—like you—to abuse.

It's theft and you are a fence.

This is ghastly.

Children’s books are some of the most wonderful little pieces of art; art that nurtures, entertains, educates and instills both moral compasses and working funny bones. All of our lives have been enriched by them. Some children’s stories continue to enrich us for all of our lives.

This doesn’t just steal work from those artists working today, but it steals from every artist who came before. It adds nothing to humanity; it robs so much.

It also destroys nature to do it. It robs from the world and worsens humanity.

Why do it? Money? Infamy? Internet points?

Please delete the project and do something worthwhile.

Re:Making Video Games (Without an Engine) in 2025 on Tuesday May 20, 2025 @04:36AM (#44039206)
I recently wrote a game in Javascript (2D; Canvas). I was amazed at how simple it was and how performant plain-old-Javascript and Javascript objects were. Despite thousands of animating things moving on screen, and animated stereo audio, I couldn't get the frame rate to spill over an animation frame.
Re:xAI's Grok 3 comes to Microsoft Azure on Monday May 19, 2025 @01:33PM (#44032370)
Are they going to get the white supremacy bits too?
Re:The Barbican on Monday May 12, 2025 @05:44PM (#43967764)
The really amazing architecture of Coruscant is from the City of Arts and Sciences in Valencia:

https://en.wikipedia.org/wiki/City_of_Arts_and_Sciences

In particular, the Museo de las Ciencias Príncipe Felipe.

https://en.wikipedia.org/wiki/City_of_Arts_and_Sciences#/med...

The really uncompetitive behaviour started when Google removed the search string from search links. That killed 3rd party (and home-grown) analytics, which in turn facilitated large scale tracking of users from site with analytics to site with analytics.

If you wanted to know how your keywords were performing you had to use Google Analytics.

Re:International Workers' Day on Thursday May 01, 2025 @12:11PM (#43859674)
Incorrect.

Here's a large amount of reading matter to explain. Fill your boots.

https://www.reddit.com/r/AskHistorians/wiki/faq/europe/#wiki...

Re:Goenums: Type Safe Enum Generator for Go on Saturday April 26, 2025 @08:25PM (#43808413)
Go is a tiny language. I can easily hold it all in my head. I don't think I can say that about any other language I've used. Not even C.

Older »