An unofficial, read-only Hacker News reader.

Ladybird is now in alpha (opens external site)

2477 points by janvdberg 6 days ago | ladybird.org | 749 comments on HN

View full thread · View on Hacker News

Comment thread (142)

  1. Ladybird ditching a bunch of self developed libraries for production grade ones (like sqlite or skia) helped them immensely improve their browser.

    But I can't help but feel nostalgic at the original hacker spirit of LB+SerenityOS.

    Replies (5)
    1. I'm not sure about sqlite.... the way chrome handles it, well, it sucks and slow.
      Replies (2)
      1. Could you elaborate? I can't find any info about this and I've never had issues with how chrome uses SQLite.
        Replies (1)
        1. Because you don't have multiyear history, a slow book and tons of bookmarks :D.
          Replies (3)
          1. Sounds like poorly optimized in Chrome level. Should not be problem at all for sqlite
          2. SQLite can handle many gigabytes worth of data so probsbly just a missing index or similar.
          3. 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).
            Replies (1)
            1. 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.

              Continue this thread (2 replies) →

      2. At the time, my computer was so slow, I had to vacuum Firefox's SQLite databases.
    2. 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.

      Replies (5)
      1. 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.

      2. 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.

      3. I really don't think Skia and ANGLE are cheating. Both are widely used outside of Chromium.
      4. 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.
        Replies (1)
        1. Because:

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

      5. What is the moral contention? That you think it's cheating? Sorry not really following you
        Replies (1)
        1. That they're using the 2D gfx library and the WegGL implementation developed for Chrome, so it's not really independent of Chrome.
    3. 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.
      Replies (6)
      1. Some other open source projects. Less than half
      2. 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.

        Replies (2)
        1. Does GNU require that its contributions be produced by developers using only "free software"?
          Replies (1)
          1. 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.

        2. I think LLMs have become so comprehensively embedded in the entire software industry that any meaningful sense of copyright provenance might still be alive in theory but functionally it's dead AF. We're witnessing the emergence of a de facto intellectual commons, not through legal consensus but through the sheer impossibility of unpicking it.
          Replies (1)
          1. I do tend to agree that this is going to transform the way the global copyright system will work, and it's going to affect basically the whole planet thanks to the Berne Convention.

            However, I certainly understand why things like the GNU project want to be careful with this stuff, since the rights holders will be fighting tooth and nail against their "intellectual property" being made into the commons by the LLMs.

            Replies (1)
            1. The GNU project can do what they like, and that could be a good or bad decision. More than likely it will be an irrelevant one, when everything the GNU project has ever produced becomes trivially replicable from scratch.

              (I'm not saying I like that future, or that it's a good future. But I do think it's the most likely, and potentially very interesting.)

      3. That's up to each project individually. I suggest you start by using AI on all the successful open source projects you created yourself.
        Replies (1)
        1. He's... giving his opinion, should we not have opinions on anything that we don't own? Christ almighty
      4. > Ladybird team just chose to get shit done instead

        Wonderful double meaning, even if probably unintended.

      5. 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.
        Replies (2)
        1. 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.
          Replies (1)
          1. > 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.

            Replies (2)
            1. 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?
            2. 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!

        2. 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.
      6. 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.

    4. What is the goal now without SerenityOS?

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

      Replies (4)
      1. To have a serious working browser alternative?
        Replies (2)
        1. Is it serious? It doesn't seem particularly so.
          Replies (3)
          1. 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.
          2. Replies (1)
            1. > Anonymous Chromium Developer

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

              Continue this thread (1 replies) →

          3. In Estonia we have a saying "count chicken in the autumn"..
        2. Sorry I cant read your satire.

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

          Replies (2)
          1. A alternative not under the control of the ad companies.
            Replies (1)
            1. what about Brave?

              Continue this thread (1 replies) →

          2. Yes. They still have some way to go of course.
            Replies (1)
            1. By the way, have you seen how Ladybird can run Javascript and CSS animation asynchronously from each other like no other browser can?
      2. 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.

        Replies (6)
        1. Is it explicitly stated that they wouldn't accept Google's sponsorship? Or is it just that Google hasn't offered?
          Replies (1)
          1. They have stated many times that their main value proposition is independence, specifically from Google.
        2. 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.

          Replies (3)
          1. 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.
          2. > 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

            Replies (1)
            1. 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.

              Continue this thread (2 replies) →

          3. 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.

            Replies (1)
            1. You should check Ladybird memory usage. It’s way lower.

              Continue this thread (2 replies) →

        3. > 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.

          Replies (5)
          1. Moreover, it's unclear how this differs from Google's ties to Mozilla; I doubt they actually put their demands in a contract.
            Replies (1)
            1. Google pays Mozilla to be the default search engine. Yes, they have a contract.

              Continue this thread (2 replies) →

          2. 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.
          3. 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.
          4. 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.

            Replies (1)
            1. 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.

              Continue this thread (1 replies) →

          5. 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.

        4. 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

          Replies (1)
          1. > 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.

        5. > 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.

        6. Firefox have a deal with Google, but the code is all open source. They could just fork it so you have a ready-made browser with no Google deal, but IIRC I've previously seen comments along the lines of "Firefox code is contaminated with Google code". Now it seems Ladybird is using Google libraries like Skia and ANGLE. Perfectly sensible in my opinion, but if they're willing to do that... why not just fork Firefox?
      3. Some new people to monetize our data
      4. A browser built from scratch, with a compact (for a browser), understandable codebase without technical debt.
        Replies (1)
        1. "Hey Claude, rewrite Blink to get rid of all the bloat, confusing bits and technical debt."
    5. 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.
      Replies (3)
      1. 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.
        Replies (3)
        1. 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.

          Replies (5)
          1. 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.
            Replies (2)
            1. Ah, I didn't know that.
            2. "Substantial" isn't quite right - the vast majority of the SQLite test suite is public.

              Continue this thread (3 replies) →

          2. 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.
            Replies (1)
            1. 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.

              Continue this thread (1 replies) →

          3. Honest question, why? Is SQLite not performant or lacking in some fashion?
            Replies (2)
            1. Security, presumably. It’s written in C.

              Continue this thread (2 replies) →

            2. Because Rust is a cult first and a programming language second. Everything not written in Rust is “impure”

              Continue this thread (1 replies) →

          4. 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.
            Replies (3)
            1. 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

              Continue this thread (1 replies) →

            2. 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.

              Continue this thread (1 replies) →

            3. If you enough token budget, you can an LLM to replicate the unit tests.
          5. Turso Database has already written a rust version of SQLite that is used in production environments. https://github.com/tursodatabase/turso
        2. This is an unhealthy attitude towards learning.
          Replies (3)
          1. 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.

          2. 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.
            Replies (1)
            1. 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?

              Continue this thread (2 replies) →

          3. sqlite is probably one of the best engineerd pieces of software on the planet and the most used database. if you want to learn more about how the sqlite team thinks about reliability i strongly recommend watching the following talk Richard Hipp gave recently https://www.youtube.com/watch?v=V_qzqY1bb7I

            so i tend to agree, you rewrite sqlite you will end up with an inferior product

        3. You can totally reimplement sqlite. Sqlite is essentially a pile of reasonably implementable pieces. You can start with the journaled paged atomic file, and move on to a B+tree. Don't try to be compatible with the actual sqlite, make your own format with a similar purpose. You don't have to implement SQL to make it useful.
      2. 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/.
      3. For bad or very niche software, I may agree, but you get the benefit of SQLite being one of, if not the most, popular library in the world. It's ironclad, well supported currently, and will continue to be well supported into the future.