« first day (1061 days earlier)      last day (3886 days later) » 

11:00 AM
eh
I am not going to change to Clang as my primary compiler until they integrate it with VS debugger.
the Clang guys said it's a relative priority for them
 
that would be a thing indeed
 
Xeo
Are you missing an adjective there?
 
@BartekBanachewicz But we'll wait for RTM anyway.
 
I wonder if Clang team can manage before JetBrains releases
competition is very good in that regard
 
hmm
 
11:01 AM
Hmm, JetBrains IDE will be a lot more than just a good compiler plugged into a crappy IDE.
 
seems like Clang no longer cries on the MSVC stdlib headers.
 
@R.MartinhoFernandes depending on actual usecase, the latter part might still be very interesting
 
Xeo
@BartekBanachewicz Is that + a typo?
 
but still can't mangle the codecvt names, so it still can't handle linking to MSVC's stdlib.
 
@Xeo I hope it's not l33t Newspeak.
 
Xeo
11:02 AM
That's why I'm asking
 
@Xeo hm, no. I found it even funnier written that way.
 
Oh gosh why did I form that idea in my head.
 
gosh, alright.
@R.MartinhoFernandes because I've just used it
newspeak with symbols; let that sink.
 
Xeo
Let's sink you into the bin.
 
11:03 AM
oOoOoOo
I'm going for a hunt.
 
Hmm, lunch is a good idea indeed.
 
yay I just got icc non-commercial
time to compile something
 
sbi
@R.MartinhoFernandes Ein (Regen-)Schirm.
 
Xeo
... fuck
It seems I can't submit the symlink :<
Since windows doesn't allow reading it
 
@BartekBanachewicz what?!
 
11:08 AM
1 hour ago, by R. Martinho Fernandes
Get ready for a complete fuckup on Windows.
Ah, Schadenfreude.
 
sbi
I am trying to create g++/Windows-compatible stubs for some of our library stuff, so we can compile, run, and test things locally on our PCs, rather than downloading them onto the hardware we usually target. I just did our mutex class, which was pretty simple: std::mutex does the job.
 
Xeo
Meh, seems I need to enable the CreateSymlink privilege
 
sbi
Now I am stumped. We have a condition variable thingy. You can call signal() on it, and this will release every thread blocked in its wait_for() member function.
How do I do this using the std lib? (C++11, as this is GCC 4.8.) Or is there anything in boost?
 
@sbi Yeah, I'm also rewriting parts in our code-base to decouple them from the hardware they normally run on so that they can be tested individually on a normal pc.
 
std condition_variable?
 
11:14 AM
notify_all?
 
sbi
@R.MartinhoFernandes Ah, there is such a thing.
 
@sbi notify_all iirc
 
@sbi yes there is
 
sbi
11:15 AM
Thanks, that's what I needed.
 
abort() also unblocks them iirc :)
 
repost
 
Okay
@Xeo I think I had that working with SVN/Bazaar on windows once. But this entailed modified client software (so it hinged on emulation, like cygwin or custom code)
 
sbi
Damn, std::condition_variable only works with a std::unique_lock.
 
That's just a wrapper on a mutex.
 
11:19 AM
@sbi are you sure about that? I seem to recall having used it with a std::shared_lock already
 
sbi
@R.MartinhoFernandes That's not the point. The point is that you have to have that wrapper.
 
Xeo
It works on any Lockable, no?
 
yes, afaik
 
@Marc there's no such thing.
 
@sbi On the contrary! It doesn't "only" work with std::mutex! It works with any BasicLockable concept (because that's the unique_lock controls, IIRC)
 
sbi
11:20 AM
@MarcClaesen I just read it. But even if it can take a std::shared_lock — it's got to be passed such a parameter. And that's the problem, as I cannot change the code that uses this.
 
Xeo
C++14
 
ugh, isolated condition variables
 
@sbi unique_lock accepts any odd RAII wrapper that you can cook up. Even as a function - local class!
 
oh snap
 
11:21 AM
Just believe in it!
 
sbi
@sehe Again, the problem is that I need to find a place to keep around such a thing, and pass it on — but only do so when none is passed explicitly.
 
Xeo
Can you pass on just some function object that will do the waiting when called?
 
Why the fuck is the Apple SE called "Ask Different"?
 
Xeo
If yes, I think you could bind the mutex to the wait/notify_all or something
 
@A.H. :P
damn, I've just realized what was troubling me about your nickname
 
11:24 AM
well icc looks determined to use gcc 4.7
 
@LightnessRacesinOrbit why not?
 
sbi
@Xeo This condition variable type has a wait method taking a mutex and one that doesn't. I can always store some lockable thing somewhere and pass this dummy from the latter, but what's the semantics of the std's condition variable regarding this? Is there a problem when I sometimes pass a stored dummy and sometimes a real mutex? I guess not, but I wonder...
 
@Light because they're 'different'
 
@BartekBanachewicz Because it's a stupid fucking name that doesn't describe what the site is for.
 
Xeo
In fact this method is private, and new object is allocated if current pointer refers to NULL only. It looks like: ptr = someMethod(ptr, .. )vard 14 mins ago
oh gawd
 
11:30 AM
Someone wanted to marketing it up
 
@R.MartinhoFernandes I was about to say how that prints 'base', then realised that was the entire point of te sample :P
 
Ok, here is this rather subjective question ...
When you guys write apps/programs, especially the ones used by many people, do you always get a lot of bugs or do you just write it and it would work perfectly constantly?a lot of the times?
 
Here's one for @EtiennedeMartel ^
@LightnessRacesinOrbit like anyone ever was in doubt what it is for
@LightnessRacesinOrbit like every SE site
 
fu SE chat, you suck, you saved my edited message wrong!
 
sbi
This says std::condition_variable::wait_for() takes a std::unique_lock<std::mutex> that had it's locked() member called. This is a problem.
 
11:42 AM
No, really, you're screwed.
 
sbi
Well, we all knew that already. I have to do this anyway, though.
 
The std model is the safe one, and you just can't get the unsafe one on top of it without nasty stuff.
 
sbi
What do you mean, "the unsafe one"?
 
The one your existing condition variables provide.
 
he means that if you want to dabble at the low level, you have to rip the outer shell apart
 
sbi
11:44 AM
@R.MartinhoFernandes Why is that unsafe?
@R.MartinhoFernandes Why is that unsafe?
@R.MartinhoFernandes Why's that unsafe?
 
apeshit.
 
@sbi Because it doesn't require an associated mutex.
 
sbi
@R.MartinhoFernandes Ok. Why would this make it unsafe?
 
69
A: Why do pthreads’ condition variable functions require a mutex?

paxdiabloIt's just the way that condition variables are (or were originally) implemented. The mutex is used to protect the condition variable itself. That's why you need it locked before you do a wait. The wait will "atomically" unlock the mutex, allowing others access to the condition variable (for sig...

 
11:50 AM
hmm, AMD seems to be focusing more and more on the embedded market
 
@sbi the unique lock is only ever required during calls to condition_variable member functions. These can never exceed the current scope :/ the point being that you don't need to alter any "outside" code. Of course if you don't feel RIIA is worth it here (HERESY!) no one will force you to use the standard library here....?
 
If I am misunderstanding it and your issue is merely the fact that it requires a unique_lock, there is condition_variable_any.
 
sbi
@R.MartinhoFernandes Ok, so most of our code does this anyway. But...
@R.MartinhoFernandes ...oh!
 
It's just not as efficient, but since this is for testing on real machines, that should be fine.
 
sbi
Yeah, that's fine.
Thanks, I'll give this a try.
 
12:08 PM
@LightnessRacesinOrbit Hey, it's the Apple site :S How's that surprising?
 
user1804599
I wrote a trigger.
 
Xeo
Attaboy.
 
Amazing.
 
Xeo
10x, i will check it. seems more template-oriented than constexpr. — nans Aug 25 at 14:32
> 10x
...
 
Xeo
12:16 PM
We need larger cluesticks.
 
ITT Xeo browsing SO looking for newspeak
 
Xeo
totally
 
@BartekBanachewicz Ever used Nicol Bolas' glLoadGen?
 
@Borgleader Is it the same as GLLoad or is it something different?
@Xeo btw look what Last.FM made :)
 
Xeo
Whee, Celldweller
 
12:22 PM
uh damn another call from +44. Moar recruiters.
 
@BartekBanachewicz Erm, that's not Newspeak.
 
@R.MartinhoFernandes shush
@Xeo yeah, that's why I linked it here. It's supposed to show what /user/ is currently listening to, I guess
 
@BartekBanachewicz The script that generates GLLoad, I suppose.
 
@BartekBanachewicz It's a generator, you tell it what extensions you want, what style you want and it spits out files. (PS: it's in lua :P)
 
@R.MartinhoFernandes aha, something like that
@Borgleader Nicol uses Lua extensively, no surprise. No, I haven't used it yet. Anything in particular?
Hm, the recruiter has "Emulator Engineer" job offer for me
 
12:25 PM
Nah, I was just wondering. I used it to generate the files but I haven't gotten around to actually trying to use them in an application.
 
fck it, I am going to respond with £5k/mo. expected salary :P
 
I was kinda tired of using glew and having like all 4 versions of opengl in one made it rather impossible to know what I shouldn't use
 
@Borgleader I've just used glload/gl_4_3.hpp
 
@BartekBanachewicz Wait, they just called you and are already asking for salary expectations?
 
@sbi ? "such a thing" referring to... what? the mutex, the cv or the unique_lock?
 
12:27 PM
anyone experienced with ICC with GCC feel like helping me ?
 
> recruiter
 
@A.H. way too open
 
@A.H. "with ICC with GCC" ?
 
sounds a bit weird
 
Reason for Change:
Current Salary:
Expected Salary:
Notice Period:
Citizenship:
Preferred time to Speak:
Already applied to any client in UK:
 
12:28 PM
just wanna know how to force ICC to use a specific version of gcc and the stdlib
 
@BartekBanachewicz that's the cinch, (s)he'll keep you on the line no matter if you asked 10k
 
@BartekBanachewicz Great, nothing about what you want to be spend your days doing for the foreseeable future.
 
@A.H. wut, ICC uses gcc?
1 min ago, by Bartek Banachewicz
> recruiter
 
@sehe i have no idea what @A.H. is doing
@sehe I don't want to move anyway
 
And this is why I just don't reply to recruiters.
 
12:29 PM
@BartekBanachewicz Thanks for the informations
 
the intel compiler , uses libstdc++
 
@R.MartinhoFernandes I never have
 
@BartekBanachewicz seems to be missing "Do you still have a soul or did someone else already get that?:
 
@A.H. that's something else
 
I might consider if someone crazy enough would want to pay me 5k/mo
that's a friggin lot of cash.
 
12:29 PM
@sehe I am probably mistaken but it might use the toolchain
like linking and stuff
 
user1804599
Triggers are useful.
 
@nihiser actually Intel's got my soul pretty much :)
 
@A.H. it might. but it's not very likely
 
@R.MartinhoFernandes Bah, shall I ever want to really switch jobs, I have plenty of people I can call/mail that way.
 
@BartekBanachewicz seems legit
 
12:31 PM
oh my bad its just for interloping
 
@BartekBanachewicz Keep it going. I'm happier still with my current offer. Of course, I'm also 15 years older :/
 
to enable gcc object / icc object linking (libs)
 
@sehe it's not like I am going only for cash either :v. I'd rather work on something interesting, like here, even for smaller pay.
 
@cv_and_he lol, touché! (It's posted as a part of _this general answer, though; dunno if it counts)_ — sehe 10 secs ago
 
@sehe any idea how to do that? man page doesn't elaborate on the option
 
12:33 PM
@sehe moar Qi.
If we will have to write anything resembling a parser on Uni this semester (it really looks like I am going to pass), I will use Qi.
 
@BartekBanachewicz Judging from the amount of annoying people mailing me about jobs lately, I think I can afford to just tell those annoying recruiters to fuck off.
 
0
A: Using icpc with the gnu libstdc++in a nonstandard location

Jonathan WakelyI don't know ICC, but have you tried the usual -I and -L options for headers and libraries, respectively? I would try running the newer g++ with the -v flag which will tell you all the directories it searches for its headers and libraries, then tell ICC to look in those same paths. I'm pretty s...

 
I'm still wondering how those other guys found out I have an interest in natural language processing.
 
@R.MartinhoFernandes Although as always, it's likely more productive and less intrusive to just ignore
 
@R.MartinhoFernandes bah, I see no reason to be impolite regardless of whether you're looking for a job or not
 
12:35 PM
@sehe Oh, that's what I mean by "telling them to fuck off"; pressing a button on my mail client.
 
:D
so much for expressiveness and extrovertism
 
@R.MartinhoFernandes always the gentlemen. "FFS" :)
 
I feel sorry for our robot if he expresses his robotic affection in similar way to hatred :P
 
@BartekBanachewicz People asking for my attention make me uneasy (I hate phone calls!)
That's also one of the reasons I don't mind having removed comments from my blog.
 
@R.MartinhoFernandes I only answer calls when I'm in the mood. Sometimes i just want to chat (yes, I'm that lonely and my gf won't be here until 28th)
@R.MartinhoFernandes well I am the one using Youtube addon that hides comments. That might also explain my dislike for Reddit
People on the internet are just too dumb; OTOH, your articles aren't that popular just yet (no offense)
 
12:38 PM
@BartekBanachewicz There's a difference there. Comments on YouTube are not meant for me.
There's no one on the other side hoping that I will read them.
 
@R.MartinhoFernandes hm, I think that at least you folks here commenting on my code being bad hardened be a bit on that
Though the impact of negative comments on the blogger/writer/whoever creative has been discussed in various places
Even oatmeal wrote about it IIRC
 
@BartekBanachewicz I don't think I got any flak while I had comments. But I got some people asking this or that.
I feel like I owe them a reply.
 
@R.MartinhoFernandes I think that if someone's determined enough he will find a way to contact you vOv
Comments are easier, of course, but then again, sometimes you don't want it to be too easy
 
@BartekBanachewicz Some people e-mailed about some significant typos (like the kind that changes sample code meaning) before.
I take those ok because they are giving something, not asking me to give something.
 
Really? California?
 
12:45 PM
Ignoring stuff is hard sometimes, because memory.
@GamesBrainiac I thought the tagline would make it obvious :S
18 hours ago, by Cat Plus Plus
You can never leave.
 
@R.MartinhoFernandes Never mind. I forgot we were all FUBAR here. :P
 
WARGDHGG. Why does gvim always start on C:\Windows :(
Need to fix that shortcut, I guess.
 
I love seeing a nice idea taken to such such extremes you can't say anything but "What the fuck"
 
@thecoshman What idea you talkin about?
 
12:50 PM
@R.MartinhoFernandes internal work thing...
 
this is nice
 
@BartekBanachewicz so very true :D
Tomorrow is a 'no working work day'. Instead, we are having a day where we can see what all the other areas are doing (in short). But they have hyped this thing up so much, frigging leaflets counting down to it all week in the canteen, it's just ridiculous.
 
where am i
who are you people?
 
look, someone's been kicked out of PHP room
 
me? no
 
12:55 PM
Someone call a doctor, this man doesn't know who he is.
 
@thecoshman lol
 
@sehe thanks
@BartekBanachewicz they kick people of the PHP room ?
 
@A.H. they kicked him hard enough to cause amnesia, apparently
 
@A.H. Only the sane ones.
 
@R.MartinhoFernandes makes sense that they wouldn't want that kind of people in there
 

« first day (1061 days earlier)      last day (3886 days later) »