437 points · by net01 · 1y ago · 151 comments
https://github.com/LadybirdBrowser/ladybird/tree/master/Docu...
Here are the latest Web Platform (WPT) tests:
https://wpt.fyi/results/?run_id=6292901677236224
There is a Discord if you want to ask questions:
Compile it yourself (it takes 15-20 minutes to fully compile) and test it on a website. Compare it to Firefox or Chrome and see what's wrong. Fix it and submit a PR.
how to build Ladybird https://github.com/LadybirdBrowser/ladybird/blob/master/Docu...
Look at a WPT test and try to focus on it.
Look at the web spec
Ask questions in the Discord about where it would be, and people are gladly willing to help. :)
Ladybird is an outlier and there are probably a few more project like it, but anyone looking to be employed should pick up the new skill that is rust. Contribute to ladybird and learn c++ if the project interests you, but don't learn it for a career.
Anybody who has ever worked on a large enterprise software team. Anybody who has ever worked in this scenario will believe this. Computing history is full of 2-10 people teams beating giant well funded teams to the punch.
This mostly occurs because work expands to fill the time and resources allowed for the project (Parkinson's Law), and large companies have almost unlimited amounts of both.
The breadth of the task is staggering, but there is a real shot at posting the necessary endurance given the circumstances, being thrifty and given time.
Before you reach for the downvote button for talking out of my arse and calling what the Ladybird folks doing a (qualified, specific) "easy", when we at KDE created KHTML which later begat WebKit, for many years - kling might remember! - our IRC channel topic was "which mozilla bug do we emulate today?", so I've seen it happen once before! Ladybird can succeed; consider contributing.
> Websites using requestAnimationFrame now render at up to 120Hz on supported hardware
But the phrasing of it about "can now" suggests to me that this may simply be a performance issue too. They changed it from 60 to 120. Perhaps in the future they can go from 120 to 144 or even 240.
Also why would running 120 frames on 144 largely negate the benefits ? The whole reason we settled on these numbers is they are all multiples of 24 in the first place
And it doesn't hurt that Andreas seems to be such a nice, humble guy.
Truer words have never been spoken!
His monthly update videos are so soothing to watch.
Not sure why this gets downvoted but since when is it illegal to ask whether people actually use intellisense? I mean - what’s wrong with being interests how ppl bootstrap and get to thousands of LOCs in practically no time.
Just for the record - I never said vibecoded.
Starting a new browser, using LLMs... Is not going to maintain enough context.
Whilst Andreas does use Copilot a fair bit [0], he tends to do a line at a time, frequently disagree and rewrites his own, before prompting again. That is... He basically uses it as a fancy autocomplete. Not much else.
of course, he’s a very, very proficient developer and a browser specialist. he’s not just vibecoding, like you might be implying. but he also uses llms for development.
Ridiculous stuff indeed.
I’ve been coding for 25 years and nothing in my message implies vibe coding. I know what I’m talking and sure bet many others here do.
how to build ladybird https://github.com/LadybirdBrowser/ladybird/blob/master/Docu...
Last time I tried, I couldn't find a website that worked with it. Where do you even begin contributing to such a large, complex, very much WIP project? The barrier to entry is daunting.
- you don't need to understand the whole in order to help
the kind of bugs you can start with are like :
- this icon is a bit weird, it's off centre by 2px - how do I add 2 pixels to this icon? either by moving it or by changing the underlying image asset? if I'm moving it, what is the subroutine that paints it? if I'm changing the image asset itself, where is it stored? (is it in a packed store? or is it just a plain file, etc)
- when I click this button, trace the pathway - it's supposed to add to history and turn blue. is it doing that?
etc.
For large projects, start super small and work your way out from there.
That was the case for me last time I tried it as well, which was a few months ago. Tried it again yesterday and I could load many pages. Could even render complex real life pages like YouTube.
I recommend anyone to build it themselves. It is a very simple and smooth experience.
However, there are two barriers to me building it myself and submitting PRs. The first is that it's not officially supported to build or run on Windows, so I'd have to get familiar with WSL first or set up a dual-boot environment.
The second is that it's written in the obsolete and unusable language of C++. I would have loved an opportunity here to get into Rust or something, but C++ has proven itself hazardous to my mental health, so I'm staying away from it.
Now, with that out of the way. Andreas has been very clear about the reasons why C++ is the chosen language. He has years of experience with it along with writing browsers.
Im paraphrasing here, but he has said that the web evolved around the era of OOP and C++ is the OOP language of that era. Including statements on how C++ fits nicely with the OOP styles of web specs.
As for C++, Ladybird uses very modern C++ that makes it substantially easier to write reasonably safe code than the C++ of yore.
Still, as much as I would like to see the world move to safer languages, C++ is everywhere. Every major browser is written in it. It's not "unusable" in the slightest (though I certainly understand not wanting to learn C++ as an outsider at this point in time, it's a quite boring language in comparison and the C++ job market probably won't let you make use of modern language features that might make it interesting).
I would love to live in a world where projects with security risks like web browsers would "just" use Rust instead of C++ but you'll have to convince the people building the browser to spend their own time or their bosses' time to learn Rust first, and that's a tough sell.
There's Servo if you want to contribute to an open source browser in Rust. It looks like it can certainly use the help it you compare its development speed with Ladybird.
Oh come on. There's nicer ways to say "I'm not good at it". It's OK you know, you can't be good at everything. Just don't make it other people's fault.
* has a modern interface and allow people to communicate efficiently
* does not cost a fortune to use
* has good moderation tools
* supports multiple channels
* has enough built-in moderation so that spam/illegal content is minimal
etc.
e.g. https://servo.zulipchat.com/#narrow/channel/416780-feature-t...
WAT? Not even close to true. A lot of people gravitate to other discussion forums. Some even dislike chat-style "communities" that they steer clear. (Someone can find market research if we want to pin it down more.)
My summary (exaggerated for effect): Discord is a time waster. Slack is Stockholm Syndrome. GitHub Issues is comfortable. Zulip is lesser-known but great and FOSS.
So many of these products have redefined our frame of mind for how we interact, for better or (let's be frank) worse.
Some examples of major open source projects that don't insist on Discord:
* KDE offers its own forums, mailing lists, IRC, Matrix, and, yes, Discord. [0]
* Gnome offers its own forums, and Matrix. [1] Its old mailing lists are archived but now closed.
* Postgres has mailing lists and IRC [2]
* The Linux kernel has mailing lists [3]
[0] https://community.kde.org/Get_Involved#Many_Ways_To_Reach_Us
[1] https://welcome.gnome.org/
And don’t lecture me about the many, for the many wouldn’t have started it, they joined the one.
You know the one, cherish him.
Thanks!
The feed is right there in the link being discussed.
The native JS semantics are UCS-2. Saying that it's UTF-16 is misleading and confuses charset, encoding and browser APIs.
Ladybird is probably implementing support properly but it's annoying that they keep spreading the confusion in their article.
Generally though JS's strings are just a list of 16-bit values, being intrinsically neither UCS-2 nor UTF-16. But, practically speaking, UTF-16 is the description that matters for everything other than writing `str.length`/`str[i]`.
No. Windows use UTF-16 internally. Most GUI toolkits do not.
> It can be said that UTF-16 is the de-facto standard in-memory representation of unicode strings, even though some runtimes (Rust) prefer UTF-8.
No, that wouldn't be true at all.
Your technical merit seem to be limited by your Windows experience, and even that is dated.
Microsoft recommends UTF-8 over UTF-16 since 2019 [1].
1: https://learn.microsoft.com/en-us/windows/apps/design/global...
This is also widely known as WTF-16 (seriously, look it up!)
I have never in my entire life knowingly encountered a UTF-16-native system that enforced well-formedness.
In practice, UTF-16 means potentially-ill-formed UTF-16.