Thread overview | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 24, 2012 Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
The Rust compiler 0.1 is unleashed http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/ looks nice - but rusts #fmt macro is nothing compared to std.metastrings and is not even library based :) |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | On 1/23/2012 11:50 PM, dennis luehring wrote:
> The Rust compiler 0.1 is unleashed
>
> http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/
>
>
> looks nice - but rusts #fmt macro is nothing compared to std.metastrings
> and is not even library based :)
It's hard to find any definitive information, but Rust appears to have no exception handling and no generics.
|
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Am 24.01.2012 10:40, schrieb Walter Bright: > On 1/23/2012 11:50 PM, dennis luehring wrote: >> The Rust compiler 0.1 is unleashed >> >> http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/ >> >> >> looks nice - but rusts #fmt macro is nothing compared to std.metastrings >> and is not even library based :) > > It's hard to find any definitive information, but Rust appears to have no > exception handling and no generics. generics like are here described http://doc.rust-lang.org/doc/tutorial.html#generics but for exceptions they only got the fail()-thing http://doc.rust-lang.org/doc/tutorial.html#failure |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | On 1/24/2012 1:58 AM, dennis luehring wrote: > Am 24.01.2012 10:40, schrieb Walter Bright: >> On 1/23/2012 11:50 PM, dennis luehring wrote: >>> The Rust compiler 0.1 is unleashed >>> >>> http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/ >>> >>> >>> >>> looks nice - but rusts #fmt macro is nothing compared to std.metastrings >>> and is not even library based :) >> >> It's hard to find any definitive information, but Rust appears to have no >> exception handling and no generics. > > generics like are here described > > http://doc.rust-lang.org/doc/tutorial.html#generics Ok. No metaprogramming, though. > but for exceptions they only got the fail()-thing > > http://doc.rust-lang.org/doc/tutorial.html#failure I found this: "The str type in Rust is represented exactly the same way as a vector of bytes ([u8]), except that it is guaranteed to have a trailing null byte (for interoperability with C APIs)." 0 terminated strings are a source of a lot of speed issues in C and C++ code. and: "Like vectors, strings are always unique. You can wrap them in a shared box to share them. Unlike vectors, there is no mutable variant of strings. They are always immutable." No slicing. |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to dennis luehring Attachments: | On Tue, 24 Jan 2012 08:50:25 +0100 dennis luehring <dl.soluz@gmx.net> wrote: > The Rust compiler 0.1 is unleashed > > http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/ > > looks nice - but rusts #fmt macro is nothing compared to std.metastrings and is not even library based :) This looks nice: - A self-hosted (written in Rust) compiler, which uses LLVM as a backend. Sincerely, Gour -- The embodied soul may be restricted from sense enjoyment, though the taste for sense objects remains. But, ceasing such engagements by experiencing a higher taste, he is fixed in consciousness. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | On 1/24/12 4:50 AM, dennis luehring wrote:
> The Rust compiler 0.1 is unleashed
>
> http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/
>
>
> looks nice - but rusts #fmt macro is nothing compared to std.metastrings
> and is not even library based :)
I can't believe people are still creating languages with curly-brace syntax.
And also, what's the advantage of the language? Having to type "fn" instead of "function" or "def"? Having to type "iface" instead of "interface"? Just look at this:
fn mk_appender(suffix: str) -> fn@(str) -> str {
let f = fn@(s: str) -> str { s + suffix };
ret f;
}
YUCK!
</rant>
|
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | On 01/24/2012 08:11 PM, Ary Manzana wrote: > On 1/24/12 4:50 AM, dennis luehring wrote: >> The Rust compiler 0.1 is unleashed >> >> http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/ >> >> >> >> looks nice - but rusts #fmt macro is nothing compared to std.metastrings >> and is not even library based :) > > I can't believe people are still creating languages with curly-brace > syntax. > What's wrong with curly braces? Are there any clearly superior options for statement bundling? > And also, what's the advantage of the language? Having to type "fn" > instead of "function" or "def"? Having to type "iface" instead of > "interface"? Just look at this: > > fn mk_appender(suffix: str) -> fn@(str) -> str { > let f = fn@(s: str) -> str { s + suffix }; > ret f; > } > > YUCK! > > </rant> Syntax is a horrible reason to dismiss a language. (especially if it is as clear and concise as rust's appears to be) |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | Ary Manzana:
> And also, what's the advantage of the language?
Its author is a very intelligent person, worth respect. Rust has both typestates and variable owning, and probably something else too, I have to study it better. It seems willing to become a direct competitor of D2.
Bye,
bearophile
|
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile Attachments:
| Someone on Reddit pointed to this hard-to-find FAQ which sheds some light on what the point of it is: https://github.com/mozilla/rust/wiki/Doc-project-FAQ --bb On Tue, Jan 24, 2012 at 12:45 PM, bearophile <bearophileHUGS@lycos.com>wrote: > Ary Manzana: > > > And also, what's the advantage of the language? > > Its author is a very intelligent person, worth respect. Rust has both typestates and variable owning, and probably something else too, I have to study it better. It seems willing to become a direct competitor of D2. > > Bye, > bearophile > |
January 24, 2012 Re: Mozilla Rust 0.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On 1/24/2012 12:45 PM, bearophile wrote: > Its author is a very intelligent person, worth respect. Rust has both > typestates and variable owning, and probably something else too, I have to > study it better. It seems willing to become a direct competitor of D2. http://doc.rust-lang.org/doc/tutorial.html does not mention typestate nor variable owning. I find it rather difficult to determine what Rust actually does. |
Copyright © 1999-2021 by the D Language Foundation