News for hackers. Stuff that matters.
Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Tuesday September 23, 2025 @01:49PM (#45350474)
+1 for datastar. It lets you do really dumb push based streaming html stuff where HTMX isnt quite fast enough (great for multiplayer apps).[1]

Super excited about triptych too! Thanks for pushing that.

- [1] https://checkboxes.andersmurphy.com

Re:Mesh: I tried Htmx, then ditched it by stepbeek on Tuesday September 23, 2025 @03:01PM (#45351313)
Your recent post on using datastar with SSE to power game of life [1] was excellent. Thanks for writing it!

[1] https://andersmurphy.com/2025/04/07/clojure-realtime-collabo...

Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Tuesday September 23, 2025 @03:08PM (#45351402)
Thank you! I've been meaning to write one on the nitty gritty of virtual scroll, hopefully I'll find some time next month.
Re:Mesh: I tried Htmx, then ditched it by nchmy on Tuesday September 23, 2025 @03:10PM (#45351418)
That would be great to see. Likewise more details about your custom compression settings.
Re:Mesh: I tried Htmx, then ditched it by HiPhish on Tuesday September 23, 2025 @06:26PM (#45353596)
I was quite excited for Datastart until I saw that they keep a good chunk of the functionality behind a proprietary license [1]. It's not even about the price (it is a bit steep though, but I guess if you use it in a commercial project it will pay for itself), it's the proprietary part.

[1] https://data-star.dev/reference/datastar_pro

Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Wednesday September 24, 2025 @03:03AM (#45357214)
A "good chunk of functionality" is a mischaracterisation. I don't use anything from pro and I use datastar at work. I do believe in making open source maintainable though so bought the license.

The pro stuff is mostly a collection of foot guns you shouldn't use and are a support burden for the core team. In some niche corporate context they are useful. You can also implement your own plugins with the same functionality if you want it's just going to cost you time in instead of money.

I find devs complaining about paying for things never gets old. A one off life time license? How scandalous! Sustainable open source? Disgusting. Oh a proprietary AI model that is built on others work without their concent and steals my data? Only 100$ a month? Take my money!

Re:Mesh: I tried Htmx, then ditched it by HiPhish on Thursday September 25, 2025 @02:49PM (#45377138)
It's not about the money, it's about the fact that I would depend on vendor-locked functionality. I cannot maintain my own fork of it if for whatever reason I had to. I don't want to fork datastar if I don't have to, but I want to be able to do so if I have to.

Alpine does have a "pro" version as well, but it's just copy&paste code examples. I am not complaining about Alpine, and I even got my employer to pay the maintainer more than what the datastart guys are charging for their pro version. So again, this is not about money.

Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Friday September 26, 2025 @06:41AM (#45384954)
You get the entire source with pro. Nothing is stopping you maintaining your own private fork for use in your commercial product. If datastar the non profit disappear tomorrow you would still have the source. So where is the problem?
Re:Mesh: I tried Htmx, then ditched it by HiPhish on Saturday September 27, 2025 @04:13AM (#45394011)
> your own private fork

That right there is the problem, it's maintainer lock-in, I cannot share my improvements with anyone else or benefit from other people's improvements.

Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Saturday September 27, 2025 @01:27PM (#45397718)
So you'd prefer if it was free and GPL?
Re:Mesh: I tried Htmx, then ditched it by icedchai on Tuesday September 23, 2025 @09:29PM (#45355157)
HTMX does have web socket support! I've been experimenting with it...
Re:Mesh: I tried Htmx, then ditched it by andersmurphy on Wednesday September 24, 2025 @02:49AM (#45357107)
Datastar uses SSE. In practice you almost always want SSE rather than websockets or your own UDP protocol. Websockets are an operational nightmare once you get off the happy path.
Re:Mesh: I tried Htmx, then ditched it by icedchai on Wednesday September 24, 2025 @06:41AM (#45358553)
HTMX also has a SSE extension. I’m working on a multiplayer game as a hobby project and am not too far along.
Re:Mesh: I tried Htmx, then ditched it by the_arun on Wednesday September 24, 2025 @02:24AM (#45356945)
Datastar folks have some cool videos - https://data-star.dev/videos