« first day (1624 days earlier)      last day (3307 days later) » 

5:00 PM
@Borgleader Sounds like you've been living under a rock :)
@Borgleader The victim drove himself to A&E with swelling and bleeding.
 
@LightnessRacesinOrbit I know, I just now read an article about it
 
@LightnessRacesinOrbit ..because that would prevent the posting of the stupid/inane/crazy/pointless/duplicate/trivial/unwanted/useless question.
 
@rubenvb So it's AMP but shittier?
 
@MartinJames and Vlad would starve :(
 
@LightnessRacesinOrbit ..always a silver lining:)
 
5:01 PM
@rubenvb How does this compare to C++AMP?
 
@Pris dude that doesn't even make sense
 
@LightnessRacesinOrbit Whay would anyone goto an A&E that was in that state?
 
@LightnessRacesinOrbit how so?
 
@Borgleader infinitely faster cause AMP doesn't have a cross-platform FFT.
@Puppy I'd beg to differ.
 
@rubenvb lets say im on windows, how does it stack up against C++ AMP
 
5:05 PM
@Borgleader It has a more macro-ized and less limited interface. Macro's for user defined functions to be run on the GPU. Read the first bits of the readme, it's all explained quite easily.
 
@MartinJames Lack of choice perhaps
@MartinJames The clean ones must have been closed :(
(that took me a moment)
@Borgleader Linguistically the joke doesn't work. There has never been a "-tour""-tor" transformation in English → American English.
 
is this function defined?
http://pastebin.com/raw.php?i=bXDvNy6z
 
"The code looks good." No, it does not. — Lightness Races in Orbit 1 min ago
 
I haven't compared it to the AMP FFT on Windows though.
 
@Polikdir Yes, you defined it in your snippet.
 
5:06 PM
no, i am asking is it undefined behaviout?
 
@Polikdir what makes you think that's UB?
*could be
 
@Polikdir Is what undefined behaviout? [sic]
 
because i an accessig a memory i don't own
 
@Polikdir It is not shown in that snippet that you don't own the memory.
 
i sont so anything with it but i do access this memory
 
5:08 PM
Dude, stop typing messily.
 
sorry
 
Is it "anti-clockwise" or "counter-clockwise"?
 
If the pointer a is valid, and there are no synchronisation issues with other threads, there is no reason to think that this code is not well-defined.
 
@AndyProwl counter
 
@AndyProwl "anti-clockwise" in English. "counter-clockwise" in American English.
so "anti-clockwise"
 
5:09 PM
@LightnessRacesinOrbit The hyphen is OK?
 
@AndyProwl yes, though it's not always used
 
OK, thanks
 
@LightnessRacesinOrbit oh fuck. Got bitten by that again. I always immediately go for the American version :o
 
@rubenvb Sorry to hear that :(
 
Names in the Standard Library and boost are in AE, right?
 
5:11 PM
If I send an int pointer to this function (this int is not part of an array), considering that ++ postfix is prior to the dereference operator, is it defined to access this memory (without using it)?
 
@AndyProwl I'm not aware of any names in the standard library that could be deemed categorically one or the other, though some may exist. I'd have to look.
I'd post an SO question for it but I would almost certainly be downvoted to oblivion by the brainwashed "America only" police.
 
@LightnessRacesinOrbit Hm, good point. For some reason I thought I've seen some word containing "-ize" instead of "-ise" but it seems it was just an impression
 
@AndyProwl The standard does often take such conventions in its wording, though. :(
 
Yeah, I noticed that
 
anti clockwise sounds terrible
there's no alliteration
 
5:15 PM
They'll have to make a choice when standardizing graphics
colour/color
 
@AndyProwl sise would be kind of awkward, I agree :P
 
we use coloUr in canada... but all of our pronounciations are american
 
@rubenvb haha
 
If I send an int pointer to this pastebin.com/raw.php?i=bXDvNy6z function (this int is not part of an array), considering that ++ postfix is prior to the dereference operator, is it defined to access this memory (without using it)?
 
And prepare to be downvoted.
 
5:18 PM
Why?
 
lol
 
@AndyProwl Well, I've only managed a brief scan through, but I can't find any examples. Could that be deliberate? Hmm.
 
SO being flagged
@LightnessRacesinOrbit I think it's worth asking on SO
 
@Polikdir Cause it's a bad question that has been asked a gazillion times.
 
What have I done?
 
user1804599
5:19 PM
Alright, so.
 
Can you please give me a link to such question?
 
@AndyProwl No doubt they will go with "color" in order to appease bullying corporate vendors trying to assert their single-country will over the rest of the world. That is, the rest of the world that they're so far aware of lol
@Polikdir I already answered this question. Pay attention.
@Polikdir However you are at least asking it much better now.
 
@R.MartinhoFernandes Any clue why I would get the following compilation errors on windows (clang++ & MS' stdlib) but not on linux:
> error : no member named 'empty' in 'seq::detail::sequence_impl<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >'
E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\empty.h++
error : no matching function for call to 'empty' E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\pop_front.h++
error : no member named 'pop_front' in 'seq::detail::sequence_impl<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >'
E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\pop_front.h++
 
I have no idea what "access this memory (without using it)" means though
 
@Borgleader Clang can't SFINAE?
 
5:21 PM
Clang can SNAFU
 
Ooops. I went on /r/cpp
 
All right, let's try to ask on SO
 
user1804599
Well, fuck.
 
@LightnessRacesinOrbit So is the code I have sent is defined? Because I try to access this memory without owning it? Or is it defined because I am not really using it?
 
user1804599
I have to call the constructor of an abstract class.
 
user1804599
5:24 PM
Or some other way to acquire its vtable.
 
Derive from it?
 
user1804599
Maybe I can look it up with dlsym.
 
@R.MartinhoFernandes No clue, I mean, I'm looking at the changes I made, and it's only some class <--> struct to silence warnings, () to ::value in template meta-magic, and using code_point = decltype(U'\xA8'); to get around MS' shoddy "implementation" of char_32t or wtv. So I doubt it's that. And it doesn't look like its a std lib issue =/
 
user1804599
Or maybe it's available through __si_class_type_info.
 
user1804599
Wait, I don't need the damn vtable.
 
5:28 PM
@Borg I don't have clang on Windows but I might try it later.
 
user1804599
Nice, I got it.
 
@Polikdir Dereferencing an invalid pointer is undefined. Since you return a reference to an int that does not exist, that is also undefined. Even though you don't read from or write to the underlying memory.
@Polikdir Why are you writing poor code like this in the first place? Simply don't do that.
 
user1804599
class ConcreteValue : public Value { };
auto memory = operator new(size());
new (memory) ConcreteValue();
auto vtablePtr = &vtable.dtor1;
std::memcpy(memory, &vtablePtr, sizeof(void*));
return static_cast<Value*>(memory);
 
user1804599
^ very nice. :)
 
5:35 PM
0
Q: Are names in the C++ Standard Library meant to be in American English or British English?

Andy ProwlAfter a quick search in draft N4296 I could not find any example of a name in the C++ Standard Library for which two possible spellings exists (AE vs. BE). While this may even be intentional, I can imagine that at some point, if a graphics library will be standardized (and there seems to be some...

 
Why op new followed by placement new?
 
Let's hope it won't be bashed
 
user1804599
@R.MartinhoFernandes different size.
 
That's effectively new.
Oh.
 
user1804599
I want noexcept { … } statements.
 
5:38 PM
graphics::rbgclr problem solved
lol @LightnessRacesinOrbit those edits
 
Will you be pissed if I revert them?
 
xsputn is a problem in Russia.
 
@LightnessRacesinOrbit Dictionaries do mention "AE" and "BE" though, don't they?
 
5:41 PM
hmm I think I may have just found a bug in either the standard or boost::string_ref
 
@AndyProwl AmE and BrE, typically
@R.MartinhoFernandes More so in Ukraine. There is definitely excess Putin there.
@Mgetz You probably haven't.
 
@LightnessRacesinOrbit actually I'm quite sure I have, boost::string_ref can pass a nullptr to std::string on construction and the behavior seems to be defined
 
Someone stole my towel.
Wtf
 
even though the standard clearly calls that out as undefined behavior
 
@LightnessRacesinOrbit All right, will use those then
 
5:43 PM
@R.MartinhoFernandes Actually nvm, I was previously using a VS solution to build this, but I ran it with ninja directly, and it only gave me an error when I reeached the ar command. So idk wtf is going on.
 
@Mgetz So where is the bug?
 
although ninja did use g++ not clang++
 
@Mgetz You cannot construct a std::string from a nullptr
 
@LucDanton most likely in boost::string_ref which should use an empty string if you construct it empty
 
argggggggggggh T_T c++ y u do dis
 
user1804599
5:44 PM
Btw @R.MartinhoFernandes anon struct compiles fine for me.
 
@LightnessRacesinOrbit I know
that's what I was getting at
 
@Mgetz So it is not defined. It is ill-formed.
 
user1804599
I have this as a member and it works with -W{all,extra,error} -pedantic:
 
except no compiler barfs on it
 
user1804599
struct { std::ptrdiff_t offsetToTop; std::type_info const* typeInfo; void (* dtor1)(void*); void (* dtor2)(void*); } vtable;
 
5:44 PM
Does exception_ptr/current_exception require compiler magic? I.e could it have been implemented as a (non-std) library?
 
@Mgetz I recall that libstdc++ renders it safe with a check in std::string's constructor. "It compiles" isn't proof of anything
 
boost::string_ref foo; auto bar = foo.to_string();
 
Its questions like this that could reignite the whole war of independence, if those guys don't get their spelling under control. — Galik 19 secs ago
What have I done
 
@LightnessRacesinOrbit actually the standard is quite explicit, you can't construct a std::string with a nullptr either
> Requires: s points to an array of at least n elements of charT
 
5:46 PM
@Mgetz Surely you're breaking the to_string precondition? Though I can't find decent documentation
@Mgetz Yes, I said that already.
2 mins ago, by Lightness Races in Orbit
@Mgetz You cannot construct a std::string from a nullptr
 
user1804599
> no type named '__si_class_type_info' in namespace '__cxxabiv1'
 
user1804599
(╯°□°)╯︵ ┻━┻
 
uninitialized_copy would seem to set a precedent for the US variant. (Although the "z" is technically correct, if abominable, in English). — Mike Seymour 30 secs ago
 
@Mgetz There’s something not quite right with what you said. libstdc++ very pointedly throws upon nullptr construction, so it should be very noticeable.
 
5:50 PM
@райтфолд They're compiler-internal classes really, just get the mangled name of the vtable for that typeinfo and reference it directly.
 
@LucDanton What if you turn off exceptions? :P
 
user1804599
@Puppy I need to create an instance of __si_class_type_info.
 
user1804599
Which I can on Coliru (in <cxxabi.h>) but not locally.
 
any type of the same binary layout will do.
 
user1804599
Sure.
 
5:51 PM
and the ABI kindly specifies the binary layout.
for basically this exact purpose, really.
 
user1804599
Yeah but being able to call the ctor of __si_class_type_info is nicer. :P
 
@LucDanton does it throw if you use the std::string(const char*, size_t) constructor?
 
pretty sure that the ABI requires that it doesn't have a ctor
 
@Mgetz Interestingly yes, but not for nullptr, 0.
 
@Borgleader yes
 
5:52 PM
@LucDanton precisely
MSVC doesn't either
 
user1804599
@Puppy Wrong.
 
user1804599
Oh, well.
 
user1804599
It doesn't say anything about the ctor. :P
 
user1804599
But GCC's implementation provides one.
 
@Mgetz: Can you tell me yet which function causes this to occur? There is no to_string().
 
5:53 PM
@LightnessRacesinOrbit check the header
 
@Mgetz I don't care about the header. Check the documentation and the proposal. That is the API you can use.
 
there is most definitely an explicit cast operator and to_string()
 
one more, there is no documented function to_string()
therefore there cannot be a bug in the library
 
it has an explict conversion to string
 
That is not .to_string(). Are you now changing your claim? That the bug is in the explicit conversion operator?
 
5:55 PM
@AndyProwl just go with what you prefer after all it's your code. — deW1 2 mins ago
lol
 
(I think you're right though :P)
 
also latest version of that draft: isocpp.org/files/papers/N3762.html#inventions
 
> Effects: Equivalent to basic_string<charT, traits, Allocator>(begin(), end()).
 
also has to_string() and the explicit conversion
 
user1804599
std::typeinfo has a protected ctor on my machine.
 
5:56 PM
fixed I guess
 
user1804599
Excellent.
 
@Mgetz Boost.StringRef does not refer to that draft.
@LucDanton cool
 
@LightnessRacesinOrbit I'm aware regardless the draft it does refer to is flawed
 
@LucDanton I think this change fixed it, accidentally
 
user1804599
 
6:00 PM
@LightnessRacesinOrbit yeah the current version of the draft ensures that data() is always valid it seems
 
3
A: Are names in the C++ Standard Library meant to be in British English or American English?

Shafik YaghmourThis page: Which spelling standard in English? 'Oxford spelling' says that ISO uses the Oxford spelling: 'Oxford spelling' is used by the principal and most prestigious English dictionaries such as the Oxford English Dictionary, the Collins English Dictionary and the Cambridge dictionaries, a...

 
Hehe.
 
so I guess it shall be colour
and anticlockwise
 
What's the american equivalent of anticlockwise?
 
6:03 PM
aw, I got downvoted
probably the side-effect of posting in the Lounge :D
 
anticlockwise
 
@Nooble counter-clockwise
 
-1: the spec consistently uses behavior and not behaviour, so either that page is mistaken, or else it doesn't apply here for some reason. — ruakh 1 min ago
 
It's the first time I heard of "anticlockwise"
 
6:05 PM
shite
 
@Mgetz Oh right :P.
 
I propose Italian English should be used
 
engrish
 
@AndyProwl Anttti-clockwise
 
@Nooble Sounds good
 
6:06 PM
@райтфолд Right, but I don't think that you can require the compiler to have the implementation-specific header to compile code that's compatible with that library.
if you have to emit implementation-specific code what's the point of it being a standard
 
user1804599
Also, do I need to reset the vptr before calling the base dtor?
 
yes.
 
user1804599
I don't know what the effect of calling virtual members from a dtor is.
 
they are required to call that class's implementation, just like ctors.
 
user1804599
I see.
 
6:09 PM
what I don't remember is if you have to set them or if it's the derived class's responsibility.
probably better to set them yourself and then you're covered in either case.
 
user1804599
> store i8** getelementptr inbounds ([4 x i8*]* @vtable for Value, i64 0, i64 2), i8*** %3
 
user1804599
clang generates that code in the base dtor.
 
user1804599
Not in the derived dtor.
 
omg it built
 
Nice.
 
6:14 PM
fucking hell
Boost's Trac uses a captcha system that's been turned off
 
user1804599
// You should have received a copy of the GNU General Public License
// along with GCC; see the file COPYING.  If not, write to
// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
 
user1804599
> write to
 
user1804599
I wonder whether someone has ever done this.
 
@райтфолд HAHAHA, I'd love to see the boxes of printouts when they send it
 
Boost Trac is terrible. You get caught as spammer if you link to any references.
 
6:20 PM
I wonder if you could DDOS them by snail-mail by spamming requests to them to send the GPL to places
 
@LightnessRacesinOrbit probably why nothings been fixed
 
user1804599
In the Netherlands you can send certain letters to the municipality and they are required to answer them. There's one guy who continuously sends such letters and it costs the municipality over a million bucks per year to answer all of them.
 
and why the are in the process of moving to github in theory
 
user1804599
And he asks silly stuff in those letters like what they had for lunch.
 
@райтфолд I'm tempted to do this.
 
6:22 PM
@Nooble if it builds it means it works
 
@Mgetz: I found it!
@райтфолд I wonder, why does a NL municipality work in "bucks"? :/ That seems incredibly inefficient. If they used the local currency they'd probably not spend as much.
 
It's frustrating that unsigned chars behave strangely whenever we try to assign a value of 466. Yet another reason C++ is terrible...
 
@райтфолд Well, if the letters to the municipality are written on a small sheet of paper, and the replies come back on A4, it sounds like a good way of keeping warm in winter, (assuming you have a solid-fuel boiler).
 
It was a surprise to find out from an engineer at the studio that the "360" in Xbox 360 did not, in fact, stand for "360-bit."
lol
 
6:25 PM
@LightnessRacesinOrbit thanks
 
@LightnessRacesinOrbit Must be 360 bytes, then. RAM? Must be highly optimized code.
 
Of all the things to focus on... — Robert Harvey ♦ 7 mins ago
Why are other people not obsessed with consistency? :P
 
lol
 
lol
 
@Pris lol!
 
he's definitely a fast runner
 
when we get confused about homogeneous coordinates, we just start multiplying or dividing components by w until things seem to render right
 
he should play
 
6:33 PM
I belong at the InternDept
 
@AndyProwl What? With all those injuries after the attacking team catch up with him?
 
@MartinJames He's too fast, they won't ever catch him!
 
@Pris lol what the
 
@Pris IRTA InternDerp
 
I think I'd be a pretty derpy intern
Most of those tweets describe me to a T
 
6:42 PM
@Pris I can relate
 
When did I ever mention your name? My personal feelings about your question have nothing to do with you as a person. Seriously, if you're a brit, speak brit in your code. Done. — Robert Harvey ♦ 2 mins ago
sigh
I guess I should stop replying
 
user1804599
> Just LEARN C, the mother, the father, the GOD of all modern languages.
 
user1804599
> There is only one language you need to know. C (you can make that two with C++ if you like). If you know that (those), you can learn any other language in a matter of hours. People who struggle to learn C/C++ should do something else.
 
user1804599
lol
 
@райтфолд Best argument for atheism yet..
 
6:47 PM
If you don't struggle even a little bit with C++ you're flippin' inhuman
 
user1804599
I love C++.
 
quick question without going into a big debate, is MFC "good" C++ ? The goal for me is to know win32 api better but the lack of util classes, even things like date etc in C and swaying me to MFC
 
People "love" abusive significant others too
 
By "good" I mean well designed ?
 
@AndyProwl Jesus.
@AndyProwl Yeah me too. There's just no reasoning with some people.
 
6:48 PM
@gideon Well designed for what purpose?
 
I know writing MFC apps will expose me to win32 api more. I know a wee bit of win32 programming, but will it also introduce me to C++ better?
 
Why doesn't he just ignore the question? Or downvote it? Or close vote it? I don't get this fuss
 
@gideon It's not really useful as a snow shovel or dog lead.
 
@MartinJames I mean it's design and structure. Like .NET I believe is well thought of and designed. So reading .NET code or looking at their design gave me a better idea of how to design my code.
@MartinJames @MartinJames what'dyou mean?
 
@gideon No. It's ancient and uses non-idiomatic C++.
 
6:50 PM
@AndyProwl He must be drunk or on drugs or something. I cannot comprehend why a seasoned moderator of all people believes it's okay to act this way.
 
lool
WHO CARES?!!!!!! — Robert Harvey ♦ 23 secs ago
 
@gideon If you want you app to start up in less than a second, it's badly designed.
 
He doesn't care, yet he answered
 
Fine, I'll give you one. — Robert Harvey ♦ 10 secs ago
He's about to ban me.
Unbelievable.
 
6:51 PM
@MartinJames aha. Yes, that does matter. But C is the route for that, but with C, there aren't any controls, any basic libraries to use....
 
@LightnessRacesinOrbit haha, well played
 
@LightnessRacesinOrbit can't wait
 
This is hilarious
 
Flagged him. This is TOTALLY unacceptable.
 
#butthurt
 
6:52 PM
@Pris Hehe .. it is quite funny:)
 
I honestly thought people with super high rep were like, super professional stoic gods of programming
 
Y'all are just as silly as me
 
are you new here
 
6:53 PM
I regret asking that question
2
 
@Pris Not on a bad day.
 
@Pris @JerryCoffin is a god, so there's one.
 
@BartekBanachewicz I should have said "until I started hanging out in chat"
 
@Pris and I honestly thought that people with mod powers were like, professional moderators.
 
@AndyProwl No. It's totally worth the entertainment value.
 
6:53 PM
@Nooble jesus what
@Mysticial heehee
 
@Mysticial hahaha
 
@LightnessRacesinOrbit trained for years to be a mod in a monastery
 
@BartekBanachewicz modastery*
 
with a 1000-year old tradition of moderating internet forums
 
6:54 PM
furrums
 
they pass down the trade from father to son
inb4 sexist
 
You guys should screencap the funnier stuff that goes on and immortalize it on a tumblr
 
@Puppy Does a StringPool count as a cache, and hence as a valid Singleton?
 
@Pris ooh good point
 
@LightnessRacesinOrbit Well, I mean, he did create the universe.
 
6:55 PM
@Nooble I see
That explains why the world is so fucked up then
So, I'm about to try out the new supermarket that's opened next door. Any requests?
 
lol, greyed out at -3 :)
 
haha
cretinesque
 
@AndyProwl Basically, the challenge is to ask a legitimate SO question that offends as many people as possible without getting closed.
7
 
that being said, @RobertHarvey is acting like a dick
3
 
@LightnessRacesinOrbit I guess you can't go wrong with pizzas?
 
6:56 PM
@MartinJames Waitrose though :/
 
@LightnessRacesinOrbit cereal
 
Sep 17 '14 at 18:15, by Jerry Coffin
@mouse Not at all (I'm a God. Sacrifice virgins to me or send me money).
 
@Nooble well that settles it then
While we're at it...
Jan 27 at 14:26, by Lightness Races in Orbit
@Abyx I am your god.
 
He just needs more virgins and money, then all shall be well.
 
@FredOverflow Mocking singletons is not a problem at all.
 
6:57 PM
@BartekBanachewicz It's totally quackers..
..oh 'dick'..
 
inb4 I get flagged and banned for saying that
@MikhailTal we're out of answers for today sorry
 
try again on monday
 
@BartekBanachewicz lol
 
Feb 27 at 15:08, by Lightness Races in Orbit
God do I really have to plonk Bartek again
 
6:57 PM
@MikhailTal Halo Guardians is out later this year
@BartekBanachewicz :D
 
Nice
 
search for "plonk Bartek" instead
 
I dont have a Xbox though
 
WTF was that wall that just drove past?
 
6:58 PM
@BartekBanachewicz chat search isn't mature enough for us to be able to do a search for "plonk (Bartek | Braket)" etc
 
PUPPY!!
 
@MikhailTal Wut??
 
inb4 it's still more mature than you
cheers
 
ah right the mispellings
 
@MikhailTal Dude, no.
 
6:59 PM
lol
 
@Mysticial Looks like I managed
 
ITT money has transfiguration powers
 
Money Transfigures in Lounge
@MartinJames y puppy
 
(fun fact: in a Polish version of Harry Potter, something like transmutation was used)
 

« first day (1624 days earlier)      last day (3307 days later) »