Maybe that's just marketing, but it's really intriguing how human best practices are also agent best practices; how, maybe, we've reached a point where even devs aren't recognizing agent best practices as human best practices anymore; and how suddenly best practices are being prioritized in a way they often weren't - humans could/would/were expected to suck it up and deal with poor devex, but agents simply can't. A strange sort of victory for us folks who cared about it.
AI has forced me to write out more planning documents. Not waterfall strategic planning, but tactical planning such as describing the desired behavior of a script before I write it, or pre-registering a data analysis and my expected findings in writing before I start querying data -- that goes in a PLAN.md within whatever folder I'm working on at the moment.
I now keep a systematic todo list that I call TASKS.md, which groups tasks into topical sections and every task has an ID, such as MD3 or EV7.
I also keep an append-only-ish journal of results, findings, unfinished thoughts, rejected ideas, etc.
All of that goes right into my project Git repo. It works great for both AI agents and humans.
But perhaps more interesting than my new workflows, is that I actually learn things from the AI. The idea to start pre-registering all my little analyses, not just the big tasks, was a Claude-ism that I've since adopted even when I'm not using AI.
my take is, in the current state of the ecosystem, you should use https://github.com/kunobi-ninja/kache and make agente work on separate worktrees,each with their own target directory
usually separate target dirs means multi-gigabyte artifacts for each worktrees (and waiting for the same code to compile again). but not with kache, it builds only once and reduplicate files (with reflinks if your filesystem supports it)
there's also some projects for live reloading rust, and some specific tips about faster builds during iterative development (the most relevant being, use the mold linker)
But frankly I don't mind it as much with agents as I did when handwriting the code. It's on the agent to endure the slower feedback loop.
Secure? o_O
I've spent the last few years banging on a drum about teams installing linters, static analyzers, and similar in Laravel teams. I get nods of agreement from seniors but little willpower from managers, who just want to see the number of commits line go up.
Surprise surprise, now that I am in charge of a project and have enforced these standards, the team has done incredibly well with even just partial AI adoption in their work - because the guard rails are there and agents don't get tired of hitting them.
The idea that humans never needed a concise summary of where everything is, but then agents came along and suddenly it's really useful, really bugs me. But here we are, and I'm occasionally reading AGENTS.md files like some sort of weirdo. I'm not an AI, why am I being made to read this?
Solid's solution here is beautiful. The server RPC and 'live' and 'broadcast' are seamless, and feel much more natural to use than liveview or htmx/datastar imo.
> Declares a live server function whose answer is the same for every viewer: on the client exactly live(fn) — the sharing is the server's.
> See Share one live answer across viewers for what is shared, what runs per caller, and the compile-time capture rule.
> live() runs one producer per connection, which is right when the answer can depend on who is asking.
Broadcast is one result to many Live is many results to many
Nearly horfed right on my laptop. I won't be using that slop fest.
My counter component bundle test is:
4.8 KiB (brotli'd) in Solid v1.9.18
20.3 KiB (brotli'd) in Solid v2.0.0> The +11.7KB gzip is mostly Solid 2.0’s runtime and the @solidjs/signals scheduler
Turns out the secret to fine-grained reactivity all this time was just a tree structure describing the dependencies.
I'm using signals in Angular and while they don't cover every use case cleanly, they're a huge upgrade compared to RxJS Observables - particularly due to how simple and debuggable they are in comparison.
I much prefer Solid over React, but at least the idea of a compiler makes so much more sense instead of manually maintaining memoization.
It just feels like the right way React should be.
Vercel's UI SDK just launched with Solid support.
Theres also Kobalte, Ark UI, Park UI, Solid UI, Shadcn Solid, Corvu, Material Design Solid, and more.
Appreciate the the other examples though.
For instance, to implement a menu you have to support things like keyboard navigation and auto-closing when the user clicks elsewhere.
Gettings these sort of behaviors right across all browsers is oftentimes _hard_, and testing them properly is very time consuming. That's why it's useful to have it built and tested by a large company.
Traditionally, these behaviors came built-in with your "UI Widget Library" of choice (e.g., https://ant.design/). However, widget libraries bring in their own style and subtle opinions. When you are aligned with those everything is great, but when you want to deviate visually or behaviorally then you have a hard time.
In contrast, "headless UI" packages these behaviors (and only the behaviors) as little snippets that you "plug in" to your own widgets/components. Since how these behaviors get to be "plugged in" to components and how they can interact between them may be dictated by the UI framework/library (e.g., react, astro, solid) the headless ui kits explicitly call those that they support.
For Vercel UI SDK specifically, you can check the list of behaviors they implement here https://ui-sdk.dev/docs/core/behaviors
I'm being facetious, but what would you expect?
https://krausest.github.io/js-framework-benchmark/current.ht...
Between Solid, Vue, and Svelte it's more a matter of features and personal preference than performance at this point.
Honestly, I was probably just so tired of React that it felt refreshing to develop in something so un-React-like, and it ergonomically felt better at the time than writing something similar to React via Solid, even if the latter was still holding its own in performance on paper. If you've spent years learning French then it might feel more refreshing to start learning Japanese than Italian.
It turns out Solid had a lot of it right all along. And after using Svelte for a while, something starting feeling... weird. For all its complexity, something I always appreciated about React was that I was ultimately just writing JavaScript, and with Svelte it felt like I was writing in something only made to resemble JavaScript.
I still really appreciate Svelte, but I'm wondering if this would be a good time to see if Solid will feel more "natural" to me, having worked with JavaScript all these years. Curious if anyone can confirm if that would be the case.
Now might also be a good time to tinker with it myself before the coding models are fully up to date on 2.0 and I turn to laziness (/efficiency) and have them handle the rest.
* Does not need any unique editor plugin like Svelte and Vue to provide a language server.
* Worked with Tsgo day 1.
* Works with oxfmt by default day 1.
* Works somewhat with oxlint out of the box day 1, eslint plugin is fully supported.
Svelte has a much more complicated build system and customised plugins that need regular upkeep, for basic usage it might just look like a vite plugin line and the eslint/prettier config that gets generated as part of project init but as your app grows and you maintain it longer term you absolutely start feeling the deficiencies and weight of all the svelte tooling.
Solid has a compiler and an eslint plugin, but otherwise leverages the standard typescript tooling, it's so much faster. Ryan's looking at reactive script now but it was an extremely good decision to not take on the tooling maintenance of Svelte and Vue.
They all convinced me to use their respective languages by sharing all the thought they put into them, especially to address problems in the alternative, more popular options.
I didn't like it then either.
Contrast that with React, where hooks are colored functions. You thought that hooks were just functions? Nope, if you have a hook, it MUST be called in a hook/component... exactly like async. Did you want to load this TTS player conditionally? Hahah, you can't. Have fun allocating memory for every TTS provider your app supports, even if the user uses only 1 player. https://news.ycombinator.com/item?id=45257413
"Thanks to async in the graph we can detect waterfalls, poorly constructed effect loops, poorly scaling graph shapes like wide graph fanouts and fan-ins." Incredibly cool. Apparently Tanstack Query has a waterfall detector https://github.com/bamlab/tanstack-query-detect-waterfall so the other frameworks have something similar, but it won't work with their state graphs.
TC39 EcmaScript spec editors adddd `async`/`await` in JavaScript as a feature to make it visually clear (to humans, and now agents) what is async or not, unlike (e.g.) Java with synchronous-looking calls everywhere and no hint at what is async (or multi-threaded) or not.
In Solid 1.0, at least an undefined or null value would need to be checked to make async values a little more explicit, but maybe even that is not as good as a some hypothetical feature we have yet to invent to make this clear in signals world. (Well, there are some generator prototypes for Solid 2.0 using `yield` syntax, which are ultra clear, but also very verbose).
So I'm curious how the race to battle race conditions is gonna turn out. It might be too magical right now.
We'll see!
That needs to emphasized more. Pretty sure React's Suspense suffers from waterfalls if memory serves.
Um, you can? Just change this:
if (tts) useState(() => loadTTS(tts))
to this: useState(() => tts && loadTTS(tts))That does not work because `loadTTS` is actually a hook, so its `useLoadTTS`, and hooks must be top level. I encourage you to look at the pastebin in my link, repeated here https://pastebin.com/sjc3vXTd
So, I must have
let provider = useGetUserPreference()
let a = useLoadTTS_A()
let b = useLoadTTS_B()
let c = useLoadTTS_C()
useEffect(() => {
if (provider=="a") a()
if (provider=="b") b()
if (provider=="c") c()
})
Oh hey, what's that? I have to allocate memory for b and c even though only a is used? THANKS REACT. const players = {
sherpa: SherpaPlayer,
local: LocalPlayer,
gemini: GeminiPlayer,
} satisfies Record<VoiceProvider, React.ComponentType>;
function PlayerSwitcher() {
const provider = useAppStore.use.voiceProvider();
const Player = players[provider];
return <Player />;
}
function useRegisterPlayer(player: Player, shortPlayer: Player) {
const { setPlayer, setShortPlayer } = useAppActions();
useEffect(() => {
setPlayer(player);
setShortPlayer(shortPlayer);
}, [player, shortPlayer, setPlayer, setShortPlayer]);
}
function LocalPlayer() {
useRegisterPlayer(useLocalPlayer(), useShortLocalPlayer());
return null;
}
function GeminiPlayer() {
useRegisterPlayer(useGeminiPlayer(), useShortGeminiPlayer());
return null;
}
function SherpaPlayer() {
useRegisterPlayer(useSherpaPlayer(), useShortSherpaPlayer());
return null;
}I think with the advent of AI it doesn't matter so much about the DX and your main focus should be on better UX (the best lighthouse metrics) though I don't think their DX is bad either.
That being said lighthouse is only one part of performance metrics.
The bundle (Solid JSX compiled with the new babel plugin) runs in QuickJS-ng on the watch; the renderer emits node mutations over a small host interface; a Swift host lays them out with Yoga and draws with SwiftUI. The same bundle runs in a browser harness for development. The structure is borrowed from React Native's Fabric: three trees, batched commits, one schema that generates the prop code for both sides. A dozen node types, React Native style names, on purpose.
For context, it's the display layer of a larger personal project (not open source at this point): application state lives in a small expression language with a Rust evaluator, running on the phone or on an ESP32 box, with the state, events and view described by JSON Schemas and a schema-derived wire codec. The watch and an e-ink display are synced views of that state. Bundles and firmware are served and updated over BLE, and the phone app has a sign-in-with-ChatGPT authoring mode that writes the Solid UI and the expression logic against those schemas, checks them on the device, and packs the bundle locally on the phone, no server. Solid's universal renderer is what made the watch part feasible: the UI author writes ordinary JSX and the same bundle runs on the wrist and in a browser tab.
Rough edges in the public piece: you build the QuickJS xcframework yourself, and getting a bundle onto a real watch still means an Xcode build. Examples built with plain npm and the browser harness are in the repo if you want to poke at it. Moving from the RCs to 2.0.0, the only breaking change I hit was <Show> compiling to a ternary, which only reordered mutations inside a commit.
AFAIK React has never had a properly defined renderer, and it was a pain to swap out
I think we will see more of this. Frameworks have been "languages" for years. Rich Harris of Svelte saw that. This is exactly the remaining gap right now. Peeling away the layers is also peeling away the guard rails. You can add those back with rigor of testing. But huge benefits to just encoding our learnings in the language itself.
The huge amount of extra size in Solid 2.0 is for handling all the various edge cases and extra patterns, for scenarios you may or may not care about. We can borrow ideas and tell an agent exactly what we need in a current project, and done.
I'll gladly sacrifice 20%-30% of features of one thing over another if it lets me use that much fewer tokens.
Then ask Claude to write a SaaS landing page for you in assembly.
Then compare the results.
So if a framework is made so that coding agents can use it well, why is it a negative?
I’m not going to be writing SolidJS by hand.