Tell HN: C Experts Panel – Ask us anything about C
11–20 of 978 posts
Re: Tell HN: C Experts Panel – Ask us anything about C
#12So what do people think about having a feature in the C language akin to the defer statement in GoLang? The GoLang defer statement defers the execution of a function until the surrounding function returns. The deferred call's arguments are evaluated immediately, but the function call is not executed until the surrounding function returns. It looks like an interesting mechanism for cleaning up resources.
Re: Tell HN: C Experts Panel – Ask us anything about C
#13I've been waiting for a book on C from No Starch Press, so I'm really excited for this one. This might not be too deep a question on the C language in regards to this book, but I've been wondering, why did you decide to have an eldritch horror as the book's cover?
It's a longish story, but people do seem to like the cover. We started equating the idea of C == Sea, so we had some early drawings of the robot riding various undersea creatures including a giant squid. I thought that looked overly phallic, so I suggested the robot ride Cthulhu instead, an unofficial mascot of NCC Group.
The C==Sea brings to mind the book Expert C Programming: Deep C Secrets.
Re: Tell HN: C Experts Panel – Ask us anything about C
#14Some simple instructions about how to use a thread for conversation would be appreciated. Thanks!
Nothing to it! Just hit the reply button on comments you want to respond to. You can also upvote anything you like by clicking on the up arrow to the left of the comment.
Re: Tell HN: C Experts Panel – Ask us anything about C
#15Re: Tell HN: C Experts Panel – Ask us anything about C
#16Earlier quoted context omitted.
It's a longish story, but people do seem to like the cover. We started equating the idea of C == Sea, so we had some early drawings of the robot riding various undersea creatures including a giant squid. I thought that looked overly phallic, so I suggested the robot ride Cthulhu instead, an unofficial mascot of NCC Group.
I like how Cthulhu is shown as kind of a guide for the robot. The C==Sea brings to mind the book Expert C Programming: Deep C Secrets.
Re: Tell HN: C Experts Panel – Ask us anything about C
#17So what do people think about having a feature in the C language akin to the defer statement in GoLang? The GoLang defer statement defers the execution of a function until the surrounding function returns. The deferred call's arguments are evaluated immediately, but the function call is not executed until the surrounding function returns. It looks like an interesting mechanism for cleaning up resources.
Re: Tell HN: C Experts Panel – Ask us anything about C
#18Earlier quoted context omitted.
Nothing to it! Just hit the reply button on comments you want to respond to. You can also upvote anything you like by clicking on the up arrow to the left of the comment.
Okay, is there a starting thread for today's C Experts panel? I miss the old net newsgroups.
You're not the only person who misses the old newsgroups! The format that Hacker News uses is one that became sort of standard on the web in the early 2000s. It works differently than usenet did, but you get threaded comments in the sense that replies are nested under the posts they're replying to.
Re: Tell HN: C Experts Panel – Ask us anything about C
#19How and why will C combat Rust?
There are pieces of software that should be given priority for a rewrite in Rust, but most of C software is never going to be rewritten, because there is simply too much of it.
Therefore, even if C did not have any advantage of its own over Rust, there would still be legacy software to maintain and to extend.
The advantages of C include that sometimes, an embedded processor with a proprietary instruction set is provided by the chipmaker with its own C compiler, which is the only compiler supporting the instruction set; that C is still currently used to write the runtimes of higher-level languages (I'm familiar with OCaml, but it isn't too much of a stretch to imagine that the runtimes of Python, Haskell,… are also written in C).