News for hackers. Stuff that matters.
Re:Analyzing GitHub, how developers change programming langu... by bluejekyll on Wednesday July 12, 2017 @10:25PM (#14758309)
All the major Unix kernels are in C. If it continues this trend, it seems clear that new kernels in new languages will be needed, or existing kernels will need to be ported to other languages. A memory safe one would be cool...
Re:Analyzing GitHub, how developers change programming langu... by thehardsphere on Thursday July 13, 2017 @10:26AM (#14761498)
Well, if you think that C is going to go the way of conversational Latin, that would probably be accurate. I doubt that's accurate, because:

1. The fact that fewer people are choosing C for other projects doesn't mean they can't or won't learn it for kernels.

2. Nobody has yet to produce a language that is clearly superior to C for systems programming. Otherwise, we would be seeing movement towards that language instead of Java and Python.

The other thing to remember is that these are GitHub projects; the vast majority of them are not going to be kernels but application software or libraries. That would explain the moves from C to Java and Python; it's easier to write applications in those languages.

Re:Analyzing GitHub, how developers change programming langu... by bluejekyll on Thursday July 13, 2017 @11:44AM (#14762250)
> clearly superior to C for systems programming.

I would argue Rust already has.

Re:Analyzing GitHub, how developers change programming langu... by tomsmeding on Friday July 14, 2017 @06:53AM (#14768843)
I think Rust doesn't have the speed props for that yet. It might in the future, but that's probably one of the reasons.
Re:Analyzing GitHub, how developers change programming langu... by bluejekyll on Friday July 14, 2017 @10:45AM (#14770148)
Rust has been shown to outperform C in some cases and in most be on par.

This isn't scientific: http://benchmarksgame.alioth.debian.org/u64q/rust.html

Re:Analyzing GitHub, how developers change programming langu... by igouy on Friday July 21, 2017 @01:46PM (#14822414)
What isn't scientific?

tomsmeding's comment?

Your statement "Rust has been shown to…"?

The website you point to?

(What is "This isn't scientific" even supposed to mean?)

Re:Analyzing GitHub, how developers change programming langu... by thehardsphere on Thursday July 13, 2017 @02:34PM (#14763899)
When someone writes a system based on Rust, that claim will be much stronger.
Re:Analyzing GitHub, how developers change programming langu... by bluejekyll on Thursday July 13, 2017 @09:42PM (#14766801)
Some of my favorite examples:

https://os.phil-opp.com

https://github.com/helena-project/tock

https://www.redox-os.org

https://github.com/redox-os/tfs

https://github.com/intermezzOS/kernel

The biggest application example:

https://github.com/servo/servo

And some self promotion:

https://github.com/bluejekyll/trust-dns

----

I encourage all programmers to check it out. You may discover like me, that Rust is a compiler and language which guards against all the hard learned lessons I've had over my career. It's an amazing language to program in.

Re:Analyzing GitHub, how developers change programming langu... by steveklabnik on Thursday July 13, 2017 @04:30PM (#14764889)
What kind of "system" are you looking for?
Re:Analyzing GitHub, how developers change programming langu... by muricula on Thursday July 13, 2017 @12:59AM (#14758844)
Or maybe C is uniquely suited to the task of writing a kernel, after all that's what it was designed for.
Re:Analyzing GitHub, how developers change programming langu... by pjmlp on Thursday July 13, 2017 @02:30AM (#14759175)
Not really, kernels were being written in HLL 10 years before C existed, and at strange places like IBM research.

The only good thing about it is that the language is easier to write a compiler for, as it is basically a portable macro assembler, specially the K&R C variant.

Re:Analyzing GitHub, how developers change programming langu... by Inityx on Thursday July 13, 2017 @01:50AM (#14759008)
Re:Analyzing GitHub, how developers change programming langu... by blattimwind on Thursday July 13, 2017 @08:51AM (#14760807)
Operating systems were written in high(er) level languages a number of years before C, or UNIX, were invented.