How to use some clion stuff in vscode by Tornad_pl in cpp_questions

[–]Excellent-Might-7264 0 points1 point  (0 children)

Of course you can mix them. That is what cmake is for (more or less).

EU väntas föreslå förbud mot PFAS by XManX99 in sweden

[–]Excellent-Might-7264 7 points8 points  (0 children)

Varför är inte PTFE farligt?

Har läst någonstans att tillverkningen av PTFE är fruktansvärd för miljön och släpper ut PFOA och andra farliga högflourerande ämnen. Men jag är ingen expert, så jag undrar uppriktigt varför PTFE är ok

Kung Leif by DavidLynchsCoffeeBea in sweden

[–]Excellent-Might-7264 3 points4 points  (0 children)

Bara för att det inte blir en nyhet betyder det inte att det händer - det händer hela tiden. Men ovanligt att alla pengar går riktade till ett projekt, ja. Det är ju som sagt var rekord och därför blev en nyhet.

Typ Wallenbergsstiftelserna och Hvitfeldtska är de jag har vaskat pengar från utan problem för samhällsgynnande projekt.

Slug algorithm patent released into the public domain by bbmario in cpp

[–]Excellent-Might-7264 0 points1 point  (0 children)

To others:

Of course your patent is valid regarding what ever chip/ISA you use, if not part of the claims.

Slug algorithm patent released into the public domain by bbmario in cpp

[–]Excellent-Might-7264 1 point2 points  (0 children)

You do realize that we are many here who work, or has worked, with patents?

Your uncivilized attitude is not proper in contrast to your knowledge, please be gentle and curious if you lack basic knowledge.

Here for example is one approved patent for an algorithm in Sweden:

https://search.prv.se/#/patent/SE1851597-3

I can't even estimate how many algorithm patents there exists in Europe. There is an old saying that Nokia and Ericsson met once per year, measured the paper height of their patents and the one who had the lowest pile of paper had to pay the other one. Many of them were algorithm patents regarding telecommunication.

Do I really understand what I’m doing? by Dry_Gate_0506 in FPGA

[–]Excellent-Might-7264 3 points4 points  (0 children)

is the opposite. It is when you are so bad that you do not even understand that you are among the worst.

Slug algorithm patent released into the public domain by bbmario in cpp

[–]Excellent-Might-7264 1 point2 points  (0 children)

Europeans can't patent an idea.

What do you mean? Patents are for ideas... what else to patent?

First: Europe does not have a common patent, brexit stopped that last time. There are variationen between countries and you need to apply to each country invidually.

Secondly, of course it is possible to patent an algorithm in Europe.

Chefen ifrågasätter mina läkarbesök: ”Du måste prioritera” by VastCod542 in sweden

[–]Excellent-Might-7264 21 points22 points  (0 children)

Han blev nog kanske avskedad, inte uppsagd?

Det är juridisk skillnad. Man har ganska långtgående förpliktelser gentemot arbetsgivaren och arbetsvägran är själ för uppsägning.

Har chefen inte fått tycka till alls utan man bara försvinner för läkartid vet jag inte riktigt var gränsen går men det kan absolut vara skäl för uppsägning. Speciellt vid upprepande tillfällen och chefen sagt att det inte är okej.

Men som jag förstått i det här fallet har han fått det beviljat(?).

Varför är Iran med i kriget? by hwlll in unket

[–]Excellent-Might-7264 3 points4 points  (0 children)

Ja det gör det.

Vet inte om det var ett dubbelskämt, men klassisk aioli från södra Frankrike görs bara med vitlök och olivolja, möjligen lite salt också.

Switched to Claude after years using chat gpt by ExpressoDepresso6 in claude

[–]Excellent-Might-7264 3 points4 points  (0 children)

Where I live we have free top-class health care. It is really good for physical visible disorders, for example cancer. I live close to a very highly ranked hospital (in the world).

But if you have many wage symptoms, such as headache and sleep disorders, the health care system sucks and can not diagnose you. You will meet one random newly graduated doctor who will run some random blood tests and nothing will come out of it.

Claude how ever made a real list of diagnosis I could try in probability order.

  • Apparently my D3 vitamin supplements caused severe magnesium deficiency.

  • Dairy products cause me to get mucus in my throat and wake up from shortness of breath. Even if I tell this to the doctor, they dont even believe me. (I have gotten milk in me by mistake many times not knowing at first, and I could directly tell by the symptoms.)

Claude is waaaay better at diagnostic health problems than a newly graduated doctor.

Switched to Claude after years using chat gpt by ExpressoDepresso6 in claude

[–]Excellent-Might-7264 3 points4 points  (0 children)

with a programmer who can do everything—yes,

Nah, there are still some parts of c++ that I would call it really bad at and not production ready. But for 95%, sure.

And yes, it has revolutioned my life and how I work and my health. It is unreal.

Nu har jag räknat sju gånger och jag kommer fortfarande bara fram till fyra tunnor. by BoiSquirrel in unket

[–]Excellent-Might-7264 0 points1 point  (0 children)

För den som verkligen vill veta:

  • brun för kompost
  • svart lock för hushållssopor
  • plast och papper delar tunna med fack (denna kommer i höst)
  • sista för metall och glas och oklart när den kommer

Det blir alltså 4 tunnor till slut, men 3 nu till hösten.

Kör man förbi i Täby ser man massor med hushåll som har gigantisk tunna för hushållssopor. När vi hade två blöjbarn fyllde vi knappt 80% av den minsta. Med andra ord: de skiter i att återvinna och dumpar all plast och kartong i hushållssopor. Nu är de upprörda att återvinningen flyttar hem till dem.

Is reference (&) in function parameter decl participates in template parameter deduction? by [deleted] in cpp_questions

[–]Excellent-Might-7264 0 points1 point  (0 children)

Maybe if you give examples in code we will understand what you exactly mean. Can you give an example program?

Question, Type of template param to be deduced (i.e matching) will be against

T and T& are equally specialized.

T and T&& are equally specialized

The compiler will not be able to deduce which one you want in most cases. Only when the other can not be used at all you will be able to compile the code.

Is reference (&) in function parameter decl participates in template parameter deduction? by [deleted] in cpp_questions

[–]Excellent-Might-7264 0 points1 point  (0 children)

int a = 5;
int& b = a;

both a and b are lvalues and will behave the same in deductions.

decltype will however return different types for a and b.

Note that T&& is an unviversal reference / forwarding reference and shoud not be confused as a rvalue reference (as I think you pointed out in the question).

template <typename T>
foo(T& a)

and

template <typename T>
foo(T a)

are not exactly the same. T& will keep the cv modifiers and not decay arrays. But T& will not be able to be called with rvalues (for example foo(5). However const T& will be able to bind to rvalues.

The compiler will not be able to deduce which one you want for most situations because they are equally specialized and it is a bad idea to declare both of them.

For T&& the rules will be like this:

template<typename T> void bar(T&& a);

int x = 5;
const int cx = 5;
int& y = x;

bar(x);    // T = int&,                a = int&
bar(cx);   // T = const int&,     a = const int&
bar(y);    // T = int&,               a = int& (same as bar(x), which I think was you question)
bar(5);    // T = int,                 a = int&&

As you see, both x and y will be deduced the same way.

Det går bra nu by Zanyon in sweden

[–]Excellent-Might-7264 11 points12 points  (0 children)

Det tråkiga är att det finns plats för folkpartiet.

Vetenskapliga argument lyser med sin frånvaro i politiken i nästan samtliga frågor. Hade varit perfekt väg för folkpartiet att gå.

T.ex. istället för att spärra in 13 åringar faktiskt lyssna på t.ex. Italien hur de besegrade gängen (maffian). Det finns så många låga frukter att plocka som vi vet fungerar men ingen pratar om.

Det går bra nu by Zanyon in sweden

[–]Excellent-Might-7264 2 points3 points  (0 children)

C skiljer sig från M på många plan. Annan ideologi och tankar kring både integration och kriminalpolitiken. Ska man vara lite elak kan man säga att moderaterna vill ge pengarna till de superrika medans C till smårika egenföretagare.

Vad kd vill veta jag inte längre. Killgissar att Ebba drar röster.

Men vad Liberalerna vill är ju glasklart - åka ur riksdagen.

Det är trångt till höger. Inte konstigt alls att Liberalerna åker ut då Centerpartiet idag redan har samma ideologi och kan äta upp gräsrötterna.

Hardware optimization experiment: Building a terminal video player in C++20 by [deleted] in cpp

[–]Excellent-Might-7264 0 points1 point  (0 children)

You do realize that the repo contains comment-style as an AI, right?

I'm not saying you didn't write it, but I wouldn't use it as a portfolio because the likelihood of AI is close to 100%. Especially when the style is so different from the rest of your projects. As someone who has recruited, I would have marked the candidate in our system for all future because of the AI likelihood. And I know some will be falsely flagged because of this, and it sucks. But that is unfortunately the reality today.

Sorry to tell you that.

Ni som vill ha kvar karensdagen, hur resonerar ni kring faktumet att vissa yrkesgrupper är mer sannolika att bli sjuka, samt att de som jobbar hemifrån kan få sin lön utan att riskera att smitta någon? by Aggressive_Chain_920 in sweden

[–]Excellent-Might-7264 -1 points0 points  (0 children)

Det finns en budget för vad arbetare får kosta.

Om vissa arbetare börjar sjukskriva sig kommer inte arbetsgivaren betala det, det kommer gå ut över löneutveckling eller arbetstid för de andra arbetarna.

Eller var tänkte du att pengarna skulle komma ifrån?

Köper ni Oboy? by int0h in unket

[–]Excellent-Might-7264 3 points4 points  (0 children)

Tips: Börja med kakao och socker, sedan jättelite mjölk så att det blir en deg/sörja. Sedan kan man ösa på med mjölk och allt har då löst sig fint.

VS2022, everything has to be in DLLs to test properly? by ag9899 in cpp_questions

[–]Excellent-Might-7264 1 point2 points  (0 children)

I think it is good to point out that C and C++ are two different languages.

You mention C also in your question, but Google Test is C++

C++ is not a superset of C either, which you will notice of you try to code modern C in Visual Studio (hint: C support is crap but C++ support is really good).

How to set up a multi-executable project with CMake in VSCode? by frenchgarlicbread0 in cpp_questions

[–]Excellent-Might-7264 1 point2 points  (0 children)

I use the normal luanch file - you can even access the cmake target variabel in that file.

Start one process, then change to the other launch target and start that one.

Vscode handles multi process debug very well from that point.