« first day (1577 days earlier)      last day (3374 days later) » 

4:01 PM
bye
ah there's nothing quite like it
heading home after a long stressful day of dossing about in the Lounge.
 
4:13 PM
> 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\atomic(9): fatal error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure.
aaaaargh
 
-1
Q: what is the meaning of 0xFULL

cmidiI wanted to understand the difference between the following two definitions unsigned long long id = 0x0F; unsigned long long store = 0X0FULL; printf("id is : 0x%llx store is : 0x%llx\n",id,store); An output for the the two variables returns the same value id is : 0xf store is : 0xf

haha
Why ??? java.lang.ArrayIndexOutOfBoundsException: length=1; index=1http://stackoverflow.com/questions/15624552/java-lang-arrayindexoutofboun‌​dsexception-length-1-index-1 — Phil 1 min ago
ho boy
/cc @AlexM.
 
user1804599
volatile bitch
 
0xBADF00L
 
don't think that volatile has the thread-safe meaning when using a non-ref class.
 
user1804599
oh
 
user1804599
4:20 PM
i thought it did with MSVC
 
user1804599
oh wait you use clang
 
no this is MSVC.
 
user1804599
oh wait you don't
 
Clang supports C++/CLI?
 
user1804599
> If you are familiar with the C# volatile keyword, or familiar with the behavior of volatile in earlier versions of Visual C++, be aware that the C++11 ISO Standard volatile keyword is different and is supported in Visual Studio when the /volatile:iso compiler option is specified.
 
user1804599
4:22 PM
> When the /volatile:ms compiler option is used—by default when architectures other than ARM are targeted—the compiler generates extra code to maintain ordering among references to volatile objects in addition to maintaining ordering to references to other global objects. In particular:
A write to a volatile object (also known as volatile write) has Release semantics; that is, a reference to a global or static object that occurs before a write to a volatile object in the instruction sequence will occur before that volatile write in the compiled binary.
 
that does not mean that they actually emit atomic instructions to load and store, though.
 
user1804599
mayhaps
 
user1804599
how about __sync/__atomic builtins
 
268
Q: What is the >>>= operator in C?

CustomCalcGiven by a colleague as a puzzle, I cannot figure out how this C program actually compiles and runs. What is this >>>= operator and the strange 1P1 literal? I have tested in Clang and GCC. There are no warnings and the output is "???" #include <stdio.h> int main() { int a[2]={ 10, 1 }; ...

a[ 0xFULL?'\0':-1:>>>=a<:!!0X.1P1 ]
lol
 
user1804599
dat code
 
user1804599
4:25 PM
I like <% and %> digraphs.
 
@FredOverflow TIL about that P thing
 
user1804599
Yes.
 
@AndyProwl Is it standard C or standard C++?
 
@FredOverflow Probably C, I don't think it's Standard C++
at least I can't find a trace of that P in [lex.icon]
> hexadecimal-literal:
> 0x hexadecimal-digit
> 0X hexadecimal-digit
> hexadecimal-literal ’opt hexadecimal-digit
 
at .. is not the reason of the crash and log is incomplete — Phil 3 mins ago
I'll have what he's having.
 
4:32 PM
Yeah hexadecimal floating point literals are in C but not C++.
 
time to order takeaway for lunch :/'
then i'll have to do it again for dinner
fuck
 
> subsract
 
I wish I could say something about the guy
but I'm in no position to :A
 
;p
he's 51 apparently
 
> I am a French developper I am trying to do my own android application with Eclipse

too newbies in android to reply and help but i found easely replies for my questions by search
must be a language barrier
 
4:38 PM
I think he meant to say he's too much of a newbie to answer stuff
 
yeah he doesn't understand stack trace language
 
Have you ever used GNU autogen? I need to automate generation of Makefile.am files.
 
no
big pizza maybe?
 
imma take a sick leave
 
sick bro
> Mozzarella cheese, tomato, mushroom, onion, green pepper, Italian herbs
 
4:46 PM
I'll see how much I can extend it
 
it's best if I can also cover the whole exams week
> Italian herbs
like parsley but grown in Italy
 
yeah
basically
 
reminds me of this
May 13 '14 at 20:02, by Alex M.
the difference is the american beef steak contains beef coming from an american cow
 
ORDERED IT
@AlexM. bet it's not even a citizen
 
4:47 PM
TIL that in England and Wales, someone commits an offense if he "intentionally penetrates the vagina, anus or mouth of another person with his penis". Kinda implies that only men can rape.
 
or offer me any kind of attention really
 
Kids these days.
 
but only if she's pretty
 
You know, if you want it, it means you're consenting, so it's not rape.
 
I can act
some old lady in Romania got raped and her stuff stolen
she said she wouldn't have called the police if the guy actually satisfied her
poor thief
 
4:52 PM
@EtiennedeMartel Not necessarily. He may now want a woman to rape him at some point in time when he will not want it.
 
@EtiennedeMartel Well, yeah. The rest is aggravated sexual assault.
 
@EtiennedeMartel Where's the "and the other person does not want it" part? :P
 
@AndyProwl Second bullet point in the article.
But rape is defined exclusively as "penetration".
 
So if fist fucking without consent would not count as raping?
Because the "with his penis" part seems to exclude it.
 
what about dildos
 
4:55 PM
what about legs
well that probably counts as murder
 
what if the guy lost his penis somehow and uses a dildo
 
perfect alibi
 
@LightnessRacesinOrbit Yeah, I'm sure there are many ways to deal around that limitation.
 
o_0 I very nearly got my self into a loop of re-factoring.
 
that's why the re is there
 
4:57 PM
@AlexM. obviously that's not the entire law. Etienne is just trying to get attention
by quoting small snippets of it to incite people
 
@LightnessRacesinOrbit For some reason I knew you'd be jumping at the mention of "England".
 
@EtiennedeMartel no I'm jumping at you posting a tiny quote out of context and pretending it's an entire law when you know full well it is not. it has nothing to do with the country of origin
 
well, London is is homeland so it's only natural :A
 
huh flags
 
:A :A :A :A
 
4:59 PM
argumentum ad paterium
 
@LightnessRacesinOrbit I'm fairly sure you would have ignored it if it were American.
 
function foo validates something, and then if the validation passes, sends that value into function bar who 'trusts' the value is good to use... but I could move the check into bar so that foo is cleaner... but If I do the check first, I can keep bar cleaner... but I could move the check into bar so that foo is cleaner...
 
if it were American, yes, because then that's funny :)
but for many other countries I would have picked you up on it, so that's a false dichotomy
 
See? Double standard.
 
oh, absolutely
but my double standard has nothing to do with your choice of England!
 
5:00 PM
Let's face it, you're secretly working for Her Majesty's Government.
 
@thecoshman How about foo() calling bar_if_valid() which does validation and calls bar()?
 
@EtiennedeMartel I can neither confirm nor deny this theory
 
@AndyProwl o_0 not sure if serious... not sure if good idea or not... I've been staring at this too long...
 
@thecoshman if bar also validates, what's foo's purpose then?
 
@thecoshman Yeah I mean it seriously
Of course whether it's a good idea or not depends on foo(), bar(), and the validation logic
That's your call
There are no pinned messages on the starboard. That feels odd.
 
5:02 PM
Yeah, the rules fell off.
 
As if the place was abandoned by the authorities
 
I think I' just going to leave it... it's clear enough... and it's not worth the effort.
 
Greetings and welcome to the best chatroom on Stack Overflow! If you're new, for your safety, be sure to read the rules before proceeding!
17
There we go.
 
nice
except
not sure about that "on"
 
Well, we're using their hardware.
 
5:08 PM
@EtiennedeMartel Given the current (utterly incompetent) government of the UK, that's almost believable. If, however, the government were even close to competent, the last thing they'd want would be a representative that makes Brits sound as arrogant and narrow-minded as LRiO.
10
 
Oh darn.
The missiles have been launched.
 
@EtiennedeMartel it doesn't really work that way
it's strange because "on" is probably right yet it looks odd to me and I can't figure out why
oh well
 
I don't know I don't speak English.
 
@LightnessRacesinOrbit "loosely associated with"? :p
 
"Featuring the logo of"
 
5:10 PM
@melak47 ;p
@EtiennedeMartel "Bearing the resentment of"
@EtiennedeMartel I think you do know that
 
Millions of web designers have no idea that those full-height intro images are fucking annoying
 
@CatPlusPlus Come on whip that mouse wheel.
@LightnessRacesinOrbit It's not that surprising. For many people, "the internet" is anything that isn't a well known service.
When you use Facebook or YouTube, you're not using the Internet. You're using Facebook or YouTube.
 
user1804599
guys guys guys
 
@CatPlusPlus which what?
@EtiennedeMartel it can (is) be both :P
 
@thecoshman What I'm saying is that it's a matter of perception.
 
5:21 PM
oh for sure
to the average joe, facebook is only like youtube in that you have to use the blue pill
 
user1804599
In 7 hours I can s/ы/ай/! \o/
 
So I bought UE4 sub
 
5:41 PM
@CatPlusPlus precisely
 
@рытфолд Hmm...if memory serves, the usual transliteration would be more like "Ритфолд" (or maybe "ригтфолд"). That's pronounced more like "Reetfold", but it is still how it's typically done.
 
Beetfold
 
user1804599
Beethoven
 
lol OK I thought that Mono plugin is free but apparently they only host the website on GitHub and the license is weird
 
user1804599
5:48 PM
So gullible.
 
srsly I got suspended for saying that I'd like to have a woman rape me
jesus christ
 
user1804599
I should call it an Ohm Queue, since it resists to enqueue the same element twice.
 
sometimes I wonder why I keep using this site's chatrooms
 
user1804599
Or a Dupliphobic Queue.
 
user1804599
What is the word for "fear of duplicates?"
 
user1804599
5:55 PM
Time to shower.
 
@AlexM. well, that's obviously the most usual thing to say, and it's very hard to see why anyone would ever think this inappropriate :)
 
Am I misunderstanding something?
 
SSDOs do undergo zero-initialization before dynamic initialization under some cases.
 
14
Q: Nifty/Schwarz counter, standard compliant?

André CaronI had a discussion this morning with a colleague about static variable initialization order. He mentioned the Nifty/Schwarz counter and I'm (sort of) puzzled. I understand how it works, but I'm not sure if this is, technically speaking, standard compliant. Suppose the 3 following files (the fi...

the first quote in the accepted answer
 
@LucDanton Ah, I see
@milleniumbug Thank you
One of those "I suck" moments, I guess
 
6:01 PM
@milleniumbug Trust me: you can't trust that guy.
This statement is a lie!
 
In fact reference types are zero-initializable to permit SSD reference variables. But you can’t observe such a zero reference without UB.
 
Jerry Russell
 
@JerryCoffin yeah, he sounds a bit suspicious
 
@LucDanton Does the Standard specify that? (reference types being zero-initialized, I mean)
 
6:03 PM
@AndyProwl Keri Russel.
 
@AndyProwl Yes. (Unless it’s changed, but I’d be surprised.)
 
@JerryCoffin One of the virgins that were offered to you, I suppose?
 
@AlexM. No you don't!
 
@AndyProwl A gentleman would never kiss and tell (and neither would I).
 
> if T is a reference type, no initialization is performed.
Interesting
I erroneously downvoted an answer, and now it needs to be edited for me to retract the downvote. Will I be allowed to do that if I edit the answer?
Yes
 
6:10 PM
I hope the system will catch such a blatant gaming of the rules.
-10 undownvote cancelled
 
@AndyProwl I usually just enter a blank line to do so (if there isn't something more to improve)
 
@LucDanton I'd be fine with that.
 
Well it would affect the victim of your undownvote campaign.
 
I took that as -10 for me if I want to retract my downvote
That should not affect the OP of the erroneously downvoted post
Also I'm not sure why users are not allowed to change their mind over time
 
I’ve wondered about that, too.
In some cases I’ve actually held up upvoting because of that. Seems like a counterproductive rule altogether.
 
6:20 PM
most obvious come-ons missed by the opposite sex, gentlemen and boogerladies?
no one can top mine really. I was in bed with the finest el Salvadorian on Friday and I simply got too intoxicated and I couldn't do anything. she was waiting for it.
 
so.. where are all the interesting questions at?
@Columbo throw something my way
 
user1804599
@sehe no, I didn't.
 
user1804599
The last time I pissed in my pants was ages ago.
 
user1804599
About that data structure, I will call it a "geminiphobic queue."
 
Xeo
> Is this happening running with debugger? If so, there is a CPU capabilities check done in libcrypto which deliberately does this to check for NEON. Resuming past the break works fine.
And why the fuck is there no info on that?! D:
 
user1804599
6:28 PM
Very nice.
 
user1804599
oy vey my book arrives tomorrow not today
 
@πάνταῥεῖ I insert something like <!-- edit so I can undownvote -->
 
user1804599
<!-- edit so I can change upvote into downvote -->
 
@AndyProwl It would make it too easy for them to be sloppy with their votes ("I can always reconsider")
 
@sehe Ahh, good idea. That'll leave a note for the poster.
 
6:32 PM
@рытфолд I think I've done this on occasion for questions that turned out to be very badly posed, when initially they seemed interesting
 
user1804599
Yay the flair cache got flushed! <3
 
user1804599
I think my avatar matches the hot-dog stand perfectly. :)
 
Nope, Tsukasa was better
 
user1804599
Do you guys eat off the ground at home?
 
user1804599
E.g. when you accidentally some food on the floor do you throw it away or do you eat it anyway?
 
6:34 PM
@рытфолд Depends on cleaning state of my floor :-P ...
 
Depends on how soggy the material is
 
user1804599
Yessss.
 
user1804599
"Geminiphobic queue" is perfect.
 
What's a Gem queue?
 
user1804599
Presumably a gem queue is a queue of gems that have to be installed.
 
6:35 PM
@рытфолд Dog renders question irrelevant here. There is no time to make any such decision.
 
user1804599
Eat the dog.
 
Man, you don't like the nickname I gave your "Geminiphobic queue" ?
 
user1804599
NO
 
@рытфолд What? At one sitting?
 
user1804599
I like it as much as I like Pac-Man: fuck it.
 
6:37 PM
I guess you did put "phobic" in the name
 
@FilipRoséen-refp No idea, I was gonna ask you the same thing. At times nothing interesting pops up. For hours.
 
user1804599
Queues are so easy to implement.
 
user1804599
All you need is shift and push!
 
Also you might want is_empty :p
 
user1804599
6:43 PM
@Infinine I sure do.
 
Cheryl Ann Fernandez-Versini (née Tweedy, formerly Cole; born 30 June 1983) is an English recording artist, dancer, and television personality who is known by the mononym Cheryl in the context of her recording promotions. She rose to fame in late 2002 when she auditioned for the reality television show Popstars: The Rivals on ITV. The programme announced that Cole had won a place as a member of the girl group Girls Aloud. The group's line-up remained the same throughout their history and during that time the group achieved a string of twenty consecutive top ten singles in the United Kingdom...
 
user1804599
sub is_empty {
    !@{shift->{elements}};
}
 
user1804599
So simple!
 
@рытфолд What language is that
 
user1804599
Perl.
 
6:44 PM
@рытфолд It's got weird characters, I'm frightened
 
(insert language here) could do that in less
 
!@#??->$
 
!"§$%$(%$%/(&/()&(
 
user1804599
@{…} dereferences an array reference.
 
@Columbo Yeah that's the token for starting a comment
 
user1804599
6:44 PM
And arrays represent their length when used in scalar context.
 
user1804599
! enforces scalar context because Booleans are scalar.
 
@Columbo cheers for that
 
@LightnessRacesinOrbit Other people might need that info
 
ah, so shift is the name of your array
 
user1804599
No, shift returns the first argument.
 
6:45 PM
> need
 
user1804599
Which is in this case the queue object.
 
stalkers :D
 
@Columbo give me a challenge..
 
My bad then. It would seem like if you called shift to elements then it would modify elements as well, I need to look into more perl
 
user1804599
It removes the first argument from the list of arguments and returns it.
 
6:46 PM
@FilipRoséen-refp Kiss your neck
 
user1804599
But I don't need any more arguments, since is_empty is unary.
 
user1804599
@Infinine here's the whole thing! gist.github.com/rightfold/25dbf34cb276c21d0753
 
@CatPlusPlus so have you made a game yet
 
@рытфолд so even though you're calling shift to elements, it doesn't actually dequeue them until you put another shift
 
user1804599
The inner shift shifts @_ which is the array of arguments.
 
user1804599
6:49 PM
The outer shift shifts the queue's elements.
 
What book? Or is it just called "Book"? — Lightness Races in Orbit 9 secs ago
 
user1804599
@_ is an implicit argument if you don't pass any arguments to shift.
 
@AndyProwl in C++? the standard knows nothing about kissing, sorry.
 
@melak47 Trying to find my way around UE4 :v
Unity is definitely simpler
 
you should stream that :v
 
6:51 PM
There's nothing to stream
 
lets all watch cat be a noob :v
 
user1804599
# Here it is more explicitly:
sub dequeue {
    my $self = shift @_; # or just my $self = shift;
    shift @{$self->{elements}};
}
 
i think I'm grasping it
I never got to the whole "bless" and class thing of Perl so it's mostly over my head for now
 
@Columbo come on now, I'm fucking bored (even thought I should be doing a lot of other stuff, I still want a c++ challenge)
@Columbo gimme something, come on, entertain me
 
@FilipRoséen-refp Sorry, you're too clever for me
Ego pushed?
 
6:59 PM
@Columbo nope
 
morning inferiors
@JerryCoffin Let's face it- a lot of them are even worse than him
 
@Puppy I'm so bored that I'm tempted to get into some discussion with you, are you down? pick a topic.
 
you're inferior
how's that for a topic?
brb washing
 
@Puppy Undoubtedly.
 
@Puppy a really bad one..
 
7:04 PM
@FilipRoséen-refp Glad you appreciate it.
 
@Puppy pff..
 
well I'm sorry, but if you were not inferior to me, you would have come up with a topic.
therefore you are clearly scientifically proven inferior
 
@FilipRoséen-refp Let's talk about your sex life?
 
@Columbo I'm a male model with a girlfriend.. what would you like to talk about?
I'm also an asshole
 
@Puppy G'day. Someone said on the starboard earlier that you were shedding. I hope you have someone to clean up all the hair.
 
7:10 PM
aaaaaaaaa fuck
 
@CatPlusPlus c++ issues!? let me join you in the pain!
 
......
 
I coughed while eating spicy pizza and a bit of this motherfucker went into my windpipe
 
This. Fucking. Hurts
 
7:12 PM
I do hope you manage to cough it up before it causes a fatal pneumonia.
 
@CatPlusPlus That invalidates Jerry's axiom!
 
user1804599
I ate half a kg of liquorice. :(
 
user1804599
inb4 I have more chins than a Chinese phonebook.
 
@MartinJames It's called a "barber"
 
@CatPlusPlus don't worry about vocal pain, you don't need vocals to be a hero on the Internet - and that is all that matters.
 
7:13 PM
@Rerito Quite the contrary--this is not a matter of too much pizza. It's a matter of too little pizza, because something that used to be pizza is now wind-pipe blockage instead of real food.
 
@JerryCoffin Well done sir!
 
Coughing fit stopped and it hurts less so I don't think it'll be that bad
 
@CatPlusPlus yeah I just did that after a spicy burrito
 
A "native English speaker" from .... South Carolina, USA? Interesting. — Lightness Races in Orbit 9 secs ago
 
still sound like a cat with a hairball
 
user1804599
7:20 PM
Why does Heinz ketchup have the colour of blood?
 
@FilipRoséen-refp Is your girlfriend well-versed in C++?
 
user1804599
Because blood is red.
 
@Columbo nhaa, she's into economics and stuff
 
Added a less Java-esque example for perspective; you don't need IObserveSomething and IAmADocXXXView in order to connect to Signals2 slots. — sehe 1 min ago
Always be teaching non-java
 
user1804599
woooot
 
7:25 PM
@рытфолд Over the course of how many days?
 
user1804599
@FredOverflow one and a half.
 
@рытфолд newsflash: they have none
 
user1804599
:O
 
-6
Q: What is a mistake?

MarkoI can't run this code because I always get this message: "WHITE undeclared (first use in function)", and I've got same thing for BLACK. #include <cstdlib> #include <iostream> #include <winbgim.h> using namespace std; int main() { int gdriver = 9; int gmode = 2; initgraph(&gdriver, &...

 
7:34 PM
@рытфолд I love liquorice!
 
@LightnessRacesinOrbit Very philosophical
 
What is a mistake? A miserable pile of failures!
 
user1804599
@FredOverflow Me too!
 
the new generation of meta knobheads certainly live up to their name
 
Apparently, it don't matter if you're BLACK or WHITE! — FredOverflow 58 secs ago
 
7:37 PM
did anyone catch that nonsense before I deleted it all?
 
That would solve the syntactical errors, but I have no idea for a meaningful implementation for this seen from the OP's context. (That's why unconcsious upvoting for answers that should be comments is bad!) — πάντα ῥεῖ 13 secs ago
 
I see Jerry's still a complete fucking wanker
Act your age, mate
ahahaha quality question
1
Q: how do i convert a c# style regular expression to c++ style

Ammu SI was trying to parse a lengthy string through a regular expression, i tried doing it with the following RE and text mentioned at this link http://regexr.com/3a7uf But when I try to parse the text in c++ using the same RE, the compile time warnings and output not as expected. Please advise how ...

is it just me or is he trying to parse ps?
 
have any of you implemented an entity component system before
 
^ Not very successfully (it wasn't worth the efforts), but yes.
 
user1804599
What the fuck is an entity component system?
 
7:46 PM
@Pris same as @πάνταῥεῖ - sort of sort of not
Then you need to consult the documentation for the libraries that you're using. Yes, a strange concept. — Lightness Races in Orbit 13 secs ago
 
i can see sort of why its handy but i feel like it has a problem with scaling up to a lot of entities
 
Ell
@рытфолд Not sure
to me it looks like some stringly typed dynamic composition thing
but idk
 
@Pris "scaling up to a lot of entities" That was one of the points of failure.
 
@рытфолд It's composition but pointlessly dynamic.
 
or maybe im just being really naive. If you have 500 entities with 5 components you have to check if they need to be updated every single frame for every component. 2500 conditionals that likely wont work that well w branch prediction)
@рытфолд this is a nice intro if you're interested: kdab.com/overview-qt3d-2-0-part-1
 
7:49 PM
> stringly typed
:D
 
user1804599
Good thing I'm not.
 
user1804599
I have GH repos in 13 different languages.
 
user1804599
I need more than 13 of them.
 
pfft
svn all the way man
 
@LightnessRacesinOrbit Be very wary of starting such trends. OP's will start doing their own debugging if you're not careful.
 
7:54 PM
@MartinJames Careful now. You're being arrogant and closed-minded!!
 
What is the downside of having a thread that blocks a large % of the time?
 
@JohanLarsson Nothing
 
@LightnessRacesinOrbit What, again?
 
Why do you think that there is a downside?
@MartinJames inorite
u tart
 
1MB of memory wasted is one thing?
 
7:55 PM
@JohanLarsson is it possible wake up time is slower than spinning in a busy loop
 
user1804599
@JohanLarsson There is none as long as it's performant enough.
 
@JohanLarsson You set the stack to be non-paged? That's a bad plan.
 
@MartinJames C#
 
@JohanLarsson simply download more RAM
 
user1804599
Segmented stacks are possible, but they have a significant performance problem if you push/pop a lot at the end of a segment.
 
7:56 PM
@JohanLarsson C# sets the stack to be non-paged? That's a bad design.
 
yeah RAM is not a huge issue and it will only be two threads
@MartinJames I have no idea and no control of it I think
 
user1804599
Premature optimisation is the root of all evil.
 
Next q: Is it ever a good idea to manually set thread prio on a windoze system?
 
@MartinJames I highly doubt it. Since they are running in a VM they can do all kinds of dodgy shit though.
 
I'm writing a thing that polls a PLC. It is a wrapper so I can get nice events.
 
7:59 PM
PLCs are a scam
 
how do you know?
 

« first day (1577 days earlier)      last day (3374 days later) »