News for hackers. Stuff that matters.
Re:Modern terminal-based text editor by deathanatos on Thursday September 28, 2017 @09:47PM (#15362177)
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?)

Re:Modern terminal-based text editor by int_19h on Friday September 29, 2017 @01:03AM (#15362808)
It 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.

Re:Modern terminal-based text editor by jlebrech on Friday September 29, 2017 @04:06AM (#15363555)
>>> C is itself a massive dependency

the C standard library?

Re:Modern terminal-based text editor by int_19h on Friday September 29, 2017 @05:22AM (#15363854)
No, the C compiler. Both gcc and Clang are pretty big, even before you account for the standard library. I suppose you could get away with something like tcc, though.
Re:Modern terminal-based text editor by jlebrech on Friday September 29, 2017 @10:02AM (#15365320)
lots and lots of edge cases, I minimal compiler can be kbs
Re:Modern terminal-based text editor by tedunangst on Thursday September 28, 2017 @10:05PM (#15362243)
C compiler backend support is pretty broad.
Re:Modern terminal-based text editor by noobermin on Friday September 29, 2017 @01:18AM (#15362887)
Probably the biggest understatement I've ever seen on HN.
Re:Modern terminal-based text editor by defined on Friday September 29, 2017 @12:30AM (#15362725)
Supported on virtually every OS and embedded platform in existence.
Re:Modern terminal-based text editor by exikyut on Friday September 29, 2017 @02:27AM (#15363191)
Abstractly, very much yes.

In the context of nano and editors, you also have to contend with POSIX, tty I/O, etc.

Re:Modern terminal-based text editor by ktta on Thursday September 28, 2017 @09:49PM (#15362185)
It 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.
Re:Modern terminal-based text editor by megous on Friday September 29, 2017 @05:28AM (#15363887)
Statically linked C programs are the easiest to ship. Copy and run. No runtime required.
Re:Modern terminal-based text editor by pjmlp on Friday September 29, 2017 @07:23AM (#15364341)
A feature of any AOT compiled language since compilers exist, nothing C specific.
Re:Modern terminal-based text editor by rmrfrmrf on Friday September 29, 2017 @08:18AM (#15364589)
Java and .NET would like a word with you.
Re:Modern terminal-based text editor by pjmlp on Friday September 29, 2017 @08:59AM (#15364800)
When 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.

Re:Modern terminal-based text editor by jcelerier on Friday September 29, 2017 @12:49PM (#15366885)
yes, good idea, let's make a modern console-based text editor that comes with IBM Websphere Real Time
Re:Modern terminal-based text editor by atilaneves on Friday September 29, 2017 @08:38AM (#15364686)
You can embed their runtimes. I'm not saying that's desireable, just that it's possible.
Re:Modern terminal-based text editor by schrodinger on Friday September 29, 2017 @06:52AM (#15364195)
Same with go