« first day (1083 days earlier)      last day (4091 days later) » 

00:00
damn, I'm kinda hungry
Just had some traditional Berlin food: Döner.
Not hungry.
How are you pups? Do you eat again?
What? Everyone left when I arrived?
Also, I'm bad at ping pong. Not surprising, but good to know for sure.
Talk, birches.
Stupid spelling corrector that doesn't know curse words.
00:20
@R.MartinhoFernandes Not really.
Now it made me look like a fool.
:( you really need to eat something, dude.
You can't just give up.
Yeah, I'm not your mother.
@R.MartinhoFernandes I eat from time to time.
just very rarely
and not much even then
Ok, then. How's Wide coming along? Taking a break now?
no, working on it
Hello.
00:27
I am currently working on error handling and the VS plugin
Fuck, it's cold.
90
Q: How can I connect to a Tor hidden service using curl in php?

frostyI'm trying to connect to a tor hidden service using the following php: $url = 'http://jhiwjjlqpyawmpjx.onion/' $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_PROXY, "http://127.0.0.1:9050/"); curl_setopt($ch, CURLO...

lol
I guess it's time to start bringing gloves when I go out. A Lannister always pays his debts.
Wait, wrong house.
Is it normal for my eyes to produce excessive tears when it's cold?
I don't think so
It happens often to me, especially if there's a breeze. It's always been like that but only now did I wonder.
Xeo
Xeo
00:34
same
sleep time~ g'night
night :)
It's called "Fundamentals TS". std::optional is moved to this. Others
include string_view, invocation_traits, join, etc.
invocation_traits :(
Screw it, why am I browsing the Asylum at this time.
invocation_traits?
wtf?
I think it's the usual parameter probing crap.
00:50
What do you mean by join? Like the usual container join?
No idea.
I think it's some stringy algorithm.
Yes. The string join.
also known as intersperse
Well, I mean something like join({"Item 1", "Item 2", "Item 3"}, ", ");
yeah
For all I knew, could have been std::thread::join changes.
00:52
there was also std::split
Although that couldn't be in a TS then, could it?
Oh, is split in the TS?
@chris What kind of changes?
@chris Probably not. Needs ranges.
@R.MartinhoFernandes No clue, just going off of the name join.
Well, it doesn't if you make it with output iterators, but the existing proposal was not like that.
Is std::join "generic"?
like all the other things in <algorithm>?
00:53
Hopefully yes.
otherwise it'd be a bit of a waste of a good name lol
Making string-only algorithms is the moral equivalent of adding more members to std::string.
like std::type_index :(
funny how you suddenly just realize small things
I have my own split that works generically.
00:55
@refp Hey, I didn't realise these things now.
It's just type_index is the latest offender.
smoke break
and what was it that I realized?
std::move and std::move_backwards can be used instead of std::rotate
supahfazt!
@refp std::rotate with move iterators?
note: a lambda closure type has a deleted default constructor
hm
TIL I guess
01:11
for move:able objects, that is.. if that wasn't clear
@Borgleader are you thinking of passing std::make_move_iterator (...) to std::rotate? won't work unless my mind is playing tricks on me
it was a question more than a suggestion really
rotate uses swap, so move or not is sorta irrelevant.
@R.MartinhoFernandes sure, but if someone "forgets" to implement a standalone swap for the element type you are doomed to make copies everywhere, I guess
Default swap uses moves.
@R.MartinhoFernandes three moves instead of one!
01:19
Anyway, how do you use std::move and std::move_backwards instead of rotate?
@R.MartinhoFernandes you want to see the arguments that result in the same thing?
or how I'm using 'em (ie. why?)
inb4 its not a rotate :P
... let me write a testcase
maybe I didn't think this through.. sure I had it all figured out
in theory..
when its too good to be true, it is
01:29
I wonder what causes one to become a politician.
oh yeah, now I got it!
but it isn't 100% equivalent though, you can't rotate all the elements of a container.. you will need to leave the last on in place :/
so basically, it's not at all rotating.
or no wait, it doesn't work
@DeadMG nope
fcuk this shiznit brain of mine
or well, hold on a sec more
let me provide you with the testcase in either case
Shifting is trivial.
Also, why only the last one?
rotate can rotate by more than one step.
sure, it's more like shifting than rotating
here is the fcuk-up (that kinda works), I guess it won't work at all if the move isn't written in such a way that it actually swap the data between the two. if it just default initialize one of them instead of swap.. boom
01:39
You can't build rotate in terms of shifting without external storage.
@refp So, yeah, it doesn't work at all.
Moves that only swap are kinda crappy.
@R.MartinhoFernandes we already established that..
fcukmehard.
(Consider what happens when you move from a global variable, or any other long-lived object. It's just counter intuitive that the old state will live forever)
I like old states
but then again I'm the one trying to rotate with std::move_backward
wait.. did I think it through wrong this time as well? (about the need to swap thing?) can't be..
or well, you might lose the first one - the others are ofc guaranteed to be there (losing "C" in the fcuked-up paste)
Why are vector iterators so big?
or..
01:46
@Rapptz Debug?
I can't think.
I need coffee.
now.
@R.MartinhoFernandes I don't have debug symbols, no.
@Rapptz Debug iterators, I mean.
Well they're 80 bytes.. whatever they are.. that's pretty big.
@refp Since what you're trying is not achievable, I'd say yes.
01:47
@R.MartinhoFernandes that's the key. not achievable, but coffee.
@Rapptz Yeah, sounds like debug iterators.
IIRC that's exactly their size in MSVC.
How do I get regular iterators?
I'm not doing -g or anything
Or maybe GCC. Not sure.
Jun 5 at 2:53, by Luc Danton
(Btw I have to go back over my 'ginormous iterators' comments from earlier, I completely overlooked that debug iterators for std::vector start at 80 byte apiece.)
Ah, probably GCC, then.
@Rapptz There's a macro for it. Don't know it offhand. (you can check my build scripts, as I know I enable it there)
@R.MartinhoFernandes you should go to sleep!
But I don't think it comes on by default.
@melak47 Meh, it's a holiday tomorrow.
01:51
That sounds really dumb
:s
@R.MartinhoFernandes what holiday is this?
Not going to sleep before I lose this tourist.
@melak47 Tag der Deutschen Einheit?
I thought you were German.
@R.MartinhoFernandes yeah that does sound like something I should know, doesn't it
Hm..
nope, I'm German :p
01:53
sizeof(myclass) == 80, sizeof(iterator_inside_class) == 8 What went wrong there :(
but apparently not a very good one :E
@ScottW ya rly
@Rapptz Ow.
lol
Is that really a word or did you just make it up?
b) not use the services of the Provider to view or spread neither immoral or illegal statements nor pornographic and right-wing or violent contents;
right-wing?
I don't know how I managed to destroy the alignment that bad
01:58
Where is that from?
The sizeof sum of all the members is 9
@R.MartinhoFernandes online-convert.com/terms
Section 7.
Nice site
@Rapptz align(80)? :S
02:00
oh that sounds like the Nazi thing.
Ah.
I don't like reading these things when they were originally english either :\
@Rapptz It does seem to be quite an accomplishment. Even assuming 9 individual bytes, each aligned to an 8-byte boundary you'd only be looking at 72 overall...
@melak47 I just think I reached a new level of suckage so GCC is telling me to quit programming.
@Rapptz Maybe just time to use something other than gcc. :-)
@R.MartinhoFernandes What are you doing up this time of day? It's it something like 0500 there?
02:10
@JerryCoffin 0400.
18 mins ago, by R. Martinho Fernandes
@melak47 Meh, it's a holiday tomorrow.
Hrm...
@Rapptz you have used SFML, correct?
Yes
I still use it
I had a sf::Music as a member , and got a compile error about sf::NonCopyable :\
You can put 2 + 2 together!
Hm? Nothing is being copied.
02:19
Or so you think
What's the code?
on schnap.. superhackish code
Never mind, maybe it is copied.
Rather indirectly.
How do I fix this :\
by not copying it
can't even explain how hackish this is..
Well, I have these Screens. Basically has an update and draw, menu screens, etc.
When I change screens, it copies to gain ownership.
02:27
        void insert (iterator pos, value_type&& val) {
          using std::swap;
          size_type index = &*pos - _begin;

          if (pos > end ())
            throw std::out_of_range ("`index` is out of range at Vector::insert");


          if (size () == capacity ())
            reserve_at_least   (size () + 1);

          if ((_begin + index) != _end) {
            _impl_construct (_end, std::move (val));
            swap (val, *_end);
            std::move_backward (_begin+index, _end, _end+1);
(see full text)
supah hackish!
Fuck my life.
meh!
@refp stdlib header?
erhm, that didn't work too well.. but there it is
@MarkGarcia nhaa, just me messing around with some silly uni-assignment. started out to show a friend what a "neat" implementation looked like, then I tried to make it as fast as possible
@Jefffrey Do tell.
02:30
@refp Oh. I suspected it isn't a GCC implementation for it lacks double underscores. :)
and now I can't delete that post..
I put it on a pastebin since I think I fcuked it up when I edited it
@refp Should have put that in coliru.
@MarkGarcia too lazy to mess around with the commandline so that it doesn't try to compile the code, etc etc
that insert implementation is actually quite fast (a little bit faster than libstdc++4.8.1 with the same version of g++ -O3)
the hack of first moving the object to be placed into the end position than swap:ing it back out (just to have an element which std::move_backward can move things to) and then moving it where it's supposed to be.. kinda sweet
@refp Hehe. You can just clear the command line and Coliru becomes insta-pastebin! (example)
@MarkGarcia sure, but you obviously don't know how lazy I am
02:35
My birthday today, congrats me for being 5 years older than 5 years ago :p
p.s. not disclosing my age, ever!!!
@Telkitty猫咪咪 Happy birthday! :)
thank you :)
instead of moving constructing the element at the last position, and then std::rotate it to the correct one with a billion swaps
whoa, it's superfast.. just need to make sure that I don't do anything wrong
@refp Wait. You can possibly std::move val in there twice. One inside the if and the other after.
@MarkGarcia look at the superhackish solution!
I move it away, then swap it back out
02:40
@R.MartinhoFernandes Yeah, I realize it's a holiday tomorrow, but even so, about the only time I'd be up to 0400 is if I was either working or drinking...
@MarkGarcia so.. yes, I can!
@refp And I sure don't understand it! Though that would be the essence of clever hacks. :)
@MarkGarcia understand the reason or how it's working?
@refp The purpose of doing the move and swap, and the subsequent move after the if. Though I may not be understanding how your insert method should work in the first place.
7 hours ago, by Scott W
I'm basically terrible at everything except being hungry
^ sums it up pretty well
02:48
Ah.
Think this is good or bad for an active button?
Basically I don't know what I'm doing with my life. I attend an university in which less than half of the courses are nearly interesting, which is instead sucking up my free time that I could spend developing some experience with personal project or learning from studying things I actually care about.
Which courses don't interest you?
Anything that is not directly related to programming.
Does that include some math?
@Pawnguy7 To be honest, I think that should be a link, not a button. :P
02:55
@MarkGarcia that was what I was thinking as well. I could do a darker fill on mouseover, I just don't know how readable the text will be.
Unless I change the color of the text as well.
@Pawnguy7 White text with black outline/stroke could be easily read in any backgrounds, though I don't know if SFML supports text outlines.
@Pawnguy7, don't worry, this is just a depressing rant. I'll be fine. In two of three days I'll be the happiest guy in the world, when I'll finally remember why I am doing this. It happens every year.
Okay... I'm confused... can someone help me with sending objects as arguments for methods? I've done this in Java and ObjC... but C++ seems different.
void someMethod(SomeType type) /*later*/ someMethod(instance)?
Do we have any idea of a date for the TS?
02:59
My sleeping patterns are so fucked up.
@chris TS what?
@MarkGarcia The technical specification related to C++14.

« first day (1083 days earlier)      last day (4091 days later) »