Simon Willison’s Weblog

Subscribe

Tuesday, 15th August 2023

Release db-build 0.1 — Tools for building SQLite databases from files and directories
Release datasette-render-markdown 2.2.1 — Datasette plugin for rendering Markdown
Release llm-mlc 0.5 — LLM plugin for running models using MLC
Release openai-to-sqlite 0.4 — Save OpenAI API results to a SQLite database
TIL Storing and serving related documents with openai-to-sqlite and embeddings — I decide to upgrade the related articles feature on my TILs site. Previously I calculated these [using full-text search](https://til.simonwillison.net/sqlite/related-content), but I wanted to try out a new trick using OpenAI embeddings for document similarity instead.
TIL Building a blog in Django — We launched the [Datasette Cloud blog](https://www.datasette.cloud/blog/) today. The Datasette Cloud site itself is a Django app - it uses Django and PostgreSQL to manage accounts, teams and soon billing and payments, then launches dedicated containers running Datasette for each customer.

Someone asked me today if there was a case for using React in a new app that doesn't need to support IE.

I could not come up with a single reason to prefer it over Preact or (better yet) any of the modern reactive Web Components systems (FAST, Lit, Stencil, etc.).

One of the constraints is that the team wanted to use an existing library of Web Components, but React made it hard. This is probably going to cause them to favour Preact for the bits of the team that want React-flavoured modern webdev.

It's astonishing how antiquated React is.

Alex Russell

# 9:15 pm / alex-russell, javascript, react, web-components

Monday, 14th August 2023
Wednesday, 16th August 2023