« first day (1674 days earlier)      last day (3291 days later) » 

12:01 AM
And calling me "Homer", well ...
Hypocrite
Cereals and loads of sugar, I'm sure :-P ...
 
Hey
 
Andy gave me Le Petit Prince in Czech and Slovak :D
 
@πάνταῥεῖ I replaced chocolate with this stuff too
it's actually a lot tastier
the dried fruits are great
 
Going to sleep. Bye.
 
12:05 AM
@R.MartinhoFernandes You teease
 
wait, wasn't Andy Italian?
 
@R.MartinhoFernandes night
 
@AlexM. Looks yummy. I well know that stuff. Don't underestimate the sugar processed within.
My fall in pit is Coca Cola and Beer, I'm afraid.
At least Beer has a lot of vitamines and other healthy stuff :-P
 
@sehe Who is that? That's not you, is it?
 
12:11 AM
Did you reach the end :/
 
@sehe I did.
I would expect you to teach your kids curse words.
:)
 
:D
But I can't do the affected accent
 
@sehe Yeah, but why did you send me that specifically? Just because it was a funny vid, or as an analogy...?
 
Because I noticed you had said another thing for me and I totally neglected you.
 
@sehe Man, thanks. It feels so good to be noticed.
 
12:14 AM
@Columbo You're going all coshman on me :)
 
@sehe Why is that
 
I dunno.
 
@Nooble here's a nice play youtube.com/watch?v=ebERORG2cG4
you can see lots of stuff there
especially a guy with patience and calm in an otherwise stressful situation
also what happens when a Swedish player plays against US players :P
 
@sehe Gr8 m8 I r8 8/8
@sehe Nighty night
 
Night
 
12:22 AM
Boost.uBlas is a mistery to me.
 
> Cortana for all: Microsoft’s plan to put voice recognition behind anything
Microsoft and co. make computer vision, voice, and text processing a Web request away. http://arstechnica.com/information-technology/2015/05/cortana-for-all-microsofts-plan-to-put-voice-recognition-behind-anything/
microsoft have been doing some nice stuff lately
hololens switched my interest from VR headsets
 
Can't get a simple 2d c_vector<int, 2>(123, 87) up and running
 
It's pronounced "panta rhei", and the overall link about the background is here:
http://en.wikipedia.org/wiki/Heraclitus#Panta_rhei.2C_.22everything_flows.22
You fuckin' persian greek dyslexic :-P ...
 
isnt that the name of capcom's 3d engine
anyways maybe you should use AMERICAN WORDS because we speak AMERICAN in these parts
 
Now what. "Havta pee" is a hebrew insult of some sort?
 
12:28 AM
Hava nagila, hava .. :-D
 
 
^That's a good one :), yes tell him to "fuck off" please.
 
I never really got therapists
what do they make you do
ignore your problems?
 
"Thank you Mary, that'd be most gracious of you"
@AlexM. Realize them. And then accept them?
 
@AlexM. Yes, and mainly because you're not telling your real problems to them.
 
12:37 AM
@sehe hmm
I don't get it but that's probably because I don't have any problems
and whenever I seem to have one I can easily fix it by ignoring everyone around me for a while
 
You need the therapist to make you realize you do :)
 
it refreshes my brain
 
brain != emotional state
 
I meant to say mind or w/e
everything really
 
That's a lot
 
12:41 AM
maybe I'll have problems in the future that don't have other people as origin
right now I can't name any that can't be fixed with me sitting alone at home for a weekend :\
 
Maybe one day you'll find posts like this and feel the need to laugh. Or if you're less lucky, vomit
 
maybe
 
Ninja is pretty cool
 
Well, I once was forced to go to a psychotherapist because I needed the acknowledgments to get my driving license back. I have to admit, that these hours I spent there, weren't really productive or constructive for me. But that might have been because I didn't really wanted a therapy, or getting insight that I might need one.
 
my psychotherapist visit for the license thing consisted of "Have you had any problems in the past?" "No." "What car are you going to drive?" "My family's car."
and that was it
it was pretty obvious I was sane as fuck tho judging only by my face
joke's on him tho
 
12:45 AM
what. What countries do this shit for a driver's license
 
I never got to drive my family's car
@sehe I thought every country
 
@AlexM. Not mine.
 
you have to visit like 5 doctors here for approvals
 
@sehe Not beforehand, it was after being caught driving on drugs.
 
Here they ask you if you see colors and read letters and your are good to go.
 
12:46 AM
@AlexM. man. you have issues :) issues of state governance
 
the psycho guy, the one who checks your eyesight, the one who checks your ears, the one for internal stuff, and someone I forgot what it was about
 
@Jefffrey they do check these things I think (don't remember) but not in silly Q&A form
 
@sehe Romania :-P ... (But I'm sure money might help)
 
@sehe ah, the Q&A thing was just a friendly discussion
to fill up the time it took him to sign the papers that I'm sane
 
@AlexM. sounds like good old-fashioned relief work
 
12:47 AM
the only real tests I went through were those for the ears and eyes
 
@AlexM. Sheldon Cooper also claims he's sane ;-)
 
the others were like "So were you ever sick?" "No." "Ok."
 
Hi
 
Ven
hi
 
@Jefffrey Ninja is VERY cool.
 
12:48 AM
Hi, still working on tutorials?
 
No, I just finished finals
 
@sehe the easiest way to get it done is to use private medical facilities
 
Didnt have time and I'm still not done
 
and instructors recommend those in the same way doctors recommend specific brands of stuff
 
@AlexM. So you pay a certain sum?
 
12:49 AM
yes, and it's not that tiny
let's see...
suppose that 500 people go to this specific medical stuff I went to for the tests
 
the sum they pay covers the paychecks of something like 3 or 4 doctors for that month
 
Can you spell c.o.r.r.u.p.t.i.o.n.
 
Hey
 
Fever
 
12:51 AM
So there was this Reddit thread about this guy who was like "I want to work for Blizzard or Microsoft and be a coder."
 
it's a pain to use the state medical facilities to do the same thing and in lots of areas there aren't all of them available either
 
And I'm like, "That's a bad dream."
 
so your best bet is to pay $$$ and get it done fast
 
@AlexM. It's also not tiny for that tests you have to absolve here, to get your license back after being caught in a offence. And you won't know that you'll pass the test, or not. Their requirements are pretty quirky.
 
I don't know how many people do the license thing each month but I went there twice and every time there were at least 30 people for the same purpose
 
12:53 AM
Hey @AlexM.
 
no
 
You made me frustrated because of Haganai
I'm sad :(
 
no.
 
If you say so
 
user image
5
:D smart guys win
 
12:55 AM
lol
 
@Jefffrey I can see you became desperate enough to ask on Stack Overflow
You trying to make me learn Boost.uBlas?
 
@sehe I'm trying to have a simple matrix/vector library that acts as agnostic vector matrix library for my game, but it's a no-go if I can't create a simple stack allocated vector of 3 elements in 1 line.
 
M-M-M-M-MACROs (kidding)
I'll +1. And then I'm off to bed
Night
 
Also Robert Harvey immediately closed it thinking it was about std::vector. That made me genuinely laugh.
Good night.
 
has there ever been work towards improving C's macro stuff?
 
12:57 AM
@Jefffrey Pretty bad move yes
 
this hit me while I was peeing a couple of days ago
 
Thanks for the upvote though.
 
@AlexM. Yeah, C11 has something like generics instead abissell.com/2014/01/16/…
 
people are always against C macros, but I don't remember seeing work towards making them better
@sehe reading, thx
 
@AlexM. They can't be. Templates are that feature. And generalized constexpr
 
1:01 AM
@Jefffrey nite
 
@Cinch Oh you want me to go to bed?
 
user3010322
@sehe That's interesting. I always thought void* casting didn't really matter to much since it was just aliasing a pointer and just "viewing it" like the regular old data.
 
user3010322
It's interesting to know C++'s std::sort can outperform qsort just due to not having to void-pointer around.
 
is the algorithm behind std::sort standard specified or do compilers choose one?
I was wondering if the new sorting thing in boost could replace w/e std::sort is
spreadsort yea
 
@Jefffrey oh wait that was sehe
@sehe nite
 
1:04 AM
@AlexM. The implementation can choose the algorithm.
 
@Jefffrey yes. this way, please.
 
@AlexM. complexity is required
 
i'll join you in a moment
 
algorithm isn't
 
GPSL requires O(1) sort.
i still haven't implemented it yet, though
hm, if i limit all lists to a length of 5 or so
 
1:06 AM
@Rapptz For some algorithms it is. For std::sort you normally expect O(N log n), but it's not required.
 
> TIL that Canadian solider Leo Major made so much noise during a battle in WW2 that he made the German army think that the entire Canadian army was invading
...
He continued his service as a scout and a sniper by insisting that he needed only one eye to sight his weapon. According to him, he "looked like a pirate."
...
He declined the invitation to be decorated, however, because according to him General Montgomery (who was giving the award) was "incompetent" and in no position to be giving out medals.
 
i can just compare against lists ive stored and get the sorted version which i also store
 
IIRC std::sort is implemented with quicksort for large input and insertion sort for small input.
Maybe I'm wrong though.
 
@Jefffrey Introsort is pretty common.
 
1:07 AM
introverted sort
 
is_sorted doesn't have a complexity requirement
lol
but is_sorted_until have a linear complexity requirement
 
@Rapptz Oops--they've updated the requirements without my noticing. My apologies.
 
Hmmmm is there any reason to use function pointers in C++?
 
usually you use std::function
but if you want to interface with C you use function pointers
 
@Cinch yes
when you want to work with something that expects function pointers
 
1:10 AM
@AlexM. besides that.
 
callbacks
 
@Rapptz is_sorted is defined in terms of is_sorted_until, so it has the same complexity requirements.
 
@Blob we have std::function as well.
Perhaps for speed?
 
@Cinch I never really thought of that
 
oh, i thought you were referring to the concept in general
 
1:11 AM
@JerryCoffin Oh you're right. I missed that.
 
my mind was too busy focusing on how std::function is nicer
here's a nice guideline to keep yourself happy
only learn how to do things the nice way, the ugly way if you're forced to
 
@AlexM. Then why am I learning C++?
 
because you suck
 
@AlexM. good answer.
Now, continuing on...
 
You can also just use typename Fn for taking functions.
 
1:13 AM
Will SO let me post messages now?
aha!
 
Like template<typename Fn> void func(Fn fn) { fn(a, b, c); }
 
great, a new cicada
 
@Jefffrey quicksort that falls back on heapsort if the depth gets deep, and insertion sort for small sets - that's called "introsort".
 
@Jefffrey That would probably be best too for performance-based code.
 
@Cinch std::function has the same speed as a pointer; for speed you use templates and functionoids.
 
1:15 AM
@MooingDuck std::function still adds additional instructions at the binary level
 
std::function is for when you want to store it somewhere
 
like callbacks
 
Or maybe std::reference_wrapper does that.
 
@Jefffrey Function pointers can be stored as well
 
@Cinch incredibly minimal overhead
 
1:15 AM
@Cinch Forget about them.
 
@Cinch you're going astray
 
@MooingDuck Hey Moo, what you're doing here. Rarely seen you.
 
@MooingDuck Depends. I wonder how much overhead it would have if I decided to have a lambda capture 4 classes
 
@πάνταῥεῖ I got downsized, so I'm on the net during the day again
 
@Cinch try it out?
 
1:16 AM
@Cinch same, the size doesn't add any runtime penalty.
 
there's this coliru-like service that lets you see generated assembly
 
well, except for the heap allocation if the size is >N bytes.
 
@Rapptz Was it you that used lambdas everywhere (ever for free "global" functions)?
 
I'm just here to procrastinate.
 
@Jefffrey No. I did that to shitpost once.
lambdas are great though
 
1:17 AM
@Cinch nothing quite like "hi guys I want to know the answer to this problem but I don't really give a shit about the problem just want to waste time haha"
 
Oh.
 
I saw you use Rapptz's Deletion Lambda™
 
@AlexM. There's many, but this is the most common: gcc.godbolt.org
 
that's what I use when I need to
 
@Rapptz I did?
 
1:18 AM
around once or twice per year
 
yeah
 
@AlexM. I'm just passively increasing knowledge
 
I need a better name for this GOAT trick.
 
Does that have something to do with std::unique_ptr?
 
@MooingDuck I've just regained all powers a few minutes ago. You'll just have to drink and wait ;-) ...
 
1:18 AM
Yes
 
I've been scared to use std::function in the past but I guess it would work well enough.
 
It allows for type safe type erasure with std::unique_ptr.
 
Yeah.
 
@Cinch I don't think it wouldn't work lol
 
@Rapptz std::function?
 
1:19 AM
what are you doing that might not make it work
inb4 ultra fast game engine
 
I wonder why it's not standard yet. Something like erasure_deleter<Type>()
 
@AlexM. I'm not sure exactly what I want to do this summer.
I'm still stuck between internship opportunities and a family job.
 
inb4 ultra fast game engine
 
I'll be working with Lisp, R, or JavaScript.
Funny, really.
 
@Jefffrey Because at that point you have a nerf'd shared_ptr.
 
1:20 AM
inb4 (ultra (fast (game (engine))))
 
@MooingDuck Well...
no.
 
Apr 24 at 3:07, by Rapptz
@MarkGarcia http://coliru.stacked-crooked.com/a/ec49c8f5c25c4100
 
@AlexM. I'm going to guess that Lisp is not as fast as C but still fast because it was done in the older days.
 
cc @MooingDuck
 
@Cinch it got people in space
it should be enough for Cinch
 
1:21 AM
@Cinch Lisp is relatively slow as far as languages go. Last I checked. It's very elegant though.
 
void_deleter would probably be a better name actually.
 
@AlexM. Oh shut up, I'm basically forced to use Lisp for the job.
It's AutoLISP if you're wondering.
 
@Rapptz cough boost::any cough
 
@Rapptz ...but why? (constructor fails for types that are copiable but not movable))
 
@MooingDuck idc about the constructor, it's proof of concept.
 
1:23 AM
Welp, it's that time again.
Good night erryone
 
@Jefffrey boost::any is for scrubs
 
@Rapptz Why though
 
I actually found out a good way to remove the RTTI too
I don't know, I get bored and this is how I pass time.
 
@Rapptz any code manages to blow my mind over and over again.
 
@MooingDuck use emplace.
 
1:24 AM
It's a great expression of the power of C++
@Jefffrey nite
 
@Rapptz I don't think you can, the type is erased, ergo you need some form of RTTI to keep type safety
 
@MooingDuck Well without RTTI I mean without typeid(...) or typeindex.
But you can write equivalent ones pretty easily (sans .name())
 
@Rapptz dynamic_cast is also part of RTTI. And anything other solution would be merely recreating RTTI yourself.
 
I'm not using dynamic_cast.
and yeah that's what I mean; recreating RTTI myself obv.
I don't hate RTTI or anything so I don't do it.
std::type_index is pretty good
 
@Rapptz What's the overhead of it?
\> or < than dynamic_cast?
 
1:28 AM
@Cinch Lisp used to be known as extremely slow (prompting the comment that "Lisp programmers know the value of everything but the cost of nothing"). Recent implementations are faster, but still not exactly speedy.
 
it just has a pointer to a type_info.
 
@Cinch typeinfo is pretty much compile time. virtual calls add just a pointer indirection, dynamic_cast searches the heiarchy somewhere
 
what are you talking about exactly?
It sounds like you're talking about boost::any.
 
@Rapptz No, I'm talking more about type_info
I have no insight into how this "magic" works and if it's really magic or really simple.
 
Always prefer comparing typeid and then doing static_cast instead of dynamic_cast.
dynamic_cast is too beastly
 
1:30 AM
@Rapptz vtables yada yada yada
So it is lighter.
 
@Cinch it's just a pointer, and comparing pointers is about as fast as it gets
 
@MooingDuck Not always, apparently.
I checked part of the GCC implementation and they have an exception for that
 
?
 
@Cinch that's the before function?
 
1:32 AM
what about before?
it's part of the interface
 
I thought the operator==?
No idea what weak symbols are; gonna Google it now
 
it's comparing pointers
 
> Estonia First Country to Offer E-Residency Digital Citizenship ibtimes.co.uk/…
 
what do you think it's doing?
 
interesting
 
1:33 AM
@Rapptz oh, I see it, the comments about the old abi
 
> 00096 // In old abi, or when weak symbols are not supported, there can
00097 // be multiple instances of a type_info object for one
00098 // type. Uniqueness must use the _name value, not object address.
 
oh that's old
 
probably from dlls having their own copies
 
Isn't Estonia the country that completely botched their online voting system
 
@MooingDuck According to the google'd resource, yes, it's for ELF
or something like that.
 
1:35 AM
writing a resume is hard.
 
Oh, wow, it's only 16 bytes wide.
...Is that big or small?...
And lambdas scale their size to their capture parameters; std::function apparently takes up 32 bytes.
 
1:54 AM
@Cinch "it"? type_index?
 
@Cinch appears to have a pointer and a hash, and not much else
 
@MooingDuck seems pretty good to me.
No vtables, no lookup, etc etc.
 
so if those are both 8 bits, it makes sense
 
@MooingDuck you mean bytes?
 
2:01 AM
@Cinch erm, yes >.>
 
@MooingDuck btw what do you think about my member initialization list formatting
is it weird
 
@Rapptz You are making assumptions about the class hierarchy.
 
@LucDanton But doesn't dynamic_cast make use of vtables?
Or are we past that?
 
@LucDanton I am.
And that is okay for me.
 
@Cinch I like the {} on it's own line unless everything is on one line. Also, having the : over there is weird
 
2:04 AM
@Rapptz What do you think>
 
Foo<T>(T a, T b, T c)
    : a(a)
    , b(b)
    , c(c)
{}
 
Is my member init. list formatting weird?
@MooingDuck mm i suppose
but I don't follow Allman anymore
 
@Rapptz It’s nicer to make that explicit though. Not everyone is on the same wavelength.
 
@MooingDuck If you discard your honesty and your soul, it's much easier.
 
I've seen the light after I wrote this:
for (int i; i < max_i, ++i)
{
    for (int j; j < max_j, ++j)
    {
        for (int k; k < max_k, ++k)
         {
             if (i)
             {
                 std::cout << "A";
             }
             else
             {
                std::cout << "B";
             }
         }
    }
}
 
2:06 AM
@JerryCoffin "Proficient in languages: C++, ................. um...."
 
@MooingDuck English
 
@Cinch I can't words good.
 
are you using sweet sweet latex for your resume
 
When I first started, there were couple of people who interviewed me told me 'the format of your resume looks terrible'
 
@chmod711telkitty What did you use?
 
2:08 AM
MS word
 
So .rtf?
 
@chmod711telkitty So did I. Ugh.
 
@Cinch I have a coworker who does Allman + empty line between each line. I, on the other hand, write this garbage: ideone.com/pAUw5l
my vertical space is very precious to me
 
@MooingDuck Ew, no spacing.
 
2:11 AM
erm, it looks better when ideone doesn't do the absurd line wrapping at 80 characters
 
I like using a space to separate my functions
It looks much cleaner and your eye can easily see the start and end of functions
 
@Cinch that's what indentation is for
 
For declarations, though, I tend not to space.
 
@LucDanton I'm not exactly sure what you mean anymore.
 
@MooingDuck sorry what?
 
2:14 AM
What I love about that container is that the track class is ~200 lines including the iterators, and with the exception of .resize, every member function is a single line of code.
 
@MooingDuck You've obviously neglected the language all real programmers know best: cussing.
 
@MooingDuck Like, before and after your swap function, I would've put a space before and after
 
@Cinch meh
 
Strange misconceptions here:
0
Q: compare string with a number without writing too many operator overloading functions

codingFunThe following code works for the case of "==" (thanks to the solution provided by πάντα ῥεῖ) when comparing a string to a number. What about ">", ">=", "!=", "<", "<=" etc? Is it possible to avoid writing the functions for each of the operators by writing a function template? Typical function ...

@Moo & @cinch Sorry to intercept.
 
@πάνταῥεῖ "last message posted 11 minutes ago"
 
2:27 AM
@πάνταῥεῖ I'm working
 
2:44 AM
std::lexical_cast when
 
@Rapptz Sure?
 
I like gummi
it has a live preview
 
I use TeXStudio.
 

« first day (1674 days earlier)      last day (3291 days later) »