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

If you think htmx is cool, check out _hyperscript https://hyperscript.org/. Made by the same people, available with htmx I believe.

After seeing _hyperscript, it looks like they may have invented that first, and a lot of people's heads exploded, so they decided to try to make a "gateway drug" to sneakily introduce _hyperscript, and came up with htmx.



:) hyperscript came after htmx

htmx is version 2 of intercoolerjs:

https://intercoolerjs.org

which had a proto-scripting language in it, the `ic-action` attribute:

https://intercoolerjs.org/attributes/ic-action

i dropped that attribute (along w/ the jQuery dependency) when I created htmx, but I felt there was some merit to the idea of a lightweight scripting language that abstracted away async behavior. Once htmx had stabilized I revisited the idea, remembered my experience w/ HyperTalk as a young programmer, and decided to take a shot at that, but for the browser.

I'm very happy with how it worked out, although I expect it will always be niche when compared with htmx, which has much broader applicability and isn't as insane looking. :)


Well, congrats on both projects. _hyperscript especially to me looks like an amazing technical accomplishment, to make something so similar to natural language. What sort of parser is it? LL? LR? Because I would need to use an _LLM_ to handle that. Lol.


just recursive descent w/ some hacks in there to make things "look right" :)


The practice of cramming a DSL into an HTML string attribute seems like it would get cumbersome and hard to read after a while. You can really tell in this example on the htmx site [1]. I imagine you can write that long string in your server code somewhere, but that also seems weird especially since you won't have _hyperscript syntax highlighting in your Ruby/Go/Clojure/whatever file. Does anyone have any real world examples of this?

[1] https://htmx.org/examples/confirm/




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

Search: