Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
CodyIT ( CodiUnicorn@programming.dev )  to Programmer Humor@programming.devEnglish · 19 days ago

Bites & Bytes

programming.dev

message-square
18
link
fedilink
  • cross-posted to:
  • onehundredninetysix@lemmy.blahaj.zone
504

Bites & Bytes

programming.dev

CodyIT ( CodiUnicorn@programming.dev )  to Programmer Humor@programming.devEnglish · 19 days ago
message-square
18
link
fedilink
  • cross-posted to:
  • onehundredninetysix@lemmy.blahaj.zone
  • OpenStars ( OpenStars@discuss.online ) 
    link
    fedilink
    English
    arrow-up
    11
    ·
    19 days ago

    Word:-)

    • tetris11 ( tetris11@feddit.uk ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      19 days ago

    • A_norny_mousse ( A_norny_mousse@piefed.zip ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 days ago

      Funny, in Finnish a byte is called a syllable. Which would better apply to a nibble I guess.

      • Natanael ( Natanael@infosec.pub ) 
        link
        fedilink
        arrow-up
        3
        ·
        19 days ago

        A word is typically 4 bytes

        https://en.wikipedia.org/wiki/Word_(computer_architecture)

        • A_norny_mousse ( A_norny_mousse@piefed.zip ) 
          link
          fedilink
          English
          arrow-up
          4
          ·
          19 days ago

          Oh. Shit, first I didn’t know what a nibble is, now I didn’t know what a word is … I’ll just show myself out and make sure I never try to write any assembler code.

          • Natanael ( Natanael@infosec.pub ) 
            link
            fedilink
            arrow-up
            3
            ·
            19 days ago

            Well technically

            https://en.wikipedia.org/wiki/Syllable_(computing)

            • A_norny_mousse ( A_norny_mousse@piefed.zip ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              18 days ago

              Trust Finns to hang on to some outdated term!

          • OpenStars ( OpenStars@discuss.online ) 
            link
            fedilink
            English
            arrow-up
            1
            ·
            19 days ago

            Actually that does sound best… but not because of anything to do with you, that advice just applies to all humans for the last basically twenty years. So it’s nothing to do with AI slop, but rather compilation got SO FREAKING GREAT that in like 99.9% of cases it does better than a human.

            Ironically, one of the reasons for that is that concepts like “word” varies between different architectures (like like “byte” too - e.g. you’ve likely heard the distinction between 32-bit vs. 64-bit systems). As the other person said it is usually 4 bytes but other times it can be like 2 (in super old systems I suppose) or more than 4 in like super powerful ones (128-bit ones maybe?).

            And compilers keep track of ALL of those minutiae, as well as a bunch more stuff too. Like a small(-ish) loop that only runs a couple to few times is far more efficient to just be duplicated in the assembly code, rather than have the GO-TO procedure jump back to its beginning spot. And also it helps immensely to feed things to the chip based on what the various cache sizes are - L1, L2, L3 (though not all chips have all… or even any of those).

            So yeah, it’s best to leave compilation to the computer to handle, thus freeing up the programmer to handle the overall logical flow and deal with other higher-order effects like code reuse and documentation and stuff.

        • heartSagan5 ( heartSagan5@lemmy.zip ) 
          link
          fedilink
          arrow-up
          4
          ·
          19 days ago

          It depends on the architecture. Some chips have weird words, like the Voyager spacecraft computer.

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 341 users / day
  • 1.45K users / week
  • 3.18K users / month
  • 7.37K users / 6 months
  • 463 local subscribers
  • 33.4K subscribers
  • 1.52K Posts
  • 25K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code