« first day (1590 days earlier)      last day (3352 days later) » 

9:00 PM
> Microsoft account is experiencing technical problems. Please try again later.
THANK YOU MICROSOFT ACCOUNT
Beh seems .NET 4.6 preview doesn't work with VS2013
 
ack
 
How would I find out what duration type is for a given clock in std::chrono? Is it implementation dependent
 
Clang is so fucking annoying
 
I have a nice pure immutable tree, and I can't really use it because Clang is full of side effects so you have to manage all those side effects.
 
9:11 PM
using high_resolution_clock = system_clock;
 
user1804599
@Puppy Make a SideEffectManager class.
 
Make it singleton
 
> Loading Lounge<C++>
Just a second...
 
user1804599
Side-effects and singletons don't go well together.
 
why is this permanently up!?
 
9:13 PM
Wait, I thought .NET was a framework.
 
Clearly the chat is loaded enough that I can post messages.
 
std::chrono implementations are whack... and afaict they dont mandate resolution for high_resolution_clock so whats the point of having it
 
@Jefffrey Yes...?
 
What does a framework has to do with an editor?
 
one day there'll be a non-monotonic std::chrono::high_resolution_clock with a lower resolution than std::steady_clock and the lib maintainer will just be like "lol idc"
 
9:16 PM
It can't target the preview
 
@Pris "lol idc" because they will become blind?
 
@Pris C++ is full of that
There's strong randomness source but it's not guaranteed to be strong
 
C and C++ have one shared design mentality: they do not assume things that would limit portability to a particular platform
 
user1804599
decltype( -x )  result;
auto            rb = begin( result );
for ( auto const &xx : x )
    *rb++ = -xx;
 
user1804599
dat lack of std::transform.
 
9:20 PM
Except for my dick, very little is guaranteed to be strong.
 
this means that the features you can rely on being there are the shared subset of all platforms
aka nothing
 
Par for the course
 
@райтфолд Wait, x is a Container, right?
Then what is decltype(-x) supposed to be?
 
user1804599
No, it's a hypercomplex number.
 
user1804599
You can iterate over its parts.
 
sbi
9:22 PM
Hi.
 
sbi
Actually, we didn't have soup today. We had roast. Much better, IYAM.
 
he said sup, which means secret union penis
 
sbi
@Jefffrey Well, here's some chatroom secret: If someone quotes unattributed, it's usually a good idea to look at what they posted right before starting to post unattributed quotes...
@orlp Union penis my ass. I'm not a union member.
 
> printf("\33[47;1f\33[?25h\33[40m")
 
sbi
9:25 PM
@DonLarynx Your cat's just been running across your keyboard.
 
@orlp Ewwwww union
 
Xeo
@sbi Hello ape.
 
@milleniumbug oh, you're an EU member?
 
sbi
@Xeo Hello comic(al) figure.
 
user1804599
> sub g { $*CALLER::foo = 2; }; sub f { my $*foo = 1; g; say $*foo }; f
2
 
user1804599
9:30 PM
Nice. :D
 
you guys better watch out
@sbi and I are trained in gorilla warfare
@Pris photos by 'customers' with professional lighting, cameras and food artists
 
sbi
@orlp Yeah, every chimp is claiming this. Once.
 
@orlp not that hard to believe... tons of people take pictures of their food
 
@Pris no, it's just fucking bullshit
 
9:39 PM
I had this one friend who would take his dslr with him everywhere because we were traveling and he'd take artsy pictures of all the food we ate at every restaurant
 
@Pris do these customers also watermark their pictures with 'bento concept'?
do they have backgrounds and professional lighting to shoot these?
it's just bullshit man
 
Xeo
@orlp check comments
 
@Pris Do they also arrange flowers around the food
 
@райтфолд well that shows how deep this guy is trying to mislead people lol
he says he sells bento boxes
fine
he says these pictures were taken by customers
fine
what he doesn't explicitly mention is that these pictures are taken for a fucking photo contest he organizes, where people (read: food artists) cook their own bento box and photograph it
I'd say that the title "I sell Bento Boxes. Some photos taken by our customers." is incredibly misleading
 
9:49 PM
Whatever
 
sbi
@CatPlusPlus I've read it and have some feedback: Not bad, IYAM.
According to the answer to the first question, though, I shouldn't be asking questions here. Yet, that's mostly why I come here nowadays.
(Am I a Honorary Regular? )
Here's a few things I noticed:
If message has more than one line, the only Markdown elements that work inside it...
...to expand the menu with actions or press up to edit your last message(s) (see "Keyboard shortcuts")).
The history of your edits will be visible to everyone. The history of your deleted messages...
(URL must end with a recognisable image extension). Note that animated GIFs are likely to be binned.
You might get kicked (see "moderation" below) despite a warning, though, depending...
You can upload images to imgur.com (and inline them and immediately post your message) using...
Use Coliru or another online compiler...
You can also mention people without referring to a specific message of them...
The chat features 'starring'.
(they can be recognised by an italicised nick or found in the owner list of the room's info page)
every active user that has more than 10k reputation will be bothered to act on flagged message
the offender will be automatically suspended from all chatrooms of the site
Kyrostat is dead.
 
lol
 
sbi
you have editable messages), in edit mode, go to previous message
Hey, I didn't know Ctrl+K, @Cat!
 
also combobreaker
 
puppybreaker
 
sbi
9:55 PM
Anyway, all in all I'm quite satisfied with you keeping lot's of the original FAQ, @Cat. smug look
@Puppy Aye. I got hindered a bit.
The room's motto is wrong a bit off, BTW. This is Terrible jokes (and/or puns) decade, AFAIK.
 
just decade? humans have been making terrible jokes as long as there have been jokes
 
sbi
What would a puppy know about human's past?
 
user1804599
What do you think of adding author information to source files?
 
sbi
In other news, I am close to the bottom of this bottle of Tempranillo.
 
@райтфолд My professor does it.
 
user1804599
10:00 PM
I mean in actual projects, not school crap.
 
sbi
@райтфолд Your job might require you to do this. Although it's pretty moot, because most shops battle the high developer fluctuation by pretending that "no code ownership" is a worthy goal. So everyone's aunt will be changing any file you created until you do not recognize it yourself anymore after about a year or five.
 
user1804599
aaaaaaaaaaaaa
 
@райтфолд Robot does it
 
user1804599
why do languages not have an average function in the standard libaries
 
sbi
@Borgleader This 404s for me.
@райтфолд Because they want to be above-average languages?
 
10:04 PM
@sbi That's weird, it's a public github repo. I got the page by googling "ogonek github" then going to "ogonek/include/ogonek/any_text.h++"
 
sbi
@Borgleader I found the problem: It's NoScript attempting to prevent an XSS attack. :-/
 
@sbi Yes :v
NoScript doesn't like the ++ extensions
 
can you just throw static_asserts in anywhere in your code?
 
user1804599
Everywhere you can put declarations.
 
@sbi The goal was to make it terser, not change the meaning, so yeah
 
user1804599
10:08 PM
static_assert(…); is a declaration.
 
it feels so odd throwing em in global scope
 
user1804599
Why?
 
idunno just feels estrange
 
user1804599
static_assert(CHAR_BIT == 8); seems perfectly reasonable!
 
sbi
@CatPlusPlus Thanks for granting this.
I do not always come here to ask C++ questions, though. This time I came in order to ask the robot which Scalzi novel to read next. Alas, he's gone south north and probably offline.
 
10:09 PM
Maybe because I see 'assert' and immediately think runtime cassert check
 
sbi
@Borgleader Interesting. I had an on-site interview with them once. Their boss didn't want me because I only work 30hrs/week. (I know because a friend of mine got hired years later and asked on my behalf.)
 
user1804599
Then you really suck.
 
sbi
@CatPlusPlus Expressing myself tersely is not one of my notable strengths. sheepish grin
 
As for your feedback, I deliberately left all keyboard shortcuts out of the list items
Also we only endorse Coliru because I made the logo
 
sbi
@CatPlusPlus Ah. Ok, seems fine to me then. (I really commented live while I read it, and only found the shortcuts at the end.)
 
10:11 PM
@CatPlusPlus the "C" with a oval?
 
we endorse Coliru because stacked is one of us :P
 
It's "o"
 
sbi
@CatPlusPlus Ugh. I don't dare go there and look now.
 
no it's not
it's an oval
 
You don't know art, philistine
 
10:12 PM
@CatPlusPlus That logo is fridge art tier
2
 
@sbi 30hrs/week? How does that work exactly? Less hours a day or less days a week?
 
sbi
@Borgleader Exactly.
 
Gosh. Coliru has a logo. Never noticed before.
6
 
user1804599
Actually.
 
user1804599
keyword doesn't have to be a keyword.
 
10:13 PM
lol 'fridge art' - anything posted by robot ATM.
 
user1804599
It can instead be an alias for an undocumented intrinsic.
 
...
 
sbi
You live in Berlin, @Borgleader, don't you?
 
user1804599
Zero keywords!
 
It seems you're really mixing up language "design" and implementation accidents here
 
10:14 PM
@sbi No. I live in Canada.
 
sbi
@Borgleader Oh damn. That happened before, didn't it?
 
user1804599
You have to design a language to be implementable.
 
Not sure specifically described subjects need definite article
 
sbi
@райтфолд No, I don't!
 
user1804599
They need a definite article.
 
10:15 PM
@sbi Yep
Mar 31 '13 at 0:24, by sbi
@Borgleader The last time I reported, I assumed someone to be a Berliner who turned out to live halfway across the globe. Now I am not sure how to proceed without offending you. I have a hunch you said you live in Berlin, but for all I remember you could be the one I confused last time...
 
@райтфолд And then, when you remove the "keyword" keyword during such implementation you end up with neither design nor implementation
 
user1804599
 
@LightnessRacesinOrbit For once I have an infinitesimal need for your English pedantry
 
sbi
@Borgleader Who'm I confusing you with, then? Sorry. (Did I mention, I had some wine already?)
 
user1804599
Point is that you can later define an identifier named keyword.
 
10:16 PM
 
user1804599
If it were a keyword that wouldn't be possible.
 
> need
@sbi melak, I guess
 
Maybe need is too strong
 
sbi
@Borgleader Oh. Uh oh. Now I am ashamed. (Well, at least I immediately remember I was wrong before...)
 
user1804599
I want egg foo young.
 
sbi
10:17 PM
@CatPlusPlus Yeah, we noticed it was too strong to resist.
 
user1804599
A foo walks into a bar, takes a look around, shouts "hello, world!" and meets up with his friend Baz.
 
user1804599
@sehe Mijn code is naar de filistijnen.
 
sbi
@sehe Nope, I don't think so. I can throw things at him from my desk now. Even I can remember people that close.
 
user1804599
@BenjaminGruenbaum is it Oracle?
 
10:20 PM
@райтфолд don't want to make it about the particular company but no - it's a much worse company IMO whose entire business is adware and toolbars.
 
user1804599
:O
 
sbi
0
A: Ethical Jobs in Careers

sbi I was wondering if it's Stack Overflow's place to impose any ethical guidelines on which companies are advertised in Careers. Yes.

 
@sbi yeah - I saw. Thanks :)
 
sbi
@BenjaminGruenbaum Superfish! :)
@BenjaminGruenbaum Coward!
 
Heh, I don't want to get sued for slander.
 
10:23 PM
Facts are not slander
 
Aaarrgghhhhhhhhhhhhhh! I write a lengthy answer on IO completion routines, recommending Socket, Buffer and Inter-thread comms classes, and what do I get: 'I should have put in the tags C and not C++, I will not create any classes'. Great.
 
@sbi :D
 
user1804599
@MartinJames Rollback.
 
user1804599
You cannot change questions.
 
@CatPlusPlus and I'm sure that if I go to court I can prove that - but I don't want the hassle.
 
user1804599
10:23 PM
You should ask a new one instead.
 
sbi
@sehe ICBWT. hangs head in shame
 
@BenjaminGruenbaum That only happens in the US.
 
@райтфолд I'll leave it, it got accepted anyway, even though pretty useless with the C tag:(
 
sbi
@BenjaminGruenbaum You know, I mean to post a message saying "Just so everyone knows: @BenjaminGruenbaum just got on XXX's bad side." But I only remembered "ironsite", and google finds me too much irrelevant stuff for this.
 
irony site
 
10:25 PM
Fool's gold in here
 
sbi
@BenjaminGruenbaum Ha. This keeps raking in upvotes! :)
 
Just count the loungers
 
sbi
Whoa. How come I have so much rep at MSE? I have two questions and six answers.
 
We could ask you the same thing
 
@sbi MSO is now normal meta site
 
10:28 PM
@sbi rep has been linked to SO (for about a year now)
 
sbi
@milleniumbug MSE!
@sehe What?
Ow. It's MSO, not MSE.
 
There's bound to be a meta question about this. Or a dozen. I'm not in the mood to find it
 
sbi
I apologize. (Did I mention I had some wine?)
BTW, which of you guys will I meet at ACCU2015? Surely the @Puppy, right? You live in Bristol now, don't you? Who else, though?
 
user1804599
ugh
 
user1804599
min([]) results in an error in PHP
 
sbi
10:32 PM
@Jhawins: They are a legally documented company with relevant positions to fill they shouldn't be discriminated against. Here's hoping that you will have to clean your granny's PC from their bullshit ware.sbi 22 secs ago
 
user1804599
LOL in Python as wel
 
@райтфолд assuming [] is an empty list, what do you expect it to return?
 
static_assert(std::chrono::high_resolution_clock::duration::period::den >= 1000,
              "chrono::high_resolution_clock resolution is too low! SHAMEFUL!");
 
user1804599
@Blob positive infinity
 
sbi
@райтфолд You are wrong, fold.
 
user1804599
10:33 PM
Similar to how sum([]) == 0 and product([]) == 1.
 
user1804599
Unless you're SQL.
 
sbi
I'm not SQL. I'm a gorilla.
(Well, I'm a Bonobo underneath, bit that truth turned out to be too confusing for you guys.)
 
You type pretty quickly for a bonobo
 
@Jeremy that's racist
 
sbi
@Jeremy I'm a gorilla.
 
10:35 PM
watch out guys
he's trained in gorilla warfare
 
@Blob chimpanzee power
 
user1804599
@Jeremy I am indeed a fast typer.
 
indeed
 
sbi
@райтфолд You are, however, a pacman ghose, and not an ape of any kind.
 
10:37 PM
Is gorilla warfare shit-slinging?
 
sbi
You wish.
 
@Jeremy It is a deep and wonderful martial art.
hell
it's a lifestyle
consider you have neither a life nor style I wouldn't recommend it
(ok sry that stung)
(just making jks)
 
@orlp hell kind of has to be a lifestyle
 
> new int[0];
w0t
is that even legal
 
@Blob no, the cops will arrest you if you do it
 
10:40 PM
@Blob No but your mom is.
 
user1804599
@Blob yes.
 
user1804599
I'm going to implement Pong in AWK.
 
> main.cpp:5:17: warning: ISO C++ forbids zero-size array 'data' [-Wpedantic]

char* data[0];
 
sbi
@райтфолд That's nothing. Do it in Minecraft.
 
user1804599
@Blob Making it illegal would introduce a horrible special case, like arrays not being allowed to be empty, and void being incomplete, amongst other horrible shit in C++.
 
10:43 PM
@Borgleader different case. that's on stack.
 
sbi
ISTR zero-sized arrays being legal. I forgot the rationale, if any.
 
new int [0] = new int []?
 
@DonLarynx wtf is new int[]
 
declaring a dynamically sized array of integers
int array[] = new int []
 
user1804599
don't use this shit
 
10:46 PM
I'm afraid you're confused beyond salvaging
 
std::vector<int>array
 
user1804599
use std::vector or std::make_unique.
 
why bother bringing up alternatives when new int[] isn't even legal C++
 
@sbi I literally live like, 5-10 minutes walk from the venue. I don't believe I will attend due to cost, but I do live very close by.
 
sbi
@Puppy Ugh. That seemed an ugly area of Bristol.
Well, maybe we'll finally meet for a beer then? (The best at that area was the small pub close by.)
 
10:48 PM
@sbi well, justice and all.
 
Now there's at least a single dev-dwelling near by
 
user1804599
I want to be in love.
 
@orlp I meant
int* array = new int[];
 
sbi
@sehe I was trying to make a pun about this employing the first sentence of The Hobbit, but lacking the book to look up said sentence (and sobriety), I failed. :(
@райтфолд We won't hinder you.
 
@DonLarynx that's not legal either
 
10:50 PM
@DonLarynx still not legal
 
Your mom wasn't legal, but that didn't stop your dad.
 
@DonLarynx you do realize you can try things before you paste them here, right?
 
user1804599
@DonLarynx That's as legal as the beheadings exercised by ISIL.
 
@райтфолд ISIL beheadings are 100% legal
 
@sbi Which one? There are many.
 
10:51 PM
@райтфолд welcome to the bullshit called sovereign states
 
user1804599
@orlp Then why do people judge them!
 
@райтфолд Because legal != moral.
 
user1804599
Hmm.
 
user1804599
So you're saying using C++ is not moral?
 
sbi
@Puppy The one in what I remember to be the only old house left in that area, basically across the street from the backsite of that hotel.
 
user1804599
10:52 PM
I totally agree.
 
@райтфолд Depends if the C++ is wearing a burka.
 
user1804599
What if wearing burkas is illegal in said country?
 
@райтфолд Like?
 
user1804599
I guess Puppy would wear a burka at the unconference.
 
@sbi lol, IRTA 'backside of that hotel'. I guess the pub is shitty?
 
10:53 PM
why would new int[0] not be legal I don't get it. it's just an array with size zero. @Blob
 
sbi
@MartinJames "(The best at that area was the small pub close by.)"
 
oh
 
@sbi Oh - the other pubs are worse than shitty :)
 
int *p = new int[0]
what would p point to? -.-
 
@sbi From memory, across the road from the back side of the Marriott is a bunch of office buildings.
 
user1804599
10:55 PM
@Blob Unspecified.
 
@Blob to a memory address
 
user1804599
Dereferencing p is UB.
 
sbi
@MartinJames Actually they weren't. There was a nice old town area at about 15mins walking distance.
 
sigh
 
user1804599
What?
 
10:55 PM
nothing
 
user1804599
It's the most reasonable thing to do after throwing an OOB exception on dereference.
 
@Blob some random memory address.
 
sbi
@Puppy Well, it's been two years ago. I remember it was, basically, across the street, though. And I had dinner there, once, with Björn.
 
user1804599
The pointer just has to be there for delete[] to work.
 
> An array cannot have zero size.

ISO 9899:2011 6.7.6.2:


If the expression is a constant expression, it shall have a value greater than zero.
 
user1804599
10:57 PM
Its implementation could return say (T*)1 and in delete[] check for (T*)1 to do nothing. Or it could be moronic and actually allocate memory.
 
sbi
@Blob An address that's guaranteed to be different from what other invocations of new int[0] return, IIRC.
 
> However, you can dynamically allocate an array of zero length with new[].

ISO/IEC 14882:2003 5.3.4/6:


The expression in a direct-new-declarator shall have integral or enumeration type (3.9.1) with a non-negative value.
 
user1804599
@DonLarynx That's not about new[].
 
@райтфолд his question was
"why is new int[0] legal"
 
user1804599
That's new[], not a variable of array type.
 
user1804599
10:59 PM
@sbi OIC.
 
@райтфолд oh
 
Here's why new int[0] is legal: there's no reason it shouldn't be.
 
user1804599
Makes sense.
 
user1804599
@orlp Here's why int xs[0]; is illegal: there's no reason it should be?
 
Here's why int a[0]; is illegal: it would result in a type of size 0, which would be illegal.
 
10:59 PM
but... for what purpose would one do new int[0] ?
 

« first day (1590 days earlier)      last day (3352 days later) »