Re: [rust-dev] Anyone in NYC?

2014-03-26 Thread Carter Schonwald
I'm in NYC. ya'll should come to the nyc haskell hackathon, there'll be lots of folks there who enjoy strongly typed systemsy code, tis april 4-6, all welcome! www.haskell.org/haskellwiki/Hac_NYC On Wed, Mar 19, 2014 at 9:40 PM, Andrew Morrow wrote: > > > On Mar 18, 2014, at 8:27 PM, Clark Gae

Re: [rust-dev] Lightweight failure handling

2014-03-26 Thread Clark Gaebel
Sorry, was on my phone. Hopefully some sample code will better illustrate what I'm thinking: loop { let result : Result = task::try(proc() { loop { recv_msg(); // begin latency sensitive part process_msg(); send_msg (); // end latency sensitive part } }); if result

Re: [rust-dev] Lightweight failure handling

2014-03-26 Thread Clark Gaebel
The "main loop" of your latency sensitive application. On Mar 26, 2014 5:56 PM, "Phil Dawes" wrote: > On Wed, Mar 26, 2014 at 9:44 PM, Clark Gaebel wrote: > >> Can't you put that outside your inner loop? >> > > Sorry Clark, you've lost me. Which inner loop? > > ___

Re: [rust-dev] Lightweight failure handling

2014-03-26 Thread Phil Dawes
On Wed, Mar 26, 2014 at 9:44 PM, Clark Gaebel wrote: > Can't you put that outside your inner loop? > Sorry Clark, you've lost me. Which inner loop? ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Lightweight failure handling

2014-03-26 Thread Clark Gaebel
Can't you put that outside your inner loop? On Mar 26, 2014 5:15 PM, "Phil Dawes" wrote: > Hello everyone! > > I'm interested in using rust for latency sensitive applications. What's > the cheapest way to achieve isolation in a native rt environment? > > I'd like to do something like: > > let res

Re: [rust-dev] Bounds on type variables in structs, enums, types

2014-03-26 Thread Nick Cameron
We could allow bounds to be locally inferred. E.g., `impl T for S { ... }` would infer the lub of bounds from T and S for X. But since we can have an impl for any type, not just a struct, I think the general case might be too tricky to do inference for. We might also want to take into account uses

[rust-dev] Lightweight failure handling

2014-03-26 Thread Phil Dawes
Hello everyone! I'm interested in using rust for latency sensitive applications. What's the cheapest way to achieve isolation in a native rt environment? I'd like to do something like: let result: Result = task::try(proc() { ... potentually failing code ... }); but as cheaply as possible an

[rust-dev] PDX-Rust meetup tomorrow

2014-03-26 Thread Tom Lee
Hey folks, Per the subject, there's a Rust meetup in Portland, OR tomorrow night from 6:30pm. Details here: http://calagator.org/events/1250465822 I'm waiting on a speaker to get back to me, so the topic is still unfortunately TBA. If our speaker falls through, I'll slap together an 11th hour wa