Benjamin Blundell
Jul 30 · 7 min read

Artificial Intelligence and Data

What is so good about Rust?

fn test_distribs() {
let n = log_normal(0.0, 0.5, 1.0);
println!("Sample {}.", n);
assert!((n - 0.7978846).abs() < 0.001);
let p = normal(0.0, 1.0, 0.0);
println!("Sample {}.", p);
assert!((p - 0.3989).abs() < 0.001);
cargo test

So what is bad?

pub fn err(&mut self, msg: &'static str) -> St {
self.err = Some(types::CodecError { upto: self.pos, cause: msg.into_maybe_owned() });
impl $dec {
pub fn new() -> Box { box $dec { st: $stmod::$inist } as Box }

Simulators and supercomputers

In conclusion…

Benjamin Blundell

Written by

Freelance Research Software Engineer and Bioinformatics Student.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade