Blog, page 4

typewriter-editor/typewriter

It is more difficult to conceptualize a hierarchical document that can be any depth than it is a plain text document, a flat list of characters. Because of this, it can also be more difficult to customize editors using a hierarchical data model because the API is more complex, but ultimately it is more flexible and powerful.

Introducing sqlite-vss: A SQLite Extension for Vector Search

sqlite-vss is a new vector search and storage solution that aims to be a "happy medium" between those two approaches. Your embeddings are stored inside a SQLite database and can be queried using SQL, similar to the fts5 full-text search SQLite extension.

How Evolu Works

Evolu creates and stores CRDT messages locally and derives actual DB from them. The most simple CRDT mutation (and the only one implemented right now) is the last write win. A CRDT message contains a table, row, column, value, and timestamp because every CRDT message has to have a timestamp to ensure globally stable ordering via hybrid logical clocks(opens in a new tab).

Store SQLite in Cloudflare Durable Objects

A custom SQLite virtual file system and some WASM/WASI compilation magic allows to run SQLite on a Cloudflare Worker and persist it into a Durable Object.

Code blocks, but better

It feels really good to have control over these code blocks. I spent a lot of time writing documentation for the Modulz products and having access to these features really help me tell a better story.

The Single-Page-App Morality Play

Until we accept that most of the industry is poorly managed and try to figure out how to solve that problem, sites and web apps won’t get better, just shinier and with more bounce.

The biggest hindrance to the web’s progress isn’t non-expert developers, tooling, libraries, Single-Page-Apps, or Multi-Page-Apps. It’s bad management.

Expandable Sections Within a CSS Grid

The grid-auto-flow property controls how the CSS Grid auto-placement algorithm works. In this case, the dense packing algorithm tries to fills in holes earlier in the grid.

Don't Build A General Purpose API To Power Your Own Front End

Imagine if you could just send it the whole “page” worth of JSON. Make an endpoint for /page/a and render the whole JSON for /page/a there. Do this for every page. Don’t force your front-end developers to send a bunch of individual requests to render a complex page.

Why Figma Wins

The core insight of Figma is that design is larger than just designers. Design is all of the conversations between designers and PMs about what to build. It is the mocks and prototypes and the feedback on them. It is the handoff of specs and assets to engineers and how easy it is for them to implement them.