BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Rust vs. C (was Re: Port Scanning)
- Subject: [Discuss] Rust vs. C (was Re: Port Scanning)
- From: kentborg at borg.org (Kent Borg)
- Date: Wed, 7 Aug 2024 12:19:46 -0700
- In-reply-to: <20240807145859.7ccecf9e.Richard.Pieri@gmail.com>
- References: <5c43eee0-caaf-45d6-8fdb-273cb3d8ea6d@borg.org> <51804f85-9275-4d89-9dc2-86234cdb299b@borg.org> <20240801210627.bzw47tfmyxofcep3@randomstring.org> <82b0d41d-075d-496e-9e1f-ef1529623c38@borg.org> <20240801182824.4bf21319.Richard.Pieri@gmail.com> <f6d905fd-7886-4cf2-9b02-f6d89f60adf0@borg.org> <20240801214606.5bebc46a.Richard.Pieri@gmail.com> <20c3240d-184f-4c84-b4ed-7680ac5301bd@borg.org> <CAJFsZ=o7btMacs-OqTB0908ehYkZCFGtupLkNi59C9K8XV6zKQ@mail.gmail.com> <20240804112131.195b6e56.Richard.Pieri@gmail.com> <CAJFsZ=roiGszBrbv6CzFY57V=fBe9CnZKqBi-eSUQ8eTHPr8_A@mail.gmail.com> <20240806075246.1247c265.Richard.Pieri@gmail.com> <30f00649fdfd89126d760f2d9f105c96.squirrel@mail.mohawksoft.com> <e1589141-299b-423e-8aaa-cf2a0a9a66b4@borg.org> <20240806213934.2f8bbc9d.Richard.Pieri@gmail.com> <3f557711-1713-4a88-b0bd-e843d0670ee8@borg.org> <28fb6173-d7ed-4363-ad84-4b47981ba157@borg.org> <20240807145859.7ccecf9e.Richard.Pieri@gmail.com>
On 8/7/24 11:58, Rich Pieri wrote: > What makes Rust interesting to me as an outside observer (I'm a > sysadmin, not a programmer) is that Rust performance is competitive > with C performance while producing much safer binaries. I think the thing I like best about Rust, in the time I have programmed it, is fewer bugs. Or at least fewer bugs that make it past the compiler. Bugs are annoying! I'm skilled, I can write bugs in any language. A lot of my bugs are stupid little things that aren't at all consistent with the rest of what I have written. In Python, as long as the syntax is clean, I can do anything I want, misspell my variables in subtle or gross ways. Some of these bugs will not to be found until the program is in production, with valuable customer data in its teeth, ready to fall over dead. In C I do have to spell my variables correctly, and I have to get my types right. That helps a lot. Except many C crimes hide behind "void *". In Rust there is a whole lot of self-consistancy that the compiler will insist upon. And once I make the compiler happy there are large swaths of bugs that simply won't be there. Sure, I can still do things wrong, and Rust can't really help with whether I have thought through the business logic correctly. Over all, Rust makes me a better programmer, saving me from my dumb mistakes and typos, far sooner. Heck, since I got my emacs talking to the Rust language server, a lot of my mistakes are caught as soon as I type them. I think C is for better programmers than am I. -kb
- References:
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: bogstad at pobox.com (Bill Bogstad)
- [Discuss] Port Scanning
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- From: bogstad at pobox.com (Bill Bogstad)
- [Discuss] Port Scanning
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- From: markw at mohawksoft.com (markw at mohawksoft.com)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Port Scanning
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Rust vs. C (was Re: Port Scanning)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Port Scanning
- Prev by Date: [Discuss] Port Scanning
- Next by Date: [Discuss] Rust vs. C (was Re: Port Scanning)
- Previous by thread: [Discuss] Rust vs. C (was Re: Port Scanning)
- Next by thread: [Discuss] Rust vs. C (was Re: Port Scanning)
- Index(es):