frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Poker hand evaluator in pure C# (.NET 8) – 115M evals/SEC

https://github.com/JBelthoff/poker.net
2•jbelthoff•3h ago
I rebuilt the classic Cactus Kev poker hand evaluator from scratch in modern C# (.NET 8), focusing on algorithmic clarity and performance instead of lookup tables.

• Pure C#, no unsafe code • Evaluates ~115 million 7-card hands per second • Uses Span<T> and BenchmarkDotNet • Detailed benchmarks and architecture in the README

GitHub: https://github.com/JBelthoff/poker.net Live demo: https://poker-calculator.johnbelthoff.com Full background: https://www.linkedin.com/pulse/why-i-rewrote-classic-poker-e...

Comments

jbelthoff•3h ago
Thanks for checking this out! If you’re curious about how I squeezed 115 million 7-card evaluations per second in .NET 8, ask away — happy to dig into the combinatorial logic, Span<T> usage, or BenchmarkDotNet setup.
bob1029•3h ago
> written entirely in pure C# without lookup tables or unsafe code.

https://github.com/JBelthoff/poker.net/blob/master/Services/...

https://github.com/JBelthoff/poker.net/blob/master/Services/...

https://github.com/JBelthoff/poker.net/blob/master/Services/...

(et. al.)

How are these not lookup tables?

jbelthoff•1h ago
Good question - only one of those, (flushes), is even remotely “lookup-table-ish,” and that’s just a small optimization for detecting flush patterns. It’s not a precomputed hand-rank database.

The evaluator doesn’t rely on massive precomputed tables like SnapCall (platatat/SnapCall) or HenryRLee/PokerHandEvaluator versions. Every hand is still scored in real time through arithmetic and bit logic - prime products, masks, and combinatorial iteration.

hand_rank_jb is the actual evaluation logic, and perm7 just enumerates 7-card combinations. Neither of those stores results. So while there’s a minor mapping array for flush detection, the overall approach remains a pure C# implementation without traditional lookup tables or unsafe code.

Trump pardons Binance founder Changpeng Zhao

https://apnews.com/live/donald-trump-news-updates-10-23-2025
1•Physkal•1m ago•0 comments

The Official AI purity test

https://www.aipuritytest.org/
1•bootsmann•4m ago•0 comments

Getting started with Rust and Rocket for HTTP services

https://christine.website/blog/how-i-start-rust-2020-03-15
1•fanf2•5m ago•0 comments

Implicit Bias in Large Language Models with Concept Learning Dataset

https://arxiv.org/abs/2510.01219
1•PaulHoule•7m ago•0 comments

Semi-crystalline and amorphous materials via multi-temperature 3D printing

https://www.nature.com/articles/s41467-025-64092-9
1•gnabgib•7m ago•0 comments

Recovering videos from my Sony camera that I stupidly deleted

https://www.jeffgeerling.com/blog/2025/recovering-videos-my-sony-camera-i-stupidly-deleted
2•speckx•8m ago•0 comments

Honeydiff: Fast, Rich Image Diffing for Modern Visual Testing

https://vizzly.dev/blog/honeydiff-fast-image-diffing-foundation/
2•Robdel12•9m ago•2 comments

Invisible secret codes using materials that react to temperature

https://www.tuwien.at/en/tu-wien/news/news-articles/news/unsichtbare-geheimcodes-aus-dem-3d-drucker
1•giuliomagnifico•10m ago•0 comments

U.S. Details Gambling Cases Involving Pro Athletes and Mafia Families

https://www.nytimes.com/live/2025/10/23/nyregion/nba-illegal-gambling-arrests
8•ilamont•10m ago•0 comments

Retina e-paper promises screens 'visually indistinguishable from reality'

https://newatlas.com/materials/retina-e-paper/
1•jamiek88•11m ago•0 comments

Hacker News Front Page: what 26 hours of traffic got us

https://blog.abdellatif.io/hackernews-front-page-26-hours-traffic
5•tifa2up•12m ago•2 comments

Scaling Innovation: Building Ecosystems

https://hazelweakly.me/blog/scaling-innovation-building-ecosystems/
1•mattstratton•12m ago•0 comments

Tusko's Last Trip

https://www.theguardian.com/science/2004/feb/26/research.science
1•atomicnature•13m ago•0 comments

Shopify Addresses Accessibility Lawsuits

https://www.shopify.com/news/accessibility-lawsuits
1•jztan•14m ago•0 comments

Nginx Site Manager: web-based Nginx management platform

https://github.com/Adewagold/nginx-server-manager
3•thunderbong•14m ago•0 comments

Apple loses landmark UK lawsuit over app store commissions

https://www.reuters.com/sustainability/boards-policy-regulation/apple-loses-uk-lawsuit-over-app-s...
5•pseudolus•14m ago•0 comments

Ask HN: Have You Seen?

1•mmaunder•14m ago•1 comments

Sakana AI CTO says he's 'sick' of transformers that powers every major AI model

https://venturebeat.com/ai/sakana-ais-cto-says-hes-absolutely-sick-of-transformers-the-tech-that-...
2•hardmaru•14m ago•0 comments

Literal crossed wires sent cops after innocent neighbors in child abuse case

https://www.theregister.com/2025/10/17/crossed_wires_iioc_case/
1•hashim•16m ago•0 comments

Characterizing Cryptocurrency-Themed Malicious Browser Extensions

https://cacm.acm.org/research-highlights/characterizing-cryptocurrency-themed-malicious-browser-e...
1•FromTheArchives•18m ago•0 comments

Statement from Anthropic CEO on Commitment to US AI Leadership

https://www.anthropic.com/news/statement-dario-amodei-american-ai-leadership
1•dgs_sgd•18m ago•0 comments

Ask HN: Why can't majority of western kids survive in third world country?

1•findingMeaning•18m ago•2 comments

Ergodicity Detection Algorithms

https://arxiv.org/abs/2508.08319
1•northlondoner•19m ago•1 comments

Cryptocurrency Browser-Extension Security: A Wake-Up Call and a Way Forward

https://cacm.acm.org/research-highlights/technical-perspective-cryptocurrency-browser-extension-s...
2•FromTheArchives•20m ago•0 comments

Show HN: Pg_textsearch – BM25 Ranking for Postgres

https://docs.tigerdata.com/use-timescale/latest/extensions/pg-textsearch/
3•tjgreen•21m ago•0 comments

Show HN: Distil-NPC: a family of models for non-playable characters in games

https://github.com/distil-labs/Distil-NPCs
2•party-horse123•22m ago•0 comments

I built a Dota 2 hero similarity map using neural networks

https://blog.spawek.com/Dota2_hero_similarity_map
2•Spawek•22m ago•1 comments

Something Vile This Way Flows

https://www.kentik.com/go/ebook/something-vile-this-way-flows/
2•oavioklein•23m ago•0 comments

Solved by Modern CSS: Section Layout

https://ishadeed.com/article/modern-css-section-layout/
1•speckx•25m ago•0 comments

Tamper-Sensing Meshes Using Low-Cost, Embedded Time-Domain Reflectometry

https://jaseg.de/blog/paper-sampling-mesh-monitor/
2•luu•25m ago•0 comments