peter

@volfpeter
23 Followers
26 Following
151 Posts
Full-stack engineer.
Simple is better than complex.
Homehttps://www.volfp.com/
GitHubhttps://github.com/volfpeter

I did an almost 2h agentic AI intro talk at the biophysics department at Eötvös Lóránd University today.

If you're interested, you can find the slides and the practice material here: https://github.com/volfpeter/agentic-ai-intro

GitHub - volfpeter/agentic-ai-intro: Introduction to agentic AI

Introduction to agentic AI. Contribute to volfpeter/agentic-ai-intro development by creating an account on GitHub.

GitHub

I finally had time to give some care to my motorhead #python library, an async MongoDB/DocumentDB almost-ODM built around vanilla Pydantic.

I finally migrated it from motor to pymongo's async client.

The tooling and documentation also got upgraded, so the project is in decent shape again.

The htmy / fasthx / holm stack now uses anyio everywhere, so it finally supports trio.

Thanks for the contributions and the patience.

#python #fastapi #htmx #webdev

@davidbrochart I'll probably add caching to htmy soon. It's quite simple, I just need to figure out a not too manual but flexible cache interface.

The rest is a very deep rabbit hole, better not to enter :)

@davidbrochart Yeah, I hope you're enjoying the stack!

I never planned to go this far, but I just couldn't get these out of my head. I was never happy with Jinja/FastHTML.

Sadly I still have ideas (caching and build steps, maybe static site generation too).

But holm + htmy + htmui is a pretty complete now, it serves my needs. More users wouldn't hurt though :)

Btw, how about your anyio PR in htmy? Should we work on that?

While at it, there'll be a new patch version of htmy that removes the async-lru dependency in favor of anyio.

Open sourced htmui: a typed HTML component library for Python hypermedia apps.

It has most of the BasecoatUI components (shadcn-like for non-React) plus some utilities.

Also serves as a holm + htmy demo.

https://htmui.vercel.app/

#python #fastapi #htmx #webdev

htmui

I've finally released holm v0.9

The main feature is that you can now have your layouts in plain HTML files!

holm automatically loads HTML layouts, processes them using a simple, fully customizable pipeline, and swaps in child content for you.

The main benefit of this approach is performance: a large, mostly static HTML element tree can be replaced with single component.

If you're curious, check out the guides here: https://volfpeter.github.io/holm/guides/html-layout/

#Python #FastAPI #HTMX #webdev

HTML layout - holm

A study by Anthropic(!):

"We found that using AI assistance led to a statistically significant decrease in mastery. On a quiz that covered concepts they’d used just a few minutes before, participants in the AI group scored 17% lower than those who coded by hand, or the equivalent of nearly two letter grades. Using AI sped up the task slightly, but this didn’t reach the threshold of statistical significance."

https://www.anthropic.com/research/AI-assistance-coding-skills?e45d281a_page=1&utm_cta=website-be-trending-cloud-marketing-dummies-ebk&mkt_tok=aw.ds

How AI assistance impacts the formation of coding skills

Anthropic is an AI safety and research company that's working to build reliable, interpretable, and steerable AI systems.

Some context: layouts are usually mostly static and contain plenty of HTML elements, so rendering them with htmy is not the most efficient solution.

Supporting plain HTML - through htmy's Snippet with Slots - is way better.

Being able to work with plain HTML for layouts is also quite convenient.

FWIW: holm (and htmy) already has built-in HTML and even markdown support. You just needed a couple of lines of Python code until now.