Short C++17 question, expert help wanted
I have been doing some research on the inline keyword in C++, since my IDE (CLion) is... giving it a lot of preferential treatment.
From what I have read, correct me if I am wrong, it is primarily an optimization **when used on functions**. Forcing the compiler to insert the function contents directly wherever it's called when it assembles into opcode, removing the overhead of calling a subroutine, but potentially decreasing efficiency in other ways--low level CPU cache/branch predict stuff the compiler will probably decide for me anyway and that I don't have a great understanding of yet.
However, I cannot find a super clear answer on what cons this may have for *variables*.
Say I have a static variable in a namespace:
namespace stuff {
uint8_t x = 69;
}
What are some potential DRAWBACKS, if any, to making this inline? I can only find information on advantages, but that it should otherwise be left alone because the compiler will do it anyway if it's analysis deems necessary. The consensus seems to be "none" but I want to be sure because there is a lot of bad advice out there.
Thanks
found a bug that lets you skip an entire boss battle, thus preventing the game from being finished :)
thankfully it's not something that a regular player would be able to encounter because of another bug, which i also fixed. but you can very easily do that in debug mode and then you can't actually beat the game after that unless you modify your save file or open the engine and make an alternative way to get the key item.
Okay so I've tried about a million different things and everything either just A. goes super speed, B. Freezes after Tick #2 or C. Behaves exactly the same
I am 100% certain this should be working because it is exactly what I did with the FPS cap...
@noyoushutthefuckupdad I just know for a fact whatever Trump does or doesn't do, this administration is going to be worse than 2017-2021 because the division in the right are more apparent than ever, people still think he is our savior, and we have a very vocal minority who thinks that they are on the verge of extermination, which means that we are probably going to see more pandering to them because nobody what to be blamed for someone's suicide.
@bonifartius Are they independent from EU funding. Remember that the EU funds a lot of FOSS projects which gives them a good number of influence in the FOSS community.
@PurpCat I'm probably going to try it too, just to see if it's worth recommending. Linux Mint has been my go to recommendation for years, but them actually working with Mozilla and censoring Lunduke's last name on their forums has given me second thoughts.
@bonifartius I do not trust any FOSS convention hosted in the EU.
@berkberkman @PurpCat @33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 To be fair, his videos started to become more philosophy based ever since he started homesteading. It was never really a tech channel. It was more of a philosophy/life-advice channel with some Linux tutorials in them.
@PurpCat @33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 He got into some hot water back in 2018 where he made full podcasts exclusive to donors on Patreon while only posting clips on YouTube. It got so bad that people were posting antisemitic slurs in his comments so he disabled comments on all of his videos. I think that's when Luke Smith got popular because he was basically the polar opposite of Lunduke in a lot of ways.
He seemed to make a comeback in recent years because he has been exposing woke and pro-WEF agendas in the tech-industry (FOSS or otherwise), and Luke Smith has stopped making videos as of 2023.
@PurpCat What really perked my interest was not their anti-woke stance, but rather there stance on being independent form Big-Tech as much as possible. Case in point, they bundle Ungoogled-Chromium as the default browser instead of vanilla Firefox like every other distro does. Granted, it's not a perfect solution since it's still reliant on Chromium's upstream, but still. If LadyBird becomes a viable alternative, I picture them switching to that instead.
@PurpCat Oh that. I think this is different because this is an actual "professional" project run by a non-profit organization with a president going by his real name.
@PurpCat What was the first one?
@RustyCrab @david Schools tend to be dead zones (whether it's intentional or not or how they do it, I don't know), so you are stuck using their Wi-Fi if you want to access the Internet.
All it takes is one tech savvy kid to teach other kids how to do it, and that knowledge spreads like a virus. I remember being in high school ten years ago, and even then, jailbreaking iPhones was common knowledge.
@RustyCrab @david I have family members who work in education and they tell me that VPNs are a very popular tool to bypass the school's firewall. All the kids know how to use them.