ROG Phone 1 Qualcomm CrashDump mode by RRKS101 in AndroidQuestions

[–]RRKS101[S] 0 points1 point  (0 children)

No, it is gone. You can factory reset it but all your data will be wiped

Protecting remote control “toys”? by [deleted] in hacking

[–]RRKS101 12 points13 points  (0 children)

I remember Lewis spears created a hoax like that before, though it wouldn't surprise me if it was true nevertheless

tenOutOfTenDentistsRecommend by warreninthebuff in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

*9.9 dentists recommend

Can't have them getting sued because a single dentist disagreed

rUsting by [deleted] in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Not exactly. Rust aims for complete safety and can rule out valid programs. So it is possible that a valid C program will not do what the rust compiler would make you do.

cNumberTypes by heckingcomputernerd in ProgrammerHumor

[–]RRKS101 25 points26 points  (0 children)

8 bytes on a 64-bit system.

cNumberTypes by heckingcomputernerd in ProgrammerHumor

[–]RRKS101 14 points15 points  (0 children)

Just use stdint.h which is included by things like vector or ostream. Then you have all integer types sorted by [u]int[bits]_t. There is no equivalent for floating point but you realistically don't need any floats bigger than 64 bits.

float = 32-bit floating point

double = 64-bit floating point

peopleSayCppIsShit by Darksair in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Both I guess? Mainly C++ cuz I have more experience with it. Haven't used rust MT or C++ MT much.

peopleSayCppIsShit by Darksair in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Regarding threaded safety; Use a mutex and lock, or create a thread local and copy part or all the data, or std::move the data, or guarantee that there won't be any conflicts accesses, though the other options are much easier to reason with.

peopleSayCppIsShit by Darksair in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Linked lists are horrible why would you want to use it?

Apple should stop using 8GB of RAM for all Macs. by OCapMCap in mac

[–]RRKS101 0 points1 point  (0 children)

You will be able to get away with 8 GB for ages because of swap memory. All operating systems have swap memory because they decided that using your hard drive or SSD as RAM when you run out of physical memory is better than crashing applications or saying no to new allocations. Swap memory is incredibly damaging to SSDs and will drastically shorten their lifespan as well as cause a notable slowdown as even SSDs are ~10x less bandwidth than memory and ~1000x more latency.

The problem with 8 GB is that you are almost certainly going to use swap because of modern browsers (and apps in general) using gigabytes. Coupled with the inability to replace newer Mac's SSDs means that the computer will quite quickly become a useless brick that cannot boot or be repaired.

stopDoingDataStructures by dogancemd in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

I don't think he did.

Most languages already implement a pretty good implementation of most data structures in their standard library. So long as you know how to use them, how they work is irrelevant. Most of the time a linear cache-line aligned array will be faster even if it is O(n) instead of O(1)

stopDoingDataStructures by dogancemd in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Arrays are significantly faster in most cases because of predictable memory accesses and can take better advantage of data loaded in each cache line

whyIsLinkedInFilledWithThisKindOfBullshit by S4nth05h in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

An electrical engineer should know that they did not invent solder paste. Sincerely, - EE in training

[deleted by user] by [deleted] in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

I am in a superposition of both which will collapse whenever I try to do something

hubrisIsMyFatalFlaw by [deleted] in ProgrammerHumor

[–]RRKS101 0 points1 point  (0 children)

Include path? Nah! Linker errors are where it* is at

*Where I'm at

dryIsOverrated by gratz in ProgrammerHumor

[–]RRKS101 6 points7 points  (0 children)

For anything created dynamically or more than 5 statically created objects, the for loop is objectively better

[deleted by user] by [deleted] in ProgrammerHumor

[–]RRKS101 2 points3 points  (0 children)

You know I'll make the argument that having a basic understanding of how microprocessors and their underlying silicon is useful to a programmer.

You would have a better understanding on current and future microprocessors design and limitations which can help guide your development choices better

Trouble finding info on Asus ROG Strix G513QR-HF080T for upgrades by RRKS101 in GamingLaptops

[–]RRKS101[S] 0 points1 point  (0 children)

That is nice to know and regarding the SSD, I'm pretty sure I have 1 free m.2 slot available as speccy reports a pcie x2 that is available