frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Banish – A declarative DSL for rule-based state machines in Rust

https://github.com/LoganFlaherty/banish
2•LoganFlaherty•1h ago
I’ve been working on a Rust macro called Banish for defining rule-based state machines declaratively.

Instead of manually writing transition loops, Banish evaluates rules within a state until no rule fires (a fixed-point model), then transitions. The macro expands into regular Rust, which allows for seamless integration.

The goal is to make complex rule logic and state machines easier to express while keeping runtime costs identical to handwritten code.

The project was featured as Crate of the Week in the Rust newsletter this week. I'd love to hear your feedback.

Example: use banish::banish;

fn main() { let buffer = ["No".to_string(), "hey".to_string()]; let target = "hey".to_string(); let idx = find_index(&buffer, &target); print!("{:?}", idx) }

fn find_index(buffer: &[String], target: &str) -> Option<usize> { let mut idx = 0; banish! { @search // This must be first to prevent out-of-bounds panic below. not_found ? idx >= buffer.len() { return None; }

            found ? buffer[idx] != target {
                idx += 1;
            } !? { return Some(idx); }
            // Rule triggered so we re-evalutate rules in search.
    }
}

The Missing Semester of Your CS Education (2026)

https://missing.csail.mit.edu/?#
1•anishathalye•20s ago•0 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
1•eddyzh•21s ago•0 comments

Important PSA: Regarding sitewide rules and automated admin moderation

https://old.reddit.com/r/WhitePeopleTwitter/comments/1k9e9vl/important_psa_regarding_sitewide_rul...
1•embedding-shape•2m ago•0 comments

Freelancer Empathy

https://seths.blog/2026/02/freelancer-empathy/
2•speckx•2m ago•0 comments

An intuitive approach for understanding electricity [video]

https://www.youtube.com/watch?v=X_crwFuPht4
1•thunderbong•3m ago•0 comments

A Parallel Internet

https://k2xl.substack.com/p/a-parallel-internet
2•k2xl•4m ago•0 comments

Blue Owl Halts Redemptions on Private Credit Retail Fund

https://www.bloomberg.com/news/articles/2026-02-18/blue-owl-loan-sale-raises-1-4-billion-for-inve...
1•zerosizedweasle•6m ago•2 comments

AIP – How my AI agent built a decentralized identity protocol for agents

https://github.com/The-Nexus-Guard/aip
1•the_nexus_guard•6m ago•1 comments

I Obtained Mew in Pokémon Red on a Real Game Boy

https://vaguilar.com/2026/02/18/how-i-obtained-mew-in-pokemon-red-on-a-real-game-boy/
1•vaguilar•6m ago•0 comments

Sub-$200 Lidar Could Reshuffle Auto Sensor Economics

https://spectrum.ieee.org/solid-state-lidar-microvision-adas
1•mhb•6m ago•0 comments

Nickel Since 1.0

https://www.tweag.io/blog/2026-02-19-nickel-since-1-0/
1•ingve•7m ago•0 comments

Dear Copilot, can you help me with SQL?

https://devblogs.microsoft.com/azure-sql/dear-copilot-azure-sql/
1•ibobev•7m ago•0 comments

Microspeak: Escrow

https://devblogs.microsoft.com/oldnewthing/20260217-00/?p=112067
1•ibobev•7m ago•0 comments

OpenBlockspace – IR³ Alpha – Pure Flux Architecture

https://bitcoin-zero-down-2ea152.gitlab.io/gallery/gallery-item-neg-878/
1•machardmachard•7m ago•1 comments

Optofluidic three-dimensional microfabrication and nanofabrication

https://www.nature.com/articles/s41586-025-10033-x
1•PaulHoule•8m ago•0 comments

Show HN: PostForge – A PostScript interpreter written in Python

https://github.com/AndyCappDev/postforge
1•AndyCappDev•8m ago•0 comments

Why Do the Police Exist? (2020)

https://novaramedia.com/2020/06/20/why-does-the-police-exist/
2•robtherobber•9m ago•0 comments

AI-Powered Performance Analysis

https://twitter.com/LangChain_JS/status/2024515544788140134
1•cbromann•9m ago•0 comments

Show HN: Public Speaking Coach with AI

https://apps.apple.com/us/app/speaking-coach-spechai/id6755611866
1•javierbuilds•9m ago•0 comments

AI found 12 of 12 OpenSSL zero-days

https://www.lesswrong.com/posts/7aJwgbMEiKq5egQbd/ai-found-12-of-12-openssl-zero-days-while-curl-...
2•AndrewDucker•9m ago•0 comments

AI made coding more enjoyable

https://weberdominik.com/blog/ai-coding-enjoyable/
2•domysee•10m ago•0 comments

Reflections on Oman

https://twitter.com/WillManidis/status/2024489454023405861
2•jger15•10m ago•0 comments

Hope

https://en.wikipedia.org/wiki/Hope
1•marysminefnuf•10m ago•0 comments

Passkey deployment mistakes banks make

https://www.corbado.com/blog/passkey-deployment-mistakes-banks
1•vdelitz•12m ago•0 comments

Naval shipwreck emerges in Sweden after being buried underwater for 400 years

https://www.cbsnews.com/news/navy-shipwreck-emerges-baltic-sea-sweden/
3•efrecon•12m ago•0 comments

Cue Is a Configuration Language

https://bitfieldconsulting.com/posts/cuelang-exciting
1•ahamez•13m ago•0 comments

Goosetown: Parallel AI agent flocks that research, build, and review code

https://github.com/block/goosetown
1•triple5•13m ago•0 comments

AI-generated passwords are easy to crack

https://gizmodo.com/ai-generated-passwords-are-apparently-quite-easy-to-crack-2000723660
1•vdelitz•14m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•trogonkhant•14m ago•0 comments

Measuring Input-to-Photon Latency (Because 'Wayland Feels Off' Isn't a Metric)

https://davidjusto.com/articles/m2p-latency/
1•madspindel•15m ago•0 comments