Hacker GitHub

← All repos

bashup/events

View on GitHub ↗ ★ 90 Shell

An event/callback/promise system for bash apps that's fast (10k/s), tiny (<2.2K), and portable (bash 3.2+, builtins-only)

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2022-05-08 · latest 2023-06-21

Mentions per year 3 mentions · busiest year 2023 (2)
20082026
  1. …but I posted something ( https://news.ycombinator.com/item?id=36410781 ) similar based on https://github.com/bashup/events a few hours ago in another thread. The version here's much simpler, which has its merit if you need the performance…
    comment by abathur · 2023-06-21 · in Defer for Shell (2020)
  2. I like combining this with a bash implementation of an event API ( https://github.com/bashup/events ). This makes it easy/idiomatic, for example, to conditionally add cleanup as you go. Glossing over some complexity, but roughly:…
  3. A near non-sequitur per your aside (I agree with the rest...): https://github.com/bashup/events is one of my favorite little things. I even blogged about it in January!
    comment by abathur · 2022-05-08 · in Donald Knuth was framed (2020)