There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

vox , (edited ) in "I want to live forever in AI"
@vox@sopuli.xyz avatar

would’ve made more sense if it was rust

(or is the copy intential here?)

SrTobi ,

Plottwist: consciousness is : Copy

flying_sheep ,
@flying_sheep@lemmy.ml avatar

It’s pinned and !Unpin, and only has private constructors.

Uploading is a matter of implementing Clone

RustyNova ,

<span style="color:#323232;">#[derive(Clone, Copy)]
</span><span style="font-weight:bold;color:#a71d5d;">struct </span><span style="color:#323232;">Consciousness {...}
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">upload_brain</span><span style="color:#323232;">(brain: Consciousness) -> Result<(), Error>
</span>
xlash123 ,
@xlash123@sh.itjust.works avatar

If we’re gonna have a dystopian future, then damn it, it’s gonna be memory safe.

marcos ,

The semantics in Rust would be completely out of wack. What does ownership mean?

I guess the point of the joke is that consciousness is a shallow value.

pewpew , in "I want to live forever in AI"
@pewpew@feddit.it avatar

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

Tangent5280 ,

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.

MaggiWuerze ,

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 ,

Upload is a fun show

MaggiWuerze ,

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

herescunty ,

Future man season 2?

MaggiWuerze ,

Black Mirror

herescunty ,

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 ,

never watched the show. Is it any good?

herescunty ,

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 ,

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

germtm_ ,

that’s a weird way to spell Pantheon.

Valmond ,

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

cbazero ,

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 ,

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

pewpew ,
@pewpew@feddit.it avatar

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

NeatNit , in "I want to live forever in AI"

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

ZILtoid1991 , in "I want to live forever in AI"

<span style="color:#323232;">throws UserNotPaidException
</span>
SlopppyEngineer ,
supercriticalcheese , in When your iRobot finally achieve teleportation

damnit it found the wormhole in the storage room

neo , in "I want to live forever in AI"

Are you sure the roon of today is a reference to yesterday’s roon?

MaggiWuerze , in When your iRobot finally achieve teleportation

It broke containment!

FlaminGoku ,

Clever girl

RamblingPanda , in "I want to live forever in AI"

It needs an empty catch block

clydegale , in [Request] Looking for resources on terrible algorithms, architecture, and design
Asudox ,
@Asudox@lemmy.world avatar

great. time to put that in practice.

BurningTurtle , in [Request] Looking for resources on terrible algorithms, architecture, and design
@BurningTurtle@programming.dev avatar

sleep sort

yogsototh ,
@yogsototh@programming.dev avatar

Technically, sleep sort is O(n), so faster than the theoretical optimal sorting algorithm O(n.log n) … not so bad ;)

anton ,

Sleep sort is kind of like count sort but with added overhead. Both have a complexity of O(n+m) with n being the length and m the value of the max element.

The optimum of O(n * log n) is based on the assumption that the only information about the values is obtained by comparison. If you operate on integer keys I would recommend radix sort. It has a complexity of O(n * w) where w is the length (read logarithm) of the key.

treeshateorcs , in "I want to live forever in AI"
@treeshateorcs@programming.dev avatar

everyone watch this clip and tell me what you think

www.youtube.com/watch?v=szzVlQ653as

what if it’s year 3000 right now and we’re all playing a game?

uebquauntbez , in "I want to live forever in AI"

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

anton , in [Request] Looking for resources on terrible algorithms, architecture, and design

I can’t find the name/source at the moment, but if you enumerate all turing machines and run them concurrently* you will find the optimal algorithm for your problem in O(1) and executed that.
To my knowledge the algorithm is so inefficient on small input that it takes hours to solve integer addition.

  • You run the first turing machine one step, than the first two one additional step, that the first tree… This allows you to run an unlimited amount of TMs an unlimited amount of steps.
marcos , in Demand ad companies take security seriously first and maybe we'll talk.

No way they can be the same.

The adblock stops malware, makes my browser perform better, and stops things from disrupting me. The most common result of anti-virus the complete opposite of each of those 3.

shneancy ,

simple, don’t use an antivirus, stick to windows defender (before the linux crowd comes in yes I know there are basically no viruses threatening you chill), your own brain, and also not an admin account!

Don’t download shady shit, and if your PC asks you for some mysterious admin permission - the answer is “no”. If something does slip through windows defender will most likely handle it no problem!

lengau ,

Ugh Linux… I tried so hard to get viruses working in wine but in the end I gave up. Full compatibility my ass…

Zangoose ,

Linux gets viruses too (see recent xz-utils vulnerability that almost got into production environments) and its kind of a shame that corporate antivirus software like Norton and McAfee end up ruining the reputation of antiviruses. In theory the idea of having a software that can scan for common viruses is a great way to increase security, even if it shouldn’t replace common sense. I’m not too sure if there are any good FOSS antiviruses, but if there aren’t there should be.

shneancy ,

we’ll never be a 100% safe, no matter what OS we use. We can’t defend ourselves against backdoors and newly abused vulnerabilities in any meaningful way

Zangoose ,

That’s partially my point. You can never be 100% safe, but there’s a lot you can do to increase your safety besides just relying on intuition (edit: because intuition is usually the weakest link, see social engineering/phishing tactics). Anti viruses (when they aren’t just bloatware) are part of that.

Your second point about not meaningfully defending against backdoors and vulnerabilities is kind of against the point. You can totally defend against backdoors by not giving apps admin privileges, limiting network access, etc. so that damage can be limited even if an exploit happens. Then, if some backdoor or exploit is discovered, it’s only as dangerous as the permissions you give that app.

shneancy ,

oh i meant backdoors and vulnerabilities in the OS itself, hah, i’m pretty sure the system has all the permissions

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

good FOSS antiviruses

ClamAV is the Linux antivirus library I’m most familiar with.

ZILtoid1991 ,

I used to have it on my Raspberry Pi to test some shady files. Besides of the Linux thing, they’d also need to get around the fact I was running things on AArch64, which is a rare combination. Maybe Windows on AArch64 would have been an even safer choice.

fibojoly ,

I cannot express how much I loathe antivirus software. Mostly it’s been because it has been nothing but trouble in my work environment, without ever catching anything, for over twenty years. It’s the modern corporate snake oil.

Zacryon ,

Good for you. If your company is regularly the target of industrial espionage and your coworkers have a hard time detecting phishing mails, you’re happy to have a good AV suite as a further security measure.

fibojoly ,

Yes, I’m well aware security is a team sport. All it takes is one person to make a mistake, once. I still remember that the Iloveyou virus penetrated our network back when I was in university, through the Unix lecturer…

Still fucking annoying though.

Although I do realise most of my annoyance comes from shitty configuration and poor human decisions. Oh, let’s run a full deep scan at 15:00 everywhere Friday. It’s not like the students will need to use those machines during their Comp. Science lab, right?

Malix , in "I want to live forever in AI"
@Malix@sopuli.xyz avatar

the plot of

spoilerSOMA

in a nutshell?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines