Re:StimulusReflex, or LiveView for Rails
by adenozine on Friday January 15, 2021 @07:17AM
(#25790044)
Does python have anything like this?
[ Parent
| on HN ]
Re:StimulusReflex, or LiveView for Rails
by julianrubisch on Friday January 15, 2021 @07:23AM
(#25790101)
https://pypi.org/project/django-sockpuppet/
It's a SR clone, the maintainers are actually very active in our community :-)
Re:StimulusReflex, or LiveView for Rails
by shinryuu on Friday January 15, 2021 @07:43AM
(#25790268)
or link to actual repo -> https://github.com/jonathan-s/django-sockpuppet
(I'm the maintainer).
Re:StimulusReflex, or LiveView for Rails
by adparadox on Friday January 15, 2021 @03:46PM
(#25796190)
More of a port of Laravel's Livewire (so only AJAX calls, no websockets), but I've been working on something similar for Django at https://www.django-unicorn.com/. I also detail other options at https://www.django-unicorn.com/docs/#related-projects.
Django does: https://github.com/edelvalle/reactor
This comment I have just made applies equally to Python as to Ruby I think:
What’s the missing feature? Native M:N green threads? Seems to me that Python’s async is a fair bit more mature than Ruby, so the comparison here is not obvious to me.
The conclusion I have come to is that the way you interact with the concurrency model is just as important as what the model is underneath. Erlang (and Elixir) have got both levels right - M:N scheduling underneath, and the actor model (with excellent library support) on top to best take advantage of it.
htmx [1] (formerly intercooler) is sort of similar, although the server instead returns html fragments.
Here's an example [2] of using it for infinite scroll (instead of pagination).
I'm pretty excited to try out django-sockpuppet from an adjacent comment!
[1]: https://htmx.org/ [2]: https://engineering.instawork.com/iterating-with-simplicity-...