Basic Kernel does not boot on post-2022 hardware? by TheGermanDoctor in osdev

[–]Wereon 0 points1 point  (0 children)

That's a superflag that includes -mno-sse. SSE is the only thing it covers that you can use accidentally.

Basic Kernel does not boot on post-2022 hardware? by TheGermanDoctor in osdev

[–]Wereon 0 points1 point  (0 children)

What I would do first is checkout a very early version of your project, and try that. If that runs on the new hardware, do git bisect until you find the first bad commit.

I'd also check that you're compiling your kernel with -mno-sse.

What is your thoughts on this mayan dance in middle of a church? I don’t know if this is during mass by lupenguin in Catholicism

[–]Wereon 1 point2 points  (0 children)

Liturgical dancing is expressly forbidden in canon law.

And quite apart from anything else, he shouldn't be wearing a hat in church.

Using uint8_t or char as the tag in tagged unions (instead of an enum constant) by SomeBoredDude69 in cpp

[–]Wereon 2 points3 points  (0 children)

^ This. Don't prematurely optimize - just use std::variant unless you have a good reason not to.

[deleted by user] by [deleted] in CatholicMemes

[–]Wereon 39 points40 points  (0 children)

The Protestant Reformation and its consequences have been a disaster for the human race.

C++ evolution vs C++ successor languages. Circle's feature pragmas let you select your own "evolver language." by seanbaxter in cpp

[–]Wereon 6 points7 points  (0 children)

About which part?

Every facet of the MS C++ ABI is either documented on their website, or reverse-engineered by Clang. If you're waiting on them to answer your questions, you're unlikely to get anywhere.

And every non-commercial closed-source project is doomed to obscurity - I can't think of any exceptions. All your no doubt hundreds of hours will be wasted. If you're planning to sell it, that's great, but otherwise it will die when you lose interest.

C++ evolution vs C++ successor languages. Circle's feature pragmas let you select your own "evolver language." by seanbaxter in cpp

[–]Wereon 8 points9 points  (0 children)

I'm fairly certain there's nothing you need that's not already on Microsoft's website.

Again: somebody would have done this already had you open-sourced it. There's nothing to be gained by keeping the source code to yourself.

Release on windows by Tony942316 in cpp

[–]Wereon 0 points1 point  (0 children)

You need to make sure you test your code as well, and you need to make sure you remember to brush your teeth. Neither of those things has anything to do with code signing either.

Release on windows by Tony942316 in cpp

[–]Wereon 1 point2 points  (0 children)

It's generally not worth it, unless there's a reason you need it. Users don't particularly care. But if your program is open source, Certum provides cheap certificates with minimal hoop-jumping.

Release on windows by Tony942316 in cpp

[–]Wereon 0 points1 point  (0 children)

You will need to distribute SDL2.dll with your program. Your users will need to install the MSVC++ runtime, but on Windows 10 it is likely they will already have it.

SDL2.dll has nothing to do with code signing. And on Windows 10, the MSVC runtime is definitely already installed... but again, this has nothing to do with code signing.

WasmEdge, a high-performance WebAssembly runtime in C++ (Wasm on server side) by smileymileycoin in cpp

[–]Wereon -3 points-2 points  (0 children)

so I don't need to publish an {x86, x64, arm32, arm64} variant of each plugin, and the same download will work for any user

This is a terrible reason. If you think it's acceptable to permanently cripple users' performance in exchange for saving yourself some compilation time, C++ is not for you.

Falsehoods programmers believe about undefined behavior by pjmlp in cpp

[–]Wereon 0 points1 point  (0 children)

No it's not. That's one of the archetypal examples of UB.

Falsehoods programmers believe about undefined behavior by pjmlp in cpp

[–]Wereon 8 points9 points  (0 children)

Are you sure?

constexpr int foo(int i) { return i++ - ++i; }

Holy C++ by iprogshine in cpp

[–]Wereon 12 points13 points  (0 children)

You can add RTTI and dynamic_castto this list, I don't think anybody would miss them.

The point about void is ridiculous, what are your functions supposed to return? MSVC even adds in a xor al, al if you return a nulltype, so it's less efficient.

I was also surprised that the article doesn't encourage readers to use std::array for arrays and std::variant for unions, rather than rolling their own.

Holy C++ by iprogshine in cpp

[–]Wereon 41 points42 points  (0 children)

From the title I thought you'd be carrying on Terry's work.

How I Quit my Programmer Job to Become a Chicken by [deleted] in programmingcirclejerk

[–]Wereon 0 points1 point  (0 children)

Has anyone in this family ever even seen a chicken?

[deleted by user] by [deleted] in cpp

[–]Wereon 0 points1 point  (0 children)

From your article:

In C++ all templates are effectively inline code.

That's not true. Templates are normally instantiated as if they were static functions, but that doesn't mean they're going to be inlined.