midwest.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
je_vv@lemmy.ml to General Programming Discussion@lemmy.ml · 4 years ago

C vs. Rust: Which to choose for programming hardware abstractions

opensource.com

external-link
message-square
17
link
fedilink
0
external-link

C vs. Rust: Which to choose for programming hardware abstractions

opensource.com

je_vv@lemmy.ml to General Programming Discussion@lemmy.ml · 4 years ago
message-square
17
link
fedilink
Rust is an increasingly popular programming language positioned to be the best choice for hardware interfaces. It's often compared to C for its level of abstraction. This article explains how Rust can handle bitwise operations in a number of ways and offers a solution that provides both safety and ease of use.
alert-triangle
You must log in or # to comment.
  • jhghjb (he/they)@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    4 years ago

    • federico3@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      4 years ago

      Is this a marketing spin? The software industry does not need more hype.

      • ttmrichter@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 years ago

        Note the extra-subtle spin of saying Ada programmers are white supremacists. For that extra goodness!

      • jhghjb (he/they)@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 years ago

        rust supports trans rights (human rights)

        • ttmrichter@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          4 years ago

          Rust is a programming language. Rust has literally no agency. Rust supports nothing. Please do stop trolling.

  • ttmrichter@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    4 years ago

    C vs. Rust: Which to choose for programming hardware abstractions

    The correct answer, of course, is Ada.

    • jhghjb (he/they)@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      4 years ago

      big yikes on this one, ada is often used by white supremacists

      • k_o_t@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 years ago

        pretty sure white supremacists also use rust and c lmao

        • jhghjb (he/they)@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          4 years ago

          white supremacists use c but not rust, one of the many reasons rust is the perfect language

          • k_o_t@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            4 years ago

            i can’t really argue with that hehe

      • Relected@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 years ago

        OK and?

        • ttmrichter@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          4 years ago

          I’m pretty sure he’s trying to “subtly” say I must be a white supremacist because I like well-designed programming languages over languages that were written.

          • Relected@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            4 years ago

            lmao true

      • ttmrichter@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 years ago

        White supremacists use the Internet. Better drop off quickly before you get associated with them!

        • jhghjb (he/they)@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          4 years ago

          no, we must get rid of these white supremacists

          fuck hate ✊🏿

    • federico3@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      4 years ago

      Or Nim.

    • marcuse1w@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      4 years ago

      Ada is really good at making this kind of bit hacking very transparent. It might be interesting to create a Ada version of the examples in the Article to illustrate this. Even the Rust solution looks really messy compared to how Ada approaches this.

General Programming Discussion@lemmy.ml

programming@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@lemmy.ml

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

  • !python@lemmy.ml
  • !powershell@lemmy.ml
  • !julia@lemmy.ml
  • !iosprogramming@lemmy.ml

Systems

  • !rust@lemmy.ml
  • !cpp@lemmy.ml
  • !c_programming@lemmy.ml

Functional Programming

  • !haskell@lemmy.ml
  • !fpcomplete@lemmy.ml

Also related

  • !opensource@lemmy.ml
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 5 users / week
  • 58 users / month
  • 420 users / 6 months
  • 39 local subscribers
  • 8.67K subscribers
  • 986 Posts
  • 1.61K Comments
  • Modlog
  • mods:
  • Restioson@lemmy.ml
  • Evan@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org