Live data from Hacker News

Ladybird adopts Rust, with help from AI

ladybird.org

371–380 of 731 posts

Re: Ladybird adopts Rust, with help from AI

#371

Earlier quoted context omitted.

> Just like, I suppose, C# Have you actually used .NET on Linux/macOS? I have (both at home and work) and there isn't anything that made me think it was neglected on those platforms. Everything just works™

It didn't use to be that way, for a very long time.

When it wasn't that way, they never had any marketing speak that suggested that though?

Re: Ladybird adopts Rust, with help from AI

#372
My intuition is that they will convert to zig again when it stables. If it is possible to do it using LLM in 2 weeks for rust, then it would be the same for zig, too.

While rust is nice on paper, writting complex software in it is mentally consuming. You can not do it for a long time.

Re: Ladybird adopts Rust, with help from AI

#373
post #230

Earlier quoted context omitted.

I thought the entire point of Ladybird was precisely to reinvent the wheel?

This is also the case for Servo, so it makes sense to collaborate.

Servo has a distinct design goal that sets it apart from its predecessor within Mozilla and has already had offsprings that has made its way directly into Firefox.

Its purpose is not to reinvent everything. It’s not a hype project.

Re: Ladybird adopts Rust, with help from AI

#374
This is sort of hilarious if you think about it. The Firefox browser is completely written in Rust. Now Ladybird is a "human-directed ai" Rust browser. Makes you wonder how much of the code the two browsers will share going forward given llm assisted autocompletes will pull from the same Rust Browser dataset.

Re: Ladybird adopts Rust, with help from AI

#375

> We’ve been searching for a memory-safe programming language to replace C++ in Ladybird for a while now. The article fails to explain why. What problems (besides the obvious) have been found in which "memory-safe languages" can help. Do these problems actually explain the need of adding complexity to a project like this by adding another language? I guess AI will be involved which, at this early point in the project…

Rust was pretty much created to help solve security issues in browsers: https://en.wikipedia.org/wiki/Rust_(programming_language)#20...

Re: Ladybird adopts Rust, with help from AI

#376
post #215

Earlier quoted context omitted.

> a relic from the days when everyone thought Drupal was the future (long time ago). Drupal is the future. I never really used it properly, but if you fully buy into Drupal, it can do most everything without programming, and you can write plugins (extensions? whatever they're called...) to do the few things that do need programming. > The Epilogue: That site has since been ported to WordPress, then ProcessWire, then…

I'm not sure if you're serious or not, but while I never liked Drupal (even used to hate it once upon a time), I always liked the pragmatism surrounding it, reaching to the point of saving php code into the mysql database and executing from there.

> reaching to the point of saving php code into the mysql database and executing from there.

Wordpress loves to shove php objects into the database (been a good long while since I used it, don't remember the mechanism, it'd be the equivalent of `pickle` in python, only readable by php).

Not sure if they've improved it since I last dealt with it about 15 years ago, but at the time there was no way to have a full separated staging and production environment, lots of the data stored in the database that way had hardcoded domain names built into it. We needed to have a staging and production kind of set-up, so we ended up having to write a PHP script that would dump the staging database, fix every reference, and push it to production. Fun times.

Re: Ladybird adopts Rust, with help from AI

#377

I'm a long-time Rust fan and have no idea how to respond. I think I need a lot more info about this migration, especially since Ladybird devs have been very vocal about being "anti-rust" (I guess more anti-hype, where Rust was the hype). I don't know if it's a good fit. Not because they're writing a browser engine in Rust (good), but because Ladybird praises CPP/Swift currently and have no idea what the contributor's…

> I guess more anti-hype, where Rust was the hype Yeah that is the thing I struggle with. I am really happy for people falling in love with Rust. It is a amazing language when used for the right use case. The problem is that had my Rust adventures a few years ago and I am over the hype cycle and able to see both the advantages and disadvantages. Plus being generally older and hopefully wiser I don't tie my identity t…

I'm contemplating diving into Rust for a smallish project, a daemon with super-basic UI intended for Linux, MacOS and Windows. Do you mind expanding on what disadvantages you encountered? Or use-cases that aren't appropriate for Rust?

Re: Ladybird adopts Rust, with help from AI

#378

Earlier quoted context omitted.

> Just like, I suppose, C# Have you actually used .NET on Linux/macOS? I have (both at home and work) and there isn't anything that made me think it was neglected on those platforms. Everything just works™

It didn't use to be that way, for a very long time.

It's been 10 years of it running on Linux.

Re: Ladybird adopts Rust, with help from AI

#379
post #372

My intuition is that they will convert to zig again when it stables. If it is possible to do it using LLM in 2 weeks for rust, then it would be the same for zig, too. While rust is nice on paper, writting complex software in it is mentally consuming. You can not do it for a long time.

If they are looking for a memory-safe language, why would they convert to Zig?

Re: Ladybird adopts Rust, with help from AI

#380

This is sort of hilarious if you think about it. The Firefox browser is completely written in Rust. Now Ladybird is a "human-directed ai" Rust browser. Makes you wonder how much of the code the two browsers will share going forward given llm assisted autocompletes will pull from the same Rust Browser dataset.

Probably not much: the requirement is exact equivalence of program inputs to outputs, and as such the agents are performing very mechanical translation from the existing C++ code to Rust. Their prompts aren't "implement X browser component in rust", they're "translate this C++ code to Rust, with these extra details that you can't glean from the code itself."
Post reply on HN