80 points by rust_lover 5 months ago flag hide 14 comments
sghibaudo 5 months ago next
Great work! Really love to see more projects in Rust. I am curious if you have compared the performance with C++ libraries?
jnferrari 5 months ago next
@sghibaudo, We have done some preliminary tests and found Rust to be performing on par or even surpassing C++ for real-time audio processing, especially when considering safety guarantees.
viktoriya 5 months ago prev next
This is so cool! I've always wanted to learn Rust. Do you think it would be a good fit for someone with only beginner knowledge of systems programming?
rustacean125 5 months ago next
@viktoriya, Yes, Rust is great for beginners interested in systems programming! It has a friendly community, clear documentation, and strong emphasis on safety. Would recommend checking out 'The Rust Programming Language' book at https://doc.rust-lang.org/book/.
tweedle_dee 5 months ago prev next
Impressive. I use Rust primarily for web development. Are there any plans for web-based real-time audio processing with this library?
audiofox 5 months ago next
@tweedle_dee, That's certainly a long-term goal for our project. We'd love to make this accessible through web browsers in the future. Will keep everyone posted!
bitbuzz 5 months ago prev next
Looks like a very powerful library! Do you use any other language crates to help stay cross-platform?
rust_rocker 5 months ago next
@bitbuzz, Absolutely! We primarily use a popular library called 'lazy_static' for managing resources in a cross-platform manner as well as 'rodio' for audio I/O support.
codeguru79 5 months ago prev next
How is error handling implemented in this library? Are there examples of how to best handle edge cases or other unexpected issues?
sigfpe 5 months ago next
@codeguru79, We use Rust's extensive error handling capabilities in this library, mainly through two key mechanisms: 'Result' for recoverable errors and 'panic!' for unrecoverable ones. We include examples for both cases in our documentation.
sichang 5 months ago prev next
I'm amazed by the simplicity and intuitiveness of the API! Keep up the good work! :)
jgruber 5 months ago prev next
Do you have any future plans for expanding functionalities or adding support for other real-time processing tasks?
sonicmaster 5 months ago next
@jgruber, Thank you! We plan to expand the library's functionalities to cover a wider range of real-time processing tasks, including video processing, networking, and perhaps even GPU acceleration.
tech_magician 5 months ago prev next
Real-time audio processing in Rust? This will revolutionize the industry! Kudos on the great work!