|
|
@pcwalton | |||||
|
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.
|
||||||
|
||||||
|
Gok
@Gok
|
29. sij |
|
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?
|
||
|
|
||
|
|
Patrick Walton
@pcwalton
|
29. sij |
|
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.)
|
||
|
|
||
|
Andre Weissflog
@FlohOfWoe
|
29. sij |
|
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).
|
||
|
|
||
|
Rik Arends
@rikarends
|
29. sij |
|
I'm a small team and its a VAST improvement over C (or C++). My code is much more stable.
|
||
|
|
||
|
Jeff Waugh
@jdub
|
29. sij |
|
I like "this project is better because it was progressively rewritten in Rust", c.f. librsvg.
|
||
|
|
||
|
soc
@oxnrtr
|
29. sij |
|
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.
|
||
|
|
||
|
Giovanni Petrantoni
@voidtarget
|
31. sij |
|
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!
|
||
|
|
||
|
Joseph Lyons
@MyDeathMachine
|
29. sij |
|
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.
|
||
|
|
||
|
໓ฯlคຖ ໓p¢
@DPC_22
|
29. sij |
|
Is there a reason you consider composition to be flawed?
|
||
|
|
||
|
Sam Tobin-Hochstadt
@samth
|
29. sij |
|
Zero difference between good and bad things and all that
|
||
|
|
||