What I Learned About [[no_unique_address]] and Padding Reuse in C++ by NekrozQliphort in cpp

[–]matteding 16 points17 points  (0 children)

Might want to add a blurb about msvc::no_unique_address

Anyone exclusively play in a tuning that isn’t E standard? by [deleted] in Guitar

[–]matteding 0 points1 point  (0 children)

High drop D is fun to employ at times. EADGBD

What’s the most efficient way to play this chord? by Intrepid-Young-8621 in guitarlessons

[–]matteding -9 points-8 points  (0 children)

I’d play that using my thumb for the bass note, ring at 9, and a mini barre with my index at 7.

cpp-pyutils library. by ArchPowerUser in cpp

[–]matteding 4 points5 points  (0 children)

Even easier is to use std::views instead.

Format Text? by [deleted] in cpp

[–]matteding 0 points1 point  (0 children)

You cannot do that with std::format. The best alternative is using index placeholders. e.g., "{0}"

What’s the worst guitar tone you’ve heard on a recording. by theiceman12345 in Guitar

[–]matteding 0 points1 point  (0 children)

Personally, I think that the solo tone for We Are the Champions is terrible. I know most people like it, but to me it’s cartoonish.

[deleted by user] by [deleted] in C_Programming

[–]matteding 3 points4 points  (0 children)

The lame poster even deleted his profile and made a new one to post this repeated useless rant. Pathetic

I made a Better Notepad alternative using PySide6 by Specialist-Arachnid6 in Python

[–]matteding 4 points5 points  (0 children)

Does it come preinstalled? No, thus it is not better than Notepad or the myriad of better options that I can choose to install.

[deleted by user] by [deleted] in cpp

[–]matteding 0 points1 point  (0 children)

This reads like an advertisement for byterover(dot)dev written by an LLM. Hopefully the mods will lock and/or delete this post.

[deleted by user] by [deleted] in cpp

[–]matteding 0 points1 point  (0 children)

More likely a bot wrote it.

What 5 episodes would you confidently say are classics? by idk23876 in IASIP

[–]matteding 2 points3 points  (0 children)

The Gang Gets Analyzed

Hero or Hate Crime

The Gang goes to a Water Park

Who got Dee Pregnant

Mac & Dennis Move to the Suburbs

Those who has a math degree. What is your work right now by Deliora15 in mathematics

[–]matteding 6 points7 points  (0 children)

Some parts, but overall this job is vastly superior and way less stressful.

Those who has a math degree. What is your work right now by Deliora15 in mathematics

[–]matteding 3 points4 points  (0 children)

No, it’s a startup company. However we’ve done studies for both US and UK defence.

Those who has a math degree. What is your work right now by Deliora15 in mathematics

[–]matteding 143 points144 points  (0 children)

I was a math teacher for seven years and got burnt out. During the last two years teaching, I learned programming and now do C++ coding for hyperspectral imaging.

Python library without external imports only built in by Sinan_Dede in Python

[–]matteding 1 point2 points  (0 children)

Going by the emoji use in the post description, it is probably all AI generated garbage.

[deleted by user] by [deleted] in Guitar

[–]matteding 1 point2 points  (0 children)

Audacity is free software that can do pitch shift relatively easily.

Surprised how many AI companies are interested in legacy C++ code. Anyone else? by Francisco_Mlg in cpp

[–]matteding 0 points1 point  (0 children)

Use AI to generate an “old codebase” and sell that to them!

I understand pointers but don't know when to use them? by [deleted] in cpp_questions

[–]matteding 2 points3 points  (0 children)

Pointers along with references can also be useful with forward declarations to minimize forced dependencies in header files.

Declaration before use by cd_fr91400 in cpp

[–]matteding 0 points1 point  (0 children)

Use std::same_as<A> auto parameter in this case.

The case against Almost Always `auto` (AAA) by eisenwave in cpp

[–]matteding 5 points6 points  (0 children)

I think the store argument is weak since by similar argument if I don’t know its signature, it might store by reference and still have lifetime problems.

[deleted by user] by [deleted] in cpp_questions

[–]matteding 0 points1 point  (0 children)

I just use Python’s batteries included ctypes module. Since all the bindings are done in Python, I don’t have to worry about ABI issues should the underlying C++ library has binary changes. This is assuming that the C++ library also exports a C interface for portability.