« first day (3752 days earlier)      last day (1179 days later) » 

12:36 AM
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.
 
Didn't Thomas Aquiance comment on "the fool" who didn't believe in god?
 
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.
 
See Anselm's Fool
 
1:16 AM
Dude, it's Friday night :D
 
:-(
 
You don't like Friday night?
If you ever feel sad, then you should watch this video.
 
I was going to meet some friends but didn't. Now I'm going to work all night. Maybe do some more bikesheding.
 
 
1 hour later…
2:30 AM
This is cute:
13
A: C++ range based loop with special case for first item?

Joakim ThorénMaybe 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...

 
3:07 AM
To prove you're human, please click all the number pairs that appear together in your Social Security number.
2
 
 
1 hour later…
4:18 AM
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?
 
 
5 hours later…
10:00 AM
Morning
C++23 might have even more free moves and RVO than C++20
Hope you all have a good day
 
10:13 AM
evening
from magnum graphics I learned about user defined literals in C++11. Magnum overrides one rgbf, so that 0xff0000_rgbf becomes 1.0,0.0,0.0.
@Morwenn some features of C++ make me say wow sometimes.
 
if it's only "wow" it's still mostly ok
 
10:48 AM
> Not all code is variadic templates. People do still, on occasion, I am told, write functions.
 
 
4 hours later…
user7659542
3:07 PM
is SIMD supported by single core CPUs?
 
user7659542
According to wikipedia: "describes computers with multiple processing elements that perform the same operation on multiple data points simultaneously."
 
user7659542
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."
 
user7659542
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.
 
@traducerad Yes.... technically MMX is on some of the original Pentiums
 
user7659542
@Mgetz Why "technically"?
 
3:15 PM
@traducerad because the first steppings didn't have MMX
 
user7659542
I see
 
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...
it was introduced with the P55C stepping
 
user7659542
Is SIMD actually a type of CPU, like they state on the wikipedia page or is it a specific type of instruction inside an instruction set?
 
user7659542
Based on what I have read so far, I have the impression it is the latter
 
user7659542
@Mgetz hehe, I wasn t even born at that time
 
user7659542
3:17 PM
1993
 
@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
 
user7659542
I always hesitate about the order of the compilation flags when compiling stuff eg:
 
user7659542
-Wall -Wextra -Wpedantic -Werror does not turn warnings into errors
 
user7659542
while -Werror -Wall -Wextra -Wpedantic works fine
 
user7659542
I have the same hesitation with many other flags. Is there some sort of rule to know regarding the order?
 
user7659542
3:32 PM
@CaptainGiraffe I love her too
 
user7659542
@Ernestas sharing is caring
 
user7659542
weird, now both orders of flags suddenly work
 
user7659542
4:02 PM
@Mikhail no difference when compiling with architecture flags and enabling neon
 
user7659542
as if a limit was already reached prior to specifying the above things
 
6:49 PM
@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.
 
 
1 hour later…
8:23 PM
I'm working on updating some old code. One part of it is cryptographic code that does some ugly memsets to clear memory after use for security.
I've moved it to the object's destructor instead, but it seems that it would be a nice feature to have generically.
I'm thinking of using C++20 concepts to be able to tag "zero this memory after use" for a destructor.
Does something like this already exist somewhere? Closest I found was this:
6
Q: Template to perform automatic memory overwrite on destruction

SumaIt 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...

 
9:03 PM
@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.
 
9:50 PM
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.
 
10:04 PM
TIL about Church fans.
 
@StackedCrooked Pretty common here in the southern US.
 
Cool, I never knew that.
 
But you should see the hats!
Weird -- all the models are white women.
 
Some of those hats are pretty cool though.
 
Here's a bit more culture for ya: southernliving.com/culture/church-hats
Say, aren't you the person behind Coliru?
I've been thinking about creating an online tool for a different purpose. What did you use for the editor front end?
 
10:36 PM
@Edward Probably all made in China, and Chinese manufacturers used white models, thought they would sell more in the western countries.
 
Could be. It's still weird! :)
 
10:52 PM
@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.
 
It also completely disregards the cultural context of this glorious tradition. There's a reason they're called "crowns."
 
Also, a few hats seem to be photoshopped on to the model.
Probably church hats don't sell much, thus need to minimise costs. Use 1 model for everything if you don't have someone with photoshopping skills.
 
@TelKitty When you don't want to pay for models, just use mannequins.
 
Model to Mannequin is like in person conference vs online conference. Just not quite the same.
 
11:12 PM
@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.
 

« first day (3752 days earlier)      last day (1179 days later) »