• hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month 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
      0
      ·
      edit-2
      1 month 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
        0
        ·
        1 month ago

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