• asdfasdfasdf@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    8 days ago

    I’d say Rust is definitely mainstream. Obviously not the level of JS or Python, but it’s being used all over the place. All FAANG companies, the Linux kernel, JS runtimes, web browsers, Android, Signal, Mullvad…

    IMO GC has nothing to do with high or low level. It’s just incidental that there’s a correlation. In GC you usually don’t need to think about manually allocating or deallocating memory or truly understand what pointers are (in some ways anyway). In C / C++ you do.

    In Rust you almost never manually allocate or deallocate, and you have both very high and low level APIs.

    I’d say Rust is both high and low level. It just depends what you use it for. If you want to build a CLI or a web server, it’s great for that. If you want to do kernel stuff and choose to flip bits around you can do that too.

    As for books, maybe you’d like trying Rustlings instead.

    • solrize@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 days ago

      Thanks, Rustlings doesn’t sound like what I want either. I was hoping for a counterpart of Stroustrup’s C++ Reference Manual, or Riehle’s “Ada Distilled” or even K&R’s book on C. Something that systematically describes the language rather than distractions like the toolchain, mini projects, cutesey analogies, etc. I’m being too persnickity though, mostly because it hasn’t been important to me so far.

    • Hexarei@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      rust is both high and low level

      I like to describe this as “low level language with high level ergonomics”