News for hackers. Stuff that matters.
Re:Operating System Development in Rust by pjmlp on Monday January 12, 2015 @02:16AM (#8872817)
I am with you on that.

However, if Rust doesn't get adopted by an OS vendor in their SDK, it will join the ranks of Object Pascal, Extended Pascal, Modula-2, Modula-3, Ada, Oberon,Cyclone, ATS.

This just to mention the alternatives on my lifetime, while ignoring the Algol and PL/I variants that existed before C was even born.

Re:Operating System Development in Rust by illumen on Monday January 12, 2015 @04:29AM (#8873053)
Mozilla is an OS vendor.
Re:Operating System Development in Rust by pjmlp on Monday January 12, 2015 @04:59AM (#8873103)
Yes, so are there any plans to use Rust on Firefox OS, as well as, to provide a Rust based SDK?
Re:Operating System Development in Rust by Svip on Monday January 12, 2015 @05:33AM (#8873168)
I assume Servo would likely power Firefox OS's front end, at least once it is ready.
Re:Operating System Development in Rust by pjmlp on Monday January 12, 2015 @07:37AM (#8873543)
Servo is a user space application, though.

My point was about Rust real use case, systems programming.

Re:Operating System Development in Rust by duaneb on Monday January 12, 2015 @10:46AM (#8874461)
A) Some systems programming is in user space.

B) A browser is about the beefiest user space program of which I can think at the moment.

Re:Operating System Development in Rust by sp332 on Monday January 12, 2015 @11:25AM (#8874731)
To be very clear: Servo is a research project. It is not aimed to replace Gecko. http://paulrouget.com/e/servo/
Re:Operating System Development in Rust by smosher_ on Monday January 12, 2015 @06:33AM (#8873350)
I'm not sure how having an official OS SDK helps all that much if they also ship a C or C++ SDK. Anyone could write and maintain one for Rust, so what's the difference?
Re:Operating System Development in Rust by pjmlp on Monday January 12, 2015 @07:36AM (#8873538)
First class treatment on the SDK tooling and APIs.

Of course, the expectation would be that the said OS vendor would give more emphasis to Rust.

For example, C++ earned its place by being bundled alongside C compilers and having things like CORBA, OpenDOC and Windows pushing for it.

> Anyone could write and maintain one for Rust, so what's the difference?

This is how the alternatives to C and C++ faded away of the IT market. The vendors could not keep up with the tools that the OS vendors had on their SDKs and many developers got fed up with writing FFI code.

Re:Operating System Development in Rust by smosher_ on Monday January 12, 2015 @12:27PM (#8875091)
Sorry this is so long, I deleted many paragraphs.

Something about this doesn't sound right to me. I think the third-party factors are overwhelming. After all, the basic I/O and other low-level stuff is going to be there on any supported OS. But availability of compilers/VMs/interpreters, and good libraries for GL, Qt, audio, etc. are all at the top of my reasons for not going with a particular language that would otherwise be suited to the task.

I think Rust is in a better position than one would normally expect. People are looking at it for web dev, and web devs tolerate more diversity in their language of choice. The existence of Go, and the frequent (if misguided) comparisons to Go helps, since writing a web-facing app in Go is a sensible thing. I'm not sure if that will work out, but if it does I think it's a trump card. No web language ever died, except things like Cold Fusion and languages that were superseded by offerings from their own vendors.

On the other hand, I think Rust is better suited to game development. I don't know of Carmack being sweet on Rust in particular, but a few years ago he did start talking about how it would be nice if id could use safer languages (though his biggest complaint was about script writing.) More to the point, Rust is growing a collection of gamedev libraries. Piston is ambitiously trying to curate an entire ecosystem. This is a rare phenomenon among the pretenders. Piston is in no shape to take over the world today, but if it continues to grow and polish it could turn a number of heads.

Re:Operating System Development in Rust by fulafel on Monday January 12, 2015 @08:32AM (#8873759)
Some of those languages have been the main app and system programming language on platforms where the OS is also written in that language. Oberon and the Modulas at least.
Re:Operating System Development in Rust by pjmlp on Monday January 12, 2015 @09:15AM (#8873921)
Yes, but they suffered the fate of being tied to OSes that failed to be adopted, so they went along with them.

I am a big fan of Wirth's languages.