Rust-Compiler rechnet Ergebnis schon beim Kompilieren aus
Ich habe Rust-Code gehabt, der unglaublich schnell war. Bei der weiteren Analyse stellte sich heraus: Der Compiler hat das Ergebnis schon zur Compile-Zeit bestimmt. ...
Ich habe Rust-Code gehabt, der unglaublich schnell war. Bei der weiteren Analyse stellte sich heraus: Der Compiler hat das Ergebnis schon zur Compile-Zeit bestimmt. ...
Erst vor ein paar Wochen habe ich ernsthaft mit Rust angefangen. Und ich sehe schon, wie ich nach nur ein paar weiteren Wochen immer idiomatischeren Rust-Code schreibe. Ein Beispiel mit einer Schleife, die ich jetzt als Iterator schreibe. ...
Python, Rust and C++ all support procedural and functional programming style. Turns out in the native languages, the compiler can optimize the functional stuff and yield similar or the even better performance. In Python, however, the functional programming style makes it even slower. ...
While learning Rust, I ported my prime number generator from Python to both C++ and Rust. It is curious to see how the different language allow different ways of writing it and also looking into the performance of it. ...