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?

Everyone gets faster writes: We turned off FPW's in Neon [PostgreSQL]

https://neon.com/blog/turning-off-fpw-for-faster-writes
1•aluxian•29s ago•0 comments

Trump jumps from 'anything goes' to 'strict regulation' AI policy

https://www.theregister.com/ai-and-ml/2026/05/08/trump-jumps-from-anything-goes-to-strict-regulat...
1•CrankyBear•41s ago•0 comments

Ice Cream Blending (1965) [pdf]

https://bitsavers.org/pdf/ibm/generalInfo/E20-0156-0_Linear_Programming_-_Ice_Cream_Blending.pdf
1•ok123456•1m ago•0 comments

Can NPM, pnpm etc. use frontier models to check packages for malware?

1•VikRubenfeld•1m ago•0 comments

Apple's education discount now requires proof that you're a student

https://www.theverge.com/tech/926675/apple-education-discount-unidays-verification-us
1•jaredwiener•3m ago•0 comments

The Impossible Things We Have to Believe

https://berthub.eu/articles/posts/the-impossible-things-we-have-to-believe/
1•genericlemon24•3m ago•0 comments

The future of game consoles is looking bleak

https://www.theverge.com/games/926772/nintendo-switch-2-price-hike-console-gaming-future
1•ZeidJ•4m ago•0 comments

Jankmarking: Janky Benchmarking

https://www.williamangel.net/blog/2026/05/08/jankmarking.html
1•datadrivenangel•7m ago•0 comments

Self-Updating Screenshots

https://www.jmduke.com/posts/self-updating-screenshots.html
1•speckx•9m ago•0 comments

Robe-ot: the Android monk working to reboot the faith of South Korea's Buddhists

https://www.theguardian.com/world/2026/may/08/jogyesa-temple-south-korea-humanoid-ai-robot-gabi
2•mitchbob•11m ago•0 comments

Global perceptions of US fall below Russia, survey finds

https://www.reuters.com/world/china/global-perceptions-us-fall-below-russia-under-trump-survey-fi...
2•akyuu•12m ago•0 comments

Suspected oil spill seen on satellite images near Iran's Kharg Island

https://www.reuters.com/world/middle-east/suspected-oil-spill-seen-satellite-images-near-irans-kh...
1•geox•13m ago•0 comments

Mosaic

https://idl.uw.edu/mosaic/what-is-mosaic/
1•tosh•15m ago•0 comments

Apollo, Blackstone Weigh $35B Financing for Broadcom

https://www.bloomberg.com/news/articles/2026-05-08/apollo-blackstone-weigh-35-billion-financing-f...
1•petethomas•16m ago•0 comments

Ask HN: Has AppImage won the Linux package wars?

1•stuxnet79•16m ago•0 comments

Progressive Web Components

https://arielsalminen.com/2026/progressive-web-components/
1•mpweiher•16m ago•0 comments

A New Engineering Metric for the AI-Transformation Age

https://www.webwire.com/ViewPressRel.asp?aId=354394
2•alienll•20m ago•0 comments

Show HN: A lie detector game that reads your pulse through your phone camera

https://kouh.me/tells
2•mrkn1•21m ago•0 comments

Show HN: Agent-isolated remote envs with full Docker Compose support

https://github.com/qosha1/remote-compose
1•quinnosha•21m ago•0 comments

I've Banned Query Strings

https://chrismorgan.info/no-query-strings
3•speckx•21m ago•1 comments

Trump releases previously classified UFO files

https://www.reuters.com/world/trump-releases-previously-classified-ufo-files-2026-05-08/
2•afshinmeh•22m ago•0 comments

We've only gone and done it: Changed what you're used to

https://www.theregister.com/site-news/2026/05/06/weve-only-gone-and-done-it-changed-what-youre-us...
1•dijksterhuis•22m ago•0 comments

Teaching Claude Why

https://www.anthropic.com/research/teaching-claude-why
3•pretext•23m ago•0 comments

I've been using Empirical as my memory layer across AI tools

https://empirical.gauzza.com/blog/codex-session-tone-voice-how-i-used-codex-empirical-to-lock-in-...
1•stevendeluth•24m ago•1 comments

Novel macro signals for AI-related job loss?

2•sfmz•24m ago•0 comments

As drought worsens, Western states brace for wildfires, water shortages

https://stateline.org/2026/05/08/as-drought-worsens-western-states-brace-for-wildfires-water-shor...
2•chmaynard•27m ago•0 comments

AI Is Breaking Two Vulnerability Cultures

https://www.jefftk.com/p/ai-is-breaking-two-vulnerability-cultures
2•speckx•27m ago•0 comments

Show HN: Prism – Self-hosted notification gateway (Signal, Telegram, WebPush)

https://github.com/lone-cloud/prism
1•lone-cloud•32m ago•0 comments

New Generation Tri-Digit Character Encoding Table

https://drive.google.com/drive/folders/1H1fs8MckSBomk0s37KN-2atUoUKSoSXY?usp=sharing
3•jackhua18112001•36m ago•1 comments

Meta Is Dying. It's About Time

https://www.nytimes.com/2026/05/08/opinion/meta-facebook-zuckerberg.html
9•flowerlad•37m ago•2 comments