Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is quite cool, though it seems similar to RxPy (https://github.com/ReactiveX/RxPY)


Curious question: Is there also something like Mobx [1] for Python?

I'd love to have a reactive state libraries like Mobx on server-side.

Mobx is also reactive, but has a different focus: It is not so much avout the low-level event dispatching, but reacting on data changes, recalculating derived values (but only those affected, and being lazy on non-observed dependent values). And Mobx determines dependencies of calculated values automatically.

Also, Vue [2] has Mobx functionality built-in, with an even better syntax, but closely tied to the framework.

Alas, both are JavaScript and targeted at client-side / user interface. Is there something similar for Python? (See also my question on SO [3].)

[1] https://mobx.js.org/

[2] https://vuejs.org/

[3] https://stackoverflow.com/q/47808562/19163


I'm not deeply familiar with Mobx, but there's a few Redux implementations for Python. See pydux[0] and aioredux[1].

Not the same thing, of course, since Mobx is much more sophisticated than Redux, but in my team we're currently experimenting with aioredux for state management of client data, which drives the React+Redux frontend. It's working surprisingly well so far, although the biggest hurdle is team familiarity with functional aspects of Redux, and general structuring and responsibility of reducers.

The library is no longer maintained, but considering the simplicity of the implementation and of Redux itself, we felt it wasn't a show stopper since we could always take over maintenance ourselves.

I'd also be interested to know of Mobx Python implementations.

[0]: https://github.com/usrlocalben/pydux

[1]: https://github.com/ariddell/aioredux


Thanks for the pointer, although that's not what I'm looking for.

The fundamental difference between reactive state management (Mobx) and the Redux approach is that Mobx has some automatisms that are vital to what I'm looking for:

- automatic recognition of actual value dependencies (i.e. minimal update chains)

- automatic determination of the order of updates (so you don't have to think about and design your reducers along their dependencies ... because this is an annoying task which can and hence should be automated ... it is prone to inefficiencies, and sometimes errors, when done by hand.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: