« first day (1027 days earlier)      last day (3937 days later) » 

user1804599
4:00 PM
Damn.
 
@Pawnguy7 it's a part of a bigger system and doesn't make sense outside of the context, therefore it's not a snippet
 
@sehe Kinda too lazy to shoot an e-mail suggesting the use of a 'semantic' constraint.
 
Also I bought an iPad keyboard today
hopefully will ship tomorrow
 
@BartekBanachewicz True, but you were the intended recipient, and you know the context.
 
user1804599
@BartekBanachewicz Such a waste of money.
 
4:03 PM
@BartekBanachewicz are you going to get a mouse for your ipad too?
 
@Borgleader nah he's getting a graphics tablet to use with his ipad
 
@BartekBanachewicz ..arrive day after, then test, then RMA.
 
user784668
@BartekBanachewicz lol
 
@Borgleader no, that would be unnecessary
 
4:05 PM
@not-rightfold why's that?
 
user1804599
Because it's useless. :V
 
um, why is it more useless/less useful than any other keyboard?
 
user1804599
You're going to use an iPad as a keyboard? :V
 
user1804599
That's like using a spoon as a knife.
 
@not-rightfold no, I am going to use that keyboard as a keyboard
 
Xeo
4:06 PM
@not-rightfold Spork!
 
user1804599
@BartekBanachewicz what keyboard
 
Spife!
 
5 mins ago, by Bartek Banachewicz
Also I bought an iPad keyboard today
 
Xeo
A keyboard for the iPad
 
seriously I sometimes feel like he's constantly high
 
user1804599
4:07 PM
ooooh
 
user1804599
I thought you said you bought an iPad. :P
 
This 'keyboard' thread is too circular for me.
 
Xeo
Y'know, it kinda implies he has one.
 
@not-rightfold why would I want another one? To use as a keyboard for the first one? :P
 
@BartekBanachewicz Oh gawd.
 
4:08 PM
How do I print the memory address of char*'s? The string that they are pointing to
 
user1804599
@BartekBanachewicz LOL
 
user1804599
Time to get a domain name.
 
@MintyAnt Cast them to void* first.
 
user1804599
@MintyAnt static_cast<void*>(myString).
 
no & needed?
 
4:08 PM
ostreams treat them specially.
 
user1804599
It was my first answer on Stack Overflow! :D
 
@MintyAnt it's a pointer.
 
user1804599
@MintyAnt Oh you want to print the address of the pointer?
 
yes
 
user1804599
Well, then std::cout << &myCharStar << '\n';.
 
4:09 PM
Em, no, you don't.
 
No, he does not.
 
That won't prove anything.
 
Oh did I fuck up
 
Different variables have different addresses.
 
@not-rightfold I betcha he wants value of the pointer.
 
4:09 PM
He wants to print the value of the pointer.
 
@BartekBanachewicz Exactly.
 
I want to print the address of whatever the pointer is pointing to
 
@MintyAnt that's the value (of the pointer variable)
 
user1804599
char* hello = &foo;
std::cout << static_cast<void*>(hello);
 
@MintyAnt Right. Cast to void*.
 
4:10 PM
Okay, thanks
 
Or just assert(ptrA == ptrB);.
(Proving shit with std::cout feels so wrong; assert is where it's at)
 
user1804599
How about proving that std::cout works?
 
Ell
@not-rightfold I read that too
 
@Pawnguy7 how about you draw the class diagram first?
 
Xeo
@not-rightfold assert(std::cout << "hi");
 
4:15 PM
Ooooh, Perseids this weekend and I will be at my hometown, aka some place where you can actually see stars and stuff.
Fuck yeah.
 
I belched loudly
 
Bah I give up I must be crazy. I thought this would produce shared variables "hello", but alas nope ( gist.github.com/anonymous/6186102 )
 
strings copy their contents (it would be more complex to do otherwise)
 
String one makes sense, it always spits out something way different
but the first 2 (val1 val2) are always different
 
@MintyAnt Use %p to print pointers in printf, not %d.
 
4:21 PM
I honeslty thought it would be pointing to a single "hello" variable it threw out
 
(Won't make a difference, but at least there won't be undefined behaviour)
(Or better, use std::cout)
 
@R.MartinhoFernandes thanks I changed to P
at least I know how to print pointer adresses now :P
 
@LucDanton hmm? I guess that precludes explaining it to me, too ...
 
@MintyAnt Did you compile with optimisations?
 
4:23 PM
huh, yeah I did
using vs compiler, the /Ox flag
Let me boot it into vs itself and just run it straight
 
Well, in GCC they are the same even with optimisation disabled.
FWIW, they are allowed to be the same, but not required.
 
my god it worked
Well thats odd
/Ox flag should be all optimizations
facepalm thanks, and sorry
 
Xeo
@sehe He may be thinking of constraining on is_constructible<T, U&&>, not sure.
 
@sehe The constructor performs initialization of the member, much as if it were constructing a variable T value { init };. So you can constrain on that.
 
Xeo
Called it!
 
4:26 PM
The two approaches are complementary though, they are two upper bounds.
 
Wow, this is the vs command line function it uses: gist.github.com/anonymous/6186174
 
FWIW, this also allowed, but I don't know any compiler that does it: coliru.stacked-crooked.com/…
 
I.e. the constructor should at least be able to perform the requested construction (otherwise it's an error anyway), but at most it shouldn't interfere with the special members (otherwise it's inconvenient).
 
@LucDanton Ah. So, maybe write that line as a comment instead of a mail :/ (He'll likely agree that can be appropriate, but he was discussing the general case and explicitely excluding potential copy-ctor candidates by explicit SFINAE selection... )
@MintyAnt function?
 
@BartekBanachewicz I am confused.
 
4:31 PM
@sehe I meant arguments, sorry. Compile arguments
 
@sehe Meh.
 
Ell
Anyone have a secret scrambled eggs recipe?
 
Yes.
Won't tell you.
 
Xeo
Otherwise it wouldn't be much of a secret.
 
user1804599
Hurray.
 
4:32 PM
1. Get eggs. 2. Scramble eggs.
 
user1804599
Bought rightfold.org. :P
 
Impressive.
 
Xeo
... there's a .name TLD
 
cat.name
nota.name
@not-rightfold can you recommend a registrar?
 
user1804599
@EiyrioüvonKauyf I use Versio.
 
4:38 PM
@LucDanton yeah, I'm sure that's the meh that keeps you from mailing it in the first place
 
@sehe I don't follow.
 
You know he knows, but it's his blog post and he chose this style
 
It's not just style.
The "most" bit Luc described makes it compile. The "least" bit makes it not lie.
(Namely, std::is_constructible<wrapper, anything_whatsoever>() will be true without it)
 
dammit
$(myname) isn't available T_T
 
@Ell I have a top secret eggs recipe. It's scrambled though: paste.ubuntu.com/5963180
 
4:41 PM
@sehe That is not the case.
 
@LucDanton Hmm. I'll need to think later. I'm making trying to make dinner :)
 
If you scout my code you can notice I only use 'least' constraints only, and not 'most', too. They are not the same.
 
@sehe :|
 
it's not caesar
 
4:43 PM
@sehe Yeah I'm also super hungry and trying to fix that. Which I think is the real reason for the 'meh'. I still have have the blog on the backburner though, I noticed some very alluring titles.
 
@R.MartinhoFernandes I can see the crux there. This is what is rotten with unconstrained template constructors/conversions in the first place, IMO
 
@sehe "login" to "download as text" srsly? fuck off ubuntu
 
@LightnessRacesinOrbit lol
 
@sehe anyway, decrypted in one step ;)
 
@LightnessRacesinOrbit Hahaha. I'd never know. Against hotlinking, prolly
 
4:44 PM
Believe me, I would stack Mr. Granger's up against all comers, too.
 
@LightnessRacesinOrbit ggVGg? :)
Scrambled != encrypted
 
well, you know
de-scrambled
 
@Ell is probably looking for encrypted eggs recipes?
 
@R.MartinhoFernandes Do you have an opinion on considering the two kinds of constraints as 'complementary'? Up until this discussion I considered constraining on same-typeness-ish a hack, but I'm starting to dig 'at most, do not interfere with copy+base-to-derived'. I might revisit that.
 
Xeo
FWIW, I think is_constructible might be problematic if a the member constructor accepts anything.
 
4:46 PM
:c
@LightnessRacesinOrbit share?
 
Xeo
... it's obvious, really
 
@LucDanton That's what I meant earlier, Eric might just "digg that" too (I shouldn't have hastily referred to it as style I guess)
@EiyrioüvonKauyf oh god. you suck
In cryptography, a substitution cipher is a method of encoding by which units of plaintext are replaced with ciphertext, according to a regular system; the "units" may be single letters (the most common), pairs of letters, triplets of letters, mixtures of the above, and so forth. The receiver deciphers the text by performing an inverse substitution. Substitution ciphers can be compared with transposition ciphers. In a transposition cipher, the units of the plaintext are rearranged in a different and usually quite complex order, but the units themselves are left unchanged. By contrast, in ...
 
too much work
26! combinations
 
4 mins ago, by sehe
@LightnessRacesinOrbit ggVGg? :)
 
so i lazy
og
 
4:49 PM
you can say that again
(ironically, you can't since chat will de-duplicate :))
 
too lazy
 
It's soooo obvious.
Well, even if it isn't obvious, all you have to do is try the first thing you can think of.
 
Or, the first example you can find on that article.
@EiyrioüvonKauyf nytimes.com/2002/01/09/dining/09EGGS.html here, have your cookie. Have fun
 
@sehe I'm being slow and deliberate. I do want to say something (not-meh), but I need to get my ideas in order before figuring out what it is. So meh, maybe later.
 
-1
A: std::vector::clear() takes more time after code refactoring

Ben VoigtI reported a rather significant inefficiency in resize which also affects erase and clear. You can take advantage of it by upgrading or by patching your headers yourself. Oh, sorry, the bug I found is in std::string. Someone should check if std::vector has the same problem.

o.O
 
4:52 PM
@LucDanton I have the same opinion on it being a hack (never prevented me from doing it, though). I have been avoiding thinking too much about it. I will probably take some time to think it through once I start my new job (yay, C++11).
 
I can't get anything out of ggVGg
 
lol, have you being trying to ROT-decode it or something?
hahahahahhahahaha
 
@LightnessRacesinOrbit It's a sequence of vim commands.
 
@R.MartinhoFernandes oh.
fuck that shit
 
4:56 PM
@LightnessRacesinOrbit The full thing is actually ggVGg? and it basically selects and ROT13s the entirety of the current buffer.
 
ok - well I googled "rot13" and used the tool that came up as the first result
 
@R.MartinhoFernandes why not tag dispatching to delegating constructor?
 
ggg?G is shorter and cooler, I think.
 
I thought ggVGg? was some ROT13d follow-up comment, but it doesn't unscramble to anything meaningful.
 
@StackedCrooked Because fuck tag dispatching. Tag dispatching is lies.
@StackedCrooked std::is_constructible<wrapper, anything_whatsoever>() will be true if you use tag dispatching.
 
user784668
4:58 PM
@sehe ggg?G
 
SFINAE is where it's at.
 
Xeo
@R.MartinhoFernandes ... and that would trigger SFINAE? Sure?
 
Xeo
Or rather, why would you tag-dispatch on constructability of wrapper?
 
@Xeo You wouldn't. But the problem with tag dispatching is that it keeps the declaration around for all types, even those that won't compile.
 

« first day (1027 days earlier)      last day (3937 days later) »