frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fin-primitives Zero-panic, decimal-precise trading types for Rust

https://crates.io/crates/fin-primitives
1•Shmungus•1h ago
I couldn't find a Rust crate that gave me validated financial types backed by decimal arithmetic. Everything I found either used f64 (unacceptable for order books), panicked on bad input, or was a thin wrapper around a single indicator.

fin-primitives provides:

- Price and Quantity newtypes over rust_decimal::Decimal, validated at construction — an invalid Price literally can't exist at runtime - L2 OrderBook with sequence validation and atomic rollback if a delta would produce an inverted spread - OHLCV aggregation from tick streams with bar invariants enforced on every push - Streaming SMA, EMA (SMA-seeded), and RSI (Wilder smoothing matching TradingView/Bloomberg) that return SignalValue::Unavailable until warm-up completes - Position ledger with VWAP average cost, realized/unrealized P&L net of commissions - Composable RiskRule trait — plug in your own rules, breaches returned as typed Vec, never swallowed

No unwrap, no expect, no panic in library code. cargo clippy denies all of them.

This is part of a larger set of 11 crates I've published for LLM and trading infrastructure (https://crates.io/users/Mattbusel) but fin-primitives is the one I think fills the biggest gap in the Rust ecosystem right now.

Happy to answer questions about the design decisions, especially the order book rollback mechanism and the indicator warm-up approach.

Amiga DevBench connects a modern host machine to an emulated (or real) Amiga

https://github.com/geekychris/amiga_mcp
1•doener•1m ago•0 comments

Rob Pike's 5 Rules of Programming

https://www.cs.unc.edu/~stotts/COMP590-059-f24/robsrules.html
1•vismit2000•5m ago•0 comments

Octigen vs. Gamma: Why Native PowerPoint Matters More Than You Think

https://octigen.com/blog/posts/2026-03-17-gamma-alternative/
4•mrgraziani•5m ago•0 comments

WhaleIndex – Interactive ocean visualization of the billionaires

https://whaleindex.vercel.app
2•albertsimondev2•5m ago•1 comments

Open Ears, Open Mind

https://herbertlui.net/open-ears-open-mind/
2•herbertl•6m ago•0 comments

Swapping batteries for hydrogen gives drones a whole new range

https://norwegianscitechnews.com/2026/03/swapping-batteries-for-hydrogen-gives-drones-a-whole-new...
3•giuliomagnifico•8m ago•0 comments

Loft – a statically typed language where null propagates instead of crashes

https://github.com/jjstwerff/loft
2•jjstwerff•8m ago•1 comments

Kagi is contemplating the removal of the assistant from its professional tier

https://kagifeedback.org/d/10116-kagi-assistant-standalone-subscription
2•EbNar•8m ago•1 comments

Affirm: Growth Affirmations

https://play.google.com/store/apps/details?id=com.happyverse.affirmations&hl=en_IN
2•MAHIMASETH26•12m ago•1 comments

The Film Experience (2013)

https://ocw.mit.edu/courses/21l-011-the-film-experience-fall-2013/
3•num42•12m ago•0 comments

Improbable Island AI scrapbot downtime postmortem

https://www.improbableisland.com/motd.php?id=598
1•psini•13m ago•0 comments

iPhone 17e Teardown Reveals an Upgrade 16e Owners Can Use

https://www.ifixit.com/News/116245/iphone-17e-teardown-reveals-an-upgrade-16e-owners-can-actually...
2•Lwrless•16m ago•0 comments

When your AI agent needs to create an account on a new service, what happens?

1•mariusaure•16m ago•0 comments

firecracker-containerd

https://github.com/firecracker-microvm/firecracker-containerd
2•tosh•17m ago•0 comments

Microsoft is threatening to sue OpenAI over its $50B Amazon deal

https://www.neowin.net/news/microsoft-is-threatening-to-sue-openai-over-its-50-billion-amazon-deal/
2•pjmlp•19m ago•0 comments

US committee demands Big Tech share private comms with EU officials

https://www.politico.eu/article/us-congress-judiciary-committee-big-tech-private-communication-eu...
2•mindracer•20m ago•0 comments

BirdyChat – A minimalist Telegram-native live chat with voice-to-text feature

3•birdychat•20m ago•0 comments

A sufficiently detailed spec is code

https://haskellforall.com/2026/03/a-sufficiently-detailed-spec-is-code
4•dokdev•25m ago•0 comments

The World Needs Your Great Work

https://letter.palladiummag.com/p/new-article-the-world-needs-your
2•jger15•28m ago•0 comments

Show HN: Narrate Books in Any Language

https://warblize.com/
1•on3ye•32m ago•1 comments

Water company wasted $200k on bad answers from an AI so built slop filtering

https://www.theregister.com/2026/03/18/rozum_ai/
3•beardyw•32m ago•0 comments

From DuckDuckGo Back to DuckDuckGo via Mojeek and Kagi

https://neilzone.co.uk/2024/01/from-kagi-back-to-duckduckgo/
1•ColinWright•35m ago•0 comments

Subject: I fix a thirty-year-old mistake

https://shitpost.plover.com/e/eat-gizzards.html
1•jjgreen•35m ago•0 comments

xAI Lost 10 of 12 Founders. Can Compute Replace Them?

https://www.revolutioninai.com/2026/03/xai-grok5-rebuild-founder-exodus-2026.html
2•vinodpandey7•36m ago•2 comments

Mental Health Challenges Related to Neoliberalism in the United States (2021)

https://pmc.ncbi.nlm.nih.gov/articles/PMC8145185/
1•robtherobber•37m ago•0 comments

Highly rated Cryptocurrency Exchanges in 2026

https://medium.com/coinmonks/top-highly-rated-cryptocurrency-exchanges-8d1301f08c6e
1•Emmawoods•44m ago•0 comments

Show HN: Replace standups with automated Git reports

https://gitmore.io
1•amitousablitou•44m ago•1 comments

"Lab Leak: The True Origins of Covid-19" from Whitehouse.gov

https://www.whitehouse.gov/lab-leak-true-origins-of-covid-19/
3•monooso•49m ago•1 comments

Show HN: STT.ai – Transcribe Audio & Video to Text

https://stt.ai/
1•nadermx•53m ago•0 comments

Characterizing Delusional Spirals Through Human-LLM Chat Logs

https://spirals.stanford.edu/research/characterizing/
1•uxhacker•54m ago•1 comments