royal,
@royal@theres.life avatar

I think in PowerShell and can manage in Python. I want to learn Rust to the degree I can write in it directly, rather than prototyping in PowerShell and then converting.

A lot of what I do is data manipulation and analysis. (Take several CSV files as input, and output new CSV files that answer business questions based on the inputs.) I'm seriously impressed with Rust's performance here.

If you've made this transition, advice on where to begin?

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@royal

From the Rust Cookbook:
https://rust-lang-nursery.github.io/rust-cookbook/encoding/csv.html

You will probably have to deal with Serde:
https://docs.rs/serde/latest/serde/

And / or the csv crate:
https://docs.rs/csv/latest/csv/index.html

with its tutorial:
https://docs.rs/csv/latest/csv/tutorial/index.html

I am using Kate text editor in Linux. Installing 'rust-analyzer' enables code completion and checking with the integrated LSP server.

I decided to use Egui for the UIs, because I do not need to deal with CSS. And I am still satisfied with it.

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@royal

The csv crate tutorial is really great. Very detailed for beginners.

Thanks to all, who contribute to such a nice piece of work.

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@royal

If you later want to open files with a nice menu, using the native file dialog from the OS, I would recommend RFD:
https://docs.rs/rfd/latest/rfd/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • kavyap
  • ngwrru68w68
  • GTA5RPClips
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • rosin
  • Leos
  • normalnudes
  • khanakhh
  • cisconetworking
  • cubers
  • InstantRegret
  • ethstaker
  • osvaldo12
  • modclub
  • anitta
  • provamag3
  • tacticalgear
  • tester
  • megavids
  • JUstTest
  • All magazines