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

Programmer Humor

19512 readers
327 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 1 year ago
MODERATORS
 

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

"I want to live forever in AI"

you are viewing a single comment's thread
view the rest of the comments
[–] pewpew@feddit.it 13 points 6 months ago (3 children)

Whats the difference between void fn(Type& var) and void fn(Type* var)?

[–] Tangent5280@lemmy.world 29 points 6 months ago (2 children)

Sends original data vs making a copy of data and sending it.

In meme context you'd be just making a copy of your consciousness and putting it in a machine. Whatever reason you're doing it for - escape illness, survive armageddon, nothing changes for you. A copy of you lives on though.

[–] Valmond@lemmy.world 10 points 6 months ago

It's not like the post, secont is a pointer.

[–] MaggiWuerze@feddit.de 8 points 6 months ago (1 children)

I mean, just kill the host as soon as the upload is complete. at best you are not conscious during the process and when "you" wake up you are in the cloud. The version of you that awakes gets told that the "transfer" was complete.

[–] remotedev@lemmy.ca 12 points 6 months ago (1 children)
[–] MaggiWuerze@feddit.de 5 points 6 months ago (1 children)

I was thinking more along the lines of St. Junipero :D

[–] herescunty@lemmy.world 1 points 6 months ago (1 children)
[–] MaggiWuerze@feddit.de 1 points 6 months ago (2 children)
[–] herescunty@lemmy.world 2 points 6 months ago (1 children)

Oh I know San junipero, just suggesting the plot of season 2 of future man as another similar reference - minds uploaded to “the cloud” and bodies destroyed on upload complete. Haley Joel Osmand is pretty decent as the antagonist of that season.

[–] MaggiWuerze@feddit.de 2 points 6 months ago (1 children)

never watched the show. Is it any good?

[–] herescunty@lemmy.world 1 points 6 months ago (1 children)

Pretty good. Offbeat as all hell. Loses its way a little in season 2 but pulls it back for season 3. Wasn’t generally considered a hit, didn’t make it past season 3.

[–] MaggiWuerze@feddit.de 2 points 6 months ago

7.7 on imdb is very solid. I'll give it a go. Thanks for the tip

[–] germtm_@lemmy.world 1 points 6 months ago

that's a weird way to spell Pantheon.

[–] cbazero@programming.dev 8 points 6 months ago

I guess you ask for C++. There Type* can be null while Type& can't be null. When it gets compiled Type& is compiled (mostly) to the same machinecode as Type*.

[–] Valmond@lemmy.world 7 points 6 months ago (1 children)

You can pass nullptr in the second example (that is not what OP wrote though, hes second is making a copy).

[–] pewpew@feddit.it 3 points 6 months ago

Thanks, I was Just curious. I knew what * did but I wasn't sure about &