« first day (789 days earlier)      last day (4174 days later) » 

12:03 PM
@LuchianGrigore Which I have none of.
 
I would ask a question, but I have none.
maybe why all single math operations (+,-,*,/,sqrt) etc are fairly quick, but using them in combination can at times be fairly slow. Why?
probably the worst question I've ever asked
 
@KonradRudolph The C++ ones?
 
@R.MartinhoFernandes yep
hmpf
 
If it makes you feel any better, I don't get them either.
@Mysticial You are a boring person then.
 
locales are like iostreams- if you're not the guy who invented them, then fuck you
4
 
12:08 PM
> Unicode 6.3 is slated to be released in 2013Q3.
FFS, tell me you won't change segmentation again.
 
@TonyTheLion how do you define "fairly quick" and "fairly slow"? sqrt is what I'd consider slow no matter what you do to it. Is sqrt followed by + slower?
I mean, how are you measuring this?
 
@jalf how do you define "fairly quick" and "fairly slow"? In fairness.
 
grr, why does ctype::tolower segfault?
 
@KonradRudolph Maybe it is UB?
 
it probably is, at that
note to self: C++ locales ctype facets cannot deal with multibyte characters, end of story.
 
12:13 PM
A maybe contrived example, an FFT, if you don't implement it for speed, you'll end up taking forever. Now, a component part in it's slowness may be the number of points you're doing this, but leaving that aside, it's just a bunch of math operations. Computers are good at that, yet it can be tricky to make an FFT implementation fast.
I guess sin or cos are part of the reason it's slow, but there again, maths?!
 
Ah, pheww. Only the bidi algorithm changes. Ogonek will not again be outdated before completion!
 
If I had to guess, you're seeing the effects of pipelining
 
sec, will elaborate :)
in a second
 
@KonradRudolph Just look at the interface.
tolower works in-place.
 
12:18 PM
@R.MartinhoFernandes Yes, I just realised that. I had hoped that with a big enough buffer it hight work by accident – it doesn’t
 
Good luck getting that to support multibyte characters properly.
 
take an expression like ((x + y) + z) + w. You need to perform an addition, wait for the result to be available, use the result in another addition, wait for that to complete, and use that result in a third addition
whereas with x+y; z+w; a+b, you also have three additions, but none of them depend on the previous ones, so they can be scheduled basically in parallel (or at least overlapping)
 
@KonradRudolph Anyway, regarding the segfault... tolower returns its second argument.
 
@R.MartinhoFernandes Yes, I’ve noticed, but changing the code to use a big enough buffer and outputting the argument rather than the return value didn’t change the segfault
 
with floating point ops, you typically have several cycles latency (say, 4 cycles before the result of an addition is available), but firing off the instruction only takes a single cycle. So independent operations can be scheduled at every cycle, but if they depend on the previous one, they have to wait much longer before they can be performed
 
12:21 PM
@jalf interesting
 
@KonradRudolph Weird.
Time for a question?
 
@R.MartinhoFernandes Well since it won’t work with multibyte input anyway I don’t really care all that much :p
 
I can see how these things, dependencies can affect it in terms of speed
 
now I’m trying to get Boost.Locale to compile but the documentation doesn’t tell me which library to link
 
12:23 PM
so really, it does not have anything to do with the actual operation on the variables being performed, it's just a dependency thing and other factors.
 
@R.MartinhoFernandes Oh, interesting!
 
@FredOverflow Fred Y U NO + symbols in your keyboard.
 
I have them on my keyboard, but they don't show up on memegenerator images.
 
12:27 PM
Really? Wow.
memegenerator sucks.
 
memegen fail
 
user142019
 
@TonyTheLion Seems it's Fred fail.
 
user142019
quickmeme ftw if you AdBlock the cleargif.
 
12:28 PM
@TonyTheLion oh, and as a little bonus, the compiler typically will not reorder floating-point ops (if you say x + y + z + w, it will evaluate them like I showed above, and not as (x+y) + (z+w), even though that would be faster because of the shorter dependency chain
 
user142019
@R.MartinhoFernandes no, I use quickmeme and Fred uses Meme Generator.
 
Maybe he assumed there is only one meme generator website? :)
 
0
Q: Overloading >> operator to read in text file

The GeneralHave this code for overloading the >> to read a text file: std::istream& operator>> (std::istream &in, AlbumCollection &ac) { std::ifstream inf("albums.txt"); // If we couldn't open the input file stream for reading if (!inf) { // Pr...

 
user142019
 
@jalf oh wow
 
12:30 PM
Overloads op>>, but ignores the passed in stream and opens a hardcoded file anyway.
@Zoidberg'-- Oooh, Portuguese subtitles.
 
user142019
@thecoshman yeah, in Java = is an expression. In Python it’s a statement.
 
a = b being an expression so fucking retarded. It's "useful" to write compact, obfuscated C code, but apart from that?
@R.MartinhoFernandes By the way, I have exactly two + symbols on my keyboard, one left to the enter key, and one right to the 9 key on the numpad. Coincidence?
 
@FredOverflow Huh?
Ah, you mean that it allows a = b = c; and if (a = b)
 
right
 
user142019
a = b = c is allowed in Python.
 
12:38 PM
I like if (a = b).
 
a,b = c,d is also allowed, isn't it? :)
 
user142019
And a = b = d is awesome.
 
@DeadMG clang doesn't like it.
 
user142019
@FredOverflow yes, because tuples.
 
@FredOverflow Fuck clang.
 
user142019
12:38 PM
@FredOverflow it does if you disable the warning.
 
It's useful for things like: if (auto ptr = weak_ptr.lock())
 
@StackedCrooked That's not assignment, that's initialization.
 
auto
Fuck dead keys.
 
I disabled them on my Linux.
 
Doesn't death imply disabled?
 
12:40 PM
Seriously, why the fuck does a German keyboard have dead keys?
 
Srsly, a German keyboard???
 
So you can flirt with french women?
 
What are dead keys?
 
dead keys?
 
@FredOverflow lol
 
12:41 PM
Keys that don't work, I presume
 
You press a key and nothing happens until you press another key.
Useful for stuff à la carte.
à is two key presses.
 
user142019
@StackedCrooked hitting e.g. " doesn’t type anything until you press another key. It is terrible, annoying and absolutely horrible in text editors.
 
A dead key is a special kind of a modifier key on a typewriter or computer keyboard that is typically used to attach a specific diacritic to a base letter. The dead key does not generate a (complete) character by itself but modifies the character generated by the key struck immediately after. Thus, a dedicated key is not needed for each possible combination of a diacritic and a letter, but rather only one dead key for each diacritic is needed, in addition to the normal base letter keys. For example, if a keyboard has a dead key for the grave accent (`), the French character à can be gener...
 
Ah, we have those too. But I'm on a US English keyboard now.
 
@Zoidberg'-- Wuat?
 
12:42 PM
@R.MartinhoFernandes ah
 
You have double quotes as a dead key?
 
@R.MartinhoFernandes on my keyboard at home it's like that
very annoyiing
 
user142019
@R.MartinhoFernandes That’s default in Windows in my experience.
 
@Mysticial For context, I had just typed àuto`.
 
DeadMG has M and G as dead keys.
 
12:42 PM
@R.MartinhoFernandes Yeah, it used to frustrate me to death.
 
user142019
" does Umlaut in Windows.
 
user142019
I hate dead keys. The guy who invented them must die.
 
@Zoidberg'-- We have normal keys for ä, ö and ü.
 
This has nothing to do with Windows. What braindead layout is that?
 
I changed to US English just to get rid of all that annoying crap.
 
12:42 PM
braindead keys lol
 
@StackedCrooked I use that for code.
And I use dead keys to type in Portuguese.
But German has no use for `.
 
Doch, zum Beispiel 3 Portionen à 50 Gramm.
 
Wut.
You serious?
 
It means "3 portions, 50 gram each."
yes
 
12:45 PM
But that's the only case I can think of right now.
And it certainly doesn't warrant a dead key :)
 
Ooh... that's a nice flag. :)
in C#, 8 mins ago, by Sean
"Why don't you go outside and play hide and go fuck yourself?"
 
user142019
@Mysticial that’s from the video about the word fuck.
 
Xeo
Better question: Why the heck does the German keyboard layout have µ? :)
 
@Zoidberg'-- oh, I wasn't aware of that. :)
 
user142019
PEOPLE Y U CANNOT WORK WITH GIT
 
12:46 PM
@Xeo Where?
 
@Mysticial The C# room seems quite chaotic. I always thought they were primarily talking about C# :)
 
Xeo
@R.MartinhoFernandes ctrl-alt-m (or alt gr-m)
 
Oh, AltGr+M
 
@Xeo That's the prefix for 1/1000000.
 
Xeo
Yes, but why do we have that, and nothing else?
 
12:47 PM
@Xeo What else?
m?
M?
 
Xeo
And why do we even have that.
 
What?
Are you trying to make sense?
 
And why do we have °? For temperatures, I suppose? :) Water boils at 100°C.
 
user142019
12:48 PM
Git rebase y u so fucking slow.
 
@FredOverflow Right angles boil at ninety degrees.
 
> Git
 
@Xeo Right, we should get rid of all letters that are also scientific unions (?) :)
 
question answered
 
user142019
12:49 PM
Git is fucking fast in general.
 
43 secs ago, by Zoidberg'--
Git rebase y u so fucking slow.
Short term memory, I see.
 
@R.MartinhoFernandes And right angels vote republican.
We should found a nerd biker gang and call it "The Hell's Angles".
 
@Zoidberg'-- Why are you rebasing instead of simply merging?
 
user142019
@FredOverflow The Hell’s Angels is a Dutch motorcycle club.
 
user142019
@R.MartinhoFernandes do I know. My teammate was and asked me to help.
 
12:51 PM
@Zoidberg'-- Read again what I wrote.
 
user142019
Oh Angles. lol
 
user142019
A Hell’s angle, is that 666º?
 
Also, Dutch? Aren't they world wide, like the web?
 
Your teammate sucks.
 
user142019
I don’t know. I only know they often cause trouble in The Netherlands.
 
user142019
12:52 PM
@R.MartinhoFernandes they all do. And now I hope they look at my screen.
 
user142019
@FredOverflow oh yeah international club. TIL. :^)
 
user142019
We should be using Subversion and I would lock all files.
 
user142019
lol
 
user142019
On OS X.
 
user142019
12:54 PM
> Considering SourceSafe sucks on Windows, trying to use a client for it on a MAC is probably very ill advised.
 
3
A: Visual Source Safe on Mac OS X

RichardODConsidering SourceSafe sucks on Windows, trying to use a client for it on a MAC is probably very ill advised. Everyone who still uses SourceSafe should read this. If you can't move to something better due to reasons beyond your control then I feel sorry for you!

@Zoidberg'-- Damn, too slow.
 
user142019
Breaking news! Superlobster is faster than robot!
 
Anyway, why would anyone use VSS on a Media Access Control.
 
user142019
@TonyTheLion lol
 
12:56 PM
Just got the confirmation: I will be going to the @accu2013 conference. I am so looking forward to that!
 
user142019
Today I wrote any and optional but the optional implementation sucks ass.
 
Is that a C++ conference?
 
@FredOverflow Think so.
 
@Zoidberg'-- Writing swap for optional is fun :)
 
Bjarne and Kevlin are speaking
Enough C++ there
 
user142019
12:57 PM
@FredOverflow my swap is this:
 
user142019
friend void swap(optional<T>& a, optional<T>& b) {
    using std::swap;
    swap(a.value, b.value);
}
 
@Zoidberg'-- What if there are no values?
 
user142019
Because I use std::unique_ptr<T> instead of alignas(T) char value[sizeof(T)]. :P
 
cheater!
 
Xeo
lol, a heap optional.
 
user142019
12:58 PM
I’ll optimize it later.
 
user142019
It works for now.
 
@TonyTheLion Damnit you beat me to it!
 
It's in Bristol
 
user142019
I also wrote any but it cannot be empty. You need optional<any> for that.
 
@Zoidberg'-- You sound way too sane for the Lounge. And a C++ programmmer.
 
12:58 PM
hmmm I could go too
 
Xeo
@Zoidberg'-- That's a strange any.
 
Let's invade accu2013 and turn it into a Lounge orgy.
 
Seen this? (From /r/cpp.)
 
@R.MartinhoFernandes But not the Standards meeting?
it's in the same city, same venue, right after the ACCU meeting
 
user142019
12:59 PM
template<typename T>
explicit any(T object)
 
user142019
It haz no default ctor. :P
 
@DeadMG I don't think he likes the idea.
@Zoidberg'-- It is movable.
 
user142019
@R.MartinhoFernandes it is movable.
 

« first day (789 days earlier)      last day (4174 days later) »