Add TCO to evaluator, update SX docs messaging
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m3s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m3s
Evaluator: add _Thunk + _trampoline for tail-call optimization in lambdas, components, if/when/cond/case/let/begin. All callers in html.py, resolver.py, handlers.py, pages.py, jinja_bridge.py, and query_registry.py unwrap thunks at non-tail positions. SX docs: update tagline to "s-expressions for the web", rewrite intro to reflect that SX replaces most JavaScript need, fix "What sx is not" to acknowledge macros and TCO exist. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
(h1 :class "text-5xl font-bold text-stone-900 mb-4"
|
||||
(span :class "text-violet-600" "sx"))
|
||||
(p :class "text-2xl text-stone-600 mb-8"
|
||||
"High power tools for HTML — with s-expressions")
|
||||
"s-expressions for the web")
|
||||
(p :class "text-lg text-stone-500 max-w-2xl mx-auto mb-12"
|
||||
"A hypermedia-driven UI engine that combines htmx's server-first philosophy "
|
||||
"with React's component model. All rendered via s-expressions over the wire.")
|
||||
"with React's component model. S-expressions over the wire — no HTML, no JavaScript frameworks.")
|
||||
(div :class "bg-stone-50 border border-stone-200 rounded-lg p-6 text-left font-mono text-sm overflow-x-auto"
|
||||
(pre :class "leading-relaxed" children))))
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
(div :class "flex-shrink-0 w-8 h-8 rounded-full bg-violet-100 text-violet-700 flex items-center justify-center font-bold" "1")
|
||||
(div
|
||||
(h3 :class "font-semibold text-stone-900" "Server renders sx")
|
||||
(p :class "text-stone-600" "Python builds s-expression trees. Components, HTML elements, data — all in one format.")))
|
||||
(p :class "text-stone-600" "Python builds s-expression trees. Components, elements, data — all in one format.")))
|
||||
(div :class "flex items-start gap-4"
|
||||
(div :class "flex-shrink-0 w-8 h-8 rounded-full bg-violet-100 text-violet-700 flex items-center justify-center font-bold" "2")
|
||||
(div
|
||||
@@ -60,5 +60,5 @@
|
||||
(a :href "https://htmx.org" :class "text-violet-600 hover:underline" "htmx")
|
||||
" by Carson Gross. This documentation site is modelled on "
|
||||
(a :href "https://four.htmx.org" :class "text-violet-600 hover:underline" "four.htmx.org")
|
||||
". htmx showed that HTML is the right hypermedia format. "
|
||||
". htmx showed that hypermedia belongs on the server. "
|
||||
"sx takes that idea and wraps it in parentheses.")))
|
||||
|
||||
Reference in New Issue
Block a user