Pond - State aware Elixir functions without spawning processes

Pond (this week experiment)

A tiny library for creating stateful functions without spawning new processes.

Look at the end of README for some reactive streams examples.

Pond works that way.

5 Likes

I was taking a look at the code and I have noticed you have a use and all it does is to import something. That’s an anti-pattern as described in our upcoming library guidelines. :slight_smile:

5 Likes

Oh haha, yeah, I previously also imported Pond.Next, but decided to keep that away. So I’ll better remove the __using__ macro :). Thanks for noticing!

1 Like

Hah, I like this, it’s… interestingly cute. ^.^

Makes me think of it kind of like a single-function packed version of fsm or so, it’s a fascinating idea! :slight_smile:

1 Like