frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I Was Trapped in Chinese Mafia Crypto Slavery [video]

https://www.youtube.com/watch?v=zOcNaWmmn0A
1•mgh2•1m ago•0 comments

U.S. CBP Reported Employee Arrests (FY2020 – FYTD)

https://www.cbp.gov/newsroom/stats/reported-employee-arrests
1•ludicrousdispla•3m ago•0 comments

Show HN: I built a free UCP checker – see if AI agents can find your store

https://ucphub.ai/ucp-store-check/
1•vladeta•8m ago•1 comments

Show HN: SVGV – A Real-Time Vector Video Format for Budget Hardware

https://github.com/thealidev/VectorVision-SVGV
1•thealidev•10m ago•0 comments

Study of 150 developers shows AI generated code no harder to maintain long term

https://www.youtube.com/watch?v=b9EbCb5A408
1•lifeisstillgood•10m ago•0 comments

Spotify now requires premium accounts for developer mode API access

https://www.neowin.net/news/spotify-now-requires-premium-accounts-for-developer-mode-api-access/
1•bundie•13m ago•0 comments

When Albert Einstein Moved to Princeton

https://twitter.com/Math_files/status/2020017485815456224
1•keepamovin•14m ago•0 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
1•birdculture•16m ago•0 comments

System time, clocks, and their syncing in macOS

https://eclecticlight.co/2025/05/21/system-time-clocks-and-their-syncing-in-macos/
1•fanf2•17m ago•0 comments

McCLIM and 7GUIs – Part 1: The Counter

https://turtleware.eu/posts/McCLIM-and-7GUIs---Part-1-The-Counter.html
1•ramenbytes•20m ago•0 comments

So whats the next word, then? Almost-no-math intro to transformer models

https://matthias-kainer.de/blog/posts/so-whats-the-next-word-then-/
1•oesimania•21m ago•0 comments

Ed Zitron: The Hater's Guide to Microsoft

https://bsky.app/profile/edzitron.com/post/3me7ibeym2c2n
2•vintagedave•24m ago•1 comments

UK infants ill after drinking contaminated baby formula of Nestle and Danone

https://www.bbc.com/news/articles/c931rxnwn3lo
1•__natty__•25m ago•0 comments

Show HN: Android-based audio player for seniors – Homer Audio Player

https://homeraudioplayer.app
2•cinusek•25m ago•0 comments

Starter Template for Ory Kratos

https://github.com/Samuelk0nrad/docker-ory
1•samuel_0xK•27m ago•0 comments

LLMs are powerful, but enterprises are deterministic by nature

2•prateekdalal•30m ago•0 comments

Make your iPad 3 a touchscreen for your computer

https://github.com/lemonjesus/ipad-touch-screen
2•0y•35m ago•1 comments

Internationalization and Localization in the Age of Agents

https://myblog.ru/internationalization-and-localization-in-the-age-of-agents
1•xenator•36m ago•0 comments

Building a Custom Clawdbot Workflow to Automate Website Creation

https://seedance2api.org/
1•pekingzcc•38m ago•1 comments

Why the "Taiwan Dome" won't survive a Chinese attack

https://www.lowyinstitute.org/the-interpreter/why-taiwan-dome-won-t-survive-chinese-attack
2•ryan_j_naughton•39m ago•0 comments

Xkcd: Game AIs

https://xkcd.com/1002/
1•ravenical•40m ago•0 comments

Windows 11 is finally killing off legacy printer drivers in 2026

https://www.windowscentral.com/microsoft/windows-11/windows-11-finally-pulls-the-plug-on-legacy-p...
1•ValdikSS•41m ago•0 comments

From Offloading to Engagement (Study on Generative AI)

https://www.mdpi.com/2306-5729/10/11/172
1•boshomi•43m ago•1 comments

AI for People

https://justsitandgrin.im/posts/ai-for-people/
1•dive•44m ago•0 comments

Rome is studded with cannon balls (2022)

https://essenceofrome.com/rome-is-studded-with-cannon-balls
1•thomassmith65•49m ago•0 comments

8-piece tablebase development on Lichess (op1 partial)

https://lichess.org/@/Lichess/blog/op1-partial-8-piece-tablebase-available/1ptPBDpC
2•somethingp•51m ago•0 comments

US to bankroll far-right think tanks in Europe against digital laws

https://www.brusselstimes.com/1957195/us-to-fund-far-right-forces-in-europe-tbtb
4•saubeidl•51m ago•0 comments

Ask HN: Have AI companies replaced their own SaaS usage with agents?

1•tuxpenguine•54m ago•0 comments

pi-nes

https://twitter.com/thomasmustier/status/2018362041506132205
1•tosh•57m ago•0 comments

Show HN: Crew – Multi-agent orchestration tool for AI-assisted development

https://github.com/garnetliu/crew
1•gl2334•57m ago•0 comments
Open in hackernews

Creating fair dice from random objects

https://arstechnica.com/science/2025/05/your-next-gaming-dice-could-be-shaped-like-a-dragon-or-armadillo/
40•epipolar•7mo ago

Comments

gametorch•7mo ago
the title is a classic quant interview problem

the basic idea is that, because multiplication commutes, probability of A then B is the same as probability of B then A, so long as they are independent events (rolling objects typically meets this criteria)

so instead of using just A or just B, which might neither have 0.5 probability, you only count "A then B" and "B then A" as rolls

and this trivially extends to constructing a fair N-sided die out of any arbitrarily biased die for any N

ted_dunning•7mo ago
That isn't what the article is about at all. It's not even what the first paragraph is about.

What they are doing is designing physical shapes that will have a specified probability of falling in different positions.

What you are talking about is post processing a biased random signal to get a less biased signal.

stevage•7mo ago
And yet the person you replied to was quite clear that they are responding to the title.
svat•7mo ago
That isn't the title either: the title is “Creating fair dice from random objects”, while what they are responding to may be something like “Creating fair coins from biased coins”. So they're only responding to the “Creating fair _ from _” part of the title. Responding to three out of six words in the title isn't bad I guess.
ncruces•7mo ago
> and this trivially extends to constructing a fair N-sided die out of any arbitrarily biased die for any N

They wrote something interesting, even if it only tangentially matches the topic.

Pointing out that it doesn't exactly match the topic also adds to the conversation, I guess, but I think we've now exhausted any interest (so I won't be arguing further).

gametorch•7mo ago
just providing a comment I thought was interesting and kind of relevant

wasn't trying to hurt anyone or anything

ethan_smith•7mo ago
This technique is formally known as the Von Neumann extractor (1951), a foundational concept in randomness extraction.
pixelpoet•7mo ago
Hey hey, it's Keenan Crane again :)
godelski•7mo ago
For those that don't know, he is a HIGHLY respected researcher and well known for effectively communicating complex topics. He really makes it fun. Often as visually entertaining as 3B1B while diving into more depth. I'd highly recommend people poke through his site and YouTube channel

https://www.cs.cmu.edu/~kmcrane/

https://www.youtube.com/user/keenancrane

https://x.com/keenanisalive?lang=en

orlp•7mo ago
How to create a fair coin from an arbitrarily biased coin:

1. Toss the coin and remember the answer.

2. Toss the coin again, if it is different from your previous toss then your result from #1 is fair. Otherwise, go back to step 1.

If p is the probability of getting heads, there are four possible outcomes with their associated probabilities:

    TT -> (1 - p)^2   (rejected)
    HT -> p * (1 - p)
    TH -> (1 - p) * p
    TT -> p^2         (rejected)
Needless to say, p * (1 - p) and (1 - p) * p have an equal probability, so if we don't reject our two tosses, we have a fair outcome.
stevage•7mo ago
That's cute. intuitively, if two flips give different outcomes, it's fifty/fifty which would be first.
gametorch•7mo ago
But also, you might have to flip the coin an arbitrarily large number of times before you get a "heads tails" or "tails heads" roll (if I can arbitrarily pick how biased the coin is).
IAmBroom•7mo ago
The opening scene of "Rosencrantz and Guildenstern Are Dead" springs to mind.

And that coin wasn't even biased... although Tom Stoppard was a confounding factor.

IAmBroom•7mo ago
You are assuming an unbiased coin.

Imagine I glue a poker chip to a washer. There's a clear bias in the outcome of this "coin".

This method resolves that bias.

stevage•7mo ago
I understood perfectly already.
gwern•7mo ago
Reference: https://en.wikipedia.org/wiki/Randomness_extractor#Von_Neuma...
gerdesj•7mo ago
"arbitrarily" is doing some heavy lifting!

I'm not sure that two concurrent harmonious answers constitutes a "fixed" coin or a diagnosis of a fixed coin.

This scheme will be rubbish with a one sided coin ie the limit for "arbitrary fixed coin".

IAmBroom•7mo ago
How is that "heavy lifting"? It's perfectly reasonable for any real-world "coin".
minikomi•7mo ago
1. flip the coin until it lands on its edge.

2. the person who achieves this is the winner.

nullc•7mo ago
VN extrator is a specific case of a more general idea: When you independently (hard assumption of VN extractor) draw M times with N possibilities then you can extract entropy from their permutation.

Assign some scheme for converting permutations to an index.

Then get uniform bits out, maintain two variables: one is the product of the number of permutations, the other gets multiplied by the number of permutations and the index added. Whenever the number of possibilities is divisible by two, output the LSB of the index accumulator and halve the number of possibilities.

Size up your groups and accumulators and you can get arbitrarily high extraction rates.

Doing it efficiently and in constant time (e.g. without divisions) is the more exciting trick. A colleague and I managed an extractor for the binary case that packs takes 10+3N multiplies and N CTZs to pack N bits (giving an exact invertible encoding when bits choose ones is < 2^64).

derbOac•7mo ago
The question I have is how stable are the probabilities over time? My guess is traditional dice are more physically robust to wear and degrade more gracefully.
zzo38computer•7mo ago
It does not seem to be so useful and practical to use strange shapes for dice; the common shapes, with numbers (or other symbols that are applicable for the game you are playing) on each side, will probably be more useful, anyways. However, it might be interesting.

Another reason to use dice for tabletop games is so that the game can be played without the use of a computer.

When I play GURPS, I generally use different dice with each dice roll in order to try to mitigate some of the bias. (I don't know quite how much effective this really is, though.)

archimedis•7mo ago
The Roman rock crystal icosahedron die in the Louvre would be nice:

https://archimedes-lab.org/2021/07/15/amazing-roman-rock-cry...

IncreasePosts•7mo ago
The linked oracle site has a 6mb of marble for a background. Yowza!
blurbleblurble•7mo ago
Keenan Crane is legendary