If you want a solid demo of what you can do with datastar. You can checkout this naive multiplayer game of life I wrote earlier in the week. Sends down 2500 divs every 200ms to all connected cliends via compressed SSE. https://example.andersmurphy.com/
Wow, I've never done multiplayer GoL. Simple yet addictively fun. LONG LIVE THE ORANGE CIVILIZATION!! edit: damn, purple civilization got hands
Datastar: Web Framework for the Future?
41–50 of 161 posts
Re: Datastar: Web Framework for the Future?
#42Earlier quoted context omitted.
a signal is not a single event but rather a stream of events at given timestamps (or, if you wish, a stream where you have an Option at each timestamp)
I googled this and got a few different answers, but not this one. Is there a particular implementation you’re referring to?
Re: Datastar: Web Framework for the Future?
#43If you want a solid demo of what you can do with datastar. You can checkout this naive multiplayer game of life I wrote earlier in the week. Sends down 2500 divs every 200ms to all connected cliends via compressed SSE. https://example.andersmurphy.com/
"Sends down 2500 divs every 200ms to all connected cliends via compressed SSE." If I didn't know better, I'd say this was an April Fool's joke.
Re: Datastar: Web Framework for the Future?
#44The TODOS mini application at data-star.dev is slow and doesn't work correctly for me (checking/unchecking items isn't reliable). To me, this highlights one common problem I've seen with frameworks that insist on doing everything on the server.
Re: Datastar: Web Framework for the Future?
#45Re: Datastar: Web Framework for the Future?
#46Earlier quoted context omitted.
Agreed, I have gig internet and a hardwire connection and still get more lag than I'd want from a web app. Potentially could be solved with some client side cache but still..
Yeah something is DEFINITELY up. This is not the norm, we haven't seen this before. Fly.io free tier is not happy and I'm not sure why (we've been on it for years at this point). I'm gonna disable until I can dig deeper. Have day job stuff to attend to, this is not my ideal Friday afternoon :P
Re: Datastar: Web Framework for the Future?
#47The future is frameworkless.
Re: Datastar: Web Framework for the Future?
#48Earlier quoted context omitted.
Is sending 10,000 divs/sec the right solution for this problem, or is this an "everything looks like a nail" solution?
This is a Wirth's Law solution - the reasoning goes: "computers are fast enough to deal with it, so why not?"
Re: Datastar: Web Framework for the Future?
#49[1] https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline...