4 ms·
They should take on a huge project, like say, converting the linux source code into Rust. The sheer bulk of the code will effectively "force" them to make Rust
by antiquark 10y ago
They should take on a huge project, like say, converting the linux source code into Rust.
The sheer bulk of the code will effectively "force" them to make Rust ergonomic. They might even end up with annoying things, like different sized ints on different CPUs, or... (horror of horrors)... running Rust through a pre-processor as part of its compilation.
- kosinus 10y agoThere's Servo: https://servo.org/ https://servo.org/
- tedmielczarek 10y agoThe Rust compiler is written in Rust, so rest assured the Rust core developers spend a lot of time dealing with the language itself. Additionally Mozilla is spending quite a bit of developer time on Servo, so we have quite a few people actively writing a lot of Rust code.
- kentrado 10y agoOnly 7 or 9 actual developers that work for Mozilla in servo. IIRC.
- johncolanduoni 10y agoWell both of those things basically already exist; you can do conditional compilation based on architecture, etc. and macros can do some of the less hacky things a preprocesser can (as well as many things it can't). The biggest Rust project (which already has many of the core contributors working on it) is Servo, and it's probably about as ambitious as you can get while still having a nonzero chance at completion. I don't think there's much additional value in taking on a completely unfinishable project to shape the Rust language so it's good for a kind of programming (i.e. Kernel programming) that is far removed from what 99% of potential users will use it for.
- kzrdude 10y agoHas the linux kernel made C ergonomic though? I guess there are some gcc extensions that can be the showcase for that.
- paulddraper 10y agoThe Linux authors don't write the C standard.
- kibwen 10y agoI suppose the question then is, did writing Unix make C ergonomic? :)
- paulddraper 10y agoGood question :) I think it did, though I'd be interested to hear an informed opinion.
- solidsnack9000 10y agoI, for one, see C as both unsafe and unergonomic. The many features of C++ can be seen as various attempts to make some or another thing expressible in C -- parameterized datatypes, namespacing, encapsulated resource management -- that wasn't before.
- pjmlp 10y agoIt is, after being forced to use BCPL to finish his PhD and being used to languages like Simula, Bjarne swore he wouldn't be doing that again. Hence why he started to design C with Classes after getting his job at AT&T. https://www.youtube.com/watch?v=ZO0PXYMVGSU https://www.youtube.com/watch?v=ZO0PXYMVGSU Around 29:00.
- pjmlp 10y agoFrom Dennis himself, https://www.bell-labs.com/usr/dmr/www/chist.html https://www.bell-labs.com/usr/dmr/www/chist.html The best part for those that care about security: "To encourage people to pay more attention to the official language rules, to detect legal but suspicious constructions, and to help find interface mismatches undetectable with simple mechanisms for separate compilation, Steve Johnson adapted his pcc compiler to produce lint [Johnson 79b], which scanned a set of files and remarked on dubious constructions." So although C designers saw the dangers of C and provided static analysis from the early days, many C developers keep ignoring them.
- deleted 10y ago[deleted]