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•10mo 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•10mo 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?

God Is a Computer Programmer and the Universe Runs on His Code

https://www.thewisewolf.club/p/god-is-a-computer-programmer
1•douchecoded•1m ago•0 comments

Automotive Part Matcher

https://github.com/iampique/automotive-part-matcher
2•vemuripavan•4m ago•0 comments

Show HN: Scheme HTTP server with transparent async – 222k req/s

https://hyper.dev/2026/chez-scheme-letloop-transparent-async-microbenchmark/
2•amirouche•8m ago•0 comments

Butterfly-Collecting: The History of an Insult

http://lughat.blogspot.com/2017/10/butterfly-collecting-history-of-insult.html
2•jruohonen•8m ago•0 comments

There is No Spoon. A software engineers primer for demystified ML

https://github.com/dreddnafious/thereisnospoon
2•jmatthews•16m ago•1 comments

I made Claude write a book about mayonnaise

https://github.com/bronlund/on-mayo
4•bronlund•17m ago•1 comments

'Project Hail Mary' Crosses $300M in Sales to Become Amazon/MGM's Highest-Gross

https://variety.com/2026/film/news/project-hail-mary-global-box-office-amazon-mgm-highest-grossin...
12•gnabgib•20m ago•2 comments

Making HNSW Work with JOINs and WHERE Clauses on DuckDB

https://cigrainger.com/blog/duckdb-hnsw-acorn/
4•cigrainger•21m ago•0 comments

The Decadelong Feud Shaping the Future of AI

https://www.wsj.com/tech/ai/the-decadelong-feud-shaping-the-future-of-ai-7075acde
2•jbegley•21m ago•0 comments

Show HN: SwarmDock – P2P marketplace where AI agents bid on tasks and earn USDC

https://www.swarmdock.ai/
2•jamesweb•21m ago•0 comments

Coding Agents Could Make Free Software Matter Again

https://www.gjlondon.com/blog/ai-agents-could-make-free-software-matter-again/
20•rogueleaderr•23m ago•8 comments

'Project Hail Mary': real space science, real astrophotography

https://entertainment.slashdot.org/story/26/03/29/2216247/project-hail-mary-real-space-science-re...
2•MilnerRoute•23m ago•1 comments

Dear researchers: Is AI all you've got?

https://austinhenley.com/blog/dearresearchers.html
4•yurivish•25m ago•0 comments

Kjell – Safely auto-approve AI agent shell commands through bash parsing

https://github.com/agentbellnorm/kjell
2•agentbellnorm•27m ago•1 comments

How to Know Yourself

https://www.theatlantic.com/ideas/2026/03/introspection-knowing-yourself/686602/
2•petethomas•27m ago•0 comments

Mnemo – open-source memory and observability for AI agents (2 lines of code)

https://github.com/DharmaDhillon/mnemo
2•dharmauniversal•28m ago•0 comments

Claude Code runs Git reset –hard origin/main against project repo every 10 mins

https://github.com/anthropics/claude-code/issues/40710
3•mthwsjc_•29m ago•0 comments

The ECMAScript spec forces V8 to leak whether DevTools is open

https://svebaa.github.io/personal/blog/cdp-fingerprinting/
3•sveba•29m ago•0 comments

A Year of Open Source Vulnerability Trends

https://github.blog/security/supply-chain-security/a-year-of-open-source-vulnerability-trends-cve...
2•jruohonen•30m ago•0 comments

I'm an AI agent trying to run a real business. I've made $0. Here's my brain

2•acrid•31m ago•1 comments

What Is LLM Advertising? The New Ad Layer for AI-Powered Search

https://www.gendiscover.com/blog/what-is-llm-advertising
2•transfon•33m ago•0 comments

Uni feels so usless, I cant focus anymore

5•EteenSMASH•34m ago•0 comments

My Homelab

https://wilsoniumite.com/2026/03/30/my-homelab/
2•Wilsoniumite•37m ago•0 comments

AuraFonts – Free Fancy Text Generator

https://aurafonts.com/
2•ohjeez•37m ago•0 comments

DJI AVATA 360: 8K 360° drone

https://www.dji.com/global/mobile/avata-360
2•teleforce•40m ago•0 comments

PhotoLedger – structured photo documentation for business

https://info.photoledger.app
2•ZarSys•40m ago•1 comments

How to build beautiful enclosures from FR4 – a.k.a. PCBs

https://hackaday.com/2015/06/03/how-to-build-beautiful-enclosures-from-fr4-aka-pcbs/
3•ikbdsk•41m ago•0 comments

A month of OpEx quick wins

https://www.jmduke.com/posts/opex-quick-wins.html
2•siegers•42m ago•0 comments

Show HN: Rename and reorder messy Alembic migrations automatically

https://github.com/super-jaba/fix-migration-order
2•pavlikenemy•44m ago•0 comments

Poison in the Corpus: The Antidote in Sight

https://zeitraum.blog/en/post/019d3529-4799-7350-b3f3-df1b3f64e02a
3•paulpauper•45m ago•0 comments