|
|
Subscribe / Log in / New account

Rust 0.8 released

Version 0.8 of the Rust language has been announced. "This was another very active release cycle that continued the trend toward refining the standard library while making minor adjustments to the language. In this release the `for` keyword has been changed to work with `Iterator` types, the runtime and task scheduler was rewritten, a new experimental I/O subsystem was added, and we added a new family of string formatting macros, `format!`, that will eventually replace `fmt!`."

to post comments

Rust 0.8 released

Posted Sep 28, 2013 2:05 UTC (Sat) by ncm (guest, #165) [Link] (10 responses)

In case you were wondering, Rust is a Big Deal, the first language to come down the 'pike that a reasonable person could consider using where, otherwise, C++ would be the only rational choice. Despite that, it's no more trouble to knock off a quick script in Rust than in Ruby.

This being only the 0.8 release, it's still possible to change the function-name introducer from "fn" to "fun". Never discount the importance of fun, in a new language. This being only the 0.8 release, it could still jump the shark, in any number of ways. If it were to get a little too flexible, for example, compatibility among libraries could suffer.

Rust 0.8 released

Posted Sep 28, 2013 5:17 UTC (Sat) by ofranja (guest, #11084) [Link] (1 responses)

"fn" is "fun" enconded in 2010's slang.

Rust 0.8 released

Posted Sep 28, 2013 7:03 UTC (Sat) by epa (subscriber, #39769) [Link]

In ML, fn declares an anonymous function, which can be thought of as a simple macro expansion (and so cannot call itself). fun is the 'fixed point constructor' or in non-pointy-eared terms, a way to construct a recursive function.

I agree it's a big deal

Posted Sep 29, 2013 20:09 UTC (Sun) by HelloWorld (guest, #56129) [Link] (6 responses)

People have taken it for granted for far too long that programming at a high level of abstraction will incur crazy memory and/or performance penalties like those seen in Ruby, Java etc.. C++ has shown that a lot is possible, but it inherited tons of problems from C (syntax, type system, preprocessor) and is still lacking some important features (modules, proper macros, constrained templates). Also the advanced type system features that make Rust safe probably can't be added to C++ in a way that doesn't require a lot of existing software to be rewritten, thus defeating the point of extending an existing language. So I really think that Rust gives us a unique combination of features. I just hope its adoption won't be hampered by ill-designed languages trying to occupy the same niche (I'm looking at you, Go!).

What I'm looking for

Posted Sep 30, 2013 15:30 UTC (Mon) by emk (subscriber, #1128) [Link] (4 responses)

Every once in a while I try to write a medium-sized program in Go, and I always come away feeling conflicted. It really is a "much better C" (assuming you want garbage collection). But it's been a decade since I've willingly written much straight C code, and I've been using generic types and exceptions for over 20 years now. And so I doubt that Go was really aimed at me, because it deliberately excludes features that I find natural. In particular, when I try to do "exploratory" programming in Go, I end up ripping up hundreds and hundreds of lines of code every time my strategy changes. Most of this code is error-handling and manually-instantiated versions of what should be generic functions in the standard library.

I'm waiting to see if Rust will fill the niche that I really wanted Go to fill: A fast language which allows me to get close to the machine, but which also offers a pleasant variety of sensible abstractions. On some level, the last such language I used was Dylan, which made some serious mistakes, but which nonetheless tried to deliver both speed and abstractions. Oh, and Scala, but Scala is really just Haskell for people living in the Java ecosystem, except with more dubious magic.

But at this point in my life, I don't check out new programming languages unless (1) they contain non-trivial new ideas, or (2) they're reached sufficient popularity to show up in my new feeds on a regular basis and to provide a huge number of useful libraries. I can't be bothered to deal with languages that merely remix existing ideas tastefully unless they can actually gain some traction.

What I'm looking for

Posted Oct 4, 2013 17:58 UTC (Fri) by b7j0c (guest, #27559) [Link] (3 responses)

no take a trip to godoc.org and look at the mountain of libraries that have already been written. why? because Go is simple. Rust is not simple. i still hope it is a success, but it still has another year or so until it achieves both a "1.0" label from its own development team, plus enough "batteries included" to make it useful in real projects (i have seen what is available now for libraries...it would not be considered "batteries included" by modern standards)

my guess is Rust may be killed by bad timing. Go is getting huge momentum, people are already running their businesses on it and you can make a living as a full-time Go programmer (i am arguably doing this now and have been for a year). Java8 will de-stupid Java just enough that it won't be worth it for most coders to drop Java in favor of Rust. and now someone will respond by telling me Rust is designed to replace C++, not Java...nonsense. nothing is going to "replace" C++.

What I'm looking for

Posted Oct 10, 2013 17:59 UTC (Thu) by HelloWorld (guest, #56129) [Link] (2 responses)

no take a trip to godoc.org and look at the mountain of libraries that have already been written. why? because Go is simple. Rust is not simple.
Go is simple because it's useless. A programming language that can't assign a meaningful type to simple functions like map and filter is just not what I want to work with today. Neither is a language that claims to be a "better C" and yet forces a garbage collector down your throat. Yes, Rust is GCed too, but unlike Go it has unique pointers, allowing one to avoid the GC overhead in many cases.

What I'm looking for

Posted Oct 10, 2013 17:59 UTC (Thu) by HelloWorld (guest, #56129) [Link] (1 responses)

Oh, and they're actually working on the GC thing:
http://pcwalton.github.io/blog/2013/06/02/removing-garbag...

What I'm looking for

Posted Oct 10, 2013 18:11 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

That is doomed to failure. A good GC requires quite a bit of language-level support (for stuff like stackmaps and fast safepoints).

However, making GC optional is going to be interesting. And with Rust's memory model GC is not that essential anyway.

I agree it's a big deal

Posted Sep 30, 2013 15:46 UTC (Mon) by tjc (guest, #137) [Link]

> I just hope its adoption won't be hampered by ill-designed languages trying to occupy the same niche (I'm looking at you, Go!).

I agree that Rust looks promising, but hoping that someone somewhere won't do something contrary to your wishes is a false hope.

Rust 0.8 released

Posted Oct 4, 2013 17:21 UTC (Fri) by jke (guest, #88998) [Link]

Fun is critical but so is safety! That's why I compile all my software with GCC's fun safe optimizations like -funsafe-loop-optimizations and -funsafe-math-optimizations.

Rust 0.8 released

Posted Oct 1, 2013 6:08 UTC (Tue) by glaesera (guest, #91429) [Link]

In Rust we trust


Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds