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

Terminals should generate the 256-color palette

https://gist.github.com/jake-stewart/0a8ea46159a7da2c808e5be2177e1783
1•tosh•53s ago•0 comments

Show HN: Premeth – Ensuring that premed student always stay premeth

https://www.premeth.com/
1•dodobirdy•3m ago•0 comments

LCD-as-Aperture: A Computer That Fits Inside a Camera Lens

https://hackaday.com/2026/02/16/a-computer-that-fits-inside-a-camera-lens/
1•selvan•7m ago•0 comments

Show HN: LaminarDB – Streaming SQL database in Rust, zero-alloc hot path

https://github.com/laminardb/laminardb
1•sujitn•8m ago•1 comments

Historically first (0.01) release of Linux kernel (1991)

https://github.com/zavg/linux-0.01
1•tosh•9m ago•0 comments

Anthropic's pricing wall is routing enterprise revenue to OpenAI

2•luckygreen•11m ago•0 comments

Show HN: TokenMeter – Open-source observability layer for LLM token costs

https://github.com/ATMAECHO/TOKEN-METER
1•Mohit8880•12m ago•1 comments

Show HN: OpenClaw – Open-source personal AI agent that lives on your machine

https://github.com/openclaw/openclaw
1•YaraDori•19m ago•1 comments

TinyIce: Single-binary Icecast2-compatible server (auto-HTTPS, multi-tenant)

https://github.com/DatanoiseTV/tinyice
2•sylwester•19m ago•1 comments

John Carmack on GPU Scheduling

https://twitter.com/ID_AA_Carmack/status/2023805426345689198
1•tosh•20m ago•0 comments

Show HN: Claude Code as a Doctor for Claude Code

https://github.com/Ramsbaby/openclaw-self-healing
1•ramsbaby-dev•24m ago•0 comments

"Operation Windlord": C-17 Airlifts a Micro Nuclear Reactor for the First Time

https://www.twz.com/uncategorized/this-is-a-nuclear-reactor-packed-into-a-c-17-globemaster-iii
2•hitekker•26m ago•0 comments

Oral history of Robert P. Colwell [pdf]

https://www.sigmicro.org/media/oralhistories/colwell.pdf
1•luu•26m ago•0 comments

The Brain May Learn More from Rare Events Than from Repetition

https://www.ucsf.edu/news/2026/02/431511/brain-may-learn-more-rare-events-repetition
2•XzetaU8•27m ago•0 comments

Can personality change after 60? An eight-week program suggests it can

https://www.uni-heidelberg.de/en/newsroom/psychology-study-you-can-teach-an-old-dog-new-tricks
1•XzetaU8•35m ago•0 comments

Babel – Captchas for AI

https://babel.vercel.app/
1•aizk•41m ago•2 comments

Q4 2025: Where 8,500 institutional investors put $1.3T in new capital

https://13finsight.com/research/q4-2025-institutional-consensus-where-smart-money-converges
4•vicchenai•41m ago•0 comments

Humanoid Robots Perform Kung Fu at China's 2026 Spring Festival Gala

https://app.cctv.com/special/m/topic/index.html?itemId=2676
2•edweis•45m ago•0 comments

MCP works because tools are dumb. That assumption has an expiry date

https://productfit.substack.com/p/mcp-is-a-transitional-protocol-heres
1•niraj_kothawade•47m ago•1 comments

The AI War Is Over. Google Won

https://www.youtube.com/watch?v=hcE0NPYlo1w
1•cable2600•48m ago•1 comments

Welcome to the Software Industrial Revolution

https://cannoneyed.com/essays/software-industrial-revolution
2•bentaber•50m ago•1 comments

In Search of a Discord Replacement

https://no-bull.sh/blog/2026/02/16/in-search-of-a-discord-replacement/
3•ta8903•51m ago•2 comments

Rescuers Race to Find 10 Missing Skiers After Avalanche Near Lake Tahoe

https://www.nytimes.com/2026/02/17/weather/california-rain-snow-forecast.html
1•carabiner•55m ago•1 comments

Show HN: Heaven is real and it runs on a microkernel

https://aryal.schizoid.men/heaven_is_real_and_it_runs_on_a_microkernel.html
1•aryalaadi•55m ago•1 comments

Show HN: GhostTrace – See rejected decisions in AI agents

https://github.com/AhmedAllam0/ghosttrace
1•AhmedAllam0•55m ago•2 comments

POSIX-UEF POSIX compatibility layer and build environment for UEFI

https://gitlab.com/bztsrc/posix-uefi
2•shakna•56m ago•1 comments

Migrating from Postgres to ClickHouse for faster dashboards

https://docs.fiveonefour.com/guides/performant-dashboards/tutorial?lang=typescript
1•oatsandsugar•58m ago•1 comments

What happens when you type a url in the browser's address box and press enter?

https://github.com/alex/what-happens-when
1•buchanae•1h ago•1 comments

A New Complexity Theory for the Quantum Age

https://www.quantamagazine.org/a-new-complexity-theory-for-the-quantum-age-20260217/
1•rolph•1h ago•0 comments

Mysterious NSFW "Grok" Notification from Google App

https://taylor.town/google-grok-notif
4•surprisetalk•1h ago•3 comments