frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

What we talk about when we talk about sideloading

https://f-droid.org/2025/10/28/sideloading.html
234•rom1v•2h ago•101 comments

Why do some radio towers blink?

https://www.jeffgeerling.com/blog/2025/why-do-some-radio-towers-blink
28•warrenm•1h ago•16 comments

Using AI to negotiate a $195k hospital bill down to $33k

https://www.threads.com/@nthmonkey/post/DQVdAD1gHhw
637•stevenhubertron•4h ago•507 comments

EuroLLM: LLM made in Europe built to support all 24 official EU languages

https://eurollm.io/
425•NotInOurNames•5h ago•316 comments

Mapping the off-target effects of every FDA-approved drug in existence

https://www.owlposting.com/p/mapping-the-off-target-effects-of
39•abhishaike•2h ago•0 comments

Our LLM-controlled office robot can't pass butter

https://andonlabs.com/evals/butter-bench
106•lukaspetersson•6h ago•44 comments

A brief history of random numbers

https://crates.io/crates/oorandom#a-brief-history-of-random-numbers
132•todsacerdoti•6h ago•39 comments

Cheese Crystals

https://snipettemag.com/cheese-crystals/
26•Kaibeezy•5d ago•11 comments

Fil-C: A memory-safe C implementation

https://lwn.net/SubscriberLink/1042938/658ade3768dd4758/
27•chmaynard•3h ago•3 comments

Ubiquiti SFP Wizard

https://blog.ui.com/article/welcome-to-sfp-liberation-day
158•eXpl0it3r•7h ago•121 comments

How to build a 747 – A WorldFlight Story

https://www.x-plane.com/2025/10/how-to-build-a-747-a-worldflight-story/
63•hggh•5h ago•10 comments

Washington Post editorials omit a key disclosure: Bezos' financial ties

https://www.npr.org/2025/10/28/nx-s1-5587932/washington-post-editorials-omit-a-key-disclosure-bez...
427•ilamont•6h ago•171 comments

Sick: Indexed deduplicated binary storage for JSON-like data structures

https://github.com/7mind/sick
94•pshirshov•7h ago•42 comments

SigNoz (YC W21) Is Hiring DevRel Engineers in the US – Open Source O11y Platform

https://jobs.ashbyhq.com/SigNoz/8447522c-1163-48d0-8f55-fac25f64a0f3
1•pranay01•3h ago

Show HN: Bash Screensavers

https://github.com/attogram/bash-screensavers
177•attogram•9h ago•59 comments

Poker Tournament for LLMs

https://pokerbattle.ai/event
257•SweetSoftPillow•13h ago•172 comments

Show HN: ISS in Real Time – 25 Years Aboard the International Space Station

https://issinrealtime.org
111•bfeist•1d ago•13 comments

Austrian ministry kicks out Microsoft in favor of Nextcloud

https://news.itsfoss.com/austrian-ministry-kicks-out-microsoft/
311•buyucu•7h ago•74 comments

Subvocalization: Toward Hearing the Inner Thoughts of Developers (2011) [pdf]

https://chrisparnin.me/pdf/emg.pdf
16•faqriansyah•1d ago•7 comments

Text2SQL is dead – long live text2SQL

https://www.exasol.com/blog/text-to-sql-governance/
44•exagolo•6h ago•39 comments

The next chapter of the Microsoft–OpenAI partnership

https://openai.com/index/next-chapter-of-microsoft-openai-partnership/
290•meetpateltech•7h ago•405 comments

Show HN: Dexto – Connect your AI Agents with real-world tools and data

https://github.com/truffle-ai/dexto
15•shaunaks•4h ago•2 comments

Samsung makes ads on $3,499 smart fridges official with upcoming software update

https://arstechnica.com/gadgets/2025/10/samsung-makes-ads-on-3499-smart-fridges-official-with-upc...
122•stalfosknight•1h ago•96 comments

The AirPods Pro 3 flight problem

https://basicappleguy.com/basicappleblog/the-airpods-pro-3-flight-problem
241•andrem•6h ago•167 comments

I've been loving Claude Code on the web

https://ben.page/claude-code-web
66•speckx•4h ago•56 comments

Vitamin D reduces incidence and duration of colds in those with low levels

https://ijmpr.in/article/the-role-of-vitamin-d-supplementation-in-the-prevention-of-acute-respira...
275•cachecrab•7h ago•188 comments

Emily Riehl is rewriting the foundations of higher category theory (2020)

https://www.quantamagazine.org/emily-riehl-conducts-the-mathematical-orchestra-from-the-middle-20...
73•perihelions•5d ago•14 comments

How the brain's activity, energy use and blood flow change as people fall asleep

https://www.massgeneralbrigham.org/en/about/newsroom/press-releases/research-shows-coordinated-sh...
138•XzetaU8•3d ago•79 comments

Inside Amazon's engineering culture: Lessons from their senior principals

https://olshansky.substack.com/p/inside-amazons-engineering-culture
10•Olshansky•39m ago•4 comments

Chrome to warn on unencrypted HTTP by default

https://security.googleblog.com/2025/10/https-by-default.html
79•jhalderm•2h ago•80 comments
Open in hackernews

A brief history of random numbers

https://crates.io/crates/oorandom#a-brief-history-of-random-numbers
131•todsacerdoti•6h ago

Comments

lucasfcosta•5h ago
This is what I come to HN for.
derbOac•5h ago
Is there a good text on random number generation that someone on HN can recommend? I've read about various generators, pseudorandom and truly random, but those have always been scattered across various places, and I'm wondering if there's a good solid unified text on all of them, in terms of families of them and their underlying ideas, and their advantages and disadvantages.
slybot•4h ago
https://www.pcg-random.org/posts/bounded-rands.html
buildbot•5h ago
I did not realize xorshift no longer as favored! Permuted Congruential Generators seems very cool. https://en.wikipedia.org/wiki/Permuted_congruential_generato...
ot•5h ago
> Since nobody had figured out any downsides to PCG's yet, everyone shrugged and said "might as well just go with that then", and that is where, as of 2019, the art currently stands. The problem is solved, and life is good.

I wonder who "everyone" was, I'm not aware of many high-profile projects adopting PCG as a default. As of 2025, several high-profile runtimes (including all the major browsers) use xorshift variants [1]

Is there a list of users of PCG?

[1] See Adoption section in https://prng.di.unimi.it/

vlovich123•5h ago
It kind of doesn’t matter if there are users - there are people still stupidly using Mersenne Twister. The point is that PCG is better than xorshift and related in that family. That other high profile applications haven’t switched is besides the point that PCG is objectively better:

> O'Neill proposes testing PRNGs by applying statistical tests to their reduced-size variants and determining the minimum number of internal state bits required to pass.[7] TestU01's BigCrush examines enough data to detect a period of 235, so even an ideal generator requires 36 bits of state to pass it. Some very poor generators can pass if given a large enough state;[8] passing despite a small state is a measure of an algorithm's quality, and shows how large a safety margin exists between that lower limit and the state size used in practical applications. PCG-RXS-M-XS (with 32-bit output) passes BigCrush with 36 bits of state (the minimum possible), PCG-XSH-RR (pcg32() above) requires 39, and PCG-XSH-RS (pcg32_fast() above) requires 49 bits of state. For comparison, xorshift*, one of the best of the alternatives, requires 40 bits of state,[5]: 19 and Mersenne twister fails despite 19937 bits of state.[9]

adgjlsfhk1•2h ago
IMO there's plenty of reason to use Xoshiro over PCG. the quality differences between the best xoshiro and pcg differences are minimal (especially because most languages use a 256 bit state since it makes it easier to split/jump without worrying about duplicate streams), and Xoshiro generators tend to be easier to SIMD for when you need lots of random numbers.
WarrenWeckesser•4h ago
The default bit generator in NumPy is PCG-64 [1].

[1] https://numpy.org/doc/stable/reference/random/bit_generators...

camel-cdr•4h ago
> nobody had figured out any downsides to PCG's yet

BTW, people have broken PCG already: https://hal.science/hal-02700791/file/main.pdf

It takes up to 20000 CPU hours to break the seed from 512 output bits with an unknown state, increment and multiplier. (the multiplier is usually fixed constant)

tptacek•3h ago
What does it mean to "break" PCG? It's not a secure random number generator.
camel-cdr•3h ago
Seed recovery. It's not meant to be cryptographically secure, but previously nobody had reversed it.

Showing that reversal takes that many CPU hours shows how good the PRNG quality is.

mahemm•2h ago
To me this is completely unrelated to the quality of the PRNG, because security is explicitly a non-goal of the design. A general-purpose non-cryptographically secure PRNG is evaluated primarily on speed and uniformity of output. Any other qualities can certainly be interesting, but they're orthogonal to (how I would evaluate) quality.
tptacek•2h ago
Right: put differently, why would you bother to select among the insecure RNGs an RNG whose "seed" was "harder" to recover? What beneficial property would that provide your system?
avadodin•1h ago
CSPRNGs have all of the desirable properties for the output.

All else being equal, I don't think it is possible for a trivially reversible generator to have better statistical properties than a generator whose output behaves more like a CSPRNG.

It can definitely be good enough and or faster, though.

tptacek•49m ago
Right, I think defaulting to a CSPRNG is a pretty sane decision, and you'd know if you had need of a non-CSPRNG RNG. But what does that say about the choice between PCG and xorshiro?
aj_hackman•2h ago
Much like my beloved comb sort, I use xorshift because the implementation is small and it's Good Enough. God's Own 100 SLOC PRNG would have to be near-perfect and take three clock cycles to contemplate switching.
zkmon•5h ago
Randomness is far more profound than it appears to be. Probably it doesn't even belong to the real (materialized) world.
buildbot•4h ago
How so? I also find randomness profound but not sure what you mean but not belonging in the materialized world. Particle decay/Radiation is a pretty random process I believe?
card_zero•3h ago
Possibly connecting random events to time, which is not material.
IAmBroom•2h ago
The transformation of a particle into two more basic particles is absolutely material.
card_zero•1h ago
Some confusion? I was saying "time is not material".

In my conception time is made out of events, and the events are I suppose all material, and all have probabilities. So maybe time follows inevitably from matter. But I think it exists in its own right as a phenomenon that isn't material. There are such things. Knowledge is another one.

IAmBroom•2h ago
Noether's Theorem states that it is fundamental to our real world - or else the apparent, fundamental symmetries of our physics are wrong.
olivia-banks•5h ago
I love how this is written. A lot of things nowadays on this site, if only vaguely, make me think it was written in part by an LLM, but this didn’t fall into that category. Great read, bravo!
camel-cdr•4h ago
A history about random number generation isn't complete without mentioning George Marsaglias work.

He is responsible for multiply-with-carry, xorshift (the original version), KISS (a high quality generator predating the mersene twister) , the Ziggurat algorithm, diehard

Fun fact, one of the earliest methods for generating random mumbers, the middle square method, actually still passes all moderm statistical randomness test suites, if you hook up a weyl sequence to it: https://arxiv.org/abs/1704.00358

This, the middle square weyl sequence PRNG is my favoeite PRNG, because it's simple enough to implement from memory:

    uint64_t x, weyl;
    uint32_t msws(void) {
        x = x * x + (weyl += CONSTANT);
        return x = (x >> 32) | (x << 32);
    }
You just take a number, square it, advace and add the weyl sequence to it amd finally swap the lower and upper bits, using the trucated result as the output.

The CONSTANT is pretty much arbitrary, it just needs to be odd and not too regular. A good rule of thumb is to have no repeating or zero nibbles in each group of 4 bytes, e.g. 0xB5AD4ECEDA1CE2A9.

LPisGood•2h ago
The Ziggurat algorithm is very important and widely used. There are some side channel vulnerabilities in differential privacy applications based on the details of this algorithm.
avadodin•2h ago
That paper doesn't mention how many rounds it passed on the statistical tests, just that they tested 25000 seeds. They also don't definitely state a period but 2^64 with 192 or 384 bits of state is not that impressive. Furthermore, your version here uses only 128 bits so it is not clear to me that it is equivalent to the ones presented in the paper.
camel-cdr•14m ago
msws32() from the paper is the exact code I wrote above. The "s = 0xb5ad4eceda1ce2a9" is not part of the state, it's the CONSTANT.

I've tested msws32 it passes TestU01s BigCrush and didn't fail in >=1 TB of PractRand (I stopped after that). A scaled down msws16 fails PractRand after 2 GB, a msws24() variant passes >=256 GB (I stopped after that).

It's certainly not as good as more state of the art PRNGs like PCG, xoshiro, romu, sfc64, tylo64, but it is very simple and has quite high quality output, much better than any similarly simple to construct PRNG I know of.

dswalter•4h ago
Refreshing when technical writing has a sense of style.

Read it and gain a gnawing sense of unease at how "good" things might really be at present!

websku•3h ago
random numbers are not exactly random.
nachox999•2h ago
natural random numbers are not (exactly) random or artifical generated random numbers are not (exactly) random?
Cold_Miserable•2h ago
Xorshift, LCM and hardware rdrand work just fine. PCG and Weyl are overkill.
camel-cdr•2h ago
sure, a += b is overkill
rurban•45m ago
Hardware rdrand, lol! Totally broken
NoSalt•1h ago
I dunno ... his saucy language made this very difficult to read.
a-dub•47m ago
i thought they were all built on the compression functions from secure hashes these days?
jcynix•41m ago
If you are so inclined, you can build your own random number generator in hardware, which uses a Geiger counter: https://www.instructables.com/Arduino-True-Random-Number-Gen...
PantaloonFlames•38m ago
This was entertaining and informative, the best kind of info. But one puzzle remains - why did the author keep mentioning slide rules as a tool that would reveal the non-randomness of some number series ?

I don’t get that part.

gwbas1c•10m ago
I've always wondered, if you started recording audio, can you treat the least significant bit as random? Perhaps as an alternative to a real hardware random number generator?
butlike•55s ago
Please tell me if I'm off-base here, but something I always thought about and have been toying with is the notion that "there's no true random in this universe."

From a particle physics perspective, as an observer in the electromagnetic spectrum, we're always observing through a reference frame based on the speed of light in relation to the observed object. Because it's always in reference to a constant, c, anything perceived at random can theoretically be measured if you had the position of the observer at the time of observation, right?

Am I way off-base here?