« first day (1052 days earlier)      last day (3889 days later) » 

9:05 PM
The ending of Lucky Star episode 3 mentioned the opening of Full Metal Panic: Fumoffu. I felt happy when that happened.
 
Xeo
woooh, back home
 
The more loosely coupled, the better, right?
 
@Pawnguy7 If you talk about C++: Yes
 
As opposed to?
 
@Pawnguy7 Electrical wiring?
 
9:16 PM
I assumed it applied to any OOP paradigm.
 
Sure, sure, but this is the Lounge<C++> :-D
 
@StackedCrooked very old news
 
@Insilico s/at C++11 multithreading//.
 
@Insilico where's your answer :<
 
9:19 PM
@sehe Writing one right now, although TBH I can't see what's wrong. I thought State::load() just simply doesn't finish, but the OP has already ruled that out.
 
I love how you named the future 'thread'. You know, just for added confusion :/ — sehe 4 secs ago
@Insilico Hence, that's exactly what's happening (mark my words)
 
I mean one answer uses a platform-specific function, another answer proposes a busy-wait. What the hell.
 
Ell
I wonder if cicada left because she was revealed
 
What's the type of stateInstance? 'Cause, if it's an object or a reference, you need std::ref() with that! — sehe 3 secs ago
@Insilico Ah. That. Hahaha
 
No clue about C++11 multithreading :-(
 
9:21 PM
@Ell Not in the first place. He wasn't so much exposed as we finally punched a hole in this once-funny game we all liked. He's a master troll. He just used the internet as a break from real life.
 
This is currently an issue of discussion in the proposals for the next sstandard. they want to add function to chain actions and add the keyword await to do std::async(function1()).then(function2()). See proposals from sutter on isocpp.org — dzada 3 mins ago
Am I just not understanding the relevance of this comment with the OP's problem and/or dzada's answer, or what?
 
If I am accessing a vector<> from multiple threads but don't write to it, do I still need to use a lock_guard?
 
@sehe Yeah that's what I meant by people failing at C++11 multithreading.
 
Ell
I understand she was having some troubles generally. Ahh well either way I hope she is happy irl
 
@Mikhail I want to say that's fine, but I'm not positive.
 
9:23 PM
@Ell He.
 
If by "accessing" you mean "reading", and you don't mutate the elements in any way...
 
Who cares? You are all 'Its' :-P
 
Ell
Well he identified as a she, I don't know what to say
 
I think you mean trolled :P
 
This is the internet, where men are men, women are men, and little girls are FBI agents.
 
9:27 PM
Maybe she was a girl with a male voice.
 
And the NSA watches over us all.
Amen.
 
user1804599
@StackedCrooked I heard a girl and I didn't like it.
 
You heard a girl!? Wow, what was it like?
 
user1804599
It was like a male voice.
 
@not-rightfold Please enlighten us on this aspect.
 
user1804599
9:29 PM
Damn.
 
user1804599
This would be much easier if this shitty table layout didn't have a surrogate key. :V
 
Why do I have a FB "friend" called Rambo??
I don't even know where this person came from.
 
user1804599
@TonyTheLion Hollywood.
 
@Insilico Isn't mutable threadsafe now or something like that?
 
@not-rightfold oh yea, lol
 
9:33 PM
@Mikhail I'm not familiar with that concept.
 
mutable?
 
@Greenflow I meant "mutable == threadsafe"
I know what mutable is.
 
I was wondering what the C++ keyword 'mutable' could have to do with threads. :-D
 
@Insilico wat?
 
@A.H. He's saying he's not familiar with the concept of mutable means threadsafe in response to Mikhail
i think
 
9:37 PM
mutable means threadsafe?
 
@Borgleader That is correct.
 
If you have a mutable mutex, you can have const member functions lock it and unlock it.
 
@A.H. More like the opposite.
 
@A.H. I don't know. That's why I said I wasn't familiar with that concept.
 
0
A: Detect thread end

seheI'm unsure what the trouble is, but here's an idea using wait_for (compiled on Coliru): #include <future> #include <chrono> #include <iostream> struct State { void load() { std::cout << "working\n"; std::this_thread::sleep_for(std::chrono::seconds(4)); std::cout << ...

 
9:37 PM
Or maybe it is.
 
^ that's just random shooting, since the OP doesn't show enough of the problem, of course
 
Xeo
Oh gawd, the proposal thread about removing _t from the type transformation traits... /cc @R.MartinhoFernandes
 
@EtiennedeMartel I highly doubt it
like 99.99%
 
@sehe Actually that might be close to what the OP wanted in the first place. But then again I'm still clueless.
@Xeo We're talking about this thread, I presume?
 
@Xeo god, so first we have typename some_trait<T>::type, which gets amended to some_trait_t<T> and now they want to shave 2 characters off?!
 
Xeo
9:41 PM
@Insilico Ya
@sehe That's not where it stops :s
 
@Insilico a bit confusingly worded, really
@Xeo I'm gonna take some popcorn
 
@Xeo They're making an entire proposal to save having to type 2 characters or what? That's just dumb... what a waste of time
 
@Xeo wot
 
I'm stupid.
 
ohhh popcorn
 
Xeo
9:44 PM
@sehe They also mentioned removing the nested ::type and ::value members :|
 
@Xeo Meh, another attempt at drilling sense into those minds wasted.
 
Xeo
Hi robot
 
Hi robot
 
Xeo
Did you get drunk celebrate your new job yesterday in the end?
Wait, not yesterday
 
Yay! ALL THE NEW JOBS!!!
 
Xeo
9:45 PM
Saturday
 
I'm not even going to use the stuff_t aliases.
 
Wait... Saturday? Robot works on Saturday?
 
Xeo
@Rapptz Why not?
 
stuff<T>
 
9:46 PM
@Xeo They're fucking ugly.
 
user1804599
> Having the key independent of all other columns insulates the database relationships from changes in data values or database design (making the database more agile) and guarantees uniqueness.
 
user1804599
lolwtf
 
@Xeo I already have my own that.. you know I find more readable and less ugly.
 
Xeo
9:46 PM
template<class T> using DoStuff = std::do_stuff_t<T>; :D
 
@JohannesSchaub-litb What's up?
 
inb4 cryptic C++ question that no one knows the answer to
 
One idea which would both make the declaration more understandable and the feature less risky would be to explicitly say that things are being added to std:

namespace std += std::type_traits_v2;

Well, not much of an improvement, is it?
What the hell
 
lolwat
insanity much?
 
Xeo
@TonyTheLion Asylum vOv
 
9:48 PM
@Rapptz Heh, tweeted already.
 
@Rapptz I wanted to ask how's that different from
 
@Xeo yea
WTF right?
 
i would prefer namespace std : foobar;
 
namespace std {
    // new stuff!
}
 
Ell
 
9:48 PM
@Rapptz My god, there's so much nonsense in that post.
 
namespace sexually_transmitted_disease { }
 
Ell
I don't understand this
 
when inheriting, the "base namespaces" listed become inline namespaces of the inheriting namespace
 
@Ell Too long
 
one namespace can be an inline namespace of one or more other namespaces, either by inheritance or by nesting.
 
9:50 PM
OOP in namespaces
why? WHY WHY WHY WHY
 
@R.MartinhoFernandes Whoa.
 
Ell
What will it be next? Templates namespaces?
 
> As an aside: Could anyone explain to me why type_traits ended up as a
> multitude of single purpose structs in the first place. To me it would have
> been more logical to have one type_traits template like this:
>
>
> template <typename T> struct type_traits {
>     typedef const T add_const;
>     static const bool is_const = ...;
> };
I couldn't find the original post, but what..?
 
Xeo
@Rapptz That is the worst.
 
9:50 PM
someone didn't understand type traits
I think
 
template<class T>
namespace A {
   class B {
       T c;
   };
}
 
@Rapptz I honestly dunno if it's worth the bother explaining how dumb what he wrote is.
 
@R.MartinhoFernandes hows the new job?
 
Oh gawd that's going to introduce even more craziness.
 
9:51 PM
THE FUCK IS THIS SHIT?
 
@R.MartinhoFernandes Yeah... this is pretty fucking dumb.
 
Even I wouldn't write such a thing.
 
Ell
@robot I'm not playing dumb here but what is actually wrong with that? (Please don't mock my inexperience :P)
 
with the single struct thing?
 
Ell
Add const would work right, and a is const would be a std::is same of t and add_const
 
9:53 PM
Well... other than the fact it completely shits on Single Responsibility Principle..
 
Ell
Ohhhh I missed the point
Never mind
 
@Rapptz Not only.
 
Yeah there are multiple of reasons why it's extremely dumb
 
type_traits<T>::add_const will always need typename.
Pure suckiness.
 
9:55 PM
except if you are within the type_traits template
 
@JohannesSchaub-litb I don't seem to fit there (and I'm not sure what sort of diet I'd need to fit there either). ;-)
 
@JerryCoffin you can undergo a so-called narrowing conversion
 
@JohannesSchaub-litb Hopefully one that doesn't involve slicing?
 
it depends on your sizeof
 
@JohannesSchaub-litb long long double, I'm afraid.
 
Xeo
10:03 PM
long double chicken; // nom
 
diets are narrowing conversions
 
@Rapptz Well, I replied just pointing out what he assumed wrong the parts where he showed how little he knows about TMP, and how qualified he is to judge what is convenient and what is readable and what is common.
 
and hamburgers are widening conversions?
 
I think "if you don't know how typename disambiguators work, you are not qualified to make TMP-related proposals" is a good rule of thumb.
 
yea, and that is why you don't see me writing those proposals
the only proposal I'm ever writing is to my future wife.
and it won't be of the std proposal format, because I doubt she will understand C++
but maybe she will and that would be awesome
or not?!
 
Ell
10:10 PM
Hmm I think it would
 
std::future<wife> mywife
 
Ell
As long as you had other things to do and talk about and spread on each others naked bodies
 
@TonyTheLion she could be a php person
 
oh no
I wouldn't want to imagine the discussions
and the arguments
and the insults
a wife that writes PHP would be an instant turn off. Imagine you're having sex and suddenly you're thinking about the fact she writes PHP for a living, your sex would be ruined instantly.
 
No, not really.
 
Ell
10:14 PM
Cmon cat its just fun
Having sex with a cat would not be fun on the other hand
 
Cat is all serious. Because fun is horrible.
 
Ell
Man this got weird quick
 
What?
 
How did this go from sex between humans to bestiality? WTF?!
now you ruined it :/
I was really just filling bytes on the Internet
 
Ell
Well you know, now that we're letting homosexuals do it, we have to be all inclusive! </troll>
 
10:16 PM
AFAIK bestiality is illegal in the UK.
 
Ell
I'm pretty sure it is
 
user1804599
@TonyTheLion But hey, at least it ain't Java.
 
heh
Some Java dev I spoke to confused threads and memory management
 
user1804599
What a surprise.
 
I don't know how you can confuse the two, but hey, Java devs
everything is possible
I wrote some C# today and wanted to use static_cast
lol
 
Ell
10:19 PM
Haha
You have to use the uncomfortable brackets dont you?
 
user1804599
@TonyTheLion We have an intern who liked Java and has now used C# for two days and he says he doesn't want to use Java anymore.
 
hehe
don't blame him
 
What are uncomfortable brackets?
 
Ell
Also TIL the term "camel toe slide". (People aren't at work at this hour, right?)
@greenflow c style casts
 
user1804599
10:21 PM
@TonyTheLion You can also use as. :V
 
Ell
(int)1.3f
 
user1804599
So you don't "have to".
 
user1804599
Well, depending on the data type.
 
as is not the same.
 
user1804599
Casts suck anyway.
 
Ell
10:28 PM
Yeah, just use a dynamically typed language
 
TIL Japanese has a crap ton of Braille arrangements.
 
10:44 PM
@Ell weakly typed
 
user1804599
Oh cool Go ships with a QuickCheck equivalent.
 
user1804599
Called quick.Check. :V
 
10:56 PM
@CatPlusPlus about the chat server... I have a spare OEM box lying around :p
 
Xeo
Fuck yeah
 
@Xeo argh...for once I didn't have this stuck in my head. here I go again...
 
Ell
@mooingduck ahh of course. I was thinking only of a base -> subclass cast for some reason
 
o.O
 
11:08 PM
@Rapptz Yep.
 
Cool.. concept I guess?
 
Why don't PODs have useful constructors? Would be cool if some was generated to match the {} order.
 
@Rapptz It's like Kickstarter, but continuous.
 
It's neat I guess.
 
@Mikhail they do
@Mikhail heck, even C had that
 
11:18 PM
I don't know how to fix my any requiring a move or copy constructor.
it's kinda bugging me.
 
Am I just stupid, or is it somewhat unclear what he wants here?
 
Ell
Its very unclear to me
 
 
Ell
Subtracting an array unto itself
 
11:27 PM
Current OS programming course required textbook.
 
Ell
Anyway, night all
 
Night!
 
@Nican Looks old.
I mean, last time C was considered a "high level language" was in the 70s.
 
Give me a moment, asking my friend for the book.
@EtiennedeMartel The book was released in 2007.
 
@Nican Oh, but it's an OS book.
C is indeed at an higher level than assembly.
 
11:32 PM
higher, but not high
 
Eh, Tanenbaum.
The guy isn't a programmer.
He's a computer scientist.
 
@EtiennedeMartel I'm not sure it ever really was -- if memory serves, the introduction to K&R specifically says something to the effect that "C is not a high-level language".
 
@JerryCoffin Woa.
 
@EtiennedeMartel I dunno -- he's written a lot of code too.
OTOH, if your point of reference is pure assembly language, C is clearly high er level, anyway.
Hi Scott!
 
Mine's been filled with not doing a shit.
Sitting on my ass.
Then sitting some more.
 
11:37 PM
Time you enjoying wasting is not wasted time.
 
@ScottW I'm sorry.
 
this just in on BBC "news": football player transfers!
 
11:55 PM
size_t num_fucks_given = 0;
 

« first day (1052 days earlier)      last day (3889 days later) »