|
C++17 has std::execution::par policy for the many std algorithms
For example the std::for_each algorithm can be executed in parallel:
std::array<int,5> jobs { 1000, 900, 1030, 800, 100 };
std::for_each(
std::execution::par,
std::begin( jobs ), std::end( jobs ),
[]( auto Val ) {
}
);
Cheers
|
|
|
|
|
It's about testing.
After writing a few "enumerators" there is no mystery.
(Identified, and MSFT acknowledges, I found an issue in Net Framework 4.7.2 that negated the whole "is 100% compatible" with Net Core 3.0, after all the "forum experts" (not here) said blah, blah because they assumed it must be blah, blah).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
... Which was? Links are always appreciated 😉
|
|
|
|
|
The problem reported by the Daily news applies to all computer languages. While most computer languages honor simple algebraic operation orders => 1+2*3+4 becomes 1 + (2*3) + 4, no computer language can honor order of operations at a high level when it is fed those operations discreetly and asked for a result before receiving the next set of data and operations.
I've seen this type of issue occur in Excel, SQL Server, Scheme (Lisp), Prolog, Java, C++, C#.
In the case of this Python script, it was being asked to process the contents of each file as a unit and generate an intermediate result, which was then passed to the processing of the next file. The flaw in the script was assuming that all operating systems sort file enumerations in the same manner.
Lisp, by the way, is the only language I can think of that doesn't honor algebraic ordering, but it doesn't need to because of a syntax that forces the programmer to specify the desired order of operations.
|
|
|
|
|
obermd wrote: Lisp, by the way, is the only language I can think of that doesn't honor algebraic ordering, Count in APL as well. Strict right to left, no operator priorities.
|
|
|
|
|
Is a stepdad a faux Pa?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A-parent-ly so.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Ask the Stepford wives
|
|
|
|
|
Not in my case. My biological father hasn't had an interest in me since I was nine. My stepdad keeps up a relationship with me even though he and my mother divorced 25 years ago.
There's nothing faux about my pa.
Software Zen: delete this;
|
|
|
|
|
Is a stepsister a misstep?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Even your own sister can be a misstep!
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
If it is a misstep by your father, it is usually called a half sister, not a step sister.
If it was your misstep, then any variant of "sister" is too much of an euphemism (to my taste).
|
|
|
|
|
You, Sir, have a dirty mind.
Try reading it as two words (Miss Step).
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Adam was hanging around the garden of Eden feeling very lonely... God asked him, "What's wrong with you?" Adam said he didn't have anyone to talk to. God said that He was going to make Adam a companion and that it would be a woman.
He said, "This pretty lady will gather food for you, she will cook for you, and when you discover clothing, she will wash it for you. She will always agree with every decision you make and she will not nag you, and will always be the first to admit she was wrong when you've had a disagreement. She will praise you! She will bear your children. and never ask you to get up in the middle of the night to take care of them. She will never have a headache and will freely give you love and passion whenever you need it."
Adam asked God, "What will a woman like this cost?"
God replied, "An arm and a leg."
Then Adam asked, "What can I get for a rib?"
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I do notice that Eve was never given an opportunity to decide anything here ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You usually don't get to decide very much as long as you are still on the drawing board. Besides that, any criticism of the Allmighty is way out of line.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Let's kill it right there, before it strays into Religion, which is forbidden here (and for good reasons, I might add).
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What a shame, as deeply religious as I always am.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
You're afraid an Adam and Eve joke will "stray into religion"?
|
|
|
|
|
So every company in the Netherlands has a VAT-number, which I also have and which identifies me at the tax authorities.
The issue with these VAT-numbers is that it contains people's citizen service number, which is used by the government to uniquely identify a person.
It's also used on passports and banks and doctors must use it too.
Other companies may not ask for, or use, your citizen number (although it used to be on my salary specification, what's up with that?)
Anyway, there's no need to give it to everyone you do business with, which is what you do with your VAT-number because it must be placed on invoices.
So the Dutch tax authorities just send me a new VAT-number which does not include my personal ID.
Which is great, except... I'm supposed to share this new number with my clients, starting next year.
But I still have to use the old number for any correspondence with the tax authorities...
So now I have TWO NUMBERS!
My guess is that my old ID is a primary key in a SQL database, which they can't just change for so many users (and that's why you shouldn't use functional keys as primary keys).
Because their internal software uses the old ID everywhere they can't just change it to look at the new ID (although how hard can it be?).
The new ID is just a new field that's right next to the old ID.
So now everyone just has two IDs because that's certainly more maintainable.
The tax authorities had this slogan, freely translated, "we can't make it more fun, but we can make it easier."
Apparently, they can't make it easier either
|
|
|
|
|
I't pretty normal actually, in Italy companies' VAT number has always been totally different from people's "VAT Number".
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I think you misunderstood.
I have a "personal ID".
My company has a "VAT ID", which includes the personal ID.
To get rid of the personal ID in the VAT ID I got a new VAT ID for my company.
But I also still have to use the old VAT ID.
So now I have one personal ID and two VAT IDs for my company.
The two VAT IDs have the same purpose, except one is used for communication with tax authorities while the other is used for communication with clients.
Is it normal to have two VAT IDs?
|
|
|
|
|
Having one set of books for the "revenooers" and one for yourself is standard practice in many places. This just shows how advanced the Dutch authorities are!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
|
Quote: I'm calling this a fail
If you ever have kids, don't use this naming convention!
"Fail Rossel, come in for dinner!"
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|