« first day (992 days earlier)      last day (3965 days later) » 

1:00 PM
I need to fix exported functions and explicit return types.
also destructors and exceptions.
 
@R.MartinhoFernandes No, but I want to! I will be back, (but not like Arnie:).
 
@R.MartinhoFernandes no, of the edit
I'm going on a Spree-crossing spree
 
auto f() -> T was originally suggested as fun f() -> T :( No fun in C++ :(
 
we lost the fun.
 
What is the overhead of floating point operations compared to integer operations these days? Is it large or small?
 
Xeo
1:13 PM
@R.MartinhoFernandes Do you think we could get an alternative syntax that switches , for ->?
 
I'm assuming in modern hardware, it's negligible
 
Xeo
@R.MartinhoFernandes auto f(int a -> int b -> int c) -> int :D
 
@TonyTheLion Absolutely. With something like SSE2, you can perform them at the same rate, I'm pretty sure.
 
1:15 PM
@TonyTheLion it... depends (you're not surprised to get that answer, are you? ;))
 
@jalf no surprise at all
but if you did some operation, like multiplying a double a few million times, over doing the same with an integer
would there be a huge difference
 
@DeadMG Actually, since it's not a keyword, you can put the fun anywhere you want.
 
For modern hardware, most integer operations have a latency of 1 cycle, while fp ops have a latency of 3-4 cycles. So if you need the result of the previous operation immediately, then fp code will be 3-4 times as slow
 
(Just look at my code: it's full of fun)
 
but if you don't, then only the throughput matters, and in that case, both fp and integer code is fast
 
1:17 PM
hmmm
does the compiler automagically use SSE for floating point?
 
Sometimes.
 
so if you do x *= somevalue a few million times, you will get hurt by the latency
@TonyTheLion for simple loops, but rarely for more complex code
 
ah right
@jalf I'm not sure I get how latency gets into this?
 
@TonyTheLion each iteration depends on the result of the last iteration. So it needs to wait for the previous iteration to finish. Which is what the latency means
Whereas if you multiply independent values, then iterations can overlap
it doesn't matter that the previous iteration won't complete for another 2 or 3 cycles if you can start the next one immediately anyway
 
user142019
@Xeo The assembly line goes in the other way the tables go. :|
 
Xeo
1:21 PM
@rightfold Ahahaha
STAHP
 
user142019
That's why he's so upset!
 
JBL
Good afternoon.
Oh, today it's Lounge not-not-C++ ?
 
Xeo
@rightfold Just say "The assembly line's vector is the opposite of the tables' vectors"
 
using base::base will not give me a derived(base&&) ctor, will it?
 
Xeo
No?
 
1:25 PM
Bloody hell.
 
Xeo
That'd be dumb and dangerous
 
@not-TonyTheLion Oh, another way in which performance might differ for floating point is that unless you explicitly tell the compiler that rounding errors are ok, it won't reorder instructions. If you write x * y * z * w with ints, the compiler will evaluate it as (x*y) * (z*w) so the two parens can be computed in parallel (so you effectively have two sequential ops). But with fp, that might change the result, so by default, it has to compute it as ((x*y) * z) * w (3 sequential ops)
 
I hate is_related.
 
Xeo
lol
What now?
 
It's annoying and boilerplatey.
 
1:26 PM
ITT: Robot's new buzzword is boilerplatey
 
I'm thinking of DisableIfRelated just for that crap.
Writing thin wrappers takes way too much code.
@Xeo I'm struggling to find a decent use case where I would be glad to have inheriting ctors, then :(
 
Xeo
lol
 
struct base {
    base(int);
    base(std::string);
};
struct derived : base {
    using base::base;
};
// now derived can be constructed from ints and strings, but not from bases :|
 
isn't that a good thing? being constructed from a base would be slicing.
 
Is playing sounds on the web now the norm?
 
1:33 PM
also
 
@DeadMG And from int isn't?
 
@R.MartinhoFernandes Good point.
 
user142019
@DeadMG Doesn't load.
 
@DeadMG ^
 
ah, christ, not again.
 
1:34 PM
Yes, again.
 
webhost just came back up
 
The thing is, derived(0) will do exactly the same as derived(base(0)) would if it worked as I supposed.
 
@R.MartinhoFernandes Only if base is movable and moving it is effectively irrelevant.
 
> Oh, we don’t stock that—there’s no call for it. It’s funny though, you’re the fifth person to ask today.
 
lolwat?
 
1:36 PM
@DeadMG Well, yes it is movable (otherwise there would be no such ctor to inherit), and yes, I'm assuming the implementation of the move is elidable without noticeable effects.
So this feature clearly isn't for my scenario. What is it for?
 
have a look for whatever paper proposed it
they must have had something other than "Nice to have".
 
Yeah, I'll check later. For now I'll go back to writing tedious forwarding ctors.
 
@jalf ah right
 
@TonyTheLion anyway, usually you can assume that both are fast enough, and for a lot of code, fp isn't slower at all
 
@DeadMG I read that as 'combat' was wondering wtf it was going to be
 
1:42 PM
looks like my web host is back up
maybe I should get jekyll or whatever that shit is and move to bitbucket, I bet that a website hosted with them never goes down
oh, wait, I remember why I didn't- because they don't support A-records and my DNS provider doesn't support CNAME records
 
o_0 your x := int syntax is... odd... so use to just int x
 
@thecoshman Well, you can also just do x := 5; for an in-class initializer.
 
@DeadMG Ugh.
 
@DeadMG what would that be equivalent to? int x = 5;?
 
@thecoshman yup, but of course I infer the type for you.
 
1:44 PM
@DeadMG any (defined) type?
 
why not?
 
it took my school a full year to change a grade
 
return { std::forward<Seq>(s); }
Arrgh.
 
type foo { x, y := int; } // I assume this works
type bar { x, y := int; } // and lets assume these both have functiosn that do not work the same
whatTypeAmI := { 5, 6 }
 
1:46 PM
@StackedCrooked Only for non-integral types.
 
Xeo
@StackedCrooked std::initializer_list ctor > other ctors
 
@StackedCrooked Welcome to uniform initialization sucks.
 
@R.MartinhoFernandes That could lead to damn subtle bugs.
 
1:47 PM
@thecoshman Wat. The first and second line I get, but the third is nothing like what I have currently implemented.
 
So always use {} unless it's vector<integral>, then use ().
 
@StackedCrooked No.
Don't use {} for vectors unless you want to give elements is a better rule of thumb.
 
@DeadMG oh, so you can't do init list style stuff?
 
@thecoshman C++'s init lists are broken. I'm not going there for a while.
also, my current plan is for "whatTypeAmI" to be a tuple.
 
s/vector/any initializer_listable type/
 
1:50 PM
@R.MartinhoFernandes If you have template type T. Does T{} use the intializer list constructor if T happens to be vector<int>?
 
Xeo
No
 
Xeo
Empty {} is always default ctor IIRC
 
Ok, that's good then.
Oh, right.
 
Xeo
But if you have T{stuff}, then yes.
 
1:51 PM
Hm..
Ok. That's an unlikely scenario.
 
Xeo
Unless stuff is integral
 
@StackedCrooked T{} is always value-init (which tbh I would expect most types to make equal to constructing from an empty init-list).
 
Xeo
and the vector is not of integral types :)
 
@R.MartinhoFernandes Sorry, I meant T{U{}}, or something..
 
@StackedCrooked It always uses the initializer list ctor if it can.
 
1:55 PM
lol
go Germany
 
user142019
@StackedCrooked Highly relevant.
 
Scumbag StackedCrooked
 
lol
 
I love you Stacked :)
 
1:59 PM
the better solution is just to never use uniform initialization in template code
 
@TonyTheLion Say that to a girl.
 
I totally expected that reaction
You could have been a bit more unsurprising
 
which one?
 
user142019
Tony: I love you Stacked :)
Girl: What?
 
2:00 PM
@rightfold I don't write bugs.
10
I type them. Muahaha!
 
@R.MartinhoFernandes I wish I had a girl to say that too
 
Tony: Stacked I love you :)
Girl: My name is not Stacked!
 
user142019
@TonyTheLion Craigslist.
 
Fuck you
 
@DeadMG so the type : value only works for... basic types?
 
2:05 PM
@thecoshman Define "basic"
you can use any expression and any type right now.
 
@DeadMG yeah, I should have said 'basic' in the first place. I guess, primitives such as int float char double long etc.
 
no reason why you could not use a complex type like std.string.
in fact, one of my test cases (er mah gerd!) involves doing just that.
 
Impressive.
 
what is?
 
@R.MartinhoFernandes what? that he wrote a test case?
 
2:09 PM
that I have a test case?
 
user142019
-18
Q: Would changing display name to "Positive" help community?

user13814If people change their display names to "positive" will that help the community somehow ? The change could be for a few minutes, an hour or a day to represent the need for positivity.

2
 
user142019
This is a gem.
 
Remind me to never post on Meta.
 
JBL
Trying to save SO from the constant ambiant negativity, tsk tsk...
 
Anyway, my blending works, sort of.
 
2:14 PM
I see pixels
 
fuck you emails that do not offer a way to unsubscribe!
 
So the girlfriend wanted me to write a romantic limerick for her.
I told her no can do, limericks are by definition dirty, not romantic
her reply: “good enough for me :D”
 
@KonradRudolph -1, link doesn't go to your limerick :p
 
I didn’t write one ;-) (yet)
 
@melak47 Why wouldn't you?
 
2:18 PM
@Pawnguy7 Context? This looks mildly interesting
 
user142019
Anybody with me? I find this most vexing.
 
Screensaver project.
 
this reminds me once a guy I was dating sent me like 50+ poems, but I assume he did not write them for me.
 
I like poems with rhymes. I have never gotten what is good about limericks though...
 
@Telkitty猫咪咪 Interesting website, didn’t know that, but I think I could come up with a poem myself ;)
@Pawnguy7 They are funny and dirty. And yes, they do rhyme
 
2:22 PM
I hate banks
they're so slow
 
Oh, wait.
 
I needs access to my moneys
 
user142019
Garbage is dirty, so write a poem about a Java.
 
I was thinking of haikus.
 
@rightfold then the only action you are getting is to spend the night on the sofa
 
user142019
2:23 PM
ITT: Mac users can't click. :P
 
@DeadMG I like Banks
0
Q: Convert to alphanumeric a sequential file generated by COBOL with compacted data

MarcoI have a COBOL program which generates a sequential file file with this structure: FD ALUMNOS-FILE. 01 ALUMNOS-DATA. 88 EOF VALUE HIGH-VALUES. 05 STUDENTID PIC 9(7). 05 STUDENTNAME PIC X(10). 05 FILLER PIC X(8). 05 COURSECODE ...

Sorry, had to.
 
user142019
> COBOL
 
I stopped reading at "I have a COBOL file". Did you notice that the last question in this tag was posted 23 years ago? — Lightness Races in Orbit 13 secs ago
@R.MartinhoFernandes Sorry, had to.
 
2:29 PM
The question doesn't have the sequence "I have a COBOL file" anywhere :S
 
@R.MartinhoFernandes program*
@rightfold: Hmm
 
@LightnessRacesinOrbit I'll pretend your system copy&paste functionality is buggy.
 
user142019
:10389361: Hmm
 
> I'll be there, probably about half eight.
 
@R.MartinhoFernandes Ta
 
2:32 PM
hahaha, English people talking German with English words.
 
@rightfold oh, nm, I see it now
@rightfold for some reason I read that as "the word 'vote' was replaced with the word 'vote'"
 
Wait, or is that 8:30 in some dialect?
 
user142019
Maybe you're color blind and you thought it was green.
 
user142019
Hmm. It seems you cannot upvote comments you flagged.
 
@R.MartinhoFernandes In English.
"half [past] eight" is "eight thirty" is "8:30", fairly universally
where did you see it, anyway?
 
2:38 PM
A message board for English speakers in Berlin.
 
@R.MartinhoFernandes In English, half eight means 8:30.
 
I thought it was a literal translation of "halb acht", which is 7:30 in German.
 
I think that in German, it's most direct translation means 7:30.
 
well, the correlation with German is interesting given the context, but I find it more likely that the only intention is to use typical English
oh, no, "half eight" will never mean 7:30, unless that person is very confused by having spent too much time on the message board
 
user142019
2:39 PM
@ScottW Het is half acht!
 
wtf yes they do dumbass
 
@LightnessRacesinOrbit Yeah, further messages suggest 8:30.
 
"half till 8" what
 
@LightnessRacesinOrbit Or in Germany (I saw it before).
 
I hear "ten before eight", "ten after eight" on US shows too. stupid country
@R.MartinhoFernandes yeah or that
@ScottW only idiot USAins, not English speakers
 
user142019
2:40 PM
In Dutch we say "tien over half acht" (lit. "ten past half eight") to denote 7:40. :P
 
oh dear
figures that the language you speak had to reinvent the way to tell the time
 
user142019
Until 7:45, where we say "kwart voor acht".
 
half eight is just a contraction of half past eight, we would never say half to eight.
 
@ScottW why?
@DeadMG correct
(not suggesting you're passing some sort of test... just backing you up)
 
half is always past
 
2:41 PM
@LightnessRacesinOrbit Because it's 4:00! :P
 
@R.MartinhoFernandes it's twenty to four
@ScottW "half eight"
 
it's no more dumb than any other contraction.
 
go eat some hot dogs and do no work
 
there's no ambiguity.
 
2:42 PM
'Muricans
hahaha
 
it's July 4th 4th of July
 
user142019
Het is 4 juli.
 
there is no ambiguity
 
half { to | until } 8 is never used.
 
it's ambiguous in the same way that the word "half" is ambiguous if you've never heard it before
 
2:42 PM
you only use X to 8 for X < 30.
 
Yeah, no one speaks braces.
 
user142019
Eight and a half o'clock.
 
eight thirthy
easy as pie, not ambiguous
 
@ScottW Right, but "half eight" is an English expression.
 
@ScottW Do you routinely walk around the USA or England speaking German or Dutch?
 
2:43 PM
@ScottW I would never assume anything but 8:30 in a different context.
 
@rightfold "Eight and a half ' cock" FTFY
 
it's just one of those language differences.
 
@ScottW Then you're beyond help, though I believe we knew that already!
 
when you hear "half eight" in English, you'll just have to remember that the English always prefer "past".
it's part of understanding English.
 
@DeadMG We are indeed mired in the past. Or, at least, we used to be.
 
user142019
2:44 PM
8.5 past midnight.
 
@LightnessRacesinOrbit Correct.
 
@ScottW No, because you're stupid!
 
@ScottW They are perfectly correct.
 
FUCKING STAR IT
10
 
"half eight" is a perfectly valid and unambiguous expression in English.
it is quite legitimate.
 
user142019
2:46 PM
Ask on English Language & Usage and stop moaning.
 
oh you bastards
@ScottW Go USA shotgun on your face
 
@LightnessRacesinOrbit ITT Loungers are Lightness' bitches
 
@Borgleader that's right, bitch
 
user image
2
Hahahaha Rockstar <3
 
2:58 PM
mmm pizza
don't mind if I do
I pointed out to YouTube commenters on that video about the "4th of July" thing, and they're getting all worked up
lol
@ScottW but.. I'm not!
 

« first day (992 days earlier)      last day (3965 days later) »