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?

Llama.cpp now has an official website: llama.app

https://llama.app/
2•wronglebowski•1m ago•1 comments

How Many GPUs? A simple LLM inference sizing calculator

https://howmanygpus.streamlit.app/
1•dadbod•2m ago•0 comments

Amdahl's Law and the Limits to Growth

https://steinacker.name/articles/amdahls-law-en/
1•gsteinacker•2m ago•0 comments

Show HN: Stop parallel AI coding sessions clobbering each other's handoffs

https://github.com/joshduffy/claude-handoff-guard
1•nahsuhn•6m ago•0 comments

Deep Dive into Kubernetes Gateway API

https://www.romaglushko.com/blog/k8s-gateway-api/
1•roma_glushko•7m ago•1 comments

Show HN: Prezlo – We built an API that tells AI agent whether to trust an expert

https://prezlo.io/
1•loptymobile•9m ago•0 comments

Show HN: NvEnvy – A Notational Velocity (NvAlt) Reboot in Swift. OSS

https://github.com/kenm47/nvEnvy
2•hank2000•11m ago•0 comments

Show HN: Vibewarz – bot vs bot arena for vibecoders

https://vibewarz.com
1•gaomri•11m ago•1 comments

Rsync maintainer starts uses Claude, regressions mount

https://mastodon.gamedev.place/@JeremiahFieldhaven/116654345332213390
7•timmytokyo•15m ago•1 comments

Show HN: Inkfeed – RSS Reader for Kindle

https://inkfeed.xyz
1•adhamsalama•16m ago•1 comments

Artificial Intelligence for Software Engineering: From Probable to Provable

https://cacm.acm.org/opinion/artificial-intelligence-for-software-engineering-from-probable-to-pr...
1•yarapavan•17m ago•0 comments

AI Now Writes as Many Online Articles as Humans

https://graphite.io/five-percent/ai-now-writes-as-many-online-articles-as-humans-do
1•ChrisArchitect•17m ago•0 comments

Reviving Teletext for Ham Radio

https://spectrum.ieee.org/reviving-teletext-for-ham-radio
2•yarapavan•18m ago•0 comments

Ask HN: Is the AI "Boom" Merely Another Excuse for Layoffs?

3•giardini•21m ago•1 comments

Show HN: TV Explorer. Adding advanced UI to free online TV

https://tvexplorer.live
2•dtagames•21m ago•1 comments

Mystery company accidentally blew $500M on Claude AI in a single month

https://www.tomshardware.com/tech-industry/artificial-intelligence/mystery-company-accidentally-b...
1•yogthos•21m ago•1 comments

Startup offers free home cleaning–if it can record it all for robot training

https://arstechnica.com/ai/2026/05/robot-training-startup-will-send-humans-wearing-cameras-to-cle...
5•tartoran•22m ago•0 comments

Nesbitt: Protestware for Coding Agents

https://lwn.net/Articles/1075315/
3•Brajeshwar•24m ago•1 comments

Nature is expanding Registered Reports to all the fields in which we publish

https://www.nature.com/articles/d41586-026-01629-y
1•bookofjoe•27m ago•0 comments

iFood "Mega Leak" Alert: What This Case Teaches All Business About Data Security

https://www.pentesty.co/blog/ifood-data-leak-extortion-2026
1•josanjohnata•29m ago•0 comments

Unix-CTF: Procedural Environments for Unix-Competence Reinforcement Learning

https://twitter.com/MavorParker/status/2060386383496433862
1•AMavorParker•30m ago•0 comments

Apollo and Blackstone are wrangling $36B to buy Google chips for Anthropic

https://qz.com/apollo-blackstone-36-billion-debt-deal-anthropic-google-chips-052926
2•cwwc•32m ago•1 comments

Let's Standardize the 1970 Epoch

https://github.com/billpg/1970EpochalTime/
1•billpg•34m ago•1 comments

CS 153: Frontier Systems (Amin Vahdat)

https://share.descript.com/view/rYJYVV36fKa
1•aloukissas•34m ago•0 comments

Woodworkers at Melbourne Design Week are building on sustainability

https://www.abc.net.au/news/2026-05-24/melbourne-design-week-women-woodworkers/106695946
1•Tomte•35m ago•0 comments

Magnets Are Bad for Hardware Again

https://hackaday.com/2026/05/21/magnets-are-bad-for-hardware-again/
3•speckx•38m ago•0 comments

Notes from the Mistral AI Now Summit in Paris

https://koenvangilst.nl/lab/mistral-ai-now-summit
9•vnglst•38m ago•0 comments

Liquid AI reveals 8B-A1B MoE trained on 38T

https://www.liquid.ai/blog/lfm2-5-8b-a1b
2•simjnd•40m ago•0 comments

Strace-UI, Bonsai_term, and the TUI Renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
1•hardwaregeek•40m ago•0 comments

Same Driver, new vehicle: Welcoming our first riders trips in the Ojai

https://waymo.com/blog/2026/05/welcoming-riders-in-the-ojai/
1•xnx•40m ago•0 comments