6 ms·
Why is C an advantage? (I get "no dependencies", but that seems orthogonal to being written in C. Specifically, what does C bring that isn't minimal dependenci
by deathanatos 9y ago
Why is C an advantage?
(I get "no dependencies", but that seems orthogonal to being written in C. Specifically, what does C bring that isn't minimal dependencies, or a small binary?)
- ktta 9y agoIt isn't, except for the fact that most people who can code low level programs know it. But what you don't want into consideration is pretty much the important part of shipping a software you want to proliferate easily.
- megous 9y agoStatically linked C programs are the easiest to ship. Copy and run. No runtime required.
- schrodinger 9y agoSame with go
- pjmlp 9y agoA feature of any AOT compiled language since compilers exist, nothing C specific.
- rmrfrmrf 9y agoJava and .NET would like a word with you.
- atilaneves 9y agoYou can embed their runtimes. I'm not saying that's desireable, just that it's possible.
- pjmlp 9y agoWhen correcting someone on Internet be sure to know what you are talking about. ExcelsiorJET, JamaicaVM, Aonix PERC, IBM Websphere Real Time, Xamarin on iOS, .NET Native, Bartok.
- jcelerier 9y agoyes, good idea, let's make a modern console-based text editor that comes with IBM Websphere Real Time
- tedunangst 9y agoC compiler backend support is pretty broad.
- noobermin 9y agoProbably the biggest understatement I've ever seen on HN.
- deleted 9y ago[deleted]
- defined 9y agoSupported on virtually every OS and embedded platform in existence.
- exikyut 9y agoAbstractly, very much yes. In the context of nano and editors, you also have to contend with POSIX, tty I/O, etc.
- int_19h 9y agoIt adds a massive new dependency to the build process for base system. C is itself a massive dependency, but it's already there for pretty much everyone. This matters more for distros and OSes where building things from source - either everything, as in e.g. Gentoo, or at least the base system, as in the BSDs - is pretty common and expected.
- jlebrech 9y ago>>> C is itself a massive dependency the C standard library?