Re: [rust-dev] Rust and real-time audio

2014-10-08 Thread Allen Welkie
For your first question, you could enable the owned-heap-memory warning as an error for the crate in which you want to avoid heap memory. If this doesn't do exactly what you want, you may be able to write your own lint to do what you want http://doc.rust-lang.org/rustc/lint/ On Wed, Oct 8, 2014

[rust-dev] Rust Radio - an SDR framework

2014-09-11 Thread Allen Welkie
If anyone is interested in software defined radios, I'm starting a project called Rust Radio (very similar to GNU Radio). Take a look at https://github.com/awelkie/rustradio. It's still pretty new, but critiques and contributions are always welcome! ___

Re: [rust-dev] Rust Radio - an SDR framework

2014-09-11 Thread Allen Welkie
from each other here, and I'll be watching your project- might be a good excuse to get some use out of my HackRF and contribute some components back. [1] https://bitbucket.org/tari/audiostream.rs/ On Thu, Sep 11, 2014 at 6:56 AM, Allen Welkie allen.wel...@gmail.com wrote: If anyone

Re: [rust-dev] Rust Radio - an SDR framework

2014-09-11 Thread Allen Welkie
at https://github.com/ade-ma/LibRedio. Best, Ian On Thu, Sep 11, 2014 at 8:56 AM, Allen Welkie allen.wel...@gmail.com wrote: If anyone is interested in software defined radios, I'm starting a project called Rust Radio (very similar to GNU Radio). Take a look at https://github.com/awelkie

[rust-dev] Closures with owned environments

2014-09-09 Thread Allen Welkie
In this stackoverflow question: http://stackoverflow.com/questions/21130272/return-a-closure-from-a-function Chris Morgan mentions the possibility of adding closures with owned environments with the DST implementation. Is this being done with the current DST effort? If not, are there plans to

Re: [rust-dev] Closures with owned environments

2014-09-09 Thread Allen Welkie
trait object representing the closure. The call syntax is ugly, however, but this should change in the nearest future (though explicit dereferencing, like (*f)(x), will likely be needed anyway). 2014-09-10 0:39 GMT+04:00 Allen Welkie allen.wel...@gmail.com: In this stackoverflow question

[rust-dev] Using 'mod' for test code

2014-07-23 Thread Allen Welkie
I'm having an issue with creating a separate testing file for a program I'm writing. I have a file called 'myprogram.rs', which imports complex numbers with the following extern crate num; use num::complex::Complex; and then defines a bunch of functions. I want to test these functions in a

[rust-dev] Conflicting implementations of a trait

2014-07-22 Thread Allen Welkie
Can there be two simultaneous implementations of a generic trait? I ask because I want to extend the Complex class to allow for multiplication by scalars, so that you can use a * b where a and b can be either scalars or Complex. The Complex struct already has an implementation of the Mul trait. I