by coreyp_1 · 2w ago · 0 comments
I'm on the path to building a browser. I had vaguely remembered this site from when it was listed before, but I couldn't find it when looking again. It's bookmarked now. :)
I'm writing my own libraries (because, with AI, why not indulge in low-level fun?), and I'm almost to the layout engine.
So far (all C libraries), I can read multiple image formats, parse HTML/XML and CSS, rasterize text and just about anything that can be required by CSS or SVG. Fonts were fun... I can do TTF but not WOFF yet. I can do some WASM, but no JS engine yet. I do have my Regex engine, though. (I had built WASM first because it's being used for another project). Still a long way to go. Only approx 780K lines spread out across 30 or so libraries written so far.
I'm sure you have your reasons but this sounds like a disaster waiting to happen. Jonathan Blow might be able to never write memory bugs but something as big as a browser will likely, eventually have more than you edit it, or the you of the future is not the same you of today and so will forget all the issues that C is not preventing you making.
A browser needs to be one of the most hardened pieces of software there is since it runs untrusted code. All the browser makers are trying to figure out ways out of their C++ legacy use-after-free exploit hell. Servo in rust, LadyBird going rust, WebKit considering switching to all Swift, Chrome converting portions to rust.
Email: eren@evenstamp.com