« first day (3074 days earlier)      last day (1871 days later) » 

12:20 AM
@Mikhail The current trunk build has an option to pin the I/O buffers to specific NUMA nodes. So assuming the storage configuration is exposed as N different logical paths, you can put the I/O buffers on the NUMA nodes that are closest to where the physical device is. It might be possible to abuse this to get the right striping and placement to maximize the bandwidth.
The pin-to-node functionality can easily be generalized to hit specific virtual/physical addresses assuming it can be mmapped with the right OS call.
So if you need X parallel stripes in different channels to maximize the bandwidth. No problem.
The I/O buffers that I'm talking about here are the ones manually managed by the program. It reads/writes the data from/to the buffer. And them DMAs directly from buffer to/from device.
 
Yeah one detail you may or may not be aware of is that the striping is usually done with a command that is applied on a folder (in bash).
 
 
3 hours later…
3:34 AM
What's the difference between a pillar and a pole (in utility/electricity transmission)?
 
3:53 AM
@Puppy Yeah I know. I was joking as the description on that website almost made 'Prickly pear cactus' sound like a medicine that cure all disease.
 
4:06 AM
Local news paper such as smh.com.au breeds hate and racism. This newspaper site is heavily moderated, but allows racist comments such as this:
I hate to ruin a good story but we have elected members of Parliament mumbling hate most days of the week including one who wore a burka...
He is not a TERRORIST he is a mass murderer, it wasn't an act of terrorism it was a crime of hate.
Sometimes this newspaper only allows far right view comments. They have also lost a defamation law suit against minority recently. I am looking forward to hear their bankrupcy soon.
 
4:28 AM
Also I am not very obedient, because I have not been rewarded enough for being obedient and not punished enough for not being so. I have seen people with my ability taming lions and elephant and I have been offered a lollipop if I obey (because that's what most other people have been offered to). Freaking insult. Next time if you don't bring something the size of a kangaroo, pardon my rudeness for ignoring you.
(No one in this room, so I can rant for the whole internet to hear) - thick skinned genius
 
4:57 AM
Folks. I just encountered the most egregious Qt bug to date
Fuck, this shit, Qt had one job to do it and it won't even completely update the GUI.
Now if I press the buttons slowly, the phantom button doesn't appear.
FUCK
I put in awidget->setHidden(true); before the remove event which fixes the rendering issue...
 
 
1 hour later…
6:18 AM
Married(Father (Richard),Mother (John))
states that Richard the Lionheart’s father is married to King John’s mother (again, under asuitable interpretation).
Whoever has written this is not a real programmer. When I read the first sentence, I thought it was talking about a same sex marriage with Richard being the father and John being the mother. Turns out, it's about Richard's father is married to John’s mother.
As a pro programmer, you would have written it like this:
Married(Richard.Father, John.Mother);
Being green, don't turn on heater this winter, get a pig! </trollolo>
 
 
2 hours later…
8:35 AM
@Mikhail I just saw the most unreadable font ever
 
9:13 AM
 
9:50 AM
hello guys
quick question: why is the move constructor not called here? (or is it? -- however, the breakpoint is not hit inside the move constructor)
class Data {
  char *data;

public:
  Data(): data{nullptr} {}

  explicit Data(const char *str) {
    size_t size = std::strlen(str) + 1;
    data = new char[size];
    std::memcpy(data, str, size);
  }

  Data(const Data &other) {
    size_t size = strlen(other.data) + 1;
    data = new char[size];
    memcpy(data, other.data, size);
  }

  Data(Data&& other): Data() {
    swap(*this, other); // breakpoint here not hit
  }

  ~Data() {
    delete[] data;
  }

  friend void swap(Data& first, Data &second) {
I've been trying to undestand move semantics and the call to foo() seems like an rvalue to me
 
10:06 AM
probably RVO/NRVO
broadly, the compiler optimised out the move
it can do this even in debug mode
 
10:18 AM
@Puppy thank you very much! I will give it a read then
 
 
4 hours later…
1:59 PM
@Victor a slight tweak on your example, this time featuring an immovable type
 
2:19 PM
I have also marked the move constructor deleted just to make sure and indeed I saw them that it is required although not used in that scenario.
 
do keep in mind this is all contingent on which version of C++ you're using
 
 
7 hours later…
9:01 PM
Only a few seconds has been past from post. Why down-voted? Attack with script without reading the content? — ynn 43 secs ago
/cc @Mysticial
 
haha
 
9:54 PM
2
Q: Can Boost::thread::mutex unlock a mutex if it doesn't have the ownership?

Anselmo ParkAccording to the documents of Boost.Thread, unlock() seems to be called by the thread which owns the mutex owns. Requires: The current thread owns m. But, in my test, other thread can unlock the mutex. include <iostream> #include <boost/thread/thread.hpp> boost::mutex m; boost::mutex...

This is pretty funny, I especially that some bitter people are voting to close
 
 
1 hour later…
thb
11:04 PM
A C++ question by me might have been closed by accident. I am not asking you to review the question (though you may if you wish). Rather, I would like the closer to take a second look. How should I get his attention, please?
 
Nominated for reopening, as you ask exactly where the code for a lambda is stored.
 
thb
11:41 PM
@Mikhail The attention is appreciated. Problem solved.
 

« first day (3074 days earlier)      last day (1871 days later) »