Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: HyScribe – A drop-in replacement for WordPress, written in Rust (opens external site)

94 points by Sid_Lmao 1 day ago github.com 79 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (6)

  1. I wonder what the motivation was for rewriting it in Rust. It doesn't make sense to me.

    Rust doesn't automatically prevent web application bugs caused by unsafe string concatenation or poor input validation. It doesn't prevent bugs in business logic or access controls either.

    Replies (4)
    1. It prevents php bugs themselves to affect all wordpress sites while being faster and with less memory consumption and memory safety.

      > Rust doesn't automatically prevent web application bugs caused by unsafe string concatenation or poor input validation. It doesn't prevent bugs in business logic or access controls either.

      of course, but I imagine that in theory and I may be totally wrong here (as I usually am), but it is possible to use verus for formal verification which could perhaps help with some of this stuff or could help in finding these bugs?

    2. Hipster stuff with zero real value. Destined to die in few months.
      Replies (1)
      1. I was working at a company that was deciding between porting an old PHP monolith to Go or Java. A few developers started playing with Rust and very quickly that became the front running and the eventual winner for the migration. That was in 2018.

        If you want to believe that Rust people only use Rust because of hype, I disagree, but I’m not going to argue. If it is just hype though, that hype cycle has been going on for close to a decade. Believing it’s going to end in the next few months seems pretty silly to me.

    3. Because Rust is very strongly statically typed, code that compiles is less likely to be broken. I would certainly trust it more than JS/Python/PHP without a test suite that checks every path. I don't really mean security problems- just that it doesn't crash.
    4. Perhaps to get the single binary? Rust specifically is not necessary, of course, and perhaps Go wouldv'be been a nicer fit.