An unofficial, read-only Hacker News reader.

Ladybird is now in alpha (opens external site)

2472 points by janvdberg 5 days ago | ladybird.org | 747 comments on HN

View full thread · View on Hacker News

Comment thread (8)

  1. There is some merit for the memory safety angle here, so I can see why someone would be interested in doing that.

    A look at the CVE list reveals that there were some CVEs with read freed memory or array overflows. That said the amount of CVEs is comparatively tiny to other software, so as you said, it really shows that they put incredible amounts of efforts into safety and correctness. Still, there would probably still be some value to it, even if very minimal (is it worth it though?)

    https://sqlite.org/cves.html

    Replies (1)
    1. Possibly controversial opinion: as the frontier of LLMs improves, things like memory safety can be a solved problem in any language capable of it.

      The solution to sqlite memory safety isn't porting it to Rust. It's for someone to spend a hundred dollars a year auditing the C code for vulnerabilities with each new frontier model as they're made available.

      Replies (3)
      1. It's certainly one way things could go. Personally, I hope not. Why check for memory safety with a non-sovereign, non-deterministic process once a year, when the compiler can do it deterministically on standard hardware every build?
        Replies (1)
        1. > Personally, I hope not.

          Personally I hope so. If software vulnerabilities become a disease that we cure, that is a good thing for everyone. (For me the LLM coding revolution hasn't really changed what I do, or how much I do. What's changed is the expectation of code quality and resilience has gone up a non-hyperbolical 10x.)

          Replies (1)
          1. Sorry, I wasn't saying don't analyse software with LLMs. I was saying don't give up on memory-safe languages in the belief that LLMs will catch every memory safety bug.
            Replies (1)
            1. I agree, I’m just saying that as a class of problem, it’s going to become less of an issue across every language. And memory safety is just one of many classes of bad code, perhaps in the future we will have languages that make other classes of problem impossible too. (For example, just spit-balling, but imagine a language where you have to contractually declare data safety rules and have those rules proven by the compiler… sounds annoying and onerous if a human is writing it. But humans won’t be writing it, and maybe it helps us audit it.)
      2. I don't think using a statistical model to solve a very mechanical problem is the best use of resources.
      3. If you're already doing all of that, why not port it to Rust? I think I know the actual reason: compiling Rust and embedding Rust code, outside of a Rust environment, is annoying.