frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Mandala: A low latency logistics event bridge for Samsara fleets

https://github.com/theoddden/Mandala
2•Facingsouth•56m ago

Comments

Facingsouth•56m ago
1. The "Invisible Blocking" Problem

* The Problem: In Python's asyncio, the entire loop runs on a single thread. If one function performs a heavy calculation (like a complex spatial hash or a large HMAC verification), it "blocks" the loop. Every other truck event in the system has to wait. * Our Solution (Rust Acceleration): We offload those "CPU-heavy" tasks to Rust. By using maturin and pyo3, we execute the heavy lifting in Rust code that releases the Global Interpreter Lock (GIL). The Python loop stays snappy, only handling the "IO orchestration" while Rust does the "math."

2. The "Backpressure" & Memory Leak Problem

* The Problem: If 50,000 trucks send webhooks at once, a naive async bridge will try to open 50,000 coroutines. This leads to unbounded memory growth and eventually a crash. * Our Solution (Redis Streams & Adaptive Backpressure): * Redis Streams: Acts as our "Buffer Tank." The API accepts the webhook and immediately pushes it to Redis. It doesn't care if the worker is ready yet. * Adaptive Backpressure: Your core/adaptive_backpressure.py monitors Redis latency. If the system is getting overwhelmed, it throttles the ingest layer. It's better to tell a vendor "Try again in 5 seconds" than to crash and lose everyone's data.

3. The "Race Condition" & Determinism Problem

* The Problem: Async doesn't mean "Parallel," but it does mean "Out of Order." If Truck Update #2 arrives before Truck Update #1 (common in dead zones), a standard system might overwrite the new location with the old one. * Our Solution (Stator's Latch & Vectorization): * Stator's Latch: We use a Redis-backed Event-Time Latch. If an event arrives with a timestamp older than the one we've already "committed" to the state, we flag it as "historical" and don't trigger real-time alerts. * Vectors: By describing events as vectors (as you suggested), we aren't just comparing points. We are looking at the trajectory. If a point is geographically or temporally impossible, the Rust-powered spatial checks catch it before it corrupts the state.

4. The "Zombie Task" Problem

* The Problem: In async, tasks can fail silently or run forever in the background without anyone knowing (unawaited coroutines). * Our Solution (OTel Tracing): Because every Mandala event is a trace, we can see exactly where an event "died." If a webhook comes in but never hits the worker, the trace in Jaeger will show a broken span. We aren't guessing; we're observing the Lifecycle of the Event.

UAE Building 'Cope Cages' to Protect Energy Facilities from Drone Attack

https://www.twz.com/news-features/uae-building-massive-cope-cages-to-protect-energy-facilities-fr...
1•uticus•29s ago•0 comments

Six SQL patterns I use to catch transaction fraud

https://analytics.fixelsmith.com/posts/sql-fraud-patterns/
1•analyticsfs•39s ago•0 comments

How Mamdani and Hochul Are Solving New York City's Budget Crisis

https://www.nytimes.com/2026/05/12/nyregion/mamdani-budget-nyc.html
1•thunderbong•1m ago•0 comments

Project Bluefin now based on top of GNOME OS

https://docs.projectbluefin.io/blog/making-our-own-fate/
1•trogdor3000•1m ago•0 comments

Obsidian Sync Audits by Cure53 and Trail of Bits

https://obsidian.md/blog/cure53-tob-sync-audits/
2•cdrnsf•4m ago•0 comments

Aictx – Repo-local continuity runtime for coding agents

https://github.com/oldskultxo/aictx
2•santism•4m ago•1 comments

Stochastic Parrots: Frequently Unasked Questions

https://medium.com/@emilymenonbender/stochastic-parrots-frequently-unasked-questions-49c2e7d22d11
1•olalonde•8m ago•0 comments

How the U.S. Became the Greatest Energy Exporter

https://www.wsj.com/business/energy-oil/us-energy-exports-charts-60f29985
1•JumpCrisscross•9m ago•0 comments

Adult game industry complaint to FTC regarding Visa/Mastercard (2025) [pdf]

https://avvn.org/ftc.pdf
1•Scaled•9m ago•1 comments

Crypto Revolution

https://tera-finance.io
1•tyoma_cho•10m ago•0 comments

Stacktree – The publish primitive for agent-made HTML

https://stacktr.ee/
1•indigodaddy•11m ago•0 comments

Show HN: AICTL – A native AI agent for terminal and macOS, in Rust

https://aictl.app
1•piotrwittchen•12m ago•1 comments

The Chakram and its Forgotten Technique [video]

https://www.youtube.com/watch?v=IyBXkhTzAK0
1•Nevaeh•13m ago•0 comments

Claude programmatic usage get separate budget

https://xcancel.com/ClaudeDevs/status/2054610152817619388
1•willempienaar•14m ago•0 comments

I built a reference Go project (and taught an AI agent to clone it)

https://aran.dev/posts/why-i-built-a-reference-go-project/
1•aranw•15m ago•0 comments

From News Articles to Knowledge Graphs with SpaCy and NetworkX

https://data4sci.substack.com/p/from-news-articles-to-knowledge-graphs
1•Anon84•18m ago•0 comments

The 'Special Child' Trap: From 'Indigo' to Modern Identity

https://growsomelabia.substack.com/p/indigo-vs-trans-children-status
1•GSL_Commentary•18m ago•0 comments

Meta won't let you block its AI account on Threads

https://www.theverge.com/tech/929091/meta-ai-threads-account-block
6•logickkk1•20m ago•1 comments

I built an iPhone app for practicing happiness through small daily actions

https://apps.apple.com/us/app/practice-of-happiness/id6466039739
1•practiceofhappy•20m ago•0 comments

Made This Free URL Shortener with Indepth Analytics

https://old.reddit.com/r/sideprojects/comments/1tabelm/finished_making_this_url_shortener_complet...
1•godlymod•20m ago•0 comments

RFV-0001: Request for Vibes

https://tomaytotomato.com/request-for-vibes/
2•tomaytotomato•23m ago•0 comments

Why We Ignore Advice

https://yusufaytas.com/why-we-ignore-advice
13•yusufaytas•23m ago•1 comments

New Linux kernel security bug; Fragnesia

https://www.openwall.com/lists/oss-security/2026/05/13/3
3•tankenmate•24m ago•0 comments

Ask HN: How to Invest 10K EUR

3•default_•24m ago•2 comments

Harvard Votes on Limiting "A" Grades

https://www.axios.com/local/boston/2026/05/11/harvard-faculty-vote-grade-inflation-cap-a-grades-i...
2•smurda•25m ago•1 comments

What happened to the car designed for women, by women?

https://uxdesign.cc/what-happened-to-the-car-designed-for-women-by-women-1fdcde8a0bc4
1•rmason•26m ago•2 comments

The AI Apocalypse

https://www.youtube.com/watch?v=8nsxuB3Vsts
1•indigodaddy•27m ago•0 comments

Continuous lamination unlocks production of large-area flexible circuit boards

https://techxplore.com/news/2026-04-lamination-stable-production-large-area.html
3•PaulHoule•29m ago•0 comments

Hilary Putnam: Brains in a Vat (1981)

https://www.cambridge.org/core/books/abs/reason-truth-and-history/brains-in-a-vat/4301D7FCC586969...
2•brudgers•30m ago•0 comments

We built the fastest database for querying large agent traces using Rust

https://www.langchain.com/blog/introducing-smithdb
2•palashshah•30m ago•0 comments