core-async

ChillPillzKillzBillz 2025-10-12T15:15:40.803829Z

Hello, Are there any code examples for core.async.flow available publically?

2025-10-12T15:22:44.464869Z

This is just a toy https://github.com/jpmonettas/radio-snake. I demoed it in this video https://www.youtube.com/watch?v=bV-amgLb-2Q. It is basically a core.async.flow graph that process radio samples from a car key fob captured with a HackRF one, does some digital signal processing to figure out the buttons press and drives a snake game. Everything is model with flow.

2025-10-12T15:23:03.515349Z

If you have any questions about it, let me know. The graph is here https://github.com/jpmonettas/radio-snake/blob/master/src/radio_snake/main.clj

2025-10-12T15:23:41.582489Z

There's this basic example: https://github.com/puredanger/flow-example/blob/main/src/stats.clj

ChillPillzKillzBillz 2025-10-12T15:26:32.983989Z

Thanks @jjttjj! Will check it out

ChillPillzKillzBillz 2025-10-12T15:27:36.162099Z

@jpmonettas no I meant the ability of wrapping processes and channels into a flow as it is meant to be done using core.async.flow. I'll check out the links you've shared... but I don't think this is what I am after... Thanks anyways.

ChillPillzKillzBillz 2025-10-12T15:28:30.358289Z

@jpmonettas I see that you use flow in your code. I'll check out your code

ChillPillzKillzBillz 2025-10-12T15:28:33.066059Z

thanks again!

2025-10-12T15:28:59.854139Z

So what I shared is an implementation of a system using a core.async.flow graph as its core

ChillPillzKillzBillz 2025-10-12T15:29:15.104539Z

yes I see that now... thanks!

2025-10-12T15:30:13.182879Z

it has 1 channel input (the radio IQ samples captured by the HackRF) and then the output on the other side of the graph is the new game world to be rendered

👍 1
2025-10-12T15:33:43.590299Z

There is also https://github.com/shipclojure/simulflow

2025-10-12T16:32:00.250049Z

https://git.sr.ht/~hiredman/resderelictae/tree/master/item/irc.clj haven't updated this in a while, so might not work with flow as released