« first day (1633 days earlier)      last day (3541 days later) » 

Xeo
Xeo
01:00
@sehe v.expired()
@sehe holy shit
it's so advanced
Let me edit that to boost::mem_fn(&ptr::expired)
Xeo
Xeo
also, may aswell use auto in both
@Xeo thanks ^
@Xeo Yeah, I was half assing the edit. Looked clean enough already :)
Xeo
Xeo
@sehe std::mem_fn
still like lambda more
01:02
@Xeo ikr. I was mentioning boost because I though about using lock (I forgot about expired). Boost allows !bind_expression to make a negated predicate
user1804599
user1804599
Still my favourite of Bjarne's slides.
> java programmer
contradiction detected
To only ignore .cpp files in the root directory I have to do ./*.cpp right?
Context please
01:06
Not sure if that ignores other .cpp files in e.g. other directories like foo/a.cpp
okay done
Implemented smart pointers into Flexiglass
user1804599
When it comes to globs, never assume they support recursion.
@sehe Git
@райтфолд I think he means .gitignore
@Rapptz I think it's /*.cpp
user1804599
Basically, only about two glob implementations support recursion (making them the two only useful ones).
user1804599
01:07
Python 3.4 and Z shell.
Bash +globstar, Vim and zsh?
chat.stackoverflow.com/transcript/10?m=22503872#22503872 programming in java is so easy, i dont see why you dont like it. i dont see how its clunky.
it's tedious, and has so much red tape code
Compare with C# once
user1804599
@sehe Don't know those.
user1804599
Ruby also has recursive globs, btw.
user1804599
01:09
In Perl I just do qx{zsh -c 'echo **/*.cpp'}.
Vim has the only globs that can navigate back up, IIRC
does the standard mandate copy elision?
user1804599
No, it's optional.
They are permitted.
01:10
optimizations are optimizations. However, I think in specific wellknown cases, I believe c++1y might add a wording about a specific call being elided. Don't remember which
user1804599
But it's not important anymore since we have move semantics.
user1804599
Maybe still applies in corner cases.
Alright then
@райтфолд Returning an std::array by value
STUD ARRAY
smart pointers implemented into Flexiglass, listener interface tweaked
01:12
stud putter
sigh...
unicode + c++ is not very nice
> score: 150 (level 4) [rip]
@sehe I know I'm not good enough yet to see it.
sure. Unicode is not very nice. C++ is not very nice. Your mom is not very nice.
u8 literals are god sent
it's like a pea in the unicode platter though
01:15
I don't see what the difference between A a{myDataType} and A a(myDataType) is...
Maybe one day you will.
time to be a lazy bum and watch youtube videos
hah
was literally thinking the same thing
almost word for word
good one Rekktz
does anyone are tried msgpack?
checking out for LRIO, time to drink
bai
nope. why is it better than protobuf?
I want $1000! Someone donate, please.
@sehe I don't know I've just heard of it
@Nooble This is not an MMO
@Nooble where?
01:22
@DonLarynx :(
@Nooble Speaking of donations, lightnesspyramid.com
You know it makes sense, Noobly.
user1804599
C++ is so nice.
Wow. For the first time ever I've seen a usenet download be repaired after verification failed.
Which is nice because this particular one was 48.6GiB
hm.. r9-380x released "Q2", so i guess i'll wait until summer ;_;
I have a paid account but hardly use it. My last successful download was from 2014
Oh god
It takes about 3-4 milliseconds to pack and unpack
But that also occurs with an exception.
01:27
oh god why I did I put on the SGU soundtrack
it makes me so sad
I've only just finished an SGU marathon so it feels too soon to actually watch any episodes
but I almost feel like I could watch it all again. over and over. back to back.
best. show. ever.
sigh
@райтфолд starbait taken. be glad I'm pissed. /cc @MartinJames
user1804599
Hmm.
he's thinking "I wonder who that was"
penny in the air
user1804599
Instead of specifying requirements in documentation comments, I can put // requires Foo after template<…> and in a few years I can remove the slashes. :P
never mind. penny stays in the air.
Is it bad for system to take 2 milliseconds to send 4 strings, unpack, and print?
there are no absolutes in performance measurement
well, "send" where?
to your mom
@LightningRacisinObrit Down a queue, and then popped later
inside a process?
01:29
I'm creating my basic example for Flexiglass
And it includes a bad cast
So the cast takes about 2 milliseconds
and the printing takes up the rest
no it doesn't
I suspect your measurement is wildly inaccurate. Most likely due to the printing
the example with Lua without the printing at all takes 0-1 milliseconds
no way a cast takes 2 milliseconds
unless you have an operator T() with a loop in it
@LightningRacisinObrit Sorry, the exception
The exception try-catch block
still
let's see your measurement
01:31
wow
Blueprint comes with a debugger too
Here's the example
@LightningRacisinObrit Thanks.
That was a good waste of 15 minutes.
Alright
@Cinch did you seriously just measure a single event? Or 3 in a row?
@sehe Oh that's the entire example
01:34
@Cinch Lemme find that twitter explosion when a startup CTO did something similar
I just pushed so if any of you want to try it out feel free to do so
user1804599
@Cinch The comments take a long time to run. You should delete them.
@райтфолд I can't tell if this is a joke
user1804599
They're not actually omitted by the compiler. It's true that they have no behaviour but they do have runtime cost.
@райтфолд wtf.
user1804599
01:37
That's why you typically see so little comments in code.
why
@райтфолд It can't be that hard to remove comments
user1804599
Because it'd be rude to just ignore all the text you wrote.
'cuz 3:37 am is leet as well
Night all
@sehe G'night.
01:38
Heya. Jerry's here. I can go to sleep
user1804599
@sehe See you in a few minutes.
> I didn't look at much, but I did notice that one of your base classes does not have a virtual destructor - this almost certainly means your code is in undefined behaviour land at some point.
What?
Where did this happen? Didn't I fix this?
user1804599
Destructors not running isn't UB unless you depend on their side-effects.
user1804599
The standard says so, don't ask me why it's vague as fuck (what are side-effects? what is "depend on"?).
Oh shit.
I forgot I made this
user1804599
01:41
Does delete x; have a side-effect if the destructor of decltype(*x) has no side-effects?
user1804599
I know libuv supports async I/O for regular files.
user1804599
It does it with a thread.
Situation: I wanted to use std::unique_ptr for a situation for the case that I create Event dynamically and then pass a pointer into the queue instead of copying it onto the queue but I decided to use references. Should I switch or no?
@sehe This is what I had mentioned earlier
01:49
@Cinch You're timing a single run. That's never going to work.
@Rapptz bai
I don't see how marital status matters in this context
@Rapptz hmm not bad
@LightningRacisinObrit Meh.
I removed it anyways
@LightningRacisinObrit lol not me
01:50
The day I sleep at 9:50 PM is the day I die.
Hm.
I just realised I want to write tests for the implementation behaviour.
@Rapptz Should I write a test thing for Flexiglass?
i.e. using Check or something?
Uh. Sure.
Or Catch
You do it to ensure that everything in the library works right?
01:53
yep
Hm.
Maybe I should adapt that...
I'll add it to the milestone TODO
user1804599
Hmm, writing to a regular file with Boost.Asio seems to just work.
user1804599
Even though it says that's not supported.
What's the point of boost::scoped_ptr<T> vs std::unique_ptr<T> const
@райтфолд Destroying an object of derived class via pointer/reference to base is UB unless the base class has a virtual dtor. "...if the static type of the object to be deleted is different from its dynamic type, the static type shall be a base class of the dynamic type of the object to be deleted and the static type shall have a virtual destructor or the behavior is undefined."
01:55
@MomotapaLimpopo I think it's just to mark it as literally scoped
Hey guys I think this might really help:

Downvoted?

Question got downvoted or denied? Ask why here!
user1804599
Fibers allow for quite funky jumps: gist.github.com/rightfold/…

« first day (1633 days earlier)      last day (3541 days later) »