I’ve only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don’t really understand what is interesting in learning an other language. For example, I could learn Ruby, but I’d do the same thing I already do.

Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.

  • pr06lefs@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I wrote a web server to store markdown documents with links between them, a sort of ‘zettelkasten’. Now I’ve made it into a tauri app that runs on my phone, web server and all, and can sync with the main server in the cloud. Documents everywhere! Front end is in elm and not rust tho.

    I’ve made a few other projects in rust, did a audio dsp thing that is a delay with web controls, made a blinky sketch for the rp2040.

    Rust is cool because you can write pretty high level code in it, with lots of libraries to help out, or you can write bare metal code with no OS for embedded.

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    My initial motivation to learn Rust was gamedev. Ultimately, you want high performance for games, which Rust can deliver.

    Another area where Rust will be pretty much unavoidable in ten years is embedded computing.
    So far, pretty much everything in embedded was implemented in C/C++, because you don’t have a filesystem there, so you can’t use a runtime, like Python, Java et al need. Rust doesn’t require a runtime either and is finally a more modern language, with much better tooling.

    Well, and where Rust (or C/C++) not requiring a runtime comes in handy, too, is for writing libraries. You can use it to create libraries, which can be called from virtually any language (via the C ABI).

    But yeah, as the others said, essentially anything can be implemented in Rust. Moreso than most other languages.
    At $DAYJOB, we’ve got a distributed system with edge components and a backend, as well as a CLI and a web frontend. All of it is implemented with Rust (and some HTML+CSS). For the web frontend, we’re using WebAssembly (via the Leptos framework).
    That is genuinely a solid reason for us to implement this in Rust, because we only need to know one language.