Building a simple shell in C – Part 3
blog.ehoneahobed.com
Building a simple shell in C – Part 3
1–10 of 48 posts
Re: Building a simple shell in C – Part 3
#2Re: Building a simple shell in C – Part 3
#3Quoted post unavailable.
Re: Building a simple shell in C – Part 3
#4Quoted post unavailable.
Some people (myself included) enjoy "unsafe" languages like C. I'm not one of those people that argue that being careful is enough. For applications where security really matters, _please_ use something with a bit more verification (though even that doesn't disqualify C, see seL4).
Now take a singleplayer game, or a text editor. It's not a security risk if these crash, so do you need the safety? I'd argue it's unnecessary, I can't remember a time where I saw a program like this print 'segmentation fault'.
I encourage anyone to write new software in "unsafe" languages, so long as it's not a security risk.
Re: Building a simple shell in C – Part 3
#5Quoted post unavailable.
Why is that? C is still widespread in embedded and often the only choice. A lot of programs are written in C and need to be maintained. C is a simple language and powerful when used correctly. Of course we want people to keep using it.
Re: Building a simple shell in C – Part 3
#6Quoted post unavailable.
“Some People Were Meant for C”
https://www.cs.kent.ac.uk/people/staff/srk21//research/paper...
Re: Building a simple shell in C – Part 3
#7Quoted post unavailable.
Re: Building a simple shell in C – Part 3
#8Quoted post unavailable.
Yes. Some people (myself included) enjoy "unsafe" languages like C. I'm not one of those people that argue that being careful is enough. For applications where security really matters, _please_ use something with a bit more verification (though even that doesn't disqualify C, see seL4). Now take a singleplayer game, or a text editor. It's not a security risk if these crash, so do you need the safety? I'd argue it's u…
Any program that operates on untrusted data can be a security vulnerability. If an attacker can make your text editor execute arbitrary code if you open a specially crafted file, that's a major security problem. Why would you create the risk of this sort of problem on purpose when we have adequate safe languages these days?
Instead of making people decide on a case-by-case basis when "security really matters", let's make all programs safe. I mean, isn't your suggestion that text editors have not security implications evidence in itself that people will get it wrong when asked, "Does my program need security?".
Re: Building a simple shell in C – Part 3
#9Quoted post unavailable.
While I’m certainly not a good C programmer by any means (I have been exploring Rust more recently as an alternative my use-cases), I find this piece very interesting “Some People Were Meant for C” https://www.cs.kent.ac.uk/people/staff/srk21//research/paper...
This reads like an article in Social Text.
> Meditating on this communicativity suddenly gave way to a realisation: C is designed for communicating with aliens!
The memes make themselves.
Re: Building a simple shell in C – Part 3
#10Quoted post unavailable.