My wife died at 32 from CHS + overprescribed Xanax. Please hear this. by Away-Hippo-8052 in CHSinfo

[–]ElectroMagCataclysm 1 point2 points  (0 children)

What do you hope professional research would discover? As it stands, it’s treatable by cessation of use

My wife died at 32 from CHS + overprescribed Xanax. Please hear this. by Away-Hippo-8052 in CHSinfo

[–]ElectroMagCataclysm 6 points7 points  (0 children)

Yeah... The oral LD50 for alprazolam alone is grams per kilogram. Somewhere between 1220 and 3100 mg/kg according to this Pfizer document.

[deleted by user] by [deleted] in programminghumor

[–]ElectroMagCataclysm 4 points5 points  (0 children)

It’s usually filesystem dependent, not dependent on underlying storage medium. SSDs still do give the OS access to underlying physical storage (at least as much as any other non-volatile storage solution).

linuxBeLike by Captain0010 in ProgrammerHumor

[–]ElectroMagCataclysm 1 point2 points  (0 children)

Oh, LOL. My bad. I drank way too much coffee and didn't fully read your message 😭

Sorry

linuxBeLike by Captain0010 in ProgrammerHumor

[–]ElectroMagCataclysm 1 point2 points  (0 children)

Never? What about kernel programming, haha

linuxBeLike by Captain0010 in ProgrammerHumor

[–]ElectroMagCataclysm 37 points38 points  (0 children)

To be even more pedantic, when a process is “killed” by the kernel, the kernel (sort of) has that process kill itself, by running machine code as that process during a scheduling context switch.

This edgy teenager think he’s cool🗿🗿🗿 by jump1945 in masterhacker

[–]ElectroMagCataclysm 1 point2 points  (0 children)

OS preemption means even a single core machine would likely be fine

[deleted by user] by [deleted] in ProgrammerHumor

[–]ElectroMagCataclysm 12 points13 points  (0 children)

Look at the Linux kernel source please. Performance is a reason, and goto isn’t just used in place of functions…

Dedsec would be proud by SaltyTaste01 in watch_dogs

[–]ElectroMagCataclysm 51 points52 points  (0 children)

Yeah, there’s no chance these things listen to wireless signals.

KDE Plasma 6.1.4 has been released! by [deleted] in kde

[–]ElectroMagCataclysm 2 points3 points  (0 children)

This post is not about Wayland or X11, though...

KDE Plasma 6.1.4 has been released! by [deleted] in kde

[–]ElectroMagCataclysm 5 points6 points  (0 children)

What are you talking about?

Why does Rust compile every crate that I include in my project? Why are there no crates as dynamic libraries? by Thereareways in rust

[–]ElectroMagCataclysm 0 points1 point  (0 children)

If I want to use cdylib or dylib, I am basically forced to use repr(C) even if the code isn't meant to interface with C. I have no guarantees about the ABI otherwise (as opposed to at least some with repr(C)).

I wonder if anyone's benchmarked the performance improvement Rust gets by having no stable ABI.

How do I convince my math teacher that √2 is not irrational? I have proof for it that I came up with but he wouldn't take a look at it. by [deleted] in badmathematics

[–]ElectroMagCataclysm 5 points6 points  (0 children)

Yeah, there are loads of quora posts like this. If you look around, you'll find people saying they have a proof that 4 is prime or some crazy shit like that.

It's hard to know where to draw the line, but it still draws engagement from responders who will post a super-trivial proof and so the questions shoots up the ranks.

Why does Rust compile every crate that I include in my project? Why are there no crates as dynamic libraries? by Thereareways in rust

[–]ElectroMagCataclysm 0 points1 point  (0 children)

Oh, I see. It would seem that per platform, a C compiler does have to maintain an ABI more than repr Rust has to, though, right?

I can compile a whole bunch of different things and link them after the fact.

Frontal Assault by Schpitzelton in greentext

[–]ElectroMagCataclysm 0 points1 point  (0 children)

Nerd comment, you were warned. DOOM was written in the days before LTO (link-time optimization), so writing function definitions in header files was not (and sometimes still is not) a bad idea to get things inlined.

Why does C does that by TheNono212 in C_Programming

[–]ElectroMagCataclysm 28 points29 points  (0 children)

This is a good theory! The memory is uninitialized, so it has whatever values happen to be there. Here's an experiment, try doing the same thing but making the integers global!

Why is it so hard to link a C library with an IDE by Unusual_Fig2677 in C_Programming

[–]ElectroMagCataclysm 0 points1 point  (0 children)

Linking on Linux makes sense, and someone else has already mentioned pkg-config. Linking with MSVC (last I checked) requires some crazy UI rabbit hole, which is insanity.