Show HN: HyTags – HTML as a Programming Language (hytags.org)
This is hyTags, a programming language embedded in HTML for building interactive web UIs.
It started as a way to write full-stack web apps in Swift without a separate frontend, but grew into a small language with control flow, functions, and async handling via HTML tags. The result is backend language-agnostic and can be generated from any server that can produce HTML via templates or DSLs.
15 comments
[ 4.1 ms ] story [ 44.0 ms ] threadI'm a little too enamored with web components to give it more consideration/testing, but it looks like it could be great for blue sky/green field projects.
But that said, this could unlock some interesting use cases where security isn't the primary concern. Like few internal tools, prototypes, small side projects where the tradeoff might be worth it.
The example from the link's main page is equivalent to:
[apparently HN strips all emoji but you get the idea]- thoughts as i was reading this -
ok, so we're programming via an AST vs syntax
I think this is interesting, however there's notable downsides - verbosity, dom bloat & debugging
A potential upside to this is very odd but interesting meta programming capabilities, since the code should be able to inspect & modify itself fairly easily by inspecting the dom
I am inclined to distrust the claim that this reduces complexity as most of the actions are mutation heavy directly to the dom, and the stack based programming is something i struggle to practical examples where it is a significant improvement to mainstream strategies