• hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    16 hours ago
    $me = "🧍"; 
    $stillMe = & $me; 
    unset($me);
    print($stillMe); // wohoo, teleportation rocks!!!
    
    $me = "🧍"; 
    $copyOfMe = $me; 
    unset($me); // 💀 this sucks!!!
    print($copyOfMe); // wait, what happened?
    
    • tetris11@feddit.uk
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      14 hours ago

      the reference never changed position in memory, so nothing actually happened during the teleportation process other than a re-labelling.

      For real teleportation, that memory has to physically change position. I would do it gradually though, bit-by-bit, synchronized, and very fast.

      The idea is that if you slow it down, you witness half-yourself getting destroyed exactly as you witness your other half getting created, with the only carry-over being a single 1 or a 0

      • hakunawazo@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        12 hours ago

        So teleportation is like going into the woodchipper feet first? Ok, now I slowly understand McCoys problems with that invention.

        • tetris11@feddit.uk
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 hours ago

          woodchipper suggests that each piece in the chipper is identifiable as it goes in, i.e. the carryover buffer size is large enough to identify pieces of the source.

          I’m talking about a buffer size of 1 bit. Literally a 1 or a 0. It’s as identifiable as a coin flip.