HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
LoganFlaherty
banish
Rust2026–2026
LoganFlaherty / banish

banish

A declarative framework for rule-based state machines in Rust.

2Distinct people
3Mentions
0Explicit recommenders
118GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A declarative framework for rule-based state machines in Rust.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day3 dated mentions

Observed mentions: 2026-02-19 14:50:56 UTC to 2026-03-22 05:37:30 UTC.

012026-02-19 00:00:00 UTC to 2026-02-20 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsFeb 192026-02-20 00:00:00 UTC to 2026-02-21 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2026-02-21 00:00:00 UTC to 2026-02-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-22 00:00:00 UTC to 2026-02-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-23 00:00:00 UTC to 2026-02-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-24 00:00:00 UTC to 2026-02-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-25 00:00:00 UTC to 2026-02-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-26 00:00:00 UTC to 2026-02-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-27 00:00:00 UTC to 2026-02-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-28 00:00:00 UTC to 2026-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-01 00:00:00 UTC to 2026-03-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-02 00:00:00 UTC to 2026-03-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-03 00:00:00 UTC to 2026-03-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-04 00:00:00 UTC to 2026-03-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-05 00:00:00 UTC to 2026-03-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-06 00:00:00 UTC to 2026-03-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 62026-03-07 00:00:00 UTC to 2026-03-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 00:00:00 UTC to 2026-03-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 00:00:00 UTC to 2026-03-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-10 00:00:00 UTC to 2026-03-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-11 00:00:00 UTC to 2026-03-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-12 00:00:00 UTC to 2026-03-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-13 00:00:00 UTC to 2026-03-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-14 00:00:00 UTC to 2026-03-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-15 00:00:00 UTC to 2026-03-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-16 00:00:00 UTC to 2026-03-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-17 00:00:00 UTC to 2026-03-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-18 00:00:00 UTC to 2026-03-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-19 00:00:00 UTC to 2026-03-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-20 00:00:00 UTC to 2026-03-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-21 00:00:00 UTC to 2026-03-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-22 00:00:00 UTC to 2026-03-23 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 22

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 192026-02-19 00:00:00 UTC2026-02-20 00:00:00 UTC110
Feb 202026-02-20 00:00:00 UTC2026-02-21 00:00:00 UTC110
Feb 212026-02-21 00:00:00 UTC2026-02-22 00:00:00 UTC000
Feb 222026-02-22 00:00:00 UTC2026-02-23 00:00:00 UTC000
Feb 232026-02-23 00:00:00 UTC2026-02-24 00:00:00 UTC000
Feb 242026-02-24 00:00:00 UTC2026-02-25 00:00:00 UTC000
Feb 252026-02-25 00:00:00 UTC2026-02-26 00:00:00 UTC000
Feb 262026-02-26 00:00:00 UTC2026-02-27 00:00:00 UTC000
Feb 272026-02-27 00:00:00 UTC2026-02-28 00:00:00 UTC000
Feb 282026-02-28 00:00:00 UTC2026-03-01 00:00:00 UTC000
Mar 12026-03-01 00:00:00 UTC2026-03-02 00:00:00 UTC000
Mar 22026-03-02 00:00:00 UTC2026-03-03 00:00:00 UTC000
Mar 32026-03-03 00:00:00 UTC2026-03-04 00:00:00 UTC000
Mar 42026-03-04 00:00:00 UTC2026-03-05 00:00:00 UTC000
Mar 52026-03-05 00:00:00 UTC2026-03-06 00:00:00 UTC000
Mar 62026-03-06 00:00:00 UTC2026-03-07 00:00:00 UTC000
Mar 72026-03-07 00:00:00 UTC2026-03-08 00:00:00 UTC000
Mar 82026-03-08 00:00:00 UTC2026-03-09 00:00:00 UTC000
Mar 92026-03-09 00:00:00 UTC2026-03-10 00:00:00 UTC000
Mar 102026-03-10 00:00:00 UTC2026-03-11 00:00:00 UTC000
Mar 112026-03-11 00:00:00 UTC2026-03-12 00:00:00 UTC000
Mar 122026-03-12 00:00:00 UTC2026-03-13 00:00:00 UTC000
Mar 132026-03-13 00:00:00 UTC2026-03-14 00:00:00 UTC000
Mar 142026-03-14 00:00:00 UTC2026-03-15 00:00:00 UTC000
Mar 152026-03-15 00:00:00 UTC2026-03-16 00:00:00 UTC000
Mar 162026-03-16 00:00:00 UTC2026-03-17 00:00:00 UTC000
Mar 172026-03-17 00:00:00 UTC2026-03-18 00:00:00 UTC000
Mar 182026-03-18 00:00:00 UTC2026-03-19 00:00:00 UTC000
Mar 192026-03-19 00:00:00 UTC2026-03-20 00:00:00 UTC000
Mar 202026-03-20 00:00:00 UTC2026-03-21 00:00:00 UTC000
Mar 212026-03-21 00:00:00 UTC2026-03-22 00:00:00 UTC000
Mar 222026-03-22 00:00:00 UTC2026-03-23 00:00:00 UTC110

What Hacker News says

3 sources

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

Banish generates a fixed-point runtime at compile time and schedules your states through it. You declare states and rules, the framework decides when they run. Release 1.3.0 adds async support, runtime dispatch, block attributes, transition guards, and scoped variable declarations, rounding out what I think is a genuine framework-level feature set for a category of problem that usually ends up as a loop wrapping a match wrapping a pile of flags. The before/after comparison in the README shows the difference pretty concisely. Happy to answer questions about the design tradeoffs, particularly around the proc macro implementation. Thanks for reading.
1 points · Open discussion

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

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
Read the rest
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. } }
2 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.