« first day (889 days earlier)      last day (4068 days later) » 

9:00 PM
inside a function..
I forgot where though.
 
Whoa. That's bad.
^ found that, looking for 'star stroustrup' /cc @Bartek
 
So no gcc programmers here today?
 
what's a gcc programmer? someone who uses gcc or someone who works on gcc?
 
Obviously there are
@sellibitze the former. he is on the topic of extended inline assembly
 
9:05 PM
IC
 
Well, I'll take either.
And I'm not so much looking for help with the assembly, just how gcc defines constraints.
 
@DavidWohlferd Thing is, the number of people interested/versed in that is low. I might invite someone for you, but you kinda barged in with your question, so I'm not sure whether I'm doing the guy a good service if I do
@DavidWohlferd These are, TTBOMK a feature of Extended Asm
 
<sigh> In some chat rooms, I get chided for "wasting time" with chitchat. In others I'm knocked for failing to do so. I'm sorry, I didn't know the conventions here.
 
user142019
 
user142019
lol
 
user142019
9:10 PM
@StackedCrooked why do people make that.
 
@sehe Yes, that's (roughly) where I got the quote I posted.
However, it doesn't provide sufficient clarity to answer my question.
And since I've seen gcc compile constraints that I'm pretty sure are "illegal," I'm not prepared to assume that just because it compiles it's acceptable.
 
So in GCC 4.8.0 there's this error
error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 
FUU
I more than doubled the size of my object file and it still doesn't contain everything.
 
but I need to for dirname :(
 
@DavidWohlferd Consider posting a question at Stack Overflow
 
@Rapptz for ages
@Rapptz No you don't. strdup
 
@sehe I never got it in 4.7.2 :(
 
@Rapptz Hmm. You never used -Wall or the prototype for dirname changed .. Hmm
 
I always use -Wall and -pedantic
 
-pedantic sucks IMO
@StackedCrooked noooooooooooooooooooooo!
 
@StackedCrooked ahahaha
 
@sehe I'll try there next. I figured people who hang out in c++ chatrooms were good candidates for knowing some of this esoteric stuff.
 
@R.MartinhoFernandes lol
 
@R.MartinhoFernandes I knew I couldn't be the only one who thought that.
 
I had an empty spot.
 
9:17 PM
@DavidWohlferd The people who hang out in C++ chat rooms (a) hang out there (b) also frequent
 
@DavidWohlferd Extended asm?
 
@StackedCrooked now you have a crappy UI
 
@Rapptz const_cast?
 
Can somebody please explain reference collapsing to me? Apparently I don’t understand it.
 
@StackedCrooked OMG
 
9:18 PM
I... I really don't know... from reddit
 
@KonradRudolph There is no reference collapsing there...
 
@KonradRudolph The problem seems to be you try to bind a non-const ref to a temporary
@R.MartinhoFernandes You're an accomplice
 
@R.MartinhoFernandes Ah, true, there isn’t, simplified the example too much.
duh
forget about it.
 
@KonradRudolph already forgotten
 
9:19 PM
Marked Bjarne's hair as 'deprecated'.
 
@KonradRudolph The type of it->second is an lvalue of type char- not an lvalue reference.
so you have marked f as returning char.
 
1 min ago, by Konrad Rudolph
forget about it.
 
@R.MartinhoFernandes I forgot about it.
 
@DeadMG Yeah, I get that, seems obvious now, I was misled by a reddit commenter
 
@BrettHale I'm sorry, I don't understand the question. Yes, I'm using Extended ASM. However, the section in the docs is unclear.
 
9:21 PM
@DavidWohlferd - I've used it pretty extensively, if you've got a simple question...
 
> tl;dr: Martinjo already answered this correctly -- the article is not correct, the blocking applies only to futures returned from std::async with launch policy launch::async.
Fuck you Herb. You have no idea what you're talking about. My name is "Martinho".
3
 
… and now that comment is deleted :D
 
^ lulz
 
@BrettHale Simple is a relative term. (From above): I'm trying to understand the constraints on the gcc asm instruction. In particular, this statement from the docs "You should only use read-write operands when the constraints for the operand [...] allow a register." Does this mean that using "+rm" as an output is forbidden? Or is it just "+m" that's not allowed? Or am I totally misunderstanding what they're trying to say?
 
@R.MartinhoFernandes woa. are you sure about the first two claims? I think you're certified on the latter :)
 
9:24 PM
allllright
just one last undefined reference to std::move left.
 
room topic changed to Lounge<C++>: #NationalPuppyDay All hail the puppy [c++] [c++11] [c++-faq] [no-helpdesk]
 
@DeadMG Wait waht
 
and one std::move right
 
@R.MartinhoFernandes Yeah, I thought I already fixed this one.
must be that the call isn't getting visited for some reason.
 
WTF you smoking. std::move is a template.
 
9:25 PM
perhaps.. in an init list.
@R.MartinhoFernandes I know. If it wasn't, it would work without my intervention.
 
How can you get a linker error for a template?
 
because if I want to call templates from Wide, I have to manually mark them
 
maybe he did not include <utility> ?
 
every single one of them.
 
and just got somehow a forward declaration into the TU
 
9:27 PM
because apparently
Clang's codegen is too dumb to generate std::move when I instantiate the definition of a template that calls said.
whew!
finally, I seem to have picked up every corner case.
using std := cpp("WideLibrary/test.h").std;
Main() {
    vec := std.vector!(std.string)();
    input := std.string();
    std.cin >> input;
    vec.push_back(input);
    std.cout << vec.back();
}
 
@Stacked hey, I can grep the archive?
 
153KB executable
 
I need to find an implementation of std::future I left there.
 
perhaps I should run some opt passes on that at some point
 
9:32 PM
Is starry Bjarne a permanent fixture?
 
@DeadMG: what kind of dialect is this supposed to be?
 
@R.MartinhoFernandes No.
 
@thecoshman well then maybe I'll see you next weekend then
 
@sellibitze It's not a dialect, it's a new language.
 
@R.MartinhoFernandes you can simply download it from the (svn?) repo IIRC
 
9:32 PM
@DeadMG I meant here: coliru.stacked-crooked.com
 
oh
 
@TonyTheLion indeed
 
@DavidWohlferd - there's no problem with +m, AFAIK. It's certainly preferable to specifying "memory" in the clobber list.
 
@sehe I don't think he stores the snippets there.
 
then please forgive me for binning your message for nothing
 
9:33 PM
@R.MartinhoFernandes I'm pretty sure he does
 
class="box-element-flex-1" style="height:195px; background-image: url(i.imgur.com/CUhcR.gif); background-size: contain;" onclick="parent.app.compileNow();">
I get that now
 
WTF @Stacked it's all broken.
 
oh it's fixed.
 
Yeah.
 
9:35 PM
Did Pubby make that gif?
 
you guys are talking about programming, What. The. Fuck?
 
@Rapptz likely
@TonyTheLion where?
 
@sehe here
 
@BrettHale I certainly wasn't looking forward to the implications. However, that statement from the docs seemed pretty definitive. So you believe the docs are wrong?
 
 
9:36 PM
ewwwwwwwwwwwwwwww
 
@TonyTheLion I am too ^
 
Java
@sehe oh you!
 
Buildds character
 
Why is it NationalPuppyDay?
 
because I'm fucking awesome
 
9:37 PM
lol
mmmmmmmm cookies
 
aah
 
@TonyTheLion Ask the National Days Standards Body
 
y'know, it's strange, but I've actually come to enjoy committing.
 
> How does Wells Fargo secure your communications channel? -- With animated gifs.
 
9:41 PM
Who's the lucky gal?
 
^ mind blown
 
Hmm.. snowed in and we've run out of gravy bones. The dog is looking at me kinda strange :(
 
@DeadMG I have no idea why that would be strange
 
@sehe oh
@DeadMG committing to what?
 
@MartinJames He's not run out of gravy bones; he's got you
 
9:42 PM
my repo.
also, fuckdiddlies, I didn't commit after I finished implementing if.
 
Oh. That's fucked up
 
btw
not making true/false keywords: opinions?
 
As opposed to 0 and anything but 0?
 
no, as opposed to just objects.
in the global namespace
 
what's so special about true and false compared to 1729 or 23?
 
9:45 PM
@DavidWohlferd - the other alternative is to use a temporary output, and update memory using the temp. The compiler can optimize this completely, including the case when you don't even use the temp. I prefer this to using the "+" constraint.
 
Objects as Boolean? I don't follow.
 
0
Q: How to design around the limitation that templated member functions can't be virtual

innocent_bystanderI'm running into a design issue where (in C++) I'd like a templated member function (of a non-template class) to be virtual and am wondering if there is a good, elegant way around the issue. The scenario goes, I have machines that process generic items. I use an abstract base class for machines...

 
(assuming that @DeadMG keeps integer literals literals and not named objects)
 
I mean that, rather than having true and false as keywords, there are just true and false bools in the global namespace.
so it's like now, except they're not keywords.
 
9:47 PM
do you have the concept of "value categories" in your language?
 
@sellibitze std::42 + boost::17
 
@BrettHale That can work in some cases. Not so much with Interlocked instructions.
 
Hey guys
 
@TonyTheLion I would just wreck it on the first day and snooze.
 
9:49 PM
@BrettHale So, if the docs are wrong, I suppose I should figure out how to get them fixed. I may be the only person on the planet who will ever question this, but still.
 
Interesting concept.
 
@R.MartinhoFernandes you hit the snooze button that hard?
 
Half-life of one day.
 
@DavidWohlferd, here's a quote from Torvalds: "The gcc docs are secondary. They're not updated, they aren't correct, they don't reflect reality, and they don't matter. The only correct thing to use is "+m" for things like this, or alternatively to just use the "memory" specifier at the end and make gcc generate really crappy code."
 
@TonyTheLion No, but if that fucker won't let me sleep, I'll just wreck it.
 
9:50 PM
hahah
 
Trusting the docs eh
 
Xeo
@R.MartinhoFernandes Violence amongst robots, eh
 
Done with HOTS campaign woot
even the credits look good
 
@BrettHale Clear enough. Thanks for the help.
 
9:52 PM
@DavidWohlferd, some context: yarchive.net/comp/linux/gcc_asm.html
 
@Borgleader A pity that the general HoTS plot was terrible.
 
Meh, it was ok. It's a pity that it was easy.
 
yeah
 
I had more trouble finishing WoL on hard than I did HotS on Brutal
 
a couple of the earlier missions were hard, but the others were all easily solved with Roach/Hydra.
 
9:56 PM
The last one with reviving ultralisks -> LOL
 
the only typical danger was running out of minerals.
 
Hahah what the shit
ON coliru there's a glowing man's face next to the SHare button
 
oh, I skipped half of the evolution missions
didn't really see the need for them
 
Aside from the upgrades? :P
 
Some people do some crazy shit
 
9:57 PM
eh
who needs upgrades when you get 2 drones per larva?
 
@TonyTheLion Some people seem to have a death wish
 
he's looking happy
 
@DeadMG Swarm hosts that can hit ground AND air! Reviving ultralisks, 3 zerglings instead of 2 per larva, ...
 
with bunnies and chicks
 
9:58 PM
eh
Swarm Hosts suck whether they can hit air or not
don't need ultralisks when you have roach/hydra
and I did do zergling/roach/hydra evo missions
 
@R.MartinhoFernandes what does that mean???
 
@BrettHale Whoa. THIS is why it should have been an answer on Stack Overflow. Why should others have to painfully search and "stumble" upon experience like that /cc @DavidWohlferd please?
 

« first day (889 days earlier)      last day (4068 days later) »