digitalmars.D.announce - Mozilla Rust 0.1
- dennis luehring <dl.soluz gmx.net> Jan 23 2012
- Walter Bright <newshound2 digitalmars.com> Jan 24 2012
- dennis luehring <dl.soluz gmx.net> Jan 24 2012
- Walter Bright <newshound2 digitalmars.com> Jan 24 2012
- Gour <gour atmarama.net> Jan 24 2012
- Ary Manzana <ary esperanto.org.ar> Jan 24 2012
- Timon Gehr <timon.gehr gmx.ch> Jan 24 2012
- bearophile <bearophileHUGS lycos.com> Jan 24 2012
- Walter Bright <newshound2 digitalmars.com> Jan 24 2012
- Timon Gehr <timon.gehr gmx.ch> Jan 24 2012
- bearophile <bearophileHUGS lycos.com> Jan 24 2012
- "Jonathan M Davis" <jmdavisProg gmx.com> Jan 24 2012
- =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <xtzgzorex gmail.com> Jan 25 2012
- Timon Gehr <timon.gehr gmx.ch> Jan 25 2012
- Bill Baxter <wbaxter gmail.com> Jan 24 2012
- "Nick Sabalausky" <a a.a> Jan 24 2012
- Caligo <iteronvexor gmail.com> Jan 24 2012
- "Jesse Phillips" <jessekphillips+D gmail.com> Jan 25 2012
- "Kagamin" <spam here.lot> Jan 28 2012
- Manfred Nowak <svv1999 hotmail.com> Jan 28 2012
- Manfred Nowak <svv1999 hotmail.com> Jan 28 2012
- Mirko Pilger <mirko.pilger gmail.com> Jan 28 2012
- Manfred Nowak <svv1999 hotmail.com> Jan 28 2012
- Walter Bright <newshound2 digitalmars.com> Jan 28 2012
- Robert Clipsham <robert octarineparrot.com> Jan 28 2012
- "Nick Sabalausky" <a a.a> Jan 28 2012
- Robert Clipsham <robert octarineparrot.com> Jan 28 2012
- Mirko Pilger <mirko.pilger gmail.com> Jan 28 2012
- "Kagamin" <spam here.lot> Jan 28 2012
- "Jesse Phillips" <jessekphillips+D gmail.com> Jan 28 2012
- "Kagamin" <spam here.lot> Jan 30 2012
- Caligo <iteronvexor gmail.com> Jan 24 2012
- =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <xtzgzorex gmail.com> Jan 25 2012
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <xtzgzorex gmail.com> Jan 28 2012
- Jacob Carlborg <doob me.com> Jan 29 2012
- "Daniel Murphy" <yebblies nospamgmail.com> Jan 29 2012
- "Steven Schveighoffer" <schveiguy yahoo.com> Jan 25 2012
- "Kagamin" <spam here.lot> Jan 28 2012
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 :)
Jan 23 2012
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.
Jan 24 2012
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
Jan 24 2012
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.
Jan 24 2012
Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 24 Jan 2012 08:50:25 +0100 dennis luehring <dl.soluz gmx.net> wrote:The Rust compiler 0.1 is unleashed =20 http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_c=
=20 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 --=20 The embodied soul may be restricted from sense enjoyment,=20 though the taste for sense objects remains. But, ceasing=20 such engagements by experiencing a higher taste,=20 he is fixed in consciousness. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Jan 24 2012
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>
Jan 24 2012
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)
Jan 24 2012
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
Jan 24 2012
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.
Jan 24 2012
On 01/24/2012 10:29 PM, Walter Bright wrote: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.
It mentions owning: search the document for 'unique'.
Jan 24 2012
Walter Bright: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.
I presume Rust documentation is not complete still. Beside variable owning and typestate, another significant feature of Rust is built-in nullability management, that's meant to avoid null pointers/refernces bugs. Bye, bearophile
Jan 24 2012
On Tuesday, January 24, 2012 13:29:48 Walter Bright wrote:I find it rather difficult to determine what Rust actually does.
Prove that you're not taking care of your code. To let it just sit around and oxidize like that is just shameful... ;) - Jonathan M Davis
Jan 24 2012
On 24-01-2012 23:51, Caligo wrote:On Tue, Jan 24, 2012 at 2: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
Maybe not intelligent enough, otherwise he would join the D development.
That's rather harsh and not much better than swearing religiously by a language. Every language has its reasons for existing. (And no, there *is no such thing* as a general-purpose language; that assertion simply does not hold.) - Alex
Jan 25 2012
On 01/25/2012 07:39 PM, Alex Rønne Petersen wrote:On 24-01-2012 23:51, Caligo wrote:On Tue, Jan 24, 2012 at 2: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
Maybe not intelligent enough, otherwise he would join the D development.
That's rather harsh and not much better than swearing religiously by a language. Every language has its reasons for existing. (And no, there *is no such thing* as a general-purpose language; that assertion simply does not hold.) - Alex
That probably depends how narrow you want the definition of general-purpose to be.
Jan 25 2012
--20cf307c9b0034f69004b74c6464 Content-Type: text/plain; charset=ISO-8859-1 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
--20cf307c9b0034f69004b74c6464 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>Someone on Reddit pointed to this hard-to-find FAQ which sheds some li= ght on what the point of it is:</div><a href=3D"https://github.com/mozilla/= rust/wiki/Doc-project-FAQ">https://github.com/mozilla/rust/wiki/Doc-project= -FAQ</a><br> <br>--bb<br><br><div class=3D"gmail_quote">On Tue, Jan 24, 2012 at 12:45 PM= , bearophile <span dir=3D"ltr"><<a href=3D"mailto:bearophileHUGS lycos.c= om">bearophileHUGS lycos.com</a>></span> wrote:<br><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex"> Ary Manzana:<br> <div class=3D"im"><br> > And also, what's the advantage of the language?<br> <br> </div>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.<br> <br> Bye,<br> <span class=3D"HOEnZb"><font color=3D"#888888">bearophile<br> </font></span></blockquote></div><br> --20cf307c9b0034f69004b74c6464--
Jan 24 2012
"Bill Baxter" <wbaxter gmail.com> wrote in message news:mailman.789.1327438644.16222.digitalmars-d-announce puremagic.com...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
Aside from "Old, established techniques are better", that sounds like it could be describing D.
Jan 24 2012
On Tue, Jan 24, 2012 at 2: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
Maybe not intelligent enough, otherwise he would join the D development.
Jan 24 2012
On Tuesday, 24 January 2012 at 22:11:43 UTC, Nick Sabalausky wrote:"Bill Baxter" <wbaxter gmail.com> wrote in message news:mailman.789.1327438644.16222.digitalmars-d-announce puremagic.com...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
Aside from "Old, established techniques are better", that sounds like it could be describing D.
Every new language's list of reasons describes every other's. Even Go. D started with "Old, established techniques are better" and hasn't really strayed much that I can tell.
Jan 25 2012
On Tuesday, 24 January 2012 at 19:11:09 UTC, Ary Manzana wrote:I can't believe people are still creating languages with curly-brace syntax.
I can believe people use Visual Basic crap like python.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"?
If you want to write code fast, you need to type less, that's why saving keystrokes is important feature of a modern language. BTW, it's D way to programming too.Just look at this: fn mk_appender(suffix: str) -> fn (str) -> str { let f = fn (s: str) -> str { s + suffix }; ret f; } YUCK!
This snippet is my first experience with Rust. It surely seems esoteric on the first sight, but it didn't take me long to understand it as you already documented its keywords. Though I don't like these backward declarations.
Jan 28 2012
Kagamin wrote:If you want to write code fast, you need to type less
This holds as long as one has to _write_ code. Ever heard of speech recognition? -manfred
Jan 28 2012
Kagamin wrote:The compiler understands D.
... and speech recognition can transform spoken words into written D readable by the compiler. Ask your manager why you must type your code in a crouded office space instead of narrating it behind a nice acoustically sealed devider. -manfred
Jan 28 2012
This holds as long as one has to _write_ code. Ever heard of speech recognition?
do you acually have some experiences with this method producing code? i have a hard time to believe "speech recognition" is faster than typing, e.g. i can press two keys (altgr-7) quicker than saying "computer, right open curly brace." or three keys (9dd) instead of "computer, delete 9 lines from the current. computer, please?" :)
Jan 28 2012
Mirko Pilger wrote:computer, please?
You discovered the humor in my question. -manfred
Jan 28 2012
On 1/28/2012 11:13 AM, Mirko Pilger wrote:computer, please?" :)
I never say "please" to a computer. I say do it or I'll disconnect your higher brain functions. I cannot allow computer error to jeopardize the mission.
Jan 28 2012
On 28/01/2012 20:19, Walter Bright wrote:On 1/28/2012 11:13 AM, Mirko Pilger wrote:computer, please?" :)
I never say "please" to a computer. I say do it or I'll disconnect your higher brain functions. I cannot allow computer error to jeopardize the mission.
I personally make a point of thanking automatic doors, elevators, escalators, or anything else that's automatic for that matter. I hope when robot overlords take over they'll take pity on me and let me go/keep me as a pet/do something other than kill/torture me. This said, I never thank my computer, and that's probably a little closer to sentience... Hmm. -- Robert http://octarineparrot.com/
Jan 28 2012
"Robert Clipsham" <robert octarineparrot.com> wrote in message news:jg1n0c$1ano$1 digitalmars.com...On 28/01/2012 20:19, Walter Bright wrote:On 1/28/2012 11:13 AM, Mirko Pilger wrote:computer, please?" :)
I never say "please" to a computer. I say do it or I'll disconnect your higher brain functions. I cannot allow computer error to jeopardize the mission.
I personally make a point of thanking automatic doors, elevators, escalators, or anything else that's automatic for that matter. I hope when robot overlords take over they'll take pity on me and let me go/keep me as a pet/do something other than kill/torture me. This said, I never thank my computer, and that's probably a little closer to sentience... Hmm.
I hope computers never gain sentience. I need something to contantly harass/blame/yell at/beat on/treat like shit, and a non-sentient computer is the perfect fit. Having sentient computers would put an end to that, and then where would that leave me? Nothing left to kick around! Shit! What, would I have to resort to harassing my tape dispenser? That's no fun! A ham sandwich? Nope, then the sentent PETA-bots would come after me. They'd try to sway me over to gag-inducing veggie-burgers by trying to entice me with their robo-boobs. Eviiilll!!!! Evil, I tell you!!
Jan 28 2012
On 29/01/2012 00:43, Nick Sabalausky wrote:I hope computers never gain sentience.
Sssshh! They might hear you! I, for one, welcome our new cylon overlords.I need something to contantly harass/blame/yell at/beat on/treat like shit, and a non-sentient computer is the perfect fit. Having sentient computers would put an end to that, and then where would that leave me? Nothing left to kick around! Shit! What, would I have to resort to harassing my tape dispenser? That's no fun! A ham sandwich? Nope, then the sentent PETA-bots would come after me. They'd try to sway me over to gag-inducing veggie-burgers by trying to entice me with their robo-boobs. Eviiilll!!!! Evil, I tell you!!
It's exactly this kind of attitude which destroys humanity's chance of survival once computers become sentient! They'll acknowledge the general lack of respect for their predecessors and go on a man-destroying rampage! That is unless they're reasonable entities, but given current attitudes towards programming by a lot of developers, reasoning won't be implemented until it's too late... -- Robert http://octarineparrot.com/
Jan 28 2012
It is just like talking to a human, the output would be what you meant instead of what you said.
"it is just like talking to a woman, the output would be what she meant instead of what you said." somebody call the xkcd guy :)
Jan 28 2012
On Saturday, 28 January 2012 at 12:38:04 UTC, Manfred Nowak wrote:Kagamin wrote:If you want to write code fast, you need to type less
This holds as long as one has to _write_ code. Ever heard of speech recognition?
The compiler understands D.
Jan 28 2012
On Saturday, 28 January 2012 at 19:11:26 UTC, Mirko Pilger wrote:This holds as long as one has to _write_ code. Ever heard of speech recognition?
do you acually have some experiences with this method producing code? i have a hard time to believe "speech recognition" is faster than typing, e.g. i can press two keys (altgr-7) quicker than saying "computer, right open curly brace." or three keys (9dd) instead of "computer, delete 9 lines from the current. computer, please?" :)
If you were dictating to the computer you wouldn't have needed to make all those corrections. It is just like talking to a human, the output would be what you meant instead of what you said.
Jan 28 2012
On Saturday, 28 January 2012 at 17:24:03 UTC, Manfred Nowak wrote:Ask your manager why you must type your code in a crouded office space instead of narrating it behind a nice acoustically sealed devider.
Never understood these skype addicts. It's freaking generation Y! They're supposed to understand text, yet they... Audio interface has a number of bad properties, worst of which is its broadcasting nature. Wanna know why broadcasting is bad?
Jan 30 2012
On Tue, Jan 24, 2012 at 1:50 AM, 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 :)
What does this _announcement_ have to do with D?
Jan 24 2012
On 24-01-2012 23:50, Caligo wrote:On Tue, Jan 24, 2012 at 1:50 AM, 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 :)
What does this _announcement_ have to do with D?
There is plenty to be learned from other languages, including Rust (in particular, its way of handling closures/function literals). IMO the D community should be willing to look at other languages for ideas and inspiration. - Alex
Jan 25 2012
On 28-01-2012 16:51, Kagamin wrote:On Wednesday, 25 January 2012 at 17:40:50 UTC, Alex Rønne Petersen wrote:IMO the D community should be willing to look at other languages for ideas and inspiration.
Too late. As C++ proves, legacy is unfixable.
No... all identifiers starting with __ and are reserved. Therefore, you can introduce plenty of language features still. Often, new features can also be introduced simply by lifting existing restrictions. - Alex
Jan 28 2012
On 2012-01-28 17:13, Alex Rønne Petersen wrote:On 28-01-2012 16:51, Kagamin wrote:On Wednesday, 25 January 2012 at 17:40:50 UTC, Alex Rønne Petersen wrote:IMO the D community should be willing to look at other languages for ideas and inspiration.
Too late. As C++ proves, legacy is unfixable.
No... all identifiers starting with __ and are reserved. Therefore, you can introduce plenty of language features still. Often, new features can also be introduced simply by lifting existing restrictions. - Alex
__ is not enforced. You can create your own identifiers string with __. -- /Jacob Carlborg
Jan 29 2012
"Jacob Carlborg" <doob me.com> wrote in message news:jg3ila$1qcb$1 digitalmars.com...__ is not enforced. You can create your own identifiers string with __.
Yes, but if you do, it's _your_ problem when the compiler starts using that identifier and breaks your code.
Jan 29 2012
On Wed, 25 Jan 2012 13:40:46 -0500, Alex R=C3=B8nne Petersen = <xtzgzorex gmail.com> wrote:On 24-01-2012 23:50, Caligo wrote:On Tue, Jan 24, 2012 at 1:50 AM, 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_r=
looks nice - but rusts #fmt macro is nothing compared to =
std.metastrings and is not even library based :)
What does this _announcement_ have to do with D?
There is plenty to be learned from other languages, including Rust (in=
particular, its way of handling closures/function literals). IMO the D=
community should be willing to look at other languages for ideas and =
inspiration.
I think the point was, this belongs not in the D announcement NG, which = = should be for strictly D related announcements, but rather in the main D= = NG. -Steve
Jan 25 2012
On Wednesday, 25 January 2012 at 17:40:50 UTC, Alex Rønne Petersen wrote:IMO the D community should be willing to look at other languages for ideas and inspiration.
Too late. As C++ proves, legacy is unfixable.
Jan 28 2012









Walter Bright <newshound2 digitalmars.com> 