Here is a new One Which has a summery for choosing Statically typed Programming language or not. This is a my journey when I was deciding to learn a programming language . Don’t forget to readout the Open Thought Section.

https://ls-lrt.com/statically-typed-and-dynamically-typed-programing-language-intro/

💭 About: https://ls-lrt.com/about

✍🏼 here : https://ls-lrt.com/

#rust #rustlang #StaticallyTyped #MachineLearning #AeroSpace #Drone #opensource #CyberSecurity

ls-lrt.com

Blog Site of Samir Parhi

@samirparhi This is really good! One thing I want to add is while the converse is not necessarily true, usually only Statically Typed Langs can be made self-contained without huge packaging overhead and manual work.

Had to write a SVM that runs on a server not installed with any data science tools. I used rust linfa and the resulting binary is only 1.7M. It's much less ergonomic than R but if you add the additional time cost of making R run on that server I think it's worth it.

https://github.com/eternal-flame-AD/beataml2.0_svm/blob/main/stat5353_project/src/svm.rs
beataml2.0_svm/stat5353_project/src/svm.rs at main · eternal-flame-AD/beataml2.0_svm

SVM analysis of the BeatAML 2.0 RNASeq dataset. Contribute to eternal-flame-AD/beataml2.0_svm development by creating an account on GitHub.

GitHub
@samirparhi I think there will only be R and Python calling compute kernels in C/C++/Rust (and often necessary simply because R/Py is too high level and unoptimized, as you mentioned).

It is possible to use R from within Rust, the main reason you want to do this is if your main business logic is in Rust (for ex. a web server) and you want to communicate seamless with R instead of spawning a separate process.

Pure rust ML frameworks like linfa are more for programmers need to occasionally do data science, I don't see data science people migrating to Rust any time soon.

Here's an example of my project using R from Rust:
https://github.com/eternal-flame-AD/typstpp/blob/main/crates/typstpp-r/src/lib.rs
typstpp/crates/typstpp-r/src/lib.rs at main · eternal-flame-AD/typstpp

The Typst preprocessor. Contribute to eternal-flame-AD/typstpp development by creating an account on GitHub.

GitHub
@yume : Yes Researcher do have a big Advantage using @julialanguage `R` or `Python`. And there are also the `Rust~ binding` . BDW I am learning your code😄
@samirparhi @julialanguage I am working on this library, this is much more Rust idiomatic: the one I sent you before uses the raw R C API. This library wraps around it in a type-safe and RAII manner but under the hood is almost exact mapping to the low level really unsafe APIs, unlike some high level wrappers like Rcpp.

https://github.com/eternal-flame-AD/typed-sexp/blob/main/crates/extension-demo/src/lib.rs
typed-sexp/crates/extension-demo/src/lib.rs at main · eternal-flame-AD/typed-sexp

Contribute to eternal-flame-AD/typed-sexp development by creating an account on GitHub.

GitHub