IMG_0001 (🔥 Score: 151+ in 1 hour)
Link: https://readhacker.news/s/6iXaV
Comments: https://readhacker.news/c/6iXaV
Show HN: Flow – A dynamic task engine for building AI agents (Score: 150+ in 1 day)
Link: https://readhacker.news/s/6iSf4
Comments: https://readhacker.news/c/6iSf4
I think graph is a wrong abstraction for building AI agents. Just look at how incredibly hard it is to make routing using LangGraph - conditional edges are a mess.
I built Laminar Flow to solve a common frustration with traditional workflow engines - the rigid need to predefine all node connections. Instead of static DAGs, Flow uses a dynamic task queue system that lets workflows evolve at runtime.
Flow is built on 3 core principles:
* Concurrent Execution - Tasks run in parallel automatically
* Dynamic Scheduling - Tasks can schedule new tasks at runtime
* Smart Dependencies - Tasks can await results from previous operations
All tasks share a thread-safe context for state management.
This architecture makes it surprisingly simple to implement complex patterns like map-reduce, streaming results, cycles, and self-modifying workflows. Perfect for AI agents that need to make runtime decisions about their next actions.
Flow is lightweight, elegantly written and has zero dependencies for the engine.
Behind the scenes it's a ThreadPoolExecutor, which is more than enough to handle concurrent execution considering majority of AI workflows are IO bound.
To make it possible to wait for the completion of previous tasks, I just added semaphore for the state value. Once the state is set, one permit is released for the semaphore.
The project also comes with built-in OpenTelemetry instrumentation for debugging and state reconstruction.
Give it a try here -> https://github.com/lmnr-ai/flow. Just do pip install lmnr-flow. (or uv add lmnr-flow). More examples are in the readme.
Looking forward to feedback from the HN community! Especially interested in hearing about your use cases for dynamic workflows.
Couple of things on the roadmap, so contributions are welcome!
* Async function support
* TS port
* Some consensus on how to handle task ids when the same tasks is spawned multiple times
Amazon Aurora DSQL (Score: 151+ in 8 hours)
Link: https://readhacker.news/s/6iViN
Comments: https://readhacker.news/c/6iViN
My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback (🔥 Score: 154+ in 1 hour)
Link: https://readhacker.news/s/6iWpB
Comments: https://readhacker.news/c/6iWpB
Egoless Engineering (🔥 Score: 163+ in 3 hours)
Link: https://readhacker.news/s/6iW4P
Comments: https://readhacker.news/c/6iW4P
Tweaking Stunt Island's 30-year-old 3D engine (Score: 152+ in 7 hours)
Link: https://readhacker.news/s/6iUru
Comments: https://readhacker.news/c/6iUru
Amazon Nova (🔥 Score: 151+ in 2 hours)
Link: https://readhacker.news/s/6iVs3
Comments: https://readhacker.news/c/6iVs3
Distributed Erlang (Score: 151+ in 15 hours)
Link: https://readhacker.news/s/6iTnT
Comments: https://readhacker.news/c/6iTnT
DuckDuckGo Donates $25,000 to the Perl and Raku Foundation (🔥 Score: 156+ in 1 hour)
Link: https://readhacker.news/s/6iUQ9
Comments: https://readhacker.news/c/6iUQ9
Rust in QEMU Roadmap (❄️ Score: 150+ in 6 days)
Link: https://readhacker.news/s/6iBNq
Comments: https://readhacker.news/c/6iBNq
South Korean president declares emergency martial law (🔥 Score: 181+ in 56 minutes)
Link: https://readhacker.news/s/6iUsE
Comments: https://readhacker.news/c/6iUsE
No need to email me about Cisco AnyConnect (Score: 151+ in 5 hours)
Link: https://readhacker.news/s/6iTLR
Comments: https://readhacker.news/c/6iTLR
Y Combinator and Power in Silicon Valley (Score: 151+ in 4 hours)
Link: https://readhacker.news/s/6iTJY
Comments: https://readhacker.news/c/6iTJY
Blizzard's pulling of Warcraft I and II tests GOG's new Preservation Program (Score: 150+ in 4 hours)
Link: https://readhacker.news/s/6iTzC
Comments: https://readhacker.news/c/6iTzC
8 months of OCaml after 8 years of Haskell in production (2023) (Score: 155+ in 5 hours)
Link: https://readhacker.news/s/6iTiu
Comments: https://readhacker.news/c/6iTiu
The Tube Computer (Score: 150+ in 10 hours)
Link: https://readhacker.news/s/6iVDY
Comments: https://readhacker.news/c/6iVDY
Learn perfect pitch in 15 years (❄️ Score: 150+ in 1 week)
Link: https://readhacker.news/s/6iANP
Comments: https://readhacker.news/c/6iANP
Phoenix LiveView 1.0.0 is here (🔥 Score: 160+ in 2 hours)
Link: https://readhacker.news/s/6iWsP
Comments: https://readhacker.news/c/6iWsP
Skia Canvas: Browserless implementation of the HTML Canvas drawing API for node (Score: 150+ in 7 hours)
Link: https://readhacker.news/s/6iV6V
Comments: https://readhacker.news/c/6iV6V
Dependency management fatigue, or why I ditched React for Go+HTMX+Templ (Score: 150+ in 11 hours)
Link: https://readhacker.news/s/6iUeE
Comments: https://readhacker.news/c/6iUeE
Intel announces Arc B-series "Battlemage" discrete graphics with Linux support (Score: 158+ in 4 hours)
Link: https://readhacker.news/s/6iVgy
Comments: https://readhacker.news/c/6iVgy
Show HN: Copper – Open-source robotics in Rust with deterministic log replay (Score: 151+ in 17 hours)
Link: https://readhacker.news/s/6iTbk
Comments: https://readhacker.news/c/6iTbk
Ask HN: Who wants to be hired? (December 2024) (Score: 150+ in 1 day)
Link: https://readhacker.news/c/6iRH8
Share your information if you are looking for work. Please use this format:
Location:
Remote:
Willing to relocate:
Technologies:
Résumé/CV:
Email:
USC Student Rocket Group Shatters International Amateur Space Record (❄️ Score: 150+ in 5 days)
Link: https://readhacker.news/s/6iDe9
Comments: https://readhacker.news/c/6iDe9
Evidence of the use of silk by Bronze Age civilization (Score: 150+ in 22 hours)
Link: https://readhacker.news/s/6iRNF
Comments: https://readhacker.news/c/6iRNF
Company claims 1k% price hike drove it from VMware to open source rival (🔥 Score: 154+ in 3 hours)
Link: https://readhacker.news/s/6iU7D
Comments: https://readhacker.news/c/6iU7D
Twice-Yearly HIV Shot Shows 100% Effectiveness in Women (Score: 151+ in 8 hours)
Link: https://readhacker.news/s/6iTu5
Comments: https://readhacker.news/c/6iTu5
Raspberry Pi boosts Pi 5 performance with SDRAM tuning (Score: 150+ in 6 hours)
Link: https://readhacker.news/s/6iTwH
Comments: https://readhacker.news/c/6iTwH
Lessons I learned working at an art gallery (Score: 151+ in 5 hours)
Link: https://readhacker.news/s/6iTqS
Comments: https://readhacker.news/c/6iTqS
Show HN: SeekStorm – open-source sub-millisecond search in Rust (Score: 150+ in 15 hours)
Link: https://readhacker.news/s/6iRc2
Comments: https://readhacker.news/c/6iRc2