My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlDeutsch · 2 days ago

Tell me the truth ...

lemmy.ml

message-square
28
fedilink
183

Tell me the truth ...

lemmy.ml

Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlDeutsch · 2 days ago
message-square
28
fedilink
  • Binette@lemmy.ml
    link
    fedilink
    arrow-up
    13
    ·
    2 days 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
      9
      ·
      2 days ago

      Store 8 bits in the same byte then 👌

      • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
        link
        fedilink
        arrow-up
        3
        ·
        2 days 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
          4
          ·
          2 days 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
            3
            ·
            2 days 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: [email protected]

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.

  • 206 users / day
  • 1.89K users / week
  • 2.62K users / month
  • 10.3K users / 6 months
  • 1 local subscriber
  • 35.7K subscribers
  • 1.68K Posts
  • 32.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org