Twitter | Pretraživanje | |
Patrick Walton
Maybe "rewrite it in Rust" is annoying, but from my point of view "Rust doesn't prevent every bug ever, so you should just use C or C++" is much more annoying.
Reply Retweet Označi sa "sviđa mi se" More
Gok 29. sij
Odgovor korisniku/ci @pcwalton
Would you prefer: (a) run C untrusted input parser in a tight, audited sandbox, or (b) run Rust untrusted input parser in a sensitive unsandboxed process?
Reply Retweet Označi sa "sviđa mi se"
Patrick Walton 29. sij
Odgovor korisniku/ci @Gok
Depends on the quality of the unsafe code in the Rust parser. I like sandboxes, but I don’t have unlimited confidence in them given the attack surface of the interface to the TCB (kernel, trusted broker process, etc.)
Reply Retweet Označi sa "sviđa mi se"
Andre Weissflog 29. sij
Odgovor korisniku/ci @pcwalton @rikarends
There's a valid argument though that Rust is a good replacement for C++ and big code bases written by big teams, but not for C and small teams. Compile-time memory safety is a great thing to have, but so is a minimal language "surface area" (all IMHO of course).
Reply Retweet Označi sa "sviđa mi se"
Rik Arends 29. sij
Odgovor korisniku/ci @FlohOfWoe @pcwalton
I'm a small team and its a VAST improvement over C (or C++). My code is much more stable.
Reply Retweet Označi sa "sviđa mi se"
Jeff Waugh 29. sij
Odgovor korisniku/ci @pcwalton
I like "this project is better because it was progressively rewritten in Rust", c.f. librsvg.
Reply Retweet Označi sa "sviđa mi se"
soc 29. sij
Odgovor korisniku/ci @pcwalton
Agreed. I usually dismiss interesting software almost immediately if it's written in a low-quality language. Everyone starting new projects in C/C++ better have some very good explanation.
Reply Retweet Označi sa "sviđa mi se"
Giovanni Petrantoni 31. sij
Odgovor korisniku/ci @pcwalton
How about just stop rewriting and start writing new cool stuff! I love c++, rust, nim, lisp, etc. Each of them have uses and each of them is the right tool for certain jobs... seriously stop treating languages like football teams in terms of adoration! Don't be possessed!
Reply Retweet Označi sa "sviđa mi se"
Joseph Lyons 29. sij
Odgovor korisniku/ci @pcwalton
I wouldn’t want to rewrite all of my C++ tools in Rust. I really like inheritance and see it as a flaw that Rust doesn’t have it. Others will disagree and assert that composition is better, but I don’t believe it is. I’ll continue to write some tools in C++ and some in Rust.
Reply Retweet Označi sa "sviđa mi se"
໓ฯlคຖ ໓p¢ 29. sij
Odgovor korisniku/ci @MyDeathMachine @pcwalton
Is there a reason you consider composition to be flawed?
Reply Retweet Označi sa "sviđa mi se"
Sam Tobin-Hochstadt 29. sij
Odgovor korisniku/ci @pcwalton
Zero difference between good and bad things and all that
Reply Retweet Označi sa "sviđa mi se"