Live data from Hacker News

Ladybird adopts Rust, with help from AI

ladybird.org

671–680 of 731 posts

Re: Ladybird adopts Rust, with help from AI

#671
post #611

Pardon my ignorance, but doesn't a byte-by-byte output recreation of the C++ code in Rust defeat the whole purpose of using Rust? For one, would it be idiomatic Rust anymore? Also, if there's a (non-memory related) vulnerability in the C++ code, would it be possible for that to be introduced in Rust too?

The impression I get from the article is not that the compiled code of each implementation produces the same object code, but that when the implementations are run with the same inputs, they produce exactly the same output — that is, the same JS VM bytecode.

That matches my understanding too.

If they had developed a technique to get a modern C++ compiler and rustc to generate exactly the same output for any program (even a trivial one) I think that would be huge news and I would love to see all the linker hacking that would involve.

Re: Ladybird adopts Rust, with help from AI

#672

Earlier quoted context omitted.

> 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…

[flagged]

> every ten seconds someone will start asking to tax everyone to fund Rust Software Foundation or constantly argue that you have to donate a percentage of income to it

I have literally never heard this, in ~decade of working with Rust. I think you may be taking some random mailing list discussions a little too seriously

Re: Ladybird adopts Rust, with help from AI

#673

Earlier quoted context omitted.

[dead]

It depends. I migrated a 20k loc c++ project to rust via AI recently and I would say it did so pretty well. There is no unsafe or raw pointer usage. It did add Rc > wasn't very difficult, but keeping the code structure identical at first allowed us to continue to work on the c++ code while the rust port was ongoing and keep the rust port aligned without needing to implement the features twice. I would say modern c++…

> I would say modern c++ written by someone already familiar with rust will probably be structured in a way that's extremely easy to port because you end up modeling the borrow checker in your brain.

I can't stress out how much important this sentence is. I would even remove the "familiar with rust" part.

Anyone who still thinks it's good to use C/CPP on modern hardware where Rust support is available and good: please print the sentence above and post it all over your place.

Re: Ladybird adopts Rust, with help from AI

#677
post #315

Earlier quoted context omitted.

I still don’t buy this “safer more modern” mentality. Modern C++ pretty much solves the safety issues. People need to learn how to use tools properly. If you ask me, Go is a better Rust. Rust is an ugly version of C++ with longer compile times and a band of zealous missionaries. I mean the keywords mut and fn very annoying to read just get rid of them or spell the f*n thing function.

If C++ died for services under Unix and medium sized indie games (such as I2PD, or Cataclysm DDA and its forks) and these where rewritten in Go the maintenance would be far greater in these projects. A GC, a much better cross compatibility and your code for sure could probably be compiled in 10 years. Also CDDA:Bn wouldn't damn need a > 40h long build using 1.5 GB of RAM under an n270 netbook. Ditto with Nchat, FFS,…

As for Go minimalism can anybody explain why logcli is so big https://github.com/grafana/loki/releases just to download logs from kubernetes?

Re: Ladybird adopts Rust, with help from AI

#678

Earlier quoted context omitted.

> It burned through a mountain of tokens, but 10/10 - would generate tens of thousands of lines of useless code again. This is the biggest bottleneck at this point. I'm looking forward to RAM production increasing, and getting to a point where every high-end PC (workstation & gaming) has a dedicated NPU next to the GPU. You'll be able to do this kind of stuff as much as you want, using any local model you want. Run a…

Wasting electricity to "generate tens of thousands of lines of useless code" at will? Why is that in any way a desirable future?

Wait until you find out about video games.

Re: Ladybird adopts Rust, with help from AI

#679
post #471

Earlier quoted context omitted.

"All of them are moving into the direction of "less human involved and agents do more", while what I really want is better tooling for me to work closer with AI and be better at reviewing/steering it, and be more involved." I want less ambitious LLM powered tools than what's being offered. For example, I'd love a tool that can analyse whether comments have been kept up to date with the code they refer to. I don't wan…

Any terminal tool like Claude Code or Codex (I assume OpenCode too, but I haven't tried) can do it, by using as a prompt pretty much exactly what you wrote, and if it still wants to edit, just don't approve the tool calls. One problem I've noticed is that both claude models and gpt-codex variants make absolutely deranged tool calls (like `cat > foo...EOF` pattern to create a file, or sed to read a couple lines), so i…

Lot's of `echo "doing a thing" ; some --other command"` which then prompt the user to permit echo commands like this...

Re: Ladybird adopts Rust, with help from AI

#680

Earlier quoted context omitted.

> As a browser, Ladybird usefulness is currently quite limited for obvious reasons By this definition all basic research is hype.

No, not necessarily. It's the ratio and for most basic research the numerator of the fraction is also approaching zero.

Yes, necessarily. Basic research is currently useless in the same way building something that hasn’t been built is currently useless.
Post reply on HN