<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cmyser Fast  on Medium]]></title>
        <description><![CDATA[Stories by Cmyser Fast  on Medium]]></description>
        <link>https://medium.com/@cmyser.fast.i?source=rss-c5b66489e7e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*493bs88zJDiQcAo_</url>
            <title>Stories by Cmyser Fast  on Medium</title>
            <link>https://medium.com/@cmyser.fast.i?source=rss-c5b66489e7e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:53:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cmyser.fast.i/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Still Playing Catch-Up: A Look at Solid 2]]></title>
            <link>https://medium.com/@cmyser.fast.i/still-playing-catch-up-a-look-at-solid-2-07ab47a3214e?source=rss-c5b66489e7e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/07ab47a3214e</guid>
            <category><![CDATA[solidjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mol]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Cmyser Fast ]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 11:48:23 GMT</pubDate>
            <atom:updated>2026-11-18T11:55:03.200Z</atom:updated>
            <content:encoded><![CDATA[<p>Solid 2 brings a new reactivity system. In <a href="https://www.solidjs.com/blog/solid-2-0-the-long-hold/">the announcement</a>, Ryan Carniato writes:</p><blockquote><em>Today signals are everywhere.</em></blockquote><p>Well, let’s see how it turned out.</p><h3>Benchmarks</h3><p>We’ll use <a href="https://habr.com/ru/articles/707600/">this benchmark</a> to test how well each implementation avoids unnecessary work in a dependency graph.</p><p>Here’s what the graph looks like.</p><pre>C ← A, B<br>D ← A, B<br>E ← C, A, D<br>F ← D, B<br>G ← C, E (only if C is falsy), D, F<br>H ← G<br>I ← G<br>J ← F</pre><p>A and B are the inputs. The expression that exposes unnecessary computation is G = C() + ( C() || E()%2 ) + D()[4].x + F(). When C() is truthy, G never reads E, so there&#39;s no need to evaluate it for G.</p><p>Here’s the Solid 2 benchmark code.</p><pre>const [A, setA] = createSignal(0)<br>const [B, setB] = createSignal(0)</pre><pre>createRoot(() =&gt; {<br>	const C = createMemo(() =&gt; (A() % 2) + (B() % 2))<br>	const D = createMemo(() =&gt; numbers.map(i =&gt; ({ x: i + (A() % 2) - (B() % 2) })), { equals })<br>	const E = createMemo(() =&gt; hard(C() + A() + D()[0].x, &#39;E&#39;))<br>	const F = createMemo(() =&gt; hard(D()[2].x || B(), &#39;F&#39;))<br>	const G = createMemo(() =&gt; C() + (C() || E() % 2) + D()[4].x + F())<br>	createEffect(G, g =&gt; {<br>		res.push(hard(g, &#39;H&#39;))<br>	})<br>	createEffect(G, g =&gt; {<br>		res.push(g)<br>	})<br>	createEffect(F, f =&gt; {<br>		res.push(hard(f, &#39;J&#39;))<br>	})<br>})</pre><pre>setB(1)<br>setA(1)<br>flush() // E and H are evaluated<br>setA(2)<br>setB(2)<br>flush() // E and H are evaluated</pre><p>Cold and hot runs are both measured in iterations per second.</p><ul><li><strong>SolidJS 2</strong>–10,074 cold, 10,830 hot. Code size 116. Memory 224–294.</li><li><strong>SolidJS 1</strong>–11,121 cold, 11,454 hot. Code size 114. Memory 161–172.</li><li><strong>$mol_wire_solo</strong> — 13,402 cold, 13,373 hot. Code size 130. Memory 4–8.</li><li><strong>$mol_wire_let</strong> — 13,955 cold, 13,897 hot. Code size 96. Memory 3–5.</li></ul><p>Why the high memory usage? Both versions of Solid recompute E and H unnecessarily.</p><p>Here are the gzipped bundle sizes.</p><ul><li>solid-js@2 — 49.7 KB, including 43.2 KB for @solidjs/signals. Remember, signals are everywhere now.</li><li>solid-js@1 — 8.6 KB.</li><li>mol_wire_lib — 8.9 KB.</li></ul><p>So far, I’m underwhelmed. I wish the team had looked at what the best implementations already do before building their own reactivity system, if only to see what they could borrow. Before you come at me in the comments, hear me out. They’ve also decided to build a DSL. Yes, like view.tree in $mol. Ironic, isn&#39;t it? So far, they have two different prototypes.</p><p>Let’s look at what else changed in Solid 2.</p><h3>Async</h3><p>Solid now makes everything that depends on a promise wait for it automatically.</p><pre>function Profile(props) {<br>	const user = createMemo(() =&gt; fetchUser(props.id))<br>	return (<br>		&lt;Loading fallback={&lt;Skeleton /&gt;}&gt;<br>			&lt;div class={{ stale: isPending(() =&gt; user()) }}&gt;{user().name}&lt;/div&gt;<br>		&lt;/Loading&gt;<br>	)<br>}</pre><p>$mol has worked this way from the start, going back ten years. You write the property synchronously, as if the data had already arrived.</p><pre>export class $my_profile extends $.$my_profile {<br>	@$mol_mem<br>	user() {<br>		return this.$.$mol_fetch.json(`/api/user/${this.id()}`) as { name: string }<br>	}</pre><pre>	name() {<br>		return this.user().name<br>	}<br>}</pre><pre>$my_profile $mol_view<br>	id \<br>	sub /<br>		&lt;= name \</pre><p>The view shows its loading state automatically, so there’s no need for a Loading component. Switching away from the screen also aborts the request.</p><h3>Server Functions</h3><p>I have to admit, I was baffled by this feature. The setup I’m used to is a backend with a Swagger/OpenAPI spec and client code generated from it.</p><p>After looking into it, I see the idea. Solid wants to be a full-stack framework, which means it needs a way to separate client and server code and support code that runs in both environments.</p><p>Here’s how Solid does it.</p><pre>&#39;use server&#39;<br>import { live } from &#39;@solidjs/web/server-functions&#39;</pre><pre>export const stockPrice = live(async function* (symbol) {<br>	for await (const tick of subscribe(symbol)) yield tick.price<br>})</pre><pre>const price = createMemo(() =&gt; stockPrice(props.symbol))</pre><p>In $mol, filename suffixes specify whether a module is for the frontend, for the backend, or shared between them. A shared module can hold types used on both sides, for example.</p><p>In the same repository, you might have an api.node.ts file.</p><pre>export class $my_api extends $mol_rest_resource {<br>	GET(msg: $mol_rest_message) {<br>		msg.reply({ path: msg.uri().pathname })<br>	}</pre><pre>	@$mol_mem<br>	price() {<br>		return $my_api_price.make({})<br>	}<br>}<br>$my_api.serve()</pre><p>Alongside it, you’d have api.web.ts or just api.ts. The client code looks the same as before.</p><pre>export class $my_profile extends $.$my_profile {<br>	@$mol_mem<br>	user() {<br>		return this.$.$mol_fetch.json(`/api/user/${this.id()}`) as { name: string }<br>	}<br>}</pre><p>Or you can take it a step further. Define a table on the client, work with the data locally, and let the data sync automatically.</p><pre>export class $my_stock extends $giper_baza_dict.with({<br>	Price: $giper_baza_atom_real,<br>}) {}</pre><pre>stock() {<br>	return this.$.$giper_baza_glob.Pawn( this.link(), $my_stock )<br>}</pre><pre>price() {<br>	return this.stock().Price()?.val() ?? 0<br>}</pre><h3>Diagnostics</h3><p>Solid has added built-in support for agents and searchable error codes like this one.</p><pre>[STRICT_READ_UNTRACKED] Reactive value read directly in an effect callback will not update.<br>  at src/Item.tsx:12:19</pre><p>$mol takes a simpler approach.</p><pre>$bog_collider.Root(0).Case(3).sample()</pre><p>It uses human-readable, unique fully qualified names.</p><h3>DSLs</h3><p>ReactiveScript and TSRX are meant for agents, as I understand it. But what makes code easier for agents to write tends to make it easier for people to write, too.</p><p>In $mol, a view.tree file compiles to a typed TypeScript class.</p><pre>$my_counter $mol_view<br>	sub /<br>		&lt;= Value $mol_view<br>			sub / &lt;= value? 0<br>		&lt;= Inc $mol_button_minor<br>			title \+<br>			click? &lt;=&gt; inc? null</pre><p>The resulting class has Value(), value(), Inc(), and inc() properties. You add the behavior in .view.ts by overriding a method.</p><pre>export class $my_counter extends $.$my_counter {<br>	inc() {<br>		this.value(this.value() + 1)<br>	}<br>}</pre><p>A subclass can override <em>any nested property</em> of <strong>any component</strong> with a single line, without passing props or forking the component. Solid is aiming for the same kind of built-in composition that $mol provides by default.</p><p>That’s how the <a href="https://b-on-g.github.io/collider/">benchmark comparison tool</a> is built. Three lines replace the deeply nested Source in $hyoo_js_perf.</p><pre>$bog_collider $hyoo_js_perf<br>	Source $mol_link_source<br>		uri \https://github.com/b-on-g/collider</pre><h3>Those Pesky Config Files</h3><p>One thing I’m sure of is that nobody likes fiddling with config files. That’s why $mol does away with them entirely. It uses conventions, like the filename suffixes for code that can run on the client, the server, or both.</p><p>Solid has jumped on the metaframework bandwagon.</p><pre>npm create solid@latest<br>npm i @tanstack/solid-router @tanstack/solid-query</pre><p>I don’t see the point of drawing a line between frameworks and metaframeworks.</p><h3>API</h3><p>I wrote about this in <a href="https://habr.com/ru/articles/1056766/">an earlier article</a>. In React, you have to choose from twelve options. Solid has brought that down to two, which is great.</p><pre>createEffect(<br>	() =&gt; count(),<br>	value =&gt; {<br>		console.log(value)<br>	},<br>)</pre><pre>const states = createMemo( ()=&gt; getStates( &#39;US&#39; ) )<br>const [ state, setState ] = createSignal( &#39;&#39; )<br>const cities = createMemo( ()=&gt; state() ? getCities( state() ) : [] )</pre><pre>&lt;Loading fallback=&quot;Loading…&quot;&gt;<br>	&lt;select onChange={ e =&gt; setState( e.target.value ) }&gt;<br>		&lt;For each={ states() }&gt;{ s =&gt; &lt;option&gt;{ s }&lt;/option&gt; }&lt;/For&gt;<br>	&lt;/select&gt;<br>	&lt;select disabled={ isPending( ()=&gt; cities() ) }&gt;<br>		&lt;For each={ cities() }&gt;{ c =&gt; &lt;option&gt;{ c }&lt;/option&gt; }&lt;/For&gt;<br>	&lt;/select&gt;<br>&lt;/Loading&gt;</pre><p>$mol also gives you just two options.</p><pre>$my_geo $mol_list<br>	rows /<br>		&lt;= State $mol_select<br>			value? &lt;=&gt; state? \<br>			options &lt;= states /string<br>		&lt;= City $mol_select<br>			value? &lt;=&gt; city? \<br>			options &lt;= cities /string</pre><pre>export class $my_geo extends $.$my_geo {<br>	states() {<br>		return this.$.$mol_fetch.json(&#39;/api/states?country=US&#39;) as string[]<br>	}</pre><pre>	cities() {<br>		if (!this.state()) return []<br>		return this.$.$mol_fetch.json(`/api/cities?state=${this.state()}`) as string[]<br>	}</pre><pre>	@$mol_mem<br>	city(next?: string) {<br>		this.state()<br>		return next ?? &#39;&#39;<br>	}<br>}</pre><p>Use @$mol_mem to memoize a method, or @$mol_action for an action such as handling a click.</p><p>There’s plenty more I could say about $mol, of course. That’s it for now. Follow <a href="https://t.me/Dev_cmuser">my Telegram channel</a> for more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07ab47a3214e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s Actually Wrong with Web Components]]></title>
            <link>https://medium.com/@cmyser.fast.i/whats-actually-wrong-with-web-components-b55133f22435?source=rss-c5b66489e7e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b55133f22435</guid>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[mol]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Cmyser Fast ]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 13:07:52 GMT</pubDate>
            <atom:updated>2026-04-05T13:12:13.633Z</atom:updated>
            <content:encoded><![CDATA[<p># What’s Actually Wrong with Web Components</p><p>Ladies and gentlemen, we [continue digging](<a href="https://habr.com/ru/articles/1019206/">https://habr.com/ru/articles/1019206/</a>) into the intricacies of web components. I made a [bench here — comparing frameworks](<a href="https://github.com/b-on-g/todomvc-compare">https://github.com/b-on-g/todomvc-compare</a>) ($mol/Lit/Symbiote) on TodoMVC. Seems like we’re talking about one thing, but the bench is about something else, right? Nope — to understand web components you need frameworks that put them front and center, the ones that “bet on them.”</p><p>Here’s what I managed to figure out:</p><p>## 1. Memory</p><p>124 bytes per web component, and 16 bytes per JS object. An order of magnitude difference — that’s a lot, and without virtualization the interface will most likely lag.</p><p>```<br>// Lit: each todo-item is an HTMLElement (C++ heap, ~124 bytes minimum)<br><a href="http://twitter.com/customElement">@customElement</a>(“todo-item”)<br>export class TodoItem extends LitElement { … }<br>// &lt;todo-item&gt; immediately allocates a DOM node on createElement</p><p>// Symbiote: same deal, each &lt;todo-item&gt; = HTMLElement<br>class TodoItem extends Symbiote { … }<br>TodoItem.reg(‘todo-item’);</p><p>// $mol: component is a JS object. DOM is created ONLY on render.<br>// 1000 tasks in the model ≠ 1000 DOM elements<br>// $mol renders only visible components (virtualization)<br>task_rows() {<br> return this.task_ids_filtered().map(id =&gt; this.Task_row(id))<br>}<br>```</p><p>How memory scales:</p><p>```<br>Custom Element js/mol_view<br>───────────────────────── ──────────────────<br>1,000 tasks: ~124 KB ~16 KB<br>10,000 tasks: ~1.2 MB ~160 KB<br>```</p><p>And that’s just the base nodes — without text nodes, attributes, styles, and event listeners, which also get allocated in the C++ heap. The Custom Elements spec requires `class MyEl extends HTMLElement`. You can’t create a CE without a DOM node.</p><p>This same argument is explored [here](<a href="https://nolanlawson.com/2024/09/28/web-components-are-okay/">https://nolanlawson.com/2024/09/28/web-components-are-okay/</a>) by the author of SolidJS. Below is the response from the article’s author:</p><p>&gt; “If your goal is to build the absolute fastest framework you can, then you want to minimize DOM nodes wherever possible. This means that web components are off the table.”</p><p>Put simply — want performance? Don’t use web components.</p><p>## 2. JIT Optimization Loss</p><p>Besides increased memory consumption, we lose JIT optimization.</p><p>```<br>Operation Time How much worse<br>───────────────────────────── ───────── ──────────────<br>obj.title = x (JS object) ~1–2 ns baseline — 1x<br>element.textContent = x (DOM) ~30–60 ns 30x worse<br>element.setAttribute(‘class’, x) ~50–100 ns 50x<br>element.style.color = x ~80–150 ns 80x<br>```</p><p>Task: select all (relevant for email, for example, which just can’t delete all messages at once if they don’t fit on one page). Here’s how it degrades:</p><p>```<br>Tasks Lit $mol Difference<br>───────── ───────────────────── ─────── ──────────<br>100 60 µs 3 µs 20x<br>1,000 600 µs 8 µs 75x<br>10,000 8 ms 12 µs 650x<br>100,000 120 ms (visible lag) 15 µs 8,000x<br>```</p><p>And a question for readers. Should we even orient ourselves around [js-framework-benchmark](<a href="https://github.com/krausest/js-framework-benchmark">https://github.com/krausest/js-framework-benchmark</a>) in this case? I think not. You shouldn’t render what isn’t visible. They’re fighting over pennies there, and everyone knows you don’t penny-pinch. And let’s recall the perf quote above.</p><p>And a code example. Here we’re also parsing HTML… (that’s bad)</p><p>```<br>// Lit: update through DOM property<br>// element.textContent = newValue ← C++ binding, slow path<br>render() {<br> return html`&lt;label&gt; ${this.text} &lt;/label&gt;`;<br> // Under the hood, Lit does: node.textContent = value<br>}</p><p>// $mol: update through JS property<br>// this.title() — reads from memo cache (JS heap)<br>// DOM updates in a batch via requestAnimationFrame<br>task_title(id, next?) {<br> return this.task(id, …)!.title ?? ‘’<br>}<br>```</p><p>## 3. Reactivity Semantics</p><p>WC (Web Components) use push semantics for reactivity. Pull — I doubt they’ll ever support it. What does this affect? The number of lines of code **written by you**. And all people make mistakes — there’s a saying for a reason: “The best code is code that was never written.” Let’s look at the [bench](<a href="https://github.com/b-on-g/todomvc-compare">https://github.com/b-on-g/todomvc-compare</a>).</p><p>![Benchmark comparison](<a href="https://habrastorage.org/r/w1560/getpro/habr/upload_files/d2a/7cf/fd2/d2a7cffd29174443b049d6c41898efae.png">https://habrastorage.org/r/w1560/getpro/habr/upload_files/d2a/7cf/fd2/d2a7cffd29174443b049d6c41898efae.png</a>)<br>*Respectable.*</p><p>And a code example, for clarity.</p><p>```<br>// Lit: Push via EventTarget + requestUpdate<br>export class Todos extends EventTarget {<br> #notifyChange() {<br> this.dispatchEvent(new Event(“change”)); // push!<br> }<br> add(text) {<br> this.#todos.push({ … });<br> this.#notifyChange(); // ← manual push<br> }<br>}<br>// Each component subscribes via <a href="http://twitter.com/updateOnEvent">@updateOnEvent</a>(“change”)<br>// On ANY change ALL subscribers get notified</p><p>// Symbiote: Push via EventTarget similarly<br>store.addEventListener(‘change’, () =&gt; this.#render());</p><p>// $mol: Pull — automatic dependency graph<br>@$mol_mem<br>groups_completed() {<br> // Automatically tracks dependencies:<br> // task_ids() → task() → groups<br> // Recalculates ONLY when dependencies change<br> for (let id of this.task_ids()) {<br> var task = this.task(id)!;<br> groups[String(task.completed)].push(id);<br> }<br> return groups;<br>}<br>// No EventTarget needed, no manual subscriptions<br>```</p><p>Not for nothing did Vue.js choose pull reactivity.</p><p>## 4. Testability</p><p>To test a web component — you need to render it. Maximally inefficient. I think we all hate it when tests take forever.</p><p>Let’s look at an example:</p><p>```<br>// $mol: tests WITHOUT DOM. Component is just an object.<br>‘task add’($) {<br> const app = $hyoo_todomvc.make({ $ })<br> app.Add().value(‘test’)<br> app.Add().submit()<br> $mol_assert_equal(app.task_rows().at(-1)!.title(), ‘test’)<br>}<br>// No document.createElement, no connectedCallback<br>// Just method calls and state checks</p><p>// Lit: testing requires DOM<br>const el = document.createElement(‘todo-app’);<br>document.body.appendChild(el); // connectedCallback!<br>await el.updateComplete; // wait for render!<br>el.shadowRoot.querySelector(‘.new-todo’)… // access through Shadow DOM!</p><p>// hyoo_todomvc has 140 lines of tests.<br>// Lit and Symbiote implementations — 0. (and they have even more code)<br>```</p><p>## 5. Inheritance</p><p>How it works in Lit with those “convenient little web components”:</p><p>```<br>class TodoApp extends LitElement {<br> render() {<br> // The entire template — a monolithic block. 40+ lines of HTML.<br> return html`<br> &lt;header&gt;…&lt;/header&gt;<br> &lt;section&gt;<br> &lt;ul&gt;${this.todos.map(t =&gt; html`…`)}&lt;/ul&gt;<br> &lt;/section&gt;<br> &lt;footer&gt;<br> &lt;span&gt;…&lt;/span&gt;<br> &lt;ul&gt;…&lt;/ul&gt;<br> &lt;button&gt;…&lt;/button&gt;<br> &lt;/footer&gt;<br> `;<br> }<br>}</p><p>// Want to change just the footer?<br>class MyTodoApp extends TodoApp {<br> render() {<br> // Can’t say “take parent’s render(), replace footer.”<br> // The only option — copy ALL 40 lines<br> // and change the piece you need.<br> return html`<br> &lt;header&gt;…&lt;/header&gt; // copy<br> &lt;section&gt;…&lt;/section&gt; // copy<br> &lt;footer&gt;MY FOOTER&lt;/footer&gt; // all for this<br> `;<br> }<br>}<br>```</p><p>How it works in $mol:</p><p>```<br>// Base component: scrollable area<br>$mol_scroll<br> sub / ← content<br> scroll_top 0 ← scroll position<br> event_scroll ← handler</p><p>// TodoMVC INHERITS $mol_scroll and replaces only sub:<br>$hyoo_todomvc $mol_scroll<br> sub /<br> &lt;= Page $mol_list …</p><p>// Scroll, position, handler — all inherited for free.<br>// We only overrode the CONTENT.</p><p>// Go deeper — inherit $hyoo_todomvc and replace just the footer:<br>$my_custom_todo $hyoo_todomvc<br> foot &lt;= My_footer $mol_view<br>// Everything else (list, input, filters) — inherited as is.<br>```</p><p>Same goes for inheriting logic and styles (uniquely cascading). Zero copy-paste and boilerplate.</p><p>— -</p><p>And to wrap up, I’d like to argue with one statement. Below is my loose quote from [<a href="http://twitter.com/i360u">@i360u</a>](<a href="https://habr.com/ru/users/i360u/)&#39;s">https://habr.com/ru/users/i360u/)&#39;s</a> text ([first link](<a href="https://habr.com/ru/articles/1019206/">https://habr.com/ru/articles/1019206/</a>) in the article):</p><p>&gt; “Any engineering decision is a compromise. The existence of ‘cons’ doesn’t outweigh all possible ‘pros’ by default.”</p><p>To some extent you can agree with that. If not for one “BUT.” We all have the same task — build the most convenient, fast, beautiful application, without legacy, with clean code that’s easy to maintain, and all that jazz. Once more — the task is the same for everyone. And you need to look at who solves it best **across the entirety** of the frontend world. I know one such solution.</p><p>It’s $mol — everything else is worse. That’s a fact.</p><p>The whole “vendor lock-in,” “scary and confusing to learn something new” — those are childish excuses to avoid facing facts. Everywhere in programming you have to learn new things. And there’s no vendor lock at all. Think about it. Kirill. Subscribe.</p><p>— -</p><p>## FAQ (from the comments)</p><p>**”But if you use virtualization, you won’t render those CE nodes either — same thing, no?”**</p><p>Not quite. With virtualization the complexity shifts to the container above. And it’s [not that straightforward](<a href="https://github.com/b-on-g/todomvc-compare">https://github.com/b-on-g/todomvc-compare</a>) in practice — $mol has built-in virtualization by default, while in WC-based frameworks you have to architect it yourself. Every extra architectural decision you have to make is another chance to mess up.</p><p>**”For composition — just split render into renderHeader / renderBody / renderFooter and override one in the subclass. This pattern is 40 years old.”**</p><p>Absolutely agree. The point here is more that $mol enforces this as an **architectural constraint** — the developer physically can’t produce that monolithic-template anti-pattern I showed. The fewer mistakes a programmer can make, and the more the compiler can catch — the better. Again, it’s about not having to think about or write “extra” code.</p><p>**”You’re generalizing too radically. The problem isn’t web components themselves — it’s how people use them.”**</p><p>I think so too. But many people actually look at [js-framework-benchmark](<a href="https://github.com/krausest/js-framework-benchmark">https://github.com/krausest/js-framework-benchmark</a>) and believe it reflects real-world performance. That causes frustration — it feels like the benchmark is misleading. If the benchmark is bad, why does it exist? I think we should use every trick available and show the real maximum performance of JS. It’s not infinite either, but how far can it go? Nobody knows — everyone’s stuck on HTML. By my estimates, you could write an entire OS on $mol, and it would be faster and more stable than many existing ones.</p><p>**”What about Ctrl+F page search? You can’t find what’s not rendered.”**</p><p>Fair point. But funnily enough, in $mol search actually works — it overrides the standard browser search by default and searches through the full data, not just the visible DOM.</p><p>**”Isn’t $mol just for SPAs? For sites with interactive elements — take SSG + web components.”**</p><p>A matter of priorities. For SSG I’d still pick $mol — theming, localization, and responsive layout come out of the box. As for WC — if you need to shove a component into an existing project, sure, why not. I’d even try plugging one into my own $mol app.</p><p>**”Where are the hidden benchmark results that were bad for $mol?”**</p><p>The initial benchmark was set up incorrectly — there were junk files in the root that got pulled into all bundles locally. The real size turned out to be ~185 KB. Honestly noted it in the [bench](<a href="https://github.com/b-on-g/todomvc-compare">https://github.com/b-on-g/todomvc-compare</a>). You can verify by building it yourself. I’d welcome a real comparison from an independent author — that’s how truth is born, the scientific way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b55133f22435" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>