• communism@lemmy.ml
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    17 days ago

    You can embed Assembly in Rust. A lot of low-level Rust projects embed Assembly.

    • UnfortunateShort@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      17 days ago

      Totally, though I wouldn’t bother switching if your project is half assembly anyway. Unsafe Rust definitely has some beauty to it, but only if there is some safe Rust to embedd it into

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      17 days ago

      Although if you’re doing it a lot, you’ve basically removed the main advantage of using Rust.

      By the way, how is compilation to things other than LLVM going? I haven’t checked in a while.

    • three@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      8
      ·
      edit-2
      17 days ago

      Bro, just use Rust, bro.

      We get it, Rust can suck your dick… and more!

      • communism@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        17 days ago

        I don’t see where I said any of the words you just quoted. Impressive if Rust can suck a dick I don’t have though, I’ll give them that.