News for hackers. Stuff that matters.
Re:Write Python inline in your Rust code by andolanra on Tuesday April 23, 2019 @12:59PM (#19730509)
The author mentioned on Twitter that it was useful for quickly plotting data in Rust, with this example:

    fn main() {
        let data = vec![(4, 3), (2, 8), (3, 1), (4, 0)];
        python! {
            import matplotlib.pyplot as plt
            plt.plot('data)
            plt.show()
        }
    }
Source: https://twitter.com/m_ou_se/status/1118255841961025539
Re:Write Python inline in your Rust code by m0zg on Tuesday April 23, 2019 @05:40PM (#19733191)
This snippet right here might actually convince me to learn Rust. I work in C++ a lot, and deal with problems where visualization would be useful if it were easy. But because nothing in C++ is ever easy, I end up not doing it in a lot of cases, sometimes to my own detriment.