[rust-dev] Matching items in macros

2013-01-07 Thread Vadim
Hi, Am I totally off-base in expecting the following to work? macro_rules! gen_mod( ( $name:ident { $( $fun:item )+ } ) = ( mod $name { $( $fun )+ } ) ) gen_mod!( MyMod { fn Foo() - u32 {}

Re: [rust-dev] Plans for improving compiler performance

2013-01-07 Thread Graydon Hoare
On 05/01/2013 1:37 PM, Patrick Walton wrote: First off, I do not see any way we can improve *general* compiler performance by an order of magnitude. I don't feel this sort of quantitative statement can be made, from where we are now. When I say I expect we should be able to get it an order of

Re: [rust-dev] Plans for improving compiler performance

2013-01-07 Thread Graydon Hoare
On 06/01/2013 2:57 PM, Tim Chevalier wrote: Personally, I think our time would be better spent making it easy to break large projects up into multiple finer-grained crates. We should be able to tell cargo and/or the work-in-progress `fbuild` workalike to compile a crate and rebuild all of its