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

Show HN: Humanizer AI: Humanize AI Text in Your Own Voice – Creaibo

https://www.creaibo.net
1•Yinp•19s ago•0 comments

My Week with OpenCode

https://deadsimpletech.com/blog/week_with_opencode
1•kristianp•39s ago•0 comments

Let's Talk About What It Means to Rest for the Sake of Rest

https://electricliterature.com/lets-talk-about-what-it-means-to-rest-for-the-sake-of-rest/
1•herbertl•14m ago•0 comments

In search of our own voice

https://www.animationxpress.com/latest-news/guest-column-in-search-of-our-own-voice/
1•herbertl•14m ago•0 comments

Pokémon card thefts on the rise [video]

https://www.youtube.com/watch?v=ZEDXXascuTw
1•mgh2•15m ago•0 comments

Germany's shut down of nuclear plants a 'huge mistake', says Merz

https://brusselssignal.eu/2026/01/germanys-shut-down-of-nuclear-plants-a-huge-mistake-says-merz/
3•walterbell•15m ago•0 comments

A beautifully designed particle mouse effect

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•spacedogs•18m ago•0 comments

Trump wants tech companies to foot bill for new power plants due to AI

https://www.cnbc.com/2026/01/16/trump-wants-tech-companies-to-foot-the-bill-for-new-power-plants-...
1•jnord•19m ago•0 comments

How Etsy Uses LLMs to Improve Search Relevance

https://www.etsy.com/codeascraft/how-etsy-uses-llms-to-improve-search-relevance
1•zdw•25m ago•0 comments

Nvidia suppliers halt H200 output after China blocks chip

https://www.ft.com/content/02a3eb7c-684f-4e39-87b8-36e9595ef800
2•SanjayMehta•29m ago•1 comments

Ask HN: What are good tools for creating a video or interactive demo for a SaaS?

2•rishabhpoddar•31m ago•0 comments

Intuition why the derivative of $e^x$ is itself

https://math.stackexchange.com/questions/3511144/intuition-why-the-derivative-of-ex-is-itself
2•throwoutway•33m ago•0 comments

A Calif. teen trusted ChatGPT's drug advice. He died from an overdose

https://www.sfgate.com/tech/article/calif-teen-chatgpt-drug-advice-fatal-overdose-21266718.php
4•freediver•35m ago•0 comments

Gas Town is a glimpse into the future

https://johncodes.com/archive/2026/01-16-a-glimpse-into-the-future/
2•jpmcb•38m ago•0 comments

Building a Quake PC

https://fabiensanglard.net/quake_pc/index.html
2•zdw•39m ago•0 comments

China Clamps Down on High-Speed Traders, Removing Servers

https://www.bloomberg.com/news/articles/2026-01-16/china-clamps-down-on-high-speed-traders-removi...
5•petethomas•45m ago•0 comments

Astronaut Charlie Duke (2021) [video]

https://www.youtube.com/watch?v=U7jWk0u4K-E
1•ceroxylon•53m ago•1 comments

I skipped Japan's university exam to write a "computational metaphysics" exam

2•fumi2026•55m ago•0 comments

Grand Illusion

https://chrishedges.substack.com/p/grand-illusion-read-by-eunice-wong
2•chmaynard•58m ago•0 comments

Artisanal Code

https://sunnyamrat.com/posts/2026-01-17-artisanal-code/
3•sunnyam•58m ago•0 comments

Lucasfilm President Kathleen Kennedy to step down

https://www.latimes.com/entertainment-arts/business/story/2026-01-15/lucasfilm-president-kathleen...
4•iancmceachern•1h ago•1 comments

Stay-at-home sons are here – and they're not going anywhere

https://www.washingtonpost.com/style/trends/2026/01/16/stay-at-home-sons/
2•blondie9x•1h ago•2 comments

Show HN: Agent Coworking,Multi-agent networks for AI collaboration (open source)

https://openagents.org/showcase
2•snasan•1h ago•0 comments

Ask HN: Can companies claim copyright over their LLM-generated codebases?

3•mks_shuffle•1h ago•2 comments

GitHub Copilot now supports OpenCode

https://github.blog/changelog/2026-01-16-github-copilot-now-supports-opencode/
4•todsacerdoti•1h ago•0 comments

Show HN: I gave AI persistent memory. Someone didn't like that

1•Shaximus•1h ago•0 comments

Dispute with Russian billionaire leads to 4 Bay Area bankruptcies

https://www.sfgate.com/tech/article/russian-billionaire-four-biotech-bankruptcies-21299298.php
5•nradov•1h ago•0 comments

Crypto grifters are recruiting open-source AI developers

https://www.seangoedecke.com/gas-and-ralph/
14•lalitmaganti•1h ago•1 comments

GoodJob, Solid Queue, Sidekiq, Active Job, in 2026

https://island94.org/2026/01/goodjob-solid-queue-sidekiq-active-job-in-2026
1•thunderbong•1h ago•0 comments

Ben Affleck and Matt Damon on the Limits of AI in Filmmaking [video]

https://www.youtube.com/watch?v=O-2OsvVJC0s
6•karakoram•1h ago•0 comments