Cyberia
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlDeutsch · 1 day ago

Tell me the truth ...

message-square
24
link
fedilink
47

Tell me the truth ...

Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlDeutsch · 1 day ago
message-square
24
link
fedilink
  • Binette@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    exactly! it is more costly for your pc cpu to check for a bit inside a byte, than just get the byte itself, because adresses only point to bytes

    • virku@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 day ago

      Store 8 bits in the same byte then 👌

      • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        24 hours ago

        Wrong direction!

        Store only bits using word-length ints (32 bits in most modern architectures), and program everything to do math using arrays of 32 int-bits to numbers!

        • virku@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          24 hours ago

          Oh man! That took me down memory lane!

          I once had to reverse engineer a database to make an invoice integration. They had an int named flags. It contained all status booleans in the entire system. Took me a while to figure that one out.

          • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
            link
            fedilink
            arrow-up
            1
            ·
            24 hours ago

            We’ve all been there, friend. The bit arrays can’t hurt you now.

Programmer Humor@lemmy.ml

programmerhumor@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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 298 users / day
  • 322 users / week
  • 322 users / month
  • 331 users / 6 months
  • 1 local subscriber
  • 35.7K subscribers
  • 56 Posts
  • 73 Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org