News for hackers. Stuff that matters.
Re:StimulusReflex, or LiveView for Rails by adenozine on Friday January 15, 2021 @07:17AM (#25790044)
Does python have anything like this?
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.
Re:StimulusReflex, or LiveView for Rails by m4r71n on Friday January 15, 2021 @09:59AM (#25791666)
Re:StimulusReflex, or LiveView for Rails by rkangel on Friday January 15, 2021 @09:18AM (#25791189)
This comment I have just made applies equally to Python as to Ruby I think:

https://news.ycombinator.com/item?id=25791181

Re:StimulusReflex, or LiveView for Rails by theptip on Friday January 15, 2021 @11:31AM (#25792663)
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.
Re:StimulusReflex, or LiveView for Rails by rkangel on Friday January 15, 2021 @11:56AM (#25792975)
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.
Re:StimulusReflex, or LiveView for Rails by tbran on Friday January 15, 2021 @08:51AM (#25790914)
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-...