this post was submitted on 25 Apr 2024
723 points (95.6% liked)

Programmer Humor

20689 readers
9 users here now

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

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/14869314

"I want to live forever in AI"

(page 2) 50 comments
sorted by: hot top controversial new old
[–] Valmond@lemmy.world 8 points 10 months ago (1 children)

void teleport(Person person);

[–] RamblingPanda@lemmynsfw.com 6 points 10 months ago

It needs an empty catch block

[–] Heavybell@lemmy.world 5 points 10 months ago

The best part is, unless that function name is misleading, it doesn't matter how the data is passed; a copy is being sent out over TCP/IP to another device regardless.

[–] NeatNit@discuss.tchncs.de 5 points 10 months ago

I had to turn my phone sideways and go cross-eyed to spot the difference.

[–] HawlSera@lemm.ee 4 points 10 months ago (5 children)
[–] The_Terrible_Humbaba@beehaw.org 7 points 10 months ago (2 children)

It wouldn't be you, it would just be another person with the same memories that you had up until the point the copy was made.

When you transfer a file, for example, all you are really doing is sending a message telling the other machine what bits the file is made up of, and then that other machines creates a file that is just like the original - a copy, while the original still remains in the first machine. Nothing is even actually transferred.

If we apply this logic to consciousness, then to "transfer" your brain to a machine you will have to make a copy, which exist simultaneously with the original you. At that point in time, there will be two different instances of "you"; and in fact, from that point forward, the two instances will begin to create different memories and experience different things, thereby becoming two different identities.

load more comments (2 replies)
[–] I_am_10_squirrels@beehaw.org 5 points 10 months ago (2 children)

The first line passes the argument by reference, ie, the object itself.

The second line passes the object by value, ie, a copy.

[–] sukhmel@programming.dev 4 points 10 months ago

Also in Rust that would be the opposite which is funny but confusing

load more comments (1 replies)
load more comments (3 replies)
[–] uebquauntbez@lemmy.world 4 points 10 months ago

Sorry Dave, I'm afraid I can't do that

load more comments
view more: ‹ prev next ›