« first day (759 days earlier)      last day (4198 days later) » 

11:00 AM
@irrelephant I will call them "pub-b"s
 
user1804599
@Pubby but pubs are so @irrelephant!
 
Where can I find the complete set of ADL rules ?
 
@kbok standard.pdf
 
heh
 
user1804599
Heh, the ADL rules are like 1000k pages long.
 
11:08 AM
[ -~] <--- What's this and what does it do?
 
@TonyTheLion It's a robot winking
 
user1804599
@TonyTheLion it decreases the value of the pointed-to-byte until it equals zero, ~ is a comment.
 
@TonyTheLion Python ?
 
0
Q: Word for delimiters which are placed after each item?

PubbyThe word "separator" can be used to describe delimiters which are placed between items. For instance, in this sequence: "abbbabbbabbbabbba" The 'b's separate the 'a's. I'm looking for a word similar to "separator" which can be used to describe delimiters in this sequence: "abbbabbbabbbabbbabb...

 
Nope
ok, It's regex
but what does it do?
 
11:12 AM
Terminator. Hasta la vista baby! — sehe 6 secs ago
 
user1804599
@TonyTheLion it matches one character which must be either a space, a hyphen or a tilde.
 
@TonyTheLion accepts characters either from ' ' up to and inclusive '~' or just ' ', '-' and '~' depending on regex flavor
@TonyTheLion To prevent the hyphen from indicating a charset range, put it in front: [- ~]
 
user1804599
@sehe or escape it with a backslash.
 
@Aardvark that could work :)
 
Here is the answer :)
 
Xeo
11:17 AM
Hm, I kinda want []foo in C++11 as a general way to lift a function name to a function object.
Or simply be able to pass identifiers
 
> What are those characters? They're a very small subset of the printable characters!
FTFY
 
0
A: Word for delimiters which are placed after each item?

seheI'd say terminator (terminator token, terminator character, terminating punctuation etc.) end marker (end of line, end of input, end of block, end of statement etc.) Somewhat more loosely, more appropriate to (binary) file formats, maybe: signature marker

@TonyTheLion So I was right :)
 
@Xeo As in, one that can be default inited, i.e., a different type for each functon name?
 
Xeo
@R.MartinhoFernandes as in [](&&...x){ return foo(std::forward<decltype(x)>(x)...); }
Simply because fuck you overload resolution when I just want a name.
 
I know
 
11:20 AM
> The implicit declaration of a copy constructor is deprecated if the class has a user-declared copy assignment operator or a user-declared destructor. The implicit declaration of a copy assignment operator is deprecated if the class has a user-declared copy constructor or a user-declared destructor (12.4, 12.8).
What ?
 
@Xeo I'd want to declare captured/enlambdad variables in the lambda declaration!
[int& i, std::string val]() { /* ... */ }; // instead of:
{
    int i;
    std::string val;
    [&i,val]() { /* .... */ }
}
@kbok The robot mentioned that the other day :)
 
struct x { ~x(){} }; is deprecated ?
 
@kbok Yes. Allows compilers to reject code that doesn't play with the rule-of-three
 
Nov 8 at 14:09, by R. Martinho Fernandes
@sbi I'll just note that the copy ctor generation in this case (because there's a dtor), is deprecated in C++11.
 
@kbok No. struct x { ~x(){} }; x a; x b = a; is.
 
Xeo
11:22 AM
x a, b = a; // shorter
 
@R.MartinhoFernandes right
 
@Xeo meh
 
Xeo
@sehe You just want to abuse em
 
Well TIL then
 
Xeo
@sehe Anyways, that may be solved with explicit capture initializers
[i=0,val=""_s]{ ... } // or similar syntax
 
11:24 AM
@Xeo No I don't. I personally dislike lambda syntax enough that they don't make any sense at all to me, unless they're stateful. When I have stateful lambda (e.g. as a generator function) I want to limit it's state to the lambda.
@Xeo Wait. Does that exist? I shan't think so, really? Is that a proposal?
 
Xeo
@sehe There is or there will be a proposal.
 
@Xeo Cool. Thx
 
Xeo
Since that also solves the problem of move-capture.
 
@Xeo Inspiring example:
4
A: Is there something akin to a looping (circular) iterator?

seheA generator function could be that. Boost Iterator has the iterator adaptor for that: http://www.boost.org/doc/libs/1_52_0/libs/utility/generator_iterator.htm A sample: http://liveworkspace.org/code/2e09ce186cca5785742f7d7b25c005d0 #include <iostream> #include <functional> #inclu...

 
user1804599
Why so hard? Just do map f (cycle xs).
 
11:34 AM
You are giving contradictory requirements ("something like while (thread not finished){1;}" and "don't want to wait" are opposites). That makes your stated problem unsolvable. — R. Martinho Fernandes 1 min ago
Silly people.
 
@R.MartinhoFernandes silly robots
 
Silly pirates
 
user1804599
Ugh.
 
user1804599
 
11:37 AM
Image spam!
 
user1804599
124 y u < 125
 
user1357851
newblet
 
@Aardvark fixed :)
 
user1804599
Oh xD well thanks
 
@TonyTheLion ¬_¬ urge to downvote rising :D
 
11:39 AM
you bastard. :P
 
@sehe does it make sense to execvp on a multi-thread process? Won't it take over the whole process?
 
user1804599
> The exec() family of functions replaces the current process image with a new process image.
 
user1804599
I think it doesn't care about threads. Everything will be stopped and the new code will be executed.
 
Xeo
Meh. Here I am with meat that turns bad in two days, and then there is no salad. Now I have to deal with the meat only being fried and having a layer of cheese on top. :|
 
11:44 AM
Shit shit is shit
 
@Xeo Eat it?
 
user1804599
@Xeo first world problems.
 
Xeo
@R.MartinhoFernandes Yes, but I wanted a salad. :(
 
@Xeo I don't follow
 
user1804599
Go to the supermarket and buy a salad.
 
Xeo
11:45 AM
@Aardvark Too much work.
 
user1357851
@Xeo if you eat grass, the problem would be much simpler >_<
 
user1804599
Then don't complain. :P
 
Eat the damn meat like a proper carnivore.
 
Xeo
@thecoshman I wanted to slice fried meat into the salad.
 
@thecoshman yes, I've also come to that conclusion before :P
 
user1804599
11:45 AM
I also want so many things, but I don't get them either.
 
@Xeo now you don't have to worry about that salad getting in the way
also
 
Xeo
Why are there so many salad haters here?
 
shit slow shit is shit slow
@Xeo I don't hate salad, I just don't care for it. Just like Religion
 
@Xeo Because meat is awesome.
 
Meat is neat.
 
user1357851
11:47 AM
call a fast food and get salad delivered
 
Salad is pallid.
 
user1804599
I like salads.
 
Xeo
Meat devoured. Stomach status: not full. Damn.
 
user1357851
Errr, what should I do!!! My mobile kept on telling me my sim has sent a text message!!!
 
user1357851
This is bad.
 
11:48 AM
@Xeo like many problems, more will solve it
 
Xeo
But I don't have more.
My stupid brother ate the rest before I had a chance to fry it for myself. :|
 
user1357851
I could be sending random messages which I have no idea about!!!
 
user1804599
Go get the salad or you will die from scurvy!
 
user1357851
Must be my own dumbass app :/
 
@Xeo Eat more meat?
 
user1357851
11:49 AM
I got something wrong with the app I have written :/
 
Go out and buy more meat?
 
@Xeo eat faster
 
Xeo
@R.MartinhoFernandes That'd imply I have money for that meat.
 
Xeo
I didn't even have money for the udon noodle soup I wanted to order yesterday.
 
11:50 AM
@Xeo key problem here 'order'
@Telkitty eatable edible
don't try to hide from your shame
 
Xeo
@thecoshman The pirate correcting someone... what a day to live to see!
 
@Xeo for my next trick, see how little fucks I give
 
user1357851
@thecoshman When in doubt, remove all evidence ^_^
 
Xeo
@Telkitty Owners can view deleted messages.
 
user1804599
If you give more than zero fucks, you give too many fucks.
 
11:52 AM
@thecoshman hi there
 
Dammit, cannot resurrect history.
 
Xeo
Dammit
Did they fix that?
 
@Xeo The message was edited.
 
Xeo
11:53 AM
Ah
 
user1357851
Hahaha
 
user1804599
@TonyTheLion GIF
 
user1357851
legend, no evidence
 
@melak47 read forum log
 
11:54 AM
@Aardvark is GIF... but claims JPG...
 
user1357851
Like a ghost in a crowded room - you can never be sure it is not your mind playing trick on you :x
 
@Telkitty sure you can, ghosts do not exist
 
@Telkitty Speaking of mind playing tricks on you.
 
user1804599
Does it make sense to use a BST for storing only keys, no values?
 
user1804599
11:58 AM
Or are there better data structures to quickly find if a key exists?
 
user1357851
store keys with pointers to the values
 
@TonyTheLion this you?
 
@Aardvark BST = ++ GMT
 
user1804599
Keys are non-contiguous.
 
std::set = BST with only keys
 
11:59 AM
if so, request to be dev
 
user1357851
each node has a key and a pointer the value
 
@Potatoswatter I thought BST = GMT+1.
 
user1804599
@Potatoswatter how is std::set usually implemented?
 
user1804599
Red–black tree?
 
@Aardvark yep
 
12:00 PM
@R.MartinhoFernandes you'd want to fork(2) first: linuxprogrammingblog.com/…
 
user1804599
@Potatoswatter dankeschön.
 
@sehe Ok, so, as I thought, that question is pure garbage.
 
user1357851
why not implement set with a hash :x
 
@R.MartinhoFernandes I missed the question. But, there is the stereotypical delusion that IPC would somehow be easier if it's in the same process space. It's not. It's harder. And a lot more brittle :)
 
user1357851
hash lookup = contant time, no?
 
12:03 PM
@sehe Twas this one stackoverflow.com/q/13359553
@Telkitty Because that can't keep order.
 
@Telkitty depends on load and hash function
 
user1357851
how can a red-black tree keep order?
 
user1357851
after a few rotation to balance the tree
 
Hint: it's a binary search tree.
 
user1357851
balanced* binary search tree
 
user1804599
12:06 PM
The order is not important for me.
 
@Telkitty So? Surprising as it may be, balanced binary search trees are binary search trees. Who would have thunk.
@Aardvark Then you may want to consider unordered_set.
 
@thecoshman hmm, last time I tried glload linked on win and linux for me. or is this still the thing about the main function?
 
Xeo
Crap, I'm sleepy as fuck. Let's see if coke helps.
 
user1357851
@Xeo you sure it is not the meat? You could be suffering from acute food poisoning @_@
 
Xeo
@Telkitty All-nighter.
And why the heck does that message get stars?
 
12:14 PM
@Xeo "Coke"
 
Xeo
@sehe Oh, crap.
"Coke" is a synonym for cola here. :|
 
Is this bad form?
 
user1804599
Crack-Cola
 
Eigen::Matrix< float, 6, 6 > covariances = covariances.Zero();
 
user1804599
Use auto.
 
12:17 PM
good call :)
Oops, no
It's an expression template library so the return type of Zero() is actually a crazy type which can only represent zero and doesn't allocate any memory.
 
user1357851
@Potatoswatter use matlab or mathmatica
 
user1357851
to calculate eigen value
 
@Telkitty Eigen is a library. Get reading ...
 
@Telkitty Eigen is just the name of a library… I'm not calculating any eigenvalues
 
user1357851
:x
 
12:19 PM
@Potatoswatter Even if you were. Matlab or "mathmatica" [sic] won't be portable or embeddable any time soon
 
user1357851
yes you can embed matlab in your shell script and export the results to c++ code
 
user1357851
that's how I did my thesis
 
Xeo
@Potatoswatter I'd consider it bogus, atleast, when reading over it.
Why not simply value-initialize covariances?
Eigen::Matrix<float, 6, 6> covs{};
 
@sehe Matlab goes into embedded systems… it's used to prototype robotics algorithms
 
@Potatoswatter So, no, that's not bad form. It is not, by definition: the library was designed this way
 
12:21 PM
@Xeo Because value initialization does not set it to zero.
 
@Potatoswatter Oh well. That makes it ... the perfect tool for the job, then!
 
Xeo
@Potatoswatter Ow, why that?
 
@Xeo P.E.R.F.O.R.M.A.N.C.E? Like in the rest of the language, really
 
Xeo
@sehe That doesn't make sense. Is the matrix dynamically allocated or what?
 
@Xeo struct X { int u; }; X haha{}; <-- does that make sense?
Mmm. I'm starting to doubt myself now, because you seem so 'convinced'...
 
12:24 PM
The library uses a few odd or outdated conventions, and the camelCase gets on my nerves.
 
It does kick much ass… but if there's another math library that doesn't have so many static factory functions like Zero, I'd like to know :)
 
@Xeo so... empty {} initializer zeroes it. Sorry for my misinformation
 
Xeo
It forces value initialization.
Although @StackedCrooked's online compiler throws up with error: missing initializer for member ‘X::i’ [-Werror=missing-field-initializers]
 
@Potatoswatter I'm not sure I'd call an expression template a factory function, though. Or was it not an ET after all?
 
12:26 PM
> A default constructor is always available, never performs any dynamic memory allocation, and never initializes the matrix coefficients.
@sehe It's a factory function for a zero matrix which happens to convert to a variable matrix type of the same size.
 
Xeo
@Potatoswatter No need to make it a static member though, right?
 
I think it would be more sensible to have a global zero object of its own type which could convert to anything.
 
Xeo
They could've just made it Eigen::ZeroMatrix
And overload the matrix ctors on whatever type that is.
 
@Potatoswatter me too
 
Xeo
Gah, I want to sleep so badly, but I need to keep looking for flats.
 
12:34 PM
@Xeo You're doing an all nighter looking for real estate?
 
Xeo
@Potatoswatter Except it's not night here.
 
bingo: auto covariances = Eigen::Matrix< float, 6, 6 >::Zero().eval();
 
Xeo
@Potatoswatter Ugh.
 
@Potatoswatter lol, I bet he did an all nighter watching something or playing something, and now wants to spend the day looking for real estate.
 
@Xeo The all nighter was something else but that's just keeping you from sleeping ATM?
Are you meeting prospective roommates and landlords in this sleep deprived state?
 
Xeo
12:37 PM
Eh, I'm looking for flats on the opposite site of Germany. :/
Btw @R.MartinhoFernandes, what kind of sites did the ape give you to check for a flet?
 
Is there any addons for VS that autoformats C++ code?
MSVS 2012 i mean
 
user1357851
use tabs?
 
user1357851
and set spaces for tabs?
 
tabs are for scrubs
 
@Ivan0x32 Ctrl+K Ctrl+F
 
12:45 PM
HANDLE Device() const { return m_device; }
void Device(HANDLE val) { m_device = val; } - just want to place names of these to function at same column.
 
user1357851
tab = \t
 
user1357851
it is there for a reason
 
bwahaha
not really
 
Tab there will just fuck up.
That's exactly the place where you don't want tabs.
 
user1357851
I use it for vim anyways
 
user1357851
12:46 PM
tabspace
 
Editor does not make a difference.
 
user1357851
to make things prettier
 
Usual tabs and spaces are in place offcouse - i write code attending to this things
 
meh svn is horrid
 
@Xeo immobilienscout24.de and some others. I'd have to check my e-mail for the rest.
 
Xeo
12:47 PM
Ah, so the usual culprits. :/
 
@DeadMG you're a scrub.
:P
 
Xeo
@Ivan0x32 Make m_device public and ditch the stupid getter and setter.
 
That's shitty way to do it, on my opinion.
 
Confused about value-initialization I see
 
Xeo
@Ivan0x32 No, it's the good way. What do your functions offer you?
 
12:51 PM
Unless you expect that other mythical programmer won't try to change device id twice
I'm going to make some control of assigment so the value asigned only once
 
That sounds like what a constructor is for.
 
Xeo
Aye.
 
void Device(HANDLE val) {
if(m_device == 0)
m_device = val;
} like this
Can't use ctor, it's partially constructed in two functions.
 
Xeo
two-phase initialization!
(ending your sentence there)
 
12:53 PM
Windows
 
No idea how that changes anything.
 
What the proper solution then? What can i possibly do if my Message class constructed from two Hook functions?
 
And anyway, I'd write it assert(m_device == 0); m_device = val; because calling this twice sounds like a bug, and bugs are not meant to be ignored in a missing else branch.
3
 
user1357851
 
user1357851
this is fake or not?
 
12:56 PM
@R.MartinhoFernandes Didn't thinked about it, thanks for the advice
 
user1357851
looks genuine, but nowadays it is hard to tell
 
@melak47 oh yeah, this is something in Kyro::main not seeing definition of platform::window::create
 
completely fake.
a fish of that size would never get that close to shore
at least, not whilst retaining any capacity of movement
 
user1357851
it's an orca/killer whale
 
what did it do, float along on it's anti-gravity underharness?
 
user1357851
12:59 PM
they are, as there are two of them in the video
 
@DeadMG A killer whale floating along on it's anti-gravity underharness? Sounds like Baron Harkonnen.
 

« first day (759 days earlier)      last day (4198 days later) »