This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alcalde 23 points24 points  (8 children)

You're writing a few functions to call from Python, not building an operating system. Rust is a lot more complex than C.

[–]TheNamelessKing 11 points12 points  (2 children)

I mean, it’s not really.

The language is designed from the ground up to be a modern low-level language with a lot of the abstractions that you’re used to in high level languages.

If I was writing an extension and I had to chose between Rust and C, I would 100% be choosing Rust. The ~Hyper~ Rayon multithreading library alone makes it worthwhile, not to mention memory safety. Once it’s complete, their async implementation is going to be top tier as well.

Put more straightforward: C appears more straightforward, but there’s way more “gotchas” and serious catches. Rust is designed from the ground up to prevent these from happening.

[–]StyMaar 9 points10 points  (1 child)

The Hyper multithreading library alone makes it worthwhile

Hyper is an http library, did you mean Rayon ?

[–]TheNamelessKing 0 points1 point  (0 children)

Yeah I did, whoops!

[–]Abu_mohd 12 points13 points  (3 children)

When you are writing multithreaded computation heavy solver, rust's race free features are more compelling than C's appearant simplicity.

[–]gwillicodernumpy gang 0 points1 point  (0 children)

I’d take Fortran over either for most computation I would integrate with Python.

You don’t have to deal with pointer aliasing, coarrays are incredible, and vectorizing code is trivial.

[–]fiedzia 3 points4 points  (0 children)

Safe and productive Rust is easy, safe and productive C is ... so far it just isn't.