frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Chr2 – consensus for side effects (exactly-once is a lie)

https://github.com/abokhalill/chr2
5•yousef06•2h ago
Most consensus libraries (Raft, Paxos) treat the state machine as a pure black box. This is fine until your state machine needs to actually do something, like charge a credit card, fire a webhook, or send an email.

If a leader crashes after the side effect but before committing it, you get duplicates. This is my attempt at fixing this problem from first principles ish: build chr2 to make crash-safe side effects first-class citizens.

mechanism:

Replicated Outbox: Side effects are stored as "pending" in replicated state. Only the leader executes them under a fencing token.

Durable Fencing: A manifest persists the highest view using atomic tmp+fsync+rename. This ensures a "zombie" leader can't wake up and double-execute stale effects.

Deterministic Context: Application code receives a deterministic RNG seed and block_time from the log, ensuring 1:1 state transitions during replay.

Strict WAL: Entries are CRC’d and hash chained. it is designed to prefer halting on mid-log corruption over guessing.

The Trade-offs: Side effects are intentionally at-least-once; "exactly-once" requires stable effect IDs for sink-side deduplication. It’s a CP system safety over availability.

Repo: https://github.com/abokhalill/chr2

if you’ve ever had “exactly once” collapse the first time a leader died mid flight, you know exactly why I built this.

I Made My Own Programming Language

https://github.com/Youg-Otricked/QuantumC
1•YougOtricked•4m ago•0 comments

Universal Commerce Protocol

https://ucp.dev/
1•qainsights•7m ago•1 comments

Was Philip K. Dick a Madman or a Mystic? (2016)

https://www.publishersweekly.com/pw/by-topic/industry-news/tip-sheet/article/70857-was-philip-k-d...
2•debo_•8m ago•0 comments

React Router has XSS Vulnerability · CVE-2025-59057

https://github.com/advisories/GHSA-3cgp-3xvw-98x8
1•maxloh•9m ago•0 comments

JEP Draft: Java Thread Sanitizer

https://openjdk.org/jeps/8208520
1•mooreds•13m ago•0 comments

Diagnosing performance with dotnet-trace and Perfetto

https://dfamonteiro.com/posts/using-dotnet-trace-with-perfetto/
1•lalitmaganti•13m ago•0 comments

High RAM prices mean record-setting profits for Samsung and other memory makers

https://arstechnica.com/gadgets/2026/01/high-ram-prices-mean-record-setting-profits-for-samsung-a...
3•walterbell•13m ago•0 comments

Show HN: dc-input - interactively fill dataclass instances via the command line

https://github.com/jdvanwijk/dc-input
1•janebelvanwijk•15m ago•0 comments

Ask HN: Cursor (LLM) Costs

1•anonyfox•16m ago•1 comments

Turntiles, an NYT style word game I made for my parents

https://github.com/wheybags/turntiles
1•todsacerdoti•17m ago•0 comments

New tech and tools for retailers to succeed in an agentic shopping era

https://blog.google/products/ads-commerce/agentic-commerce-ai-tools-protocol-retailers-platforms/
1•AznHisoka•18m ago•0 comments

Key Chinese Money Laundering Network Member Charged W Laundering Drug Proceeds

https://www.justice.gov/opa/pr/key-member-chinese-money-laundering-network-charged-laundering-ten...
3•737min•21m ago•0 comments

Fifty People Control the Culture

https://www.honest-broker.com/p/fifty-people-control-the-culture
5•Khaine•23m ago•0 comments

Ask HN: Cheaper Datadog Anyone?

2•kvaranasi_•24m ago•2 comments

When XLA Isn't Enough: From Pallas to VLIW with Splash Attention on TPU

https://patricktoulme.substack.com/p/when-xla-isnt-enough-from-pallas
1•patrick_toulme•26m ago•0 comments

Show HN: Voice Composer – Browser-based pitch detection to MIDI/strudel/tidal

https://dioptre.github.io/tidal/
2•dioptre•26m ago•1 comments

America's most novel train project is too deadly

https://www.economist.com/united-states/2026/01/08/americas-most-novel-train-project-is-too-deadly
3•yakkomajuri•26m ago•0 comments

There Is No Budget for Books

https://jonpauluritis.com/articles/no-budget-for-books/
1•jppope•26m ago•0 comments

WUTA WRENs

https://en.wikipedia.org/wiki/Western_Approaches_Tactical_Unit
1•CHB0403085482•27m ago•0 comments

Situation Monitor

https://hipcityreg.github.io/situation-monitor/
1•mellosouls•32m ago•0 comments

DOJ sues California cities over natural gas bans

https://www.justice.gov/opa/pr/justice-department-sues-california-cities-over-natural-gas-bans
5•737min•34m ago•0 comments

Show HN: Ma'at – Court-defensible jury analysis platform (open source)

https://github.com/Jennaleighwilder/MA-AT
1•jennaleighwest•36m ago•0 comments

Show HN: I built Sonars in 3 weeks to see if AI coding is useful for my company

https://sonars.dev
1•JasperBekkers•38m ago•0 comments

I Built a 1 Petabyte Server from Scratch [video]

https://www.youtube.com/watch?v=vVI7atoAeoo
2•guiambros•42m ago•0 comments

Local Food for the Hudson Valley

https://www.communityfoodworks.org
1•mooreds•45m ago•0 comments

True Scale of Solar System

3•Sarakuzoi•48m ago•0 comments

Asahi Linux – Porting Linux to Apple Silicon [video]

https://media.ccc.de/v/39c3-asahi-linux-porting-linux-to-apple-silicon
2•tensegrist•51m ago•1 comments

An open spec for cryptographic API authentication

https://github.com/atf-open-standard/atf-specification
1•nagabandaru•53m ago•1 comments

Remote Code Execution in OpenCode, update now

https://cy.md/opencode-rce/
7•CyberShadow•59m ago•1 comments

Google introduces personalised shopping ads to AI tools

https://www.ft.com/content/957c7438-b2e0-4605-a276-caa8a7ec363c
2•sebastian_z•1h ago•0 comments