LQX Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 8 days ago

Tell me the truth ...

piefed.jeena.net

message-square
165
link
fedilink
1.16K

Tell me the truth ...

piefed.jeena.net

cm0002@lemmy.world to Programmer Humor@programming.dev · 8 days ago
message-square
165
link
fedilink
  • kayzeekayzee@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    8 days ago

    Redundancy is nice in the event of bitflip errors

    • MNByChoice@midwest.social
      link
      fedilink
      arrow-up
      11
      ·
      8 days ago

      Is the redundancy used for bools? I mean in actual practice.

      • kayzeekayzee@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 days ago

        iunno ¯_(ツ)_/¯

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        C/C++ considers an nonzero number, as your true value but false is only zero. This would allow you to guard against going from true to false via bit flip but not false to true.
        Other languages like rust define 0 to be false and 1 to be true and any other bit pattern to be invalid for bools.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.13K users / day
  • 4.68K users / week
  • 8.24K users / month
  • 17.2K users / 6 months
  • 1 local subscriber
  • 23.4K subscribers
  • 704 Posts
  • 13.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org