There's this anime called "Maria the virgin witch". It's a comedy with elements of fantasy and history mixed in. It's about the 100 years war and how she tried to stop people from fighting. It's not a great anime, slightly above average, but I enjoyed it.
One of the interesting characters was a scholar in theology. He was interrogating the witch, and she said something like "God doesn't exist". The notion of God not existing was so unfathomable to him that it triggered a chain of thoughts in him that drove him mad and a few weeks later he concluded that he is God himself.
Also, according to Youtube Skallagrim this anime contains the most realistic depiction of arms and armor and fighting in any media he's even seen. (And that for a very stupid comedy anime.)
@Mikhail lol, I don't know that
@Mikhail Wait, I vaguely recall that's one of Solomon's proverbs. Or at least reminds me of.
Maybe a for_first_then_each is what you're looking for? It takes your range in terms of iterators and applies the first function to the first element and the second function to the rest.
#include <iostream>
#include <vector>
template<typename BeginIt, typename EndIt, typename FirstFun, typename...
Should have thought that farming is a lot to do with geology.
I could but wondering whether education is leaning too much away from nature science.
Maybe we are brainwashed from very young to be part of this mega society. We have not been taught enough of how nature works.
I think it should be made a human right to access the existing knowledge, especially long knowing nature science. It's not saying languages and arts are not important, but they are only important in human society.
I feel like we are mass produced in primary school and high school. Quality controlled through exams. Then shaped into different components in the society through tertiary education. We have never been taught to live independently. Most of us don't know how to construct a dwelling or farm for food, we don't know how to make clothing out of raw material.
Many social animals are capable of living in singularity - cat for example, or lone wolf. How many lone person in the wild do you know?
According to wikipedia: "describes computers with multiple processing elements that perform the same operation on multiple data points simultaneously."
Yet, when reading intel's page about vectorization, it says" Modern CPUs provide direct support for vector operations where a single instruction is applied to multiple data (SIMD). For example, a CPU with a 512 bit register could hold 16 32- bit single precision doubles and do a single calculation."
To me Intel's explanation means you can have SIMD on a single core CPU. But wikipedia seems -to me- to state the opposite, based on that single line I posted above.
The original Pentium microprocessor was introduced by Intel on March 22, 1993. As a direct extension of the 80486 architecture, it was the first superscalar x86 microarchitecture and included dual integer pipelines, a faster floating-point unit, wider data bus, separate code and data caches as well as features for further reduced address calculation latency.
Considered the fifth main generation in the 8086 compatible line of processors, its implementation and microarchitecture was called P5. The instruction set was more often referred to as i586 (very close to i486 and i386, with only a fe...
@traducerad tomato tomahto. In most general purpose CPUs I'd say it's just a set of instructions. But some have explict data paths for it (AVX etc.). But it's not like it's SIMT like a GPU
@traducerad SIMD was originally a separate type of CPU. Crays were built around doing SIMD processing, so they had three complete sets of 64 registers apiece, and almost all math instructions (and such) carried out an operation on a complete set of 64 registers at once. The load/store units could also run in parallel, so the normal plan was that each clock you loaded operands into one set of registers, carried out an operation on the second set, and stored results from the third.
To support that, they didn't use cache either--instead, the entire main memory was SRAM, with a number of separate memory channels, so it could keep up with loading one set and storing another set of 64 registers apiece, every clock cycle. As a result, a 1 GHz Cray 4 could sustain 64 gigaflops pretty much indefinitely.
But, in the case of the Pentium/MMX, things were just a tad different, to put it nicely. They didn't add any new registers at all. Instead, they reused the existing x87 floating point registers, so you had to (among other things) execute a special mode-change instruction in between using MMX instructions and using x87 instructions. That also meant MMX only operated on 64-bits of operands at a time, so you could do 8 bytes, 4 shorts, 2 float/ints or on 1 double in any given clock.
So quite a bit of "MMX" basically just consisted of taking existing operations, and disabling the carry bit at byte, word or double-word boundaries.
Then they added instructions to pack and unpack those (and such) and that was about it. But, there was no attempt at all at designing the entire system to sustain high-bandwidth processing like the Crays did.
As a result, MMX was kind of handy for a few specific operations (mostly codecs) but difficult to generalize. And switching between MMX and x87 mode was fairly slow, so an awful lot of the time MMX worked out to be a net loss.
It is a common pattern to use templates to enforce the compiler to initialize primitive / POD types values (https://stackoverflow.com/a/11493744/16673 or http://www.codeproject.com/Articles/825/Using-templates-for-initialization).
Does a similar pattern exist that could be used to erase the valu...
@Edward I'm not sure concepts really support this (or at least are intended to support it well, anyway). For the most part, concepts are syntactic. It would be easy to enforce an object supporting something like foo.clear_memory(), but the basic difference between "concepts" and "concepts lite" is that concepts lite don't attempt to enforce semantics, only syntax.
I'm thinking that I'd create a custom concept like destructor_overwrites and then create one or more templated containers that support it, using something exactly like foo.clear_memory() but with flexibility for how it's accomplished.
Don't know if that makes more sense.
If I write something implementing this watch for it on CodeReview.
@Edward It is pretty unusual. Any more, even if it wasn't something that originated in a particular non-white community, you'd pretty much expect to see at least a little more diversity among the models.
@TelKitty No, they're not the same--but it's still a better way to keep costs low. Obvious Photoshopping is off-putting, and distracts people from the product.