upvote
Oh man, I kind of feel like right now is the opportunity to rebuild those things from the ground up and sort of recreate the lineage of what worked and what didn't.
reply
If you find yourself thinking any time is the right time to reimplement sqlite just because, you're extremely likely to be on the wrong course.
reply
This is an unhealthy attitude towards learning.
reply
It has nothing to do with learning. If you want to learn by rewriting SQLite, go for it. I might not want to use your library, but go ahead - it could be fun.

Same here - the Ladybird project isn’t about learning. Its goal is to render webpages. So, if you can leverage preexisting libraries for local database or image rendering, you do it.

reply
Normal human conversation routinely depends on leaving the obvious thing unsaid. I think we can afford people the courtesy of assuming the obvious exceptions to any broad statement.
reply
Deeming something too obvious to say is wildly subjective, definitely much too subjective to consider any such act an assault on "normal human conversation". For example, I think the reply was appropriate, whereas you don't. Also, making points in a roundabout way - as you did with that comment and as I'm mimicking in mine - isn't clever. It's cognitive bloat. Saying "I think that's obvious" communicates the same information, but without the stench of snobbery or delusion of conveying some broader insight. Surely this terse alternative is more aligned with "normal human conversation", wouldn't you say?
reply
I'm not a Rust developer by any stretch of the imagination, but considering how extensive the SQLite test suite is, maybe a long term Rust port would be doable?

The biggest challenge by far is portability, SQLite, like NetBSD, runs on toasters.

reply
The “juicy” test suite is private. I think they may have had some foresight here, because my view is that this model will only get more popular going forward given how cheap it is clone/steal projects.
reply
More and more the team behind the software is a source of value. Anyone who can write a few paragraphs can produce software that looks good from the outside, but do you trust the team behind it?

Keeping an extensive suite of tests private is just an artificial way to boost the trust in the team. It's an interesting way for open-source developers to have their cake and eat it too.

reply
You see artificial; I see tangible :)

I think it is either going to be this or open core for OSS going forward.

reply
also there's a sense of... some of the feeling of double-blind science or something difficult to express along those lines when you have a separate test suite which is private to verify the first to avoid some kind of "overfitting" which is even more helpful in the LLM days
reply
If you enough token budget, you can an LLM to replicate the unit tests.
reply
If bun can be ported by LLM with tokens to burn budget. I don’t see why reimplementing in whatever language and the test suite is not possible. Writing tests good and stupid is definitely a job LLM can smash out
reply
As far as I know, Bun had a rigorous E2E test suite (i.e. language agnostic) that the LLM could evaluate its progress against.

My impression is that compilers are probably among the easiest software to port because they rely heavily on E2E tests, have large test suites, and have inputs that are relatively well specified.

reply
A person could get LLM to generate a lot of sql tests thou. Sql is been around for a while
reply
I would highly recommend reading up on what the SQLite test suite actually covers. There is also this recent lecture by Richard Hipp (creator) that might give you a better idea: https://www.youtube.com/watch?v=V_qzqY1bb7I
reply
I believe turso did build a sqlite clone in rust that they call libSQL. I think the test suite is proprietary, though, so I'm not sure if they were able to use that.
reply
Most of the SQLite test suite is public. There's a small additional private test suite that's mainly useful for people porting it to novel hardware.
reply
Ah, thanks for the clarification.
reply
Honest question, why? Is SQLite not performant or lacking in some fashion?
reply
Security, presumably. It’s written in C.
reply
Red herring? Airbus uses SQLite inside the flight software for the A350 XWB family of aircraft. It has certified Aviation-Grade Testing (DO-178B/C). The proprietary TH3 test harness, which features roughly 600 times more test code than actual source code and achieves 100% Modified Condition/Decision Coverage (MC/DC) at the assembly level. It must some of the most scrutinised source code on the planet.
reply
by people who have put incredible amounts of effort into its safety and correctness, so I don't really think it matters if its written in C.
reply
There is some merit for the memory safety angle here, so I can see why someone would be interested in doing that.

A look at the CVE list reveals that there were some CVEs with read freed memory or array overflows. That said the amount of CVEs is comparatively tiny to other software, so as you said, it really shows that they put incredible amounts of efforts into safety and correctness. Still, there would probably still be some value to it, even if very minimal (is it worth it though?)

https://sqlite.org/cves.html

reply
Possibly controversial opinion: as the frontier of LLMs improves, things like memory safety can be a solved problem in any language capable of it.

The solution to sqlite memory safety isn't porting it to Rust. It's for someone to spend a hundred dollars a year auditing the C code for vulnerabilities with each new frontier model as they're made available.

reply
I don't think using a statistical model to solve a very mechanical problem is the best use of resources.
reply
It's certainly one way things could go. Personally, I hope not. Why check for memory safety with a non-sovereign, non-deterministic process once a year, when the compiler can do it deterministically on standard hardware every build?
reply
> Personally, I hope not.

Personally I hope so. If software vulnerabilities become a disease that we cure, that is a good thing for everyone. (For me the LLM coding revolution hasn't really changed what I do, or how much I do. What's changed is the expectation of code quality and resilience has gone up a non-hyperbolical 10x.)

reply
The same is said about the Linux kernel and other projects.

And just look what's been happening.

reply
I feel like most of the Linux vulnerabilities lately haven't been kernel level vulnerabilities but rather vulns at distro level or application level like openssh
reply
I saw a video by a kernel developer on this subject recently (probably found it here on HN) which basically said, "Most of the 'vulnerabilities' found by AI were not real. Those that were real were mostly minor. In total, AI has helped find a few real problems, but the signal to noise is low, and the reports of large numbers of vulnerabilities found by AI are overhyped."
reply
Not really my point I was making, I was just explaining why GP jumped to wanting to rewrite in Rust.
reply
eh but I think at this point we can all assume when somebody says they want to reimplement something in rust they mean vague security things, asking why is really asking for anything more specific than that
reply
Because Rust is a cult first and a programming language second. Everything not written in Rust is “impure”
reply
Turso Database has already written a rust version of SQLite that is used in production environments. https://github.com/tursodatabase/turso
reply
A substantial portion of the SQLite test suite is proprietary, so unless Hipp blesses your port and gives you access to that, you'll be at a significant disadvantage.
reply
"Substantial" isn't quite right - the vast majority of the SQLite test suite is public.
reply
Hmm, the wording on https://sqlite.org/testing.html#test_harnesses made it seem like the proprietary test suite was bigger; however, I've never glanced at the public (TCL) tests, and making it sound like their private tests are better no doubt helps ensure they get more contracts.
reply
TH3 is closed source, and is about 50% of the test suite.
reply
Simon I believe you’re mistake here. The public test suite is quite extensive, to the tune of hundreds of thousands of LoC. Word is that the private test suite is orders or magnitude larger than the public one.

For the record I have no problems with their business model, they have managed to fund development of a truly unique piece of OSS infrastructure and for this, I’m always thankful to them

reply
Ah, I didn't know that.
reply
whether or not now is the right time to be doing something like that, doing it as a blocker to anything else is probably not the right way/.
reply
What is the goal now without SerenityOS?

Like why pick this browser if it’s not for fun anymore?

reply
Their goal for a while has been to make a production capable browser which is not owned or funded by Google. At the moment your choices are either Chromium based (owned by Google), Gecko or Safari based (both of which have deals with Google).

This is a fully independent engine funded by no-strings-attached sponsorships.

It's a good model, considering they've demonstrated that a full browser can be developed on a shoe-string compared to the competition.

reply
> This is a fully independent engine funded by no-strings-attached sponsorships.

They claim this frequently, but isn't a sponsorship inherently "strings attached"? A major sponsor (e.g. Shopify) can easily influence the browser developers by threatening to pull funding, especially when developers' full-time jobs depend on that funding.

It seems like a very naive view of how funding works.

reply
See the original announcment of the US 501(c)(3) non-profit org - https://ladybird.org/posts/announcement/.

And the bylaws of the oranization https://ladybird.org/assets/documents/public-records/2024-03...

I am not a lawyer - but to a layman - it looks like they at least try to control this as best they can.

reply
Moreover, it's unclear how this differs from Google's ties to Mozilla; I doubt they actually put their demands in a contract.
reply
Google pays Mozilla to be the default search engine. Yes, they have a contract.
reply
I mean the softer stuff, like tacitly allowing tracking, DRM, ads.
reply
Which doesn’t bother me in the slightest. I’ll worry when they start telling them how the browser should work.
reply
FWIW there's an entry on their FAQ page about this:

> How can you be "independent" if you have sponsors?

> All sponsorships are in the form of unrestricted donations. Board seats and other forms of influence are not for sale, and sponsors have no say in our technical roadmap or product direction.

reply
That doesn't clarify anything. Stating "sponsors have no [official] say" doesn't mean anything when the sponsor can always use the threat of ending their sponsorship as leverage.
reply
Depends how easy it would be to find an alternative. If it really is done on a shoestring, then the set of potential sponsors could be quite big.
reply
Their stated position seems to be to ignore such threats regardless of the outcome. Unclear if they would hold in the long term should that happen but I’m willing to give them a chance.
reply
Apart from the independence from Google, are there any big differences compared to other engines? Is it faster? Does it use less RAM? I really wish there was a browser engine focused on a different area of the CPU vs. RAM tradeoff. Like a browser engine focused on using very little RAM or maybe even an engine that lets me configure whether I want more speed or lower RAM usage.

I think with today's RAM prices a browser that uses a lot less RAM or has an option for that would be interesting for many people.

reply
Browsers have been optimizing CPU and RAM usage like crazy, over the years. Compared to 15 years ago, they probably are 100x more CPU efficient and maybe 4x more RAM efficient, I don't really know and it obviously varies widely depending on content, but what I do know is that websites are 1000x to 10,000x less efficient, because they can be.

Browsers used to have status bars that showed details about loading the page to regular users. They should have kept them, and they should show statistics about how heavy the page load is: total transferred, total JS vs html/css vs media, total cpu usage, cpu usage per minute, memory usage, high and low watermarks, gpu usage?.

Over time people would come to understand that some websites are way heavier than others, and prefer the lighter alternatives where practical. At least some more web-dev engineering managers may come to appreciate the value of not having absurdly bad efficiency.

And now, why are some company's minor mobile apps 500MB, when an open-source native mobile app can be like 20MB? Same thing - because they can.

reply
You should check Ladybird memory usage. It’s way lower.
reply
I just checked on this page vs chromium. They have the same amount of ram used. Then I navigated to google maps, the same place on the map and ladybird used muuch more ram 1.6GB vs 1.1.
reply
Are you aware that Google has been known to serve more optimized versions of their websites to Chromium users to make Chromium seem faster?
reply
Were any of those sites a Google site?
reply
> Then I navigated to google maps
reply
Think I’m wrong about this. Ignore.
reply
I agree, but FYI, firefox has plugins (Auto tab discard) that very aggressively unload ("sleep"/discard) websites, since using it my problems with RAM are much more manageable (I set it to just 1 minute of inactivity). It very helpfully does not unload content with unsent form content.
reply
> I think with today's RAM prices a browser that uses a lot less RAM or has an option for that would be interesting for many people.

Time to bring back the Java ME era version of Opera Mini!

> Opera Mini uses a server to translate HTML, CSS and JavaScript into a more compact format. It can also shrink any images to fit as the handset screen. This step makes Opera Mini fast.

> Most Opera Mini versions use only the server-based compression method, with maximal compression but some issues with interactive web apps. Opera Mini can operate in three compression modes: "mini" (or "extreme" on Android versions), "turbo" (or "high" on Android versions) and uncompressed. The turbo and mini modes reduce the amount of data transferred, thereby also increasing speed on slower connections.

> […]

> When browsing the Web in Opera Mini mode, JavaScript is processed by the proxy server, and is merely rendered on the device. This limits interactivity. Scripts cannot be run in the background on the device. If a script is paused (on the server), the browser must communicate with the server to unpause it. JavaScript will only run for a couple of seconds on the Mini server before pausing, due to resource constraints.

https://en.wikipedia.org/wiki/Opera_Mini

reply
Opera Mini - meh.

But desktop Opera powered by Presto should have continued :-(

Such an amazing application.

The only faster browser I've ever used was links2 + SSL support + image support. It didn't render CSS, which meant it became useless circa 2007 (I think?), but it was <<instant>>. Everything would just load instantly, faster than some desktop apps. I was using it with Gmail and it was crazy fast.

reply
Presto-based desktop Opera pioneered many things we take for granted today: instant backclick, mouse gestures, tab groups, saved sessions, arguably tabbed browsing itself (iCab may have had it earlier?).
reply
Used to live in that app. Loved being able to add my own stylesheet or disable a site's style.
reply
> not owned or funded by Google

I love this goal, and I love Ladybird. But sadly, they have drifted from it in my view.

Ladybird relies heavily on both Skia and Angle. These are both graphics libraries written by Google. Guess which of their projects is the core driver?

So they are not truly independent of Google. They rely on Google Engineering.

Sure, those libraries are Open Source and can be forked and maintained without Google. But so can Firefox or even Chrome.

To be fair, these libraries are not how Google improves their will on the open web, which is the real concern. Still, I liked it better when they did not rely on Google tech.

reply
Is it explicitly stated that they wouldn't accept Google's sponsorship? Or is it just that Google hasn't offered?
reply
They have stated many times that their main value proposition is independence, specifically from Google.
reply
I’m confused by why the default search engine thing is a big deal that can only be solved with a rewrite of a browser from scratch

At the end of the day people can and should do what they enjoy

reply
> I’m confused

Yes you are.

> by why the default search engine thing

This is not the argument.

> is a big deal

It is a big deal. It is not about the search engine.

reply
To have a serious working browser alternative?
reply
Is it serious? It doesn't seem particularly so.
reply
reply
> Anonymous Chromium Developer

Very interesting. I wonder what the story behind that is.

reply
I don't think it's surprising. I've worked with many Chromium developers that love the web and want to see it at its best. Web APIs have the best chance of standing the tests of time when they've been well considered from many angles and different implementations, which is what you get when healthy browser engines collaborate on creating an API that solves a common problem on the web.
reply
Why not? Bottom line is a browser represents one of the most complex technology stacks we run as the component of any system, period. It’s going to take a while to build one from scratch.
reply
deleted
reply
Sorry I cant read your satire.

A "serious working" browser alternative as compared to chromium and Firefox?

reply
A alternative not under the control of the ad companies.
reply
what about Brave?
reply
Isn’t it still Chromium?
reply
Oh yeah my bad.
reply
deleted
reply
Yes. They still have some way to go of course.
reply
By the way, have you seen how Ladybird can run Javascript and CSS animation asynchronously from each other like no other browser can?
reply
A browser built from scratch, with a compact (for a browser), understandable codebase without technical debt.
reply
"Hey Claude, rewrite Blink to get rid of all the bloat, confusing bits and technical debt."
reply
Some new people to monetize our data
reply
I'm not sure about sqlite.... the way chrome handles it, well, it sucks and slow.
reply
Could you elaborate? I can't find any info about this and I've never had issues with how chrome uses SQLite.
reply
Because you don't have multiyear history, a slow book and tons of bookmarks :D.
reply
Sounds like poorly optimized in Chrome level. Should not be problem at all for sqlite
reply
Chrome doesn’t even support more than 90 days of history. How do you even get multiyear history? I switched to Firefox to get multiyear history (among other reasons).
reply
I use Firefox and the way it handles history annoys me. If I delete a month of history or more, it hangs for a long time. This is less noticeable on an M1, but on my older computers it could be like 10 seconds if it were multiple months.

Plus it never seems to order things correctly so I have a hard time seeing what pages I've been on on a given day.

I've long thought that it would be cool if browsers had a tree view for history, so you could see the individual history for each tab. Plus the tree/graph view would mean you wouldn't be locked into the linear ← / → back/forward path.

reply
I fully agree. On many browsers it is already possible to long press the back button to show history for this tab, so browsers know this information without storing it.
reply
Something I always keep in mind these days: a list is just a special case of tree, and a tree is just a special case of graph (ie. network).
reply
SQLite can handle many gigabytes worth of data so probsbly just a missing index or similar.
reply
At the time, my computer was so slow, I had to vacuum Firefox's SQLite databases.
reply
Skia and especially ANGLE are the ones I have the most moral contention to :D

More generally if it's a big component and it lives under chromium.googlesource.com I think it's kind of cheating IMO.

reply
Isn't ANGLE just a driver lowering OpenGLES to OpenGL/Vulkan? I don't see why a browser would need to re-implement this - using off-the-shelf component for this makes a lot of sense. And there are a few alternative implementations of the same concept so swapping it out shouldn't be much of a challenge.
reply
Because:

* Graphics hardware/drivers are really terribly buggy and ANGLE handles a lot of quirks. * WebGL I believe needs it.

reply
If it helps them get where they need, that is ok. They can replace it later, things like this are not written in stone.

Also re:cheating depends on what rules you apply. Serenity was do everything yourself, Ladybird is a good browser, seems fair.

Although it gets a bit harder to say “independent browser” I’ll give you that.

reply
I really don't think Skia and ANGLE are cheating. Both are widely used outside of Chromium.
reply
It might limit performance under linux maybe?

I can't get chromium browsers to have as good rendering as firefox no matter I try. My main use case is PDFs and whatsapp web so maybe it works differently with other things.

reply
What is the moral contention? That you think it's cheating? Sorry not really following you
reply
That they're using the 2D gfx library and the WegGL implementation developed for Chrome, so it's not really independent of Chrome.
reply
Not only that but also fully embracing LLM driven development has greatly enhanced the pace of progress in Ladybird, while other open source projects are in full denial mode coping with some silly excuses that AI isn't the future of programming, Ladybird team just chose to get shit done instead.
reply
Copyright provenance is a real concern though, and that's the reason for a lot of the reluctance, for example in the GNU project. Oh, and there not being any LLM models that yet fulfill the criteria for free software.

Spam contributions have also been cited, but those should be easy enough to handle, at least once the aforementioned free models become available.

reply
Does GNU require that its contributions be produced by developers using only "free software"?
reply
Technically no, although in the case of LLMs the problem would be the provenance of the generated code, since you don't know whether the original training data was proprietary, or free software, and if so, which license. And it seems unclear what the copyright situation is with LLM-generated code, since technically it's not human code and thus it shouldn't get copyright protection, but on the other hand, since the LLM is generating it in response to a prompt from a human, it may also have enough human creativity associated with it to receive copyright protection.

As for not using non-free software LLMs, that's a major ethical issue, since relying on LLMs without ensuring that they're free would make people reliant on non-free services -- most of which are SaaSS to boot -- and that's not seen as a good state of affairs.

reply
[flagged]
reply
Just like GP said: But I can't help but feel nostalgic at the original hacker spirit of LB+SerenityOS.

This doubled down with extensive LLM usage.

I followed since the SerenityOS days, and although I contributed very little to Serenity, I was able to follow along with the development of a full OS and a browser for years, and it was super fun and interesting and formative. Then there was full LLM adoption, and along with it 50k-line PRs no-one can make sense of and LLM code reviews that bring no insight to the lurker that I am, and it just generally sucked all the fun out of the project.

Thankfully, SerenityOS is still going and fun to follow along, and making interesting progress in all directions, even though it has slowed down since Kling stepped down.

reply
Some other open source projects. Less than half
reply
> Ladybird team just chose to get shit done instead

Wonderful double meaning, even if probably unintended.

reply
That's up to each project individually. I suggest you start by using AI on all the successful open source projects you created yourself.
reply
He's... giving his opinion, should we not have opinions on anything that we don't own? Christ almighty
reply
It also makes what they do not so special. There is a good chance, by next year, we’ll have Ant or OAI claim their agent swarm built an entire browser from scratch with minimal human supervision, and it will likely be better than LadyBird. What then lol? Is there still any point to working on this.
reply
The difference is that this is a project they intend to work on long term and keep continuously updating to the latest web standards and fixing bugs. If Anthropic or OpenAI developed a browser, it would be a flex project to show off the model capabilities for marketing purposes that would quickly turn into unmaintained abandonware (does anyone even remember or use Claude's C compiler?). Not only that, but those companies have zero regard for quality control in their own products so the browser wouldn't be any better. There's a huge difference between LLM assisted projects and vibecoded projects in terms of polish, UX, usability and so on.
reply
> latest web standards and fixing bugs - Chromium, WebKit and Gecko already do this and will always be ahead of ladybird.

This all just feels like a feel good waste of tokens to me, which is fine, I guess humans need to feel good sometimes. Doesn’t change the truth of the matter.

reply
I don't really understand your point. Rebuilding a browser from scratch with a swam of agents wouldn't be a waste of tokens but updating an existing, well understood browser would be?
reply
Ladybird was well on its way to becoming a real browser before the LLM craze took over.

Their current leadership seems invested in building a working and independent browser and that’s enough for me.

Will they ever catch up to the long tail like Gecko or Safari? Maybe not but the web is also a moving target generally. Do I care if they don’t reproduce a browser behavior from 1999 perfectly? Eh, not really (which somewhat pains me to admit!)

If they keep their heads down and do the work, I’m confident they will be successful!

reply
I think measuring the value of human endeavour by how difficult it is for a machine to replicate rather misses the point. But there's a nugget of truth in what you're saying. Perhaps not this decade... but it doesn't seem implausible that building a fully featured, standards-compliant browser could be a literally routine task for the LLMs of the 2030s? That's a rather profound proposition, with implications well beyond Ladybird.
reply