« first day (1464 days earlier)      last day (3478 days later) » 

12:09 AM
@Ell you can, iff the size is fixed: coliru.stacked-crooked.com/a/980711fdc021f5aa
 
Ell
Hmm
It isn't fixed for me.
I think this means I'll have to hand craft my own solution then doesn't it? Or maybe mpl, hana or a different library will be able to help
 
this is a new one...
-2
Q: Need C++ / SDL Private Tutor. Paying ~30 - 40 USD / Hour

user3594737I'm not too good with C++, but am a big fan of C#/Mono, I'd like a private tutor who would work with me via Skype, I'll pay ~30 - 40 USD an hour via paypal, add me on Skype if you're interested. My Skype is Wilson.Koder.111 thanks.

 
Ell
I Iook forward to solving this problem
 
never seen someone asking for a tutor before
 
Ell
I'm gonna add Wilson.Koder.111 tomorrow!
 
12:22 AM
Stackoverflow is not here to do your homework, the point of homework is to help you learn. Not to be offloaded on others. — Mgetz 11 secs ago
 
Would anyone believe me if I said I was a hacker
?
 
Ell
No
Well depends on what kind
 
Okay let me show you what a good hacker can do
 
Ell
If you're talking hacker as in breaking into stuff then no
 
It's kind of a strange question
 
Ell
12:30 AM
Go on.
Show us what you can do
 
Hm... pretty nice isn't it
lol
But hold on I got something else
 
Ell
What
 
This your message id
id="message-19495287"
 
Ell
Right
 
Every message you enter the numbers would change
 
12:32 AM
HACKED
 
Then imagine what would happen if these numbers were the same?
 
Ell
> 10/10 made me reply
 
@Ell How was my basic hacking skills?
 
lol
 
Nah... its horrible
 
Ell
12:33 AM
You didn't show any yet
 
@7Blue_Beast7 pretty poor
 
Really?
okay give me a min
 
Ell
I'm p sure this guy is trolling but I need entertaining
 
if you want to hack you'll need to do better than that, change ell's avatar and we'll start talking
@Ell eh... I've got netflix
 
Ell
Yeah change my avatar
 
12:34 AM
ok
 
He is clearly trolling.
Can we move on?
 
@Sofffia aww I was having fun trolling the troll
 
Nice
But hold on
I change it back
 
hi
 
Okay done
Awesome
 
12:36 AM
Hi Rapptz.
 
Ell
@rapptz hi
 
What's the protocol for some low level troll?
 
Ell
I want to generate a rainbow table of sha2 checksums now
 
what'd I miss
 
Alright now I have to go
Just trainging some cool skillls I learnt
 
12:37 AM
good bye
 
Pretty pro m8
 
Ell
@rapptz nuttin much
I need to binary transform a std::vector with a tuple now
If you happen to know how to do that it's be appreciated :P
 
I don't know what you even mean
binary transforming an std::vector with an std::tuple
 
Note that this is still not overload resolution (it's exact type matching only).
 
Know one liked my hacking?
 
Ell
12:42 AM
@sehe ah awesome! thank you!
 
@7Blue_Beast7 I don't even like your spelling
 
@sehe Yeah I am 13 silly
 
I didn't know that changed spelling
 
Yeah as you age you start to learn more and more
 
@7Blue_Beast7 well given that @Ell's avatar is the same.. I'd say you failed
 
12:45 AM
You didn't see me change it?
okay
 
@7Blue_Beast7 at 13 you are at best a script kiddie, come back when you can at least understand what a buffer overflow attack is
 
I change his avatar now
 
@7Blue_Beast7 that's a nope
 
Lol it changed itself
@Mgetz Meh... okay
 
posted on October 19, 2014 by Herb Sutter

While we were both at CppCon last month and had cameras around, Brian Overland interviewed me for InformIT. The video just went up a couple of days ago. You can find it here. If you’ve seen my interviews before, the first 14 minutes is stuff you’ve heard before, but I think you’ll find the last […]

 
12:58 AM
@LucDanton I was reading Bjarne's reasoning for why Concepts were cut out in C++0x and from what I'm reading it seems like Concepts from C++0x will probably never make it back to the standard. That's the impression I got anyway.
 
@Ell coliru.stacked-crooked.com/a/0581eddf6b8cdb33 Simplified it considerable, now returning the matching overloads in a vector (consider making it a set, because duplicate signatures seem... unwieldy in practice). It asserts the right overload is being returned.
 
Ell
@sehe yeah, a set is a good idea
 
The key simplification was std::tie(typeid(Args)...)
Also not that by now we're not ever using a value left nor right so we can either use boost::mpl or I think we can go full standard library. Butttt I need to get to bed
 
Ell
@sehe okay :) thank you very much for the help! It's much appreciated :)
 
@Rapptz the original c++0x concepts were interesting conceptually but virtually unusable, the current proposal 'concepts lite' if you will seems much more workable, if only in the fact that it has a compiler that works and doesn't take forever to compile
 
1:07 AM
er what
 
posted on October 19, 2014 by Herb Sutter

Also, my CppCon talks are all up on the CppCon YouTube channel. You can find them here: Back to the Basics! Essentials of Modern C++ Style: Loops, pointers and references, smart pointers, variable declarations, and parameter passing Lock-Free Programming (or, Juggling Razor Blades), Part 1: Lazy initialization with DCL vs. call_once vs. function local statics, […]

 
1:32 AM
Sutter's talk ended with the results of an old experiment where he gained performance by introducing a heap allocation.
Two years ago I printed all his dr dobbs articles.
And I found it among them :P
 
0
A: Poisoned Iced Tea

Alex M.The girl who died failed her fortitude saving throw.

makes sense, right?
 
I don't understand. But that means nothing.
 
@AlexM. That's a lateral thinking exercise?
 
I dunno, I just discovered that site
 
1:36 AM
Cool :)
Your answer kind sucks though :)
 
it's likely
 
The top two answers are very clever!
 
hey, if you consider this comment
For all we know, alcohol was the only 'poison' in it, and the other girl just died from choking when she tried to drink as fast as her friend, who was busy throwing up. — Zibbobz 13 hours ago
the guy is kinda right
for all we know, the two girls were characters in an AD&D campaign
and my answer is the only one that's right
 
Maybe...
It's kinda funny how nobody ever laughs when Michael Wong makes a joke. Only himself is laughing :D
 
Ell
1:54 AM
Does that make you want to laugh?
Because you laughing would cause you to have nothing to laugh at
 
Sean Parent has one SO answer. And it was to my question.
I'm so extraordinary.
I should start to wear sunglasses.
 
Ell
I can imagine the meme
Where the glasses come from the top of the screen
Going to your avatar
I'm going to need litres of coke to stay awake tomorrow
 
or coffee
or energy drinks
both are most likely more healthy than 2 or more liters of coke
I feel like vomiting after 1l of coke at least
 
@Ell Tomorrow is Sunday. Are you going to Church?
 
@AlexM. not really
most are still just sugar and caffeine
 
2:03 AM
and what's coke exactly?
 
sugar, water, extract of coca leaf, vanilla, nutmeg or cinnamon, caffeine and food coloring mostly
 
I'd take a 200ml energy drink over 2l of coke any day :)
 
and yes I'm pretty sure it's in that order
 
at least the first doesn't make me vomit
 
if that works for you... so be it
 
2:05 AM
greetings..
@Ell how's that magic coming along?
 
Ell
@filip @sehe sorted me out with a little bit of boost::fusion and phoenix.there is a little bit of work to do with indices so I don't have to write many specialisations for N arguments, but all the groundwork is done for actual resolution now which is great
 
@Ell care to share what @sehe sent you?
 
Ell
Haven't actually got the resolution done though, only exact typeid s, but I'm able to use a predicate
Sure, its in the transcript a little above I'll see if I can find it
I'm in bed currently just on my phone
@stacked I'm going to work
 
It's at ~1 hour 10 minutes back
 
2:11 AM
:-/, I'm not saying it's bad; I'm just saying I'd do it differently
@Ell if I get around to writing some code relevant to your example I'll /cc you
 
Ell
@filip yeah, I'm completely open to any criticism whatsoever, I only want to learn so its appreciated :)
Thanks very much :)
 
@Ell but what you are basically looking for is having void f(Base*, Base*) and void f(Derived*, Base*) and that the latter should be called in Base * p = new Derived; f(p, p), right?
 
Ell
Just keep in mind I need to do a bit more than check equailty. I'll have to sort on how "specialized" or choose the most "specific" function
@filipen yes that's the end goal
And additional functions should be able to be added
 
@Ell the example using f(p,p) is just bogus, since that won't work as you want it to, but just so that I know the problem
certainly
 
@Ell Here's a toy... not sure if that's along the same lines as what you're aiming for: coliru.stacked-crooked.com/a/5d3d84659941289e
It's just a scoring mechanism... just for playing around. But it's all using template packs (and TMP)
 
Ell
2:16 AM
At the minute I have regular overload dispatching at runtime (I haven't shown this code yet though) and tomorrow after work I will work on getting the resolution based on the derivedness of polymorphic arguments started
 
But no vectors/type erasure
 
@Ell can the return-value differ? (because that greatly complicates things)
 
Er, variant templates (no packs)
 
Ell
@filip no return type does not differ
Just argument types
 
Ell
I have to be up at half 9 and its 3:20 already so I best get some sleep. Night guys!
@stackedcrooked does that include me? Add me and it'd decrease to about 2.56 million
 
@Ell You don't count buddy.
(Just kidding..)
 
Ell
Haha
Well technically I've never done it professionally
Nor even finished a personal project :P
 
Do you like C++?
Oh well, you can't really decide on that before having used it for a larger project.
 
Ell
I like c++
But I've never finished a large project in any language
Usually I start a project, learn some stuff while designing/implementing initial parts of it
Then get bored when I have to code a lot without learning
Learning is the good part :P
 
2:37 AM
What happens in printf if you feed it an invalid format string?
like printf("%", 10);
 
Ell
I thought it was UB
 
is it?
 
Nice view of Japan.
 
Ell
4
Q: Does this invoke undefined behaviour?

QuixoticConsider the following C program: #include <stdio.h> int main(){ int a =-1; unsigned b=-1; if(a==b) printf("%d %d",a,b); else printf("Unequal"); return 0; } In the line printf("%d %d",a,b);, "%d" is used to print an unsigned type. Does this invoke undefine...

 
that's different :)
I meant the format string is not in the proper format.
%10 etc
 
Ell
2:39 AM
I was just looking for references to the standard really
 
that's just mismatched type queries which are UB iirc.
 
Ell
The sections to look at
Oh I see
Printf just looks bad :P I'd much rather have string interpolation
To me it does anyone
But I've never used it like I said
I never needed it in c++ and in ruby I had nicer alternatives
 
warning: incomplete format specifier [-Wformat]
    printf("%10");
            ^~~
 
Ell
Man page doesn't say anything
I guess it will be in the stNdard
Anyway Im legit sleeping this time, night!
 
@Ell are you on a blackberry?
@Ell answer the above first!
I'm guessing you aren't since it didn't auto-correct "Im" to "I'm" (unless you turned that particular feature off for some reason, which is beyond me if such is the case)
@Ell I've been having an issue where I type a word containing a really fast, and it for some unknown reason results in the letters (or sometimes letters) right after that a to be capitalized
only happens when I sideload apps though (ie. run android apps on my BB10 Q10)
 
2:56 AM
Ok. I posted a Youtube comment. One second after that I was doubting if my grammar was corrct so I posted a fragment of my comment into Google. It returned my Youtube comment as second hit.
That's kinda scary.
 
@StackedCrooked indeed
 
I just learned this song is also by them.
And she also makes the "expressive" faces on that video :D
 
I got sunburnt in the eyes ... either that or hay fever - can hardly open eyes at the moment ...
 
3:12 AM
Their daughter disappeared in 1994 and was presumed dead in 2013.
 
3:45 AM
you can see she wants to sing along with him but she has to stick to her part
 
4:10 AM
my eyes still hurt ...
 
user457812
People tell me I'd sound good on radio. I'm not sure the world needs to hear me on the radio talking about how much I hate web developers.
 
user457812
weeps over how he's become a web developer
 
will use protection next time to prevent being so violated
 
4:28 AM
I'll assume the quietness of the room permits me the right to excessively post music clips.
 
gasp, a chat room? I did not know these existed.
 
Everyone needs to make this discovery.
 
The only mistake is I don't know a lick of C++
 
GET OUT!
 
user457812
Yep, begone.
 
4:43 AM
@AlexanderLozada you should be pals with my pet chickens, they don't know any C++ either
 
user457812
Chickens are adorable creatures.
 
^ Key of Twilight
First Yuki Kajiura song I heard :P
 
user457812
I'm busy listening to the Bayonetta OST.
 
user457812
 
user457812
↑ Such as
 
5:12 AM
god, I'm such a cheapskate: s.orlp.me
 
5:32 AM
@Rapptz Demo (scroll down).
 
so weird
 
what's weird?
 
mine is like totally different :s
 
btw guys, league final in 24 min \o/
 
Your what? I only wanted to showcase the erasing.
 
5:37 AM
Oh okay.
It's fancy then :D
but I still feel like it's weird
also you use std::streambuf o.o
why?
I know it's a demo of sort but it intrigues me
 
AFAICT it’s the de facto interface for ‘something that eats chars’ (it also does input of course).
IOW this is contemplating a ‘from scratch’ implementation.
 
assuming this gets turned into a full-fledged format thing
ah
that is too hardcore for me
 
Switch it out to the basic_istream of your choice and you can have a veneer over that.
 
I'm interested in C++ formatters, but what are you guys talking about?
 
that'd mean you would do all the formatting by hand doesn't it?
 
5:40 AM
(what does this demo?)
 
@Rapptz Yup.
 
but why :'(
 
It was an exercise. I’m not going to do anything.
 
it makes me curious regardless :v
 
hello?
 
5:41 AM
Probably put it aside, in case I do feel like implementing format1s one day.
 
am I shadowbanned or something?
 
@nightcracker We made a format-spec!
 
@Rapptz link?
 
I was going to defensively spurt out I had nothing to do with that, but as I remember I helped.
 
gotta give credit where credit is due!
my implementation is rather meh
grammar is in line 109
 
5:44 AM
@Rapptz What does?
 
the use of std::streambuf
 
Think of it as Char -> ().
 
btw do you guys have any comments on the implementation above?
 
why | as control character rather than the usual {}?
 
long discussion
 
5:46 AM
Why do you bother with forwarding?
 
and if || is your escaped bar, you don't support automatic formatting indices?
 
I am not sure.
 
@Rapptz (Char -> ()) -> Arg -> Flags -> () is a CPS-transform of Arg -> Flags -> String.
 
@nightcracker Nope.
 
Oh great, Yahoo is starting to serve Intel compiler ads to me. Looks like they're finally getting it right.
 
5:47 AM
meh
 
I did that purposely.
I realised it gets confusing
 
it only gets confusing if you misuse it
and even then
 
@LucDanton I could change it to const Args&...
 
it's not really confusing
 
@Rapptz I think having a locale-dependent format string is a big blunder.
 
5:49 AM
Is it? :s
 
also one typing issue I have with | is that it forces me to move my hand, which {} does not
 
huh? o.o
| is right next to {} in my keyboard
 
At the least, the programmer-locale (because format strings are for programmers/translators) should be independent from the end-user (of the program) locale.
 
{ = shift pinky + [ ringfinger
 
Right now you can’t run the program in locale A while formatting towards locale B.
 
5:51 AM
| = shift index finger + \ middle finger
 
it was either |, $, or %
choose your poison
 
E.g. out.imbue(/* I want commas as thousands-sep */); format(out, "|0:3.3|", 4000);
(I know, you don’t actually parse decimal digits.)
 
why not {}?
you say it was a long discussion
 
because it gets tricky
 
but can't you summarize the arguments against it?
 
5:52 AM
I don't wanna re-iterate it again :s
 
then don't ask for feedback
 
@LucDanton Should I ditch the whole out.widen, std::isdigit thing then?
@nightcracker 1) I didn't like having to escape } 2) It got messy when you use } or { as a 'fill' character, 3) I didn't enjoy the complexity it brought to my parsing.
Despite the mundane example, try to have {1.23{{{{{} as output using str.format in Python.
format(1.2345, /* format-spec here */);
 
can you give one realistic example where { or } is your fill character?
 
I know the example is mundane.
 
|1.23||||| is just as bullshit
 
5:54 AM
But it should be parse-able.
 
and even harder to parse
 
It doesn't make sense to dismiss 'corner cases'.
 
It does make sense if the 'corner case' is indiscriminatory between two solutions, and you try to use the corner case as an argument in favour of one, against another.
 
@Rapptz Widening is fine. isdigit also as long as you stick to the one locale—let’s say "C". It’s about familiarity to programmers. A language that supports double d = 4 000,18; is not going to win too many accolades, I would think.
 
hmm
 
5:56 AM
I don't agree with 1 or 3 as they're opinions, but at least their technically valid complaints
2 is not a valid argument as it can be applied to both {} and |
 
I can have |1.23||||||| as output.
 
wow, I just mixed their and they're
lol
 
I still can't get Python to accept a format string that produces an output using it.
 
@Rapptz not without an escape character
 
the documentation says it's possible
@nightcracker that's not the point I was going for.
that's a given
 
5:59 AM
I think {} is superior, because it allows automatic indicing
 
lol
 
if you changed escaping | to \| then maybe I'd consider |
 
I didn't pick \| because it gets messy
 

« first day (1464 days earlier)      last day (3478 days later) »