Re: [rust-dev] flatpipes question

2013-07-07 Thread Alexander Stavonin
Full source code: extern mod std; extern mod extra; use std::{task, io}; use extra::flatpipes; fn main() { let (port, chan) = flatpipes::serial::pipe_stream(); do task::spawn || { let value = @[1, 2, 3, 4, 5]; chan.send(value) } let val = port.recv(); io::print

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Lindsey Kuper
On Sun, Jul 7, 2013 at 11:06 PM, Bennie Kloosteman wrote: > "You think Linux is not well-engineered?" > > Nope .. its the same piece of 1970s crap that all the other popular OS use , > with trivial differences people make a bit deal about.. You really think the > difference between Vista and Linux

[rust-dev] Chicago: Lambda Jam this week

2013-07-07 Thread Kevin Cantu
If anyone other Rust folks are also going to be at Lambda Jam Chicago this week, we should get a beer or something and hang out! I've just gotten into town. :) Kevin ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust

Re: [rust-dev] flatpipes question

2013-07-07 Thread Josh Leverette
I'm having difficulty compiling even the first sample. Nothing I do can convince my rust 0.7 compiler of the existence of flatpipes... but I'm new to this whole thing anyways. The one thing that jumps out at me: should the second example have "||" after the word 'spawn' in the do statement? i.e. d

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Josh Leverette
>From what I gather, you only really use Windows... yet you're trying to argue about Unix-like systems. They are not even similar to Windows at all, so your attempt to argue that in fact they're all the same is amusing... and saddening. I didn't switch away from Windows because I grew a neckbeard o

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Daniel Micay
On Sun, Jul 7, 2013 at 11:06 PM, Bennie Kloosteman wrote: > "You think Linux is not well-engineered?" > > Nope .. its the same piece of 1970s crap that all the other popular OS use , > with trivial differences people make a bit deal about.. You really think the > difference between Vista and Linux

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Zack Corr
I wasn't aware that Linus Torvalds possessed time travel technology. Either way, to say that Linux, OSX and the Windows kernel are the same but with miniscule differences is a pretty broad statement. On 8 Jul 2013 13:06, "Bennie Kloosteman" wrote: > "You think Linux is not well-engineered?" > > N

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Bennie Kloosteman
"You think Linux is not well-engineered?" Nope .. its the same piece of 1970s crap that all the other popular OS use , with trivial differences people make a bit deal about.. You really think the difference between Vista and Linux is the kernel when you complain about X.org ? XP ,Vista , Windows

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Graydon Hoare
I should have asked earlier, but better late than never: this conversation's gone off the rails and well into the "non-courteous, non-productive" territory we ask people to keep off our lists. See "Conduct" here: https://github.com/mozilla/rust/wiki/Note-development-policy We're going to supp

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Josh Leverette
You think Linux is not well-engineered? That statement just took the wind out of your sails. There are components that run *on top of *Linux (and similar Unix-like systems) that are poorly engineered, X.org chief among them, but that doesn't make the Linux kernel poorly engineered. Making intangibl

Re: [rust-dev] Segmented stacks

2013-07-07 Thread Daniel Micay
On Sun, Jul 7, 2013 at 5:01 PM, james wrote: > On 05/07/2013 23:05, Daniel Micay wrote: > > On Fri, Jul 5, 2013 at 5:43 PM, james wrote: > >> On 05/07/2013 08:37, Graydon Hoare wrote: > >>> >>> I agree that it's higher than it seems it "needs to be". But it will >>> always be unnecessary overhead

Re: [rust-dev] Segmented stacks

2013-07-07 Thread james
On 05/07/2013 23:05, Daniel Micay wrote: On Fri, Jul 5, 2013 at 5:43 PM, james wrote: >On 05/07/2013 08:37, Graydon Hoare wrote: >> >>I agree that it's higher than it seems it "needs to be". But it will >>always be unnecessary overhead on x64; it really makes no sense there. The >>address spac

Re: [rust-dev] Borrow lifetime assignment changed?

2013-07-07 Thread Tommy M. McGuire
On 07/07/2013 02:45 PM, Graydon Hoare wrote: > There is a specific rule in the C++ specification to address > temporaries: they should live up until the end of the full expression > they are part of. If it is difficult to get that working right, would it be easier if they lived to the end of the b

Re: [rust-dev] Borrow lifetime assignment changed?

2013-07-07 Thread Graydon Hoare
On 13-07-07 03:48 AM, Matthieu Monrocq wrote: There is a specific rule in the C++ specification to address temporaries: they should live up until the end of the full expression they are part of. Yeah. We need to nail this down, it's been open for a while, is on milestone #1: https://github.

Re: [rust-dev] Weird performance regression in 0.7?

2013-07-07 Thread Björn Steinbrink
On 2013.07.06 22:21:44 +0200, Björn Steinbrink wrote: > The problem is that in 0.7 almost all #[inline(always)] attributes got > replaced by just #[inline]. In your code, this causes the write and > result function for hashing not to be inlined. On its own, this is not a > problem, but unfortunatel

Re: [rust-dev] Borrow lifetime assignment changed?

2013-07-07 Thread Matthieu Monrocq
On Sat, Jul 6, 2013 at 5:26 PM, Tommy M. McGuire wrote: > On 07/03/2013 09:53 PM, Ashish Myles wrote: > > hello.rs:4:8: 4:33 error: borrowed value does not live long enough > > I was just about to write asking about this. I discovered it with the > following code: > > for sorted_keys(dict).iter