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

2014-03-26 Thread comex
On Tue, Mar 25, 2014 at 8:29 PM, Nick Cameron li...@ncameron.org wrote: I made an RFC - https://github.com/rust-lang/rfcs/pull/20 In my half-baked opinion, it's nice to put bounds on a struct rather than its impl(s), so that nonsensical specializations cannot be created, rather than being

[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

[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: ResultFoo, () = task::try(proc() { ... potentually failing code ... }); but as cheaply as

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., `implX TX for SX { ... }` 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

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 rustp...@phildawes.net 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

Re: [rust-dev] Lightweight failure handling

2014-03-26 Thread Phil Dawes
On Wed, Mar 26, 2014 at 9:44 PM, Clark Gaebel cg.wowus...@gmail.com 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

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 : ResultFoo, () = task::try(proc() { loop { recv_msg(); // begin latency sensitive part process_msg(); send_msg (); // end latency sensitive part } });

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 andrew.c.mor...@gmail.comwrote: On Mar 18,