Remix.run Logo
▲ freakynit a day ago

This actually worked amazingly well.

I tested a lot of sites.. a few that were already opened in my firefox, and a few many others.. Every single one of them rendered correctly.

This is truly amazing.. a new browser written from scratch that actually works!

The only minor issue: page scrolling is a bit jerky.. not much.. just a little bit.. it's noticeable.

A huge lots of congratulations to the Ladybird team. What a wonderful accomplishment truly this is.

▲rpdillon 3 hours ago | parent | next [-]

Trialing Ladybird right now as I type this comment. I'm trying it with all my own web apps, news sites, and hacker news. So far, everything is working stunningly well using the Flatpak build for Linux.

I'm completely dumbfounded -- I've been told for decades that creating a new browser is like tilting at windmills, but Ladybird not only seems to be rendering everything I care about correctly, but the onboarding experience was incredibly smooth (light/dark, tab position, search engine, theme) all cleanly presented from the get-go. I'm only five minutes into using it, but I can tell I'll keep this around as a default for my own webapps, and gradually adopt it more as it matures. It's pretty much the same approach I used to adopt Linux back in 1997 -- I could use Linux for half my needs, and then I'd switch to windows, but by 1999 I'd switched completely to Linux. Hopefully I can do something similar with Ladybird!

This is amazing work: thank you to the devs!

EDIT: Spoke too soon! Visited my local CopyParty server (self-signed cert) and there doesn't seem to be a way to get LadyBird to accept the self-signed cert (served over the local LAN). Not that surprising given the Alpha tag, but maybe worth mentioning for folk using homelabs.

▲simcop2387 2 hours ago | parent [-]

> I'm completely dumbfounded -- I've been told for decades that creating a new browser is like tilting at windmills, but Ladybird not only seems to be rendering everything I care about correctly,

I half wonder if this is a truism from the older days of the web when browser compatibility between browsers was much less common. I.e. from the IE days before chrome really kind of replaced everything else. There's now a browser that basically everyone targets for compatibility and everything in the last 15 years of development has been done with that in mind so getting the 90% of the web that people want to use is no longer "I have to support quirky XML behavior from IE 6 because Bank X requires it to render correctly and people need that to work". It's still not going to be simple but I wonder if it's less of a sisyphean task anymore because of how things have shifted.

I'd bet if we tried pointing Ladybird at some of the old enterprise hardware that does funky crap and says it's only compatible with IE6 on 800x600 screens it'd probably show some issues simply because those aren't normally accessed or focused on anymore. And largely I think that's a good thing if it means we can now get a browser engine that's from scratch and doesn't have to focus on those things to become usable as a daily driver for basically everything a normal user is going to encounter.

▲kamranjon a day ago | parent | prev | next [-]

Also mine is sipping on 53mb of memory with multiple tabs open - pretty awesome. I hope it avoids eventually turning into the type of experience I have with chrome and firefox where the browser ends up consuming 20gb of memory and has to be restarted periodically so I don't run out of system memory.

▲simscitizen 21 hours ago | parent | next [-]

Browsers are runtimes and webpages are apps. They just happen to be apps that are dynamically fetched over the network and are packaged as HTML/CSS/JS instead of as PE/ELF/Mach-O binaries.

Runtimes can have bugs or inefficiencies that cause them to use more memory than strictly necessary, but by and large most memory problems are the product of the apps (or webpages) themselves.

▲panta 12 hours ago | parent | next [-]

The view of web pages as apps and browsers as runtime environments/OSes is reasonable but in my opinion it even reinforces the idea that it should be the browser duty to contain bad behavior from web apps/pages. Browsers are well positioned to do so, as they know exactly which resources are used by each tab , and how those grow over time. Also browsers already treat web content as untrusted (sandboxing, isolation), so it would be a natural next step to extend that approach to resource usage. It would match how Operating Systems work, where it's the OS acting as an "arbiter", not the userland application.

▲paulluuk 11 hours ago | parent | next [-]

I would love it if all the major browsers would agree on this. "Every tab is only allowed up to 100mb of memory, if a page needs more than that, optimize it." - Though a setting from the user to allow it for, say, online videogames or streaming sites or something, would be a good idea.

▲Wowfunhappy 4 hours ago | parent | next [-]

I remember when I was a Safari user, any instance of Slack I had open would get reloaded after 5 – 10 minutes with the message "this web page was reloaded because it was using two much memory", interrupting whatever I was doing.

My computer had many gigabytes of memory, so I always found this very annoying. Like, yes, Slack is a giant memory hog and that really sucks, but I can't exactly do anything about that.

Maybe Google would have the clout to actually enforce a memory limit like this, but I'm not sure whether anyone else does at this point. Apparently even Apple wasn't big enough.

▲copirate 11 hours ago | parent | prev [-]

Using more RAM could be a permission request.

▲lukan 11 hours ago | parent | prev [-]

It is non trivial to determine if ressouces a site is using is reasonable or not. A web game may use lots of ressources and will crash if the OS suddenly decides to take some memory away.

▲drnick1 9 hours ago | parent | prev | next [-]

> Browsers are runtimes and webpages are apps.

The internet was a better place when webpages were not seen as "apps."

▲dotancohen 7 hours ago | parent [-]

Though I agree, I am grateful that services such as my banking and national insurance are available via the browser and do not require me to install their own apps on each device. I have no banking apps on my phone nor desktop, Firefox is my window to all those services. I can put my trust in Firefox, I would not put my trust in each outsourced app each for each service I use.

▲rileymat2 14 hours ago | parent | prev | next [-]

I am not following the logic.

Say I write a static html page that loads a series of images down the page where one image will fit on your screen at any time. If the browser loads them all into memory at once without releasing the memory or maintains the a fully rendered virtual page out of sight, is that bloat the app or runtime fault?

▲8n4vidtmkvmk 14 hours ago | parent | next [-]

Both.

Runtime can certainly be optimized, but the app can also virtualize or force unloading if it needs to.

▲rileymat2 2 hours ago | parent [-]

I am just talking about a page that is something like a descriptive document for the browser to deal with, probably less than 500 bytes.

     <html>
     <body>
     <img...>
     <br>
     <img..>
      ...
      </body>
     </html>
▲mkgiga 12 hours ago | parent | prev | next [-]

It's a difficult question because there are so many factors in dom/css that change the answer to 'is there a chance that the image should be rendered the next frame?' that it becomes really hard to implement a strategy for what content to offload to disk and when

If the runtime fails to load the offloaded data back in time there will be visible rendering artifacts so you really have to make sure your strategy is robust

▲imp0cat 12 hours ago | parent | prev [-]

If the static page is badly written and does not instruct the browser to use lazy loading (using the loading="lazy" attribute on the img tag) and the browser loads them all at the same time, is that a problem with the page or the browser?

▲zeroq 15 hours ago | parent | prev | next [-]

> Browsers are runtimes and webpages are apps. Surprised to see that.

I've been championing this mind set for nearly 20 years now. The message was more clear in the Flash era, but once you realize that your webpage is an (/a desktop) application that only happen to live in a browser - it makes a lot of reasoning and designing a lot easier.

▲ZenoArrow 12 hours ago | parent [-]

> I've been championing this mind set for nearly 20 years now.

I don't want to tell you you've wasted your time but it's fairly obvious that webpages are sometimes documents, sometimes apps and sometimes a hybrid between the two. For example, YouTube is clearly an app, but a webpage written predominantly in HTML and CSS is much more of a document than an app.

▲Jasonsf737 11 hours ago | parent | prev [-]

Should browsers enforce per-tab memory budgets?

▲taneq 11 hours ago | parent [-]

Maybe not by default but it'd be good to have the option, yeah.

▲nicoburns a day ago | parent | prev | next [-]

According to the Ladybird Discord, you're likely only measuring the root process there. Each tab is a separate process.

▲Joe_Cool 2 hours ago | parent | next [-]

Yeah I get about 500MB for an Instagram tab (don't use it but just tried if that opens and it does) and 200MB for the Hackernews tab. Still pretty impressive.

And the base UI needs 250MB of which 120MB are shared mem.

▲ a day ago | parent | prev | next [-]
[deleted]
▲kamranjon a day ago | parent | prev [-]

at least in osx i havent noticed other processes - have you?

▲nicoburns a day ago | parent | next [-]

I can't find them in the Activity Monitor, but if you open Ladybird's own task manager from the inspect menu they are there.

▲gabeio 14 hours ago | parent | prev | next [-]

you have to put activity monitory into `All Processes, Hierarchically` to have the children nested, you can then see all of them. (assuming you are using activity monitor on osx)

▲simonw 20 hours ago | parent | prev [-]

Here's a script that shows the process tree for Ladybird: https://gist.github.com/simonw/b9162f1741b96fea72b11c300b749...

▲eviks 14 hours ago | parent | prev | next [-]

There is a simple fix for that in existing browsers - enable unloading of some of those tabs. Does Ladybird have such an option?

▲WanderPanda 16 hours ago | parent | prev | next [-]

IIRC the Ladybird creator said that the Chrome memory footprint is largely a tradeoff of cache-sizes vs. speed. I still hope they will let users control that tradeoff manually in Ladybird

▲sheepscreek 10 hours ago | parent | prev [-]

> Also mine is sipping on 53mb of memory with multiple tabs open

Finally a browser for the Ozempic era. Time to get healthy (message to the incumbents).

▲miki123211 11 hours ago | parent | prev | next [-]

A web browser feels more amenable to AI than most other software projects.

You have great specs for prompting. You have great test suites that you can use as verification criteria. Literally all meaningful implementations of these specs are open source, baked into the weights to some degree, and have many people writing publicly about their internals. You aren't really designing your own features from scratch; a lot of your work is of the "this site doesn't work, please fix site" kind, and that, given decent enough tooling which browsers do have, is also relatively easy for AI to do.

This is very different from game dev for example, where you're working with an engine which hasn't been designed for headless operation from the outset, and your actual goal is max(fun), not max(correctness), which is a lot harder to quantify and requires taste, human testing and many shots on goal.

Sure, you still need human devs in charge to take care of the architecture, tech debt, code quality and such, you can't vibe code a truly great web browser, but those humans can be significantly accelerated by AI.

I know the Ladybird folks realize this and this certainly isn't news to them; Andreas seems plenty AI-pilled to me.

I think AI is what's finally going to break the web browser monopoly.

▲polytely 8 hours ago | parent [-]

great comment, web browsers used to be kind of a doomed project. I wonder if there are any other types of programs that are optimal for AI.

First thing that came to mind is the age-old advice to never roll your own crypto, it likely still holds but I wonder if the risks of that have changed, I guess it did but because it is adversarial and both sides have AI it evens out.

Maybe we start to see more completely new Operating Systems?

▲gabrielhidasy 6 hours ago | parent [-]

I would guess crypto would be the worst type for just blindly using AI, it was never hard to roll your own crypto following a spec and get indistinguishable inputs/outputs from the battle tested libraries.

The danger on rolling your own, on the application side was always holding the library wrong, using primitives that depend on premisses your application doesn't hold, like passing a predictable nonce to a function that needs a random one to be safe. On the library side was always the risk of leaving a side-channel open, a function that is a bit too fast/too slow depending on the input, that leaves some critical memory or file exposed to other parts of code.

Luckily for us, most AIs worth their salt should catch these problems now.

▲trollbridge 16 hours ago | parent | prev | next [-]

It’s really beta quality, not alpha. I would have been comfortable saying it was alpha quality prior to this.

Very solid work.

▲thefourthchime a day ago | parent | prev | next [-]

Very cool. Someone has been working on bot detection. I was curious if they had to deal with it. It turns out yes, they have. Apparently they have to pretend to be Chrome or some websites will let them in.

▲lproven 7 hours ago | parent | next [-]

> or some websites will let them in.

Will *not -- I presume?

▲snackbroken 20 hours ago | parent | prev [-]

Every browser will forever be KHTML, like Gecko.

▲koolala 16 hours ago | parent | prev | next [-]

It's not fully written from scratch anymore they are using Chrome libraries. Edit: Nevermind, the kinds of libraries it uses are used by Firefox too.

▲voxic11 16 hours ago | parent [-]

I don't think this is true. Their FAQ page states the following

> The focus of the Ladybird project is to build a new browser engine from the ground up. We don't use code from Blink, WebKit, Gecko, or any other browser engine.

And I was unable to locate any chrome library references in their github repo.

They do of course use third party libraries like ffmpeg for video parsing and skia for image parsing so its not entirely "from scratch" but afaik the actual browser part, html, javascript, css, is entirely from scratch. As their FAQ page continues:

> we make use of 3rd party libraries for common functionality (e.g. image/audio/video formats, encryption, graphics, etc.), including some of the same libraries used by other browsers.

▲koolala 15 hours ago | parent [-]

They use ANGLE now which whole original purpose is a library for Chrome.

▲tosti 15 hours ago | parent [-]

That's a graphics abstraction layer. How would you implement webGL? Reimplement it for direct3d, metal, opengl and vulkan? Would you not think of a way to abstract those right away?

▲FinnKuhn 10 hours ago | parent | prev | next [-]

I tried to use it as well and most things seemed to work, but as soon as I tried to login somewhere using a passkey that didn't work. With more and more accounts I have being behind a passkey that is quite the limitation for actually using it. Looks like there are already multiple issues open for it so I'm sure they will eventually get to it, especially as more and more people and services switch to passkeys.

▲dotancohen 7 hours ago | parent [-]

How do you manage your passkeys across devices?

▲FinnKuhn 7 hours ago | parent [-]

Using a password manager. I think most of them should support passkeys now.

▲dotancohen 6 hours ago | parent [-]

Thanks. I use Keepass on Debian and Keepass2Android, I'll check if they've updated both for passkey support.

▲ummonk 21 hours ago | parent | prev | next [-]

Yeah I'm actually surprised how well it's working on complex multimedia sites given that it's only in Alpha...

▲DANmode a day ago | parent | prev | next [-]

> The only minor issue: page scrolling is a bit jerky.. not much.. just a little bit.. it's noticeable.

This actually gives me confidence that the important things are being done first.

Sounds like a great alpha!

▲socalgal2 11 hours ago | parent [-]

Sounds opposite to me. iOS targeted framerate, Android targeted Java. iOS has a butter-smooth rep. Android is still janky AF.

▲lproven 7 hours ago | parent [-]

I can't tell.

I use Linux (mainly on X.org) and macOS (on Intel) and Android. I support others' iOS devices though. I can't see all the smoothness stuff people talk about. I am old, not a gamer, and with my glasses on, I have good vision, but it's all literally invisible.

I dismiss all talk of framerates and smoothness and all that as hype mingled with audiophile-style self-deception. I cannot sense it myself so I don't care and don't really believe in it.

You do you. I merely want to say that for all the talk about "buttery smoothness" etc. there is a contingent of us who can't see it and don't care.

▲moralestapia a day ago | parent | prev [-]

>a new browser written from scratch that actually works!

Big Browser wants you to believe that coming up with one is impossibly hard. It's not, even less in the age of AI.

▲hnlmorg 21 hours ago | parent | next [-]

Writing a browser is easy. I wrote one in the 90s that only supported a subset of the standards so I could browse warez sites without having to risk drive-by attacks and pop ups.

The hard part is writing a modern browser that’s feature-capable while being performant and which renders all those broken sites “correctly”

People have already tried throwing tokens at this problem and yet nothing usable has emerged from the effort.

▲marcus_holmes 16 hours ago | parent | next [-]

This. Creating something that will render a subset of html/css/js that you care about is easy. Creating something that will render all of the standards, and all of the broken shit that has accumulated over the past ~30 years is incredibly hard.

▲jp_sc 20 hours ago | parent | prev [-]

You mean “until now”, don’t you?

▲monk_grilla 20 hours ago | parent [-]

Ladybird is not a "throw tokens at the problem" project, and has been going much longer than doing so was even possible.

▲ 18 hours ago | parent | prev | next [-]
[deleted]
▲Sohcahtoa82 18 hours ago | parent | prev | next [-]

As an application security engineer, I thank you for your continued support of my job security.

I wouldn't touch a vibe-coded web browser even in disposable VM. It would be absolute swiss cheese in terms of security.

▲LeFantome 17 hours ago | parent | next [-]

I would be more convinced if you pointed at a vulnerability. To be clear, I am sure there are some. Maybe not as many as Chrome.

▲moralestapia 18 hours ago | parent | prev [-]

I'm not in that business but I'm used to people thanking me for stuff so I'll take yours as well :).

I'd say enjoy it while it lasts, the trends I've seen do not seem to favor your skills, and I've heard it's quite hard to pivot late in life.

I hope you're lucky enough to have a cushion to fall into (inheritance or wealthy in-laws, etc).

▲smashandgrab 17 hours ago | parent [-]

As someone in the security business who cannot hire nearly enough and never has been able to:

The trends you see aren’t trends.

▲Slash65 21 hours ago | parent | prev [-]

I’m relieved to read this. Would love the link to your easily made, secure, feature rich browser that my Banks’s website sees and says “come on in”. Glad the problem was solved already, AI ftw again and again