Remix.run Logo
▲ _pdp_ 5 hours ago

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.

▲jhallenworld 4 hours ago | parent | next [-]

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.

▲freetonik 4 hours ago | parent | prev | next [-]

Perhaps to get the single binary? Rust specifically is not necessary, of course, and perhaps Go wouldv'be been a nicer fit.

▲Imustaskforhelp 4 hours ago | parent | prev | next [-]

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?

▲Sid_Lmao 3 hours ago | parent | prev | next [-]

[dead]

▲ 3 hours ago | parent | prev | next [-]
[deleted]
▲ 3 hours ago | parent | prev | next [-]
[deleted]
▲hexo 4 hours ago | parent | prev [-]

Hipster stuff with zero real value. Destined to die in few months.

▲superfrank 4 hours ago | parent [-]

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.