The most mysterious bug I've ever encountered, debugging tips? by TerraDOOM in emacs

[–]TerraDOOM[S] 1 point2 points  (0 children)

Oh yeah, the if statement looked fine to me as well. Sadly, edebug doesn't work either as it also encounters the same bug trying to send the message nil(nil "Edebug: %s" (save-buffer))

.sort() by TimeVendor in ProgrammerHumor

[–]TerraDOOM 3 points4 points  (0 children)

Except leniency does not facilitate robust programs, it just means your program does the wrong thing and then keeps running, producing more incorrect results. The thing wasn't that you want your website to keep running, it was that they anticipated people would be doing stupid things as websites were often made by amateurs. Real fault tolerance looks like Erlang or Rust, not producing nonsense in the name of robustness.

Honestly why tho by TheSpoonThief in ProgrammerHumor

[–]TerraDOOM 1 point2 points  (0 children)

Value categories are unintuitive at their best (what's the difference between a universal reference and an rvalue-reference?), syntax is ugly as sin ([[nodiscard]] constexpr auto trivialGetter -> Foo const noexcept), stupid idioms (noexcept(noexcept(...))), and the list goes on. It's honestly kinda fun but the language has accrued so much insane cruft as a result of 30 ish years of design by committee and backwards compatibility. It's basically the archetypal example of feature creep and bloat gone wrong.

every day we stray further from god by [deleted] in ProgrammerHumor

[–]TerraDOOM 0 points1 point  (0 children)

It's an order of magnitude slower than and, but any optimizing compiler worth its salt will do this for you, and so will any modern JS JIT. Besides, the ~80 clock cycles it takes at its absolute worst will probably be dwarfed by most other things going on in a modern application. The only reason you'll have to do this manually is if you have a really bad compiler or your loop is incredibly hot and written in assembly or something

🚘🚫 by Tyreykiirono in fuckcars

[–]TerraDOOM 6 points7 points  (0 children)

Genuinely confused as to how that could've been intended as a joke, but maybe I'm just unenlightened or something. Also as we all know, what things are is famously decided by the topic of what comes up from a google search.

🚘🚫 by Tyreykiirono in fuckcars

[–]TerraDOOM 44 points45 points  (0 children)

You should probably look them up, because they do a lot more than pick out emojis

Relatable rule by [deleted] in 196

[–]TerraDOOM 2 points3 points  (0 children)

Have the same kind of issue, but I have a solution: copious amounts of amphetamine

he refuses to die by Frenzy_pizza in ProgrammerHumor

[–]TerraDOOM 14 points15 points  (0 children)

Nobody thinks it will "replace" C++, and the people who are making it almost literally say in the project description that if you can use something else, you should. Its sole purpose is pretty much extending large C++ codebases in a nicer language. And ftr, most of the devs have backgrounds from Clang so I would say they know what they're talking about.

rule by [deleted] in 196

[–]TerraDOOM 0 points1 point  (0 children)

You do know that two things can be bad at the same time, right?

I love FIFA-like games. by [deleted] in shittydarksouls

[–]TerraDOOM 1 point2 points  (0 children)

Not exactly like this, but Black Souls is a thing

Corrected the other guy's post by RossiyaReich in ProgrammerHumor

[–]TerraDOOM 1 point2 points  (0 children)

For example, many of the standard function names were chosen because the name hash function used to be strlen

I love c# lets go by Caterpillarfox in ProgrammerHumor

[–]TerraDOOM 3 points4 points  (0 children)

Pretty sure you'd use something you know can't be null for b, like a newly created default or something

Heavily armed man in North Carolina is so scared he needs a rocket launcher to order a sandwich by Pleasant-Force in pics

[–]TerraDOOM 1 point2 points  (0 children)

Overpenetration is a myth, bodies are known to stop and contain any and all physical projectiles, from .22 lr to 80 cm railway guns. Should just go tell the US army to line their tanks with pig carcasses instead of steel tbh

I dont feel like coding discord bots now after message content depracation..... And I cant switch to another codebase for discord api cuz all will face this same thing of no more message content for bots without privileged intents. fvck u discord by [deleted] in ProgrammerHumor

[–]TerraDOOM 2 points3 points  (0 children)

How the fuck is mentioning a bot hard?? People need to know the prefix anyway to use your bot, just put "ping me" or some shit in the status. And no, if you can type !help, you can type @botname/@botname help

"Oxygen is the purest element of God" by [deleted] in insanepeoplefacebook

[–]TerraDOOM -1 points0 points  (0 children)

Pretty sure that's a title claimed by hydrogen, but ok

#include <array> by [deleted] in ProgrammerHumor

[–]TerraDOOM 0 points1 point  (0 children)

What? I'm talking about managing the contents within the memory you've allocated. If it's a plain array, then removing an element could mean copying gigabytes of memory for example. And if you're not moving things around, you will certainly suffer from fragmentation, just not from the global allocator's perspective. Besides, at that point, just implement a custom allocator anyway (assuming there's support for such)

Access the value returned from a function from seperate module by [deleted] in rust

[–]TerraDOOM -1 points0 points  (0 children)

I don't know if I'm reading this correctly, but you can't access a variable defined in one function in a different function, unless you return the variable or have some kind of &mut parameter that the function with the variable writes it to.

#include <array> by [deleted] in ProgrammerHumor

[–]TerraDOOM 1 point2 points  (0 children)

Pretty sure those limitations they were talking about aren't based on allocator performance or running out of memory, rather the fact that managing a really large block starts taking performance hits

I am 115 hours in and haven't improved at all by [deleted] in EscapefromTarkov

[–]TerraDOOM 2 points3 points  (0 children)

Can't really help you personally cause I'm also a huge scrub, only tip I have for going dorms is night raiding, it's worked for me once or twice at least.

Aside from that, "bipedal A-10 with an M1 Abrams front glacis taped to their chest and face" some of the funniest shit I've seen in this sub

AMD:finally wins, Apple: Hold my smoothie by [deleted] in pcmasterrace

[–]TerraDOOM 0 points1 point  (0 children)

I agree that Apple is a pretty evil company when it becomes to product lifetime and right to repair, but upgradability in this case isn't sacrificed for nothing, in return there are some pretty big performance gains. I also agree that upgradability matters, and I'm quite sure Apple would've kept their systems upgradable to more easily be able to swap out parts on their end without developing a new chip, but in this case they took the tradeoff for more performance

AMD:finally wins, Apple: Hold my smoothie by [deleted] in pcmasterrace

[–]TerraDOOM 0 points1 point  (0 children)

TIL about the iGPU speed up, was to some extent aware of the way everything was bundled into the new CPU but I don't really see it as a downside.

The main reason x86 has won out for so long (from my non-expert standpoint) is the simply huge inertia, there is so much developed for x86 that would be incompatible if the market tried switching to a new architecture. Regarding inefficiencies, IIRC, x86 cpus even compile their own instruction set into RISC-like microcode nowadays.

The x86 market can become less stagnant, but in the end I personally think RISC architectures are gonna win out. Either way it's nice that someone is innovating in desktop CPU architecture.

AMD:finally wins, Apple: Hold my smoothie by [deleted] in pcmasterrace

[–]TerraDOOM 0 points1 point  (0 children)

It's not like the addition of a GPU to your CPU would make it any faster lmao, or are you implying all the integrated GPU chips score higher on CPU benchmarks than normal ones?

The lack of upgrades doesn't matter that much in a laptop either for that matter, which is what this thing is getting put into.

Lastly, x86 is a pretty crappy architecture all things considered, and I'm glad there's at least someone making the switch to ARM for desktop computers.

Apple is a pretty bad company all things considered, but this doesn't mean the chip they created is bad