frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: DualMix128 – A fast, simple PRNG passing PractRand (32TB) and BigCrush

https://github.com/the-othernet/DualMix128
5•the_othernet•1y ago
Hi HN,

I'd like to share DualMix128, a pseudo-random number generator I developed. It's written in C and achieves very high speed while maintaining strong statistical properties for non-cryptographic use.

GitHub (MIT License): https://github.com/the-othernet/DualMix128

Key points:

* *Fast:* Benchmarked at ~0.36 ns per 64-bit generation on GCC 11.4 (-O3 -march=native). This was over 2x faster than `xoroshiro128++` (~0.74 ns) and competitive with `wyrand` (~0.36 ns) in the same tests. (Benchmark code/results in repo).

* *Robust:* Passes the full TestU01 BigCrush suite and PractRand up to 32TB with no anomalies reported. (Test harnesses/logs in repo).

* *Simple Algorithm:* Uses a 128-bit state (two `uint64_t`) with simple mixing based on addition, XOR, rotation, and a final multiplication by the golden ratio constant.

* *C Implementation:* Minimal dependencies (`stdint.h` for core), straightforward C code.

This came out of exploring simple constructions for efficient PRNGs that still hold up under heavy statistical testing.

Curious to hear feedback on the design, performance, potential applications, or any weaknesses you might spot. Thanks!

Comments

thomaskoopman•1y ago
Very cool, fast and looks like it should vectorize too. Do you have a jump function for parallel seeding?

How did you come up with this, some number-theoretic basis or more experimental?

Crab Memes Amplify Mistaken Ideas about Evolution

https://www.scientificamerican.com/article/crab-memes-amplify-mistaken-ideas-about-evolution/
1•Eridanus2•6m ago•0 comments

Show HN: TigerJSON – Native macOS JSON viewer with jq filter engine ($9.99)

https://apps.apple.com/kr/app/tiger-json/id6761610376?mt=12
1•oxchairman•13m ago•0 comments

Scott Sumner Q1 movie reviews

https://scottsumner.substack.com/p/films-of-2026-q1
1•paulpauper•15m ago•0 comments

Annualizing Retention Rates

https://www.arrguide.com/blog/annualizing-retention-rates
1•ericsd2024•20m ago•0 comments

The Gell-Mann Amnesia Trap

https://novehiclesinthepark.substack.com/p/the-gell-mann-amnesia-trap
1•axtro•21m ago•0 comments

Meltdown: LLM Client Made in Python and Tk

https://github.com/Merkoba/Meltdown
2•madprops•25m ago•0 comments

ShowHN: Applying PEFT (e.g., LoRA) for edge-cloud collaborative computing

https://github.com/ShadowLLM/shadow-peft
3•heyjude87•27m ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
2•_alternator_•32m ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
3•paulpauper•37m ago•0 comments

Show HN: Ant – A from-scratch JavaScript runtime in 9 MB

https://github.com/themackabu/ant
2•theMackabu•43m ago•0 comments

SoC 2 has no real edge

1•krishgolcha•47m ago•0 comments

The Great American GLP-1 Experiment

https://www.nytimes.com/interactive/2026/04/15/opinion/glp1-health-effects.html
1•paulpauper•49m ago•0 comments

Show HN: KillClawd – a sarcastic AI desktop crab by local Ollama

https://github.com/ninjahawk/KillClawd
2•ninjahawk1•53m ago•0 comments

We mapped the nationwide Instructure breach

https://data.dailycal.org/2026-05-07-shiny-hunters/
2•notmysql_•56m ago•0 comments

The End of Elsewhere

https://fugitivemargins.substack.com/p/the-end-of-elsewhere
1•celadevra_•57m ago•0 comments

The Secret Diary That Has Spilled into the Musk vs. OpenAI Feud

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
2•RyanShook•58m ago•0 comments

Nvidia introduces back end for CUDA kernels in Rust

https://github.com/NVlabs/cuda-oxide
1•ketchup32613•1h ago•0 comments

Ask Hacker News: AI music with feedback

1•alpple•1h ago•0 comments

vLLM Routing and KV

https://avkcode.github.io/blog/how-vllm-works.html
3•gmays•1h ago•0 comments

A Mental Model for Agentic Work

https://basti.io/blog/agentic_work_mental_model/
2•vinhnx•1h ago•0 comments

Non-invasive profiling of the tumour microenvironment with spatial ecotypes

https://www.nature.com/articles/s41586-026-10452-4
3•bookofjoe•1h ago•0 comments

VGC: A Zone-Based Garbage Collection Architecture for Python's Parallel Runtime

https://arxiv.org/abs/2512.23768
2•teleforce•1h ago•0 comments

Tell HN: "Epstein files" is getting buried by deliberate suppresion-propaganda

15•notepad0x90•1h ago•5 comments

Open-source AWS evidence collector for SoC 2 audits

https://loxeai.com
1•arjavmehta•1h ago•0 comments

How to Work and Compound with AI

https://eugeneyan.com/writing/working-with-ai/
1•vinhnx•1h ago•0 comments

Open weights are quietly closing up – and that's a problem

https://martinalderson.com/posts/open-weights-are-quietly-closing-up/
3•vinhnx•1h ago•0 comments

He says U.S. troops abused him in Iraq's Abu Ghraib and his life is still ruined

https://www.npr.org/2023/04/11/1167341565/us-iraq-war-abu-ghraib-survivor
2•Cider9986•1h ago•0 comments

AI's Circular Psychosis

https://www.wheresyoured.at/premium-ais-circular-psychosis/
7•greedo•1h ago•6 comments

AI Hard Drive Shortage Making It More Expensive, Harder to Archive the Internet

https://www.404media.co/the-ai-hard-drive-shortage-is-making-it-more-expensive-and-harder-to-arch...
2•pabs3•1h ago•1 comments

Chamath Palihapitiya: What I Learned from Being Around the Top.01%

https://www.youtube.com/watch?v=RWqB9eAKMx0
2•Brysonbw•2h ago•0 comments