frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
67•yi_wang•2h ago•23 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
233•valyala•10h ago•45 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
25•RebelPotato•2h ago•4 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
144•surprisetalk•10h ago•146 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
175•mellosouls•13h ago•333 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
62•gnufx•9h ago•55 comments

IBM Beam Spring: The Ultimate Retro Keyboard

https://www.rs-online.com/designspark/ibm-beam-spring-the-ultimate-retro-keyboard
19•rbanffy•4d ago•4 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
173•AlexeyBrin•15h ago•32 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
152•vinhnx•13h ago•16 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
41•swah•4d ago•90 comments

First Proof

https://arxiv.org/abs/2602.05192
125•samasblack•12h ago•75 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
298•jesperordrup•20h ago•95 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
69•momciloo•10h ago•13 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
96•randycupertino•5h ago•212 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
98•thelok•12h ago•21 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
35•mbitsnbites•3d ago•3 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
566•theblazehen•3d ago•206 comments

Show HN: Axiomeer – An open marketplace for AI agents

https://github.com/ujjwalredd/Axiomeer
7•ujjwalreddyks•5d ago•2 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
286•1vuio0pswjnm7•16h ago•464 comments

Microsoft account bugs locked me out of Notepad – Are thin clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
126•josephcsible•8h ago•155 comments

The silent death of good code

https://amit.prasad.me/blog/rip-good-code
81•amitprasad•4h ago•76 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
29•languid-photic•4d ago•9 comments

I write games in C (yes, C) (2016)

https://jonathanwhiting.com/writing/blog/games_in_c/
180•valyala•10h ago•165 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
899•klaussilveira•1d ago•275 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
225•limoce•4d ago•125 comments

Reinforcement Learning from Human Feedback

https://rlhfbook.com/
115•onurkanbkrc•15h ago•5 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
141•speckx•4d ago•224 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
143•videotopia•4d ago•48 comments

Vouch

https://twitter.com/mitchellh/status/2020252149117313349
34•chwtutha•1h ago•5 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
299•isitcontent•1d ago•39 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