frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

FreeBSD 15.0-Release Release Notes

https://www.freebsd.org/releases/15.0R/relnotes/
1•ksec•1m ago•0 comments

Miki Eleta Clockmaker

https://www.thenakedwatchmaker.com/people-miki-eleta
1•ClaudeGustav2•8m ago•0 comments

How the 'Brussels Effect' Backfired

https://www.ft.com/content/abc3002e-a7be-48e2-8197-aeddf937afec
1•mohi-kalantari•11m ago•0 comments

The Depth Illusion

https://gm-dev.ch/surface-grafting
1•roko_•12m ago•0 comments

200k Tokens Is Plenty

https://ampcode.com/200k-tokens-is-plenty
1•handfuloflight•13m ago•0 comments

Chunked Transfer Encoding – when content length is not known

https://pinggy.io/blog/understanding_content_length_header_and_chunked_encoding/
1•ghoshbishakh•19m ago•0 comments

NotebookLM Tools – Tags, Backup/Restore Sources and Bulk Source Fixer

https://old.reddit.com/r/notebooklm/comments/1pn2yip/notebooklm_tools_tags_backuprestore_sources_...
1•trungpv1601•20m ago•0 comments

Grok Is Glitching and Spewing Misinformation About the Bondi Beach Shooting

https://gizmodo.com/grok-is-glitching-and-spewing-misinformation-about-the-bondi-beach-shooting-2...
2•tobr•25m ago•1 comments

Show HN: I built a simulator to teach PMs why they shouldn't interrupt migration

https://apmcommunication.com
1•pingananth•28m ago•0 comments

Show HN: Generate Passwords from Regex Constraints

https://gruhn.github.io/regex-utils/password-generator.html?constraints=%5E.%7B16%2C32%7D%24%0A%5...
2•ngruhn•30m ago•1 comments

2025 Open Models Year in Review

https://www.interconnects.ai/p/2025-open-models-year-in-review
1•Philpax•31m ago•0 comments

Show HN: StreamGate – A lock-free observability proxy in Go

https://github.com/sashu2310/streamgate
2•sandeepk235•34m ago•2 comments

Nth Country Experiment

https://en.wikipedia.org/wiki/Nth_Country_Experiment
1•hexhowells•34m ago•0 comments

Smooth Scrolling on the Sega Master System

https://bumbershootsoft.wordpress.com/2025/12/13/smooth-scrolling-on-the-sega-master-system/
1•rcarmo•37m ago•0 comments

Forget the far right. The kids want a 'United States of Europe.'

https://www.politico.eu/article/united-states-of-europe-online-propaganda-social-media-memes/
4•saubeidl•51m ago•1 comments

What's Wrong with Kubernetes Today

https://www.devzero.io/blog/whats-wrong-with-kubernetes-today
5•Liriel•52m ago•1 comments

Show HN: Find the Right Game Engine – Godot, Unity, Unreal, and More

https://gameenginehub.com
1•neotanp•53m ago•0 comments

The Graffiti Question

https://www.guernicamag.com/the-graffiti-question/
1•bryanrasmussen•53m ago•0 comments

Rust's v0 mangling scheme in a nutshell

https://purplesyringa.moe/blog/rusts-v0-mangling-scheme-in-a-nutshell/
1•todsacerdoti•54m ago•0 comments

Norton's dome – A paradox in Newtonian physics

https://en.wikipedia.org/wiki/Norton%27s_dome
1•ColinWright•55m ago•0 comments

Props for Web Components

https://old.reddit.com/r/javascript/comments/1pj4ros/props_for_web_components/
2•MzHN•57m ago•2 comments

Connect a U.2 Server SSD to Your PC's USB Port with This Adapter (2021)

https://www.tomshardware.com/news/connect-a-u2-ssd-to-your-pcs-usb-port-with-this-adapter
1•walterbell•58m ago•0 comments

CS 108: Using and Understanding AI

https://docs.google.com/document/d/1idtNbEqMq644sbaK8-6rWYGrNEicNZyCqwp9rMU8hEM/edit?tab=t.0
1•jdcampolargo•58m ago•0 comments

Font AI – AI Font Generator

https://www.font-ai.com/
1•maltsev•59m ago•0 comments

I designed the circuit board for tinyCore [video]

https://www.youtube.com/watch?v=3Nd6zynJclk
1•cassianoleal•1h ago•0 comments

How (not) to train your reader

https://rikverse2020.rikweb.org.uk/blog/how-not-to-train-your-reader/
1•rikroots•1h ago•0 comments

Show HN: Naiman.ai – AI Powered Feed

https://www.naiman.ai/
1•usernameis42•1h ago•0 comments

Tenex: Terminal multiplexer for AI coding agents

https://github.com/Mockapapella/tenex
1•handfuloflight•1h ago•0 comments

A grad student's wild idea triggers a major aging breakthrough

https://www.sciencedaily.com/releases/2025/12/251213032625.htm
2•mywacaday•1h ago•0 comments

Fewer characters on TV had abortions this year

https://text.npr.org/nx-s1-5639998
1•colinprince•1h ago•0 comments
Open in hackernews

I wrote JustHTML using coding agents

https://friendlybit.com/python/writing-justhtml-with-coding-agents/
17•simonw•17h ago

Comments

simonw•17h ago
JustHTML https://github.com/EmilStenstrom/justhtml is a neat new Python library - it implements a compliant HTML5 parser in ~3,000 lines of code that passes the full existing 9,200 test HTML5 conformance suite.

Emil Stenström wrote it with a variety of coding agent tools over the course of a couple of months. It's a really interesting case study in using coding agents to take on a very challenging project, taking advantage of their ability to iterate against existing tests.

I wrote a bit more about it here: https://simonwillison.net/2025/Dec/14/justhtml/

EmilStenstrom•15h ago
Thanks for sharing simon! Writing a parser is a really good job for a coding agent, because there's a clear right/wrong answer. In this case, the path there is the challenging part. The hours I've spent trying to convince agents to implement adoption agency well... :)
msephton•5h ago
RSS on website is erroring. I'd like to follow!
EmilStenstrom•3h ago
Thanks! Now fixed.
gabrielsroka•10h ago
> 3,000 loc

I cloned the repo and ran `wc -l` on the src directory and got closer to 9,500. Am i missing something?

Edit: maybe you meant just the parser

minusf•13h ago
while it's mentioned in the post, it seems to me a bit burried:

isn't this more like a port of `html5ever` from rust to python using LLM, as opposed to creating something "new" based on the test suite alone?

if yes, wouldn't be the distinction rather important?

EmilStenstrom•12h ago
Depending on your perspective, you can take away any of the two points.

The first iteration of the project created a library from scratch, from the tests all the way to 100% test coverage. So even without the second iteration, it's still possible to create something new.

In an attempt to speed it up, I (with coding agent) rewrote it again based on html5ever's code structure. It's far from a clean port, because it's heavily optimized Rust code, that isn't possible to port to Python (Rust marcos). And it still depended on a lot of iteration and rerunning tests to get it anywhere.

I'm not pushing any agenda here, you're free to take what you want from it!

minusf•11h ago
Thank you for the clarification, that was not entirely clear to me from the post.

You also mention that the current "optimised" version is "good enough" for every-day use (I use `bs4` for working with html), was the first iteration also usable in that way? Did you look at `html5ever` because the LLM hit a wall trying to speed it up?

EmilStenstrom•11h ago
It was usable! Yeah, the handler based architecture that I had built on was very dependent on object lookups and method calls, and my hunch was that I had hit a wall trying to optimize the speed. I was slower than html5lib still, so decided to go with another "code architecture" (html5ever) that was closer to the metal. Worked out in getting me ~60% faster than html5lib.

As for bs4, if you don't change the default, you get the stdlib html.parser, which doesn't implement html5. Only works for valid HTML.

simonw•11h ago
I just had Codex CLI figure out where that first version ended and the new one began.

It looks to me like this is the last commit before the rewrite: https://github.com/EmilStenstrom/justhtml/tree/989b70818874d...

The commit after that is https://github.com/EmilStenstrom/justhtml/commit/7bab3d2 "radical: replace legacy TurboHTML tree/handler stack with new tokenizer + treebuilder scaffold"

It also adds this document called html5ever_port_plan.md: https://github.com/EmilStenstrom/justhtml/blob/7bab3d22c0da0...

Here's the Codex CLI transcript I used to figure this out: https://gistpreview.github.io/?53202706d137c82dce87d729263df...

vivzkestrel•6h ago
if it isnt too much to ask, since you are already insanely familiar with the html parser semantics, can you write a postgres extension that can parse html inside postgres? usecase: cleaning rss feed items while storing
EmilStenstrom•3h ago
The license is MIT, so feel free to expand this any way you want! No need to write a new parser from scratch.
furyofantares•6h ago
Is it really too much to do a little more editing of the LLM output for the blog post? There's 17 numbered and titled section headings, all of which are linkable to with anchors, and which mostly have two sentences each.
EmilStenstrom•3h ago
Hi! Yes, the headers were LLM generated and the text were not. I didn't want the blog post to go on for ages, so I just wrote a few lines under each heading. Any ideas how to make it better, while not being too long?
furyofantares•47m ago
I'd start by deleting all the numbered section headings, and add either a transition word (then, so) or a transition sentence (why you went from step n to step n+1 or after how much time or whatnot).