« first day (1538 days earlier)      last day (3426 days later) » 

9:00 PM
@DietmarKühl What's better is interfaces that don't require the user to read the documentation because they're clear and logical.
 
user1804599
Especially if they don't even do x instanceof Promise but typeof x.then !== 'undefined'.
 
@rightføld Who told you that? He was obviously lying.
 
user1804599
@BenjaminGruenbaum Ok, it's possible: wrap every input in an object that definitely has no then property.
 
@rightføld that's assimilation - it's extremely valuable because there are different implementations that do things differently and you want them to be able to interoperate - think of it as the same idea as structural typing in Scala.
 
user1804599
And then unwrap it everywhere. Have fun!
 
user1804599
9:01 PM
It's not valuable, it's retarded.
 
user1804599
It's implicit conversions on a mix of crystal meth and methanol.
 
@Puppy: I prefer to type
in >> value;
over in.readWellFormattedAndInRangeValueOrFail(value);
 
@rightføld I've used promises at least 400 times and I've never once wanted to have a Promise<Promise<T>> - in C# my code just has Task.Unwrap everywhere.
 
@DietmarKühl That's because all of that stuff is implicit (except maybe Formatted).
in.readFormatted<int>();- job done.
 
There are very few if any cases for Promise<Promise<T>> and recursively unwrapping promises has a lot of use cases. The only think it's bad at is static analysis - it's a lot harder for a language like type script to figure out the language of a promise that does assimilation.
 
9:03 PM
so, it implicit in in >> value that it can fail, obviously? What is unclear about that interface then and where would anybody get the idea that it doesn't need to be checked...?
 
user1804599
It's more like assassination.
 
Name one case where it doesn't do what you'd want.
 
@DietmarKühl It doesn't need to be checked because the function does the checking, or at least, it should do by default. What's unclear about the interface is that the function does not check.
 
A real use case. It has been debated and there are implementations of promise that don't do that (fantasy promises and Promise#chain) - they're just less useful.
 
user1804599
function f(anythingcangoinheresincethismethodisgeneric) {
    return myPromise.then(function() { return anythingcangoinheresincethismethodisgeneric; });
}
 
user1804599
9:04 PM
@BenjaminGruenbaum ^^^^
 
user1804599
Have fun finding a bug caused by assimilation in here.
 
How is that a problem with assimilation?
 
user1804599
If anythingcangoinheresincethismethodisgeneric happens to be a promise it behaves differently from when it is not a promise.
 
No, show me a real case where this might happen, even if it didn't recursively assimilate you'd have the exact same problem if anythingcangointhere... was a promsie or a value.
 
my head
 
user1804599
9:05 PM
I wonder how difficult it is to implement promises and futures.
 
it's hurting
 
Even in a statically typed language with type inference that might resolve to a different overload.
@rightføld it's pretty easy, I have some answers on that on stackoverflow.
This has some useful links on Scala futures vs JS promises: stackoverflow.com/a/22724984/1348195
There's also modernjavascript.blogspot.co.il/2013/08/… which is pretty simple, I've implemented promises several times before it's quite easy but the spec is very strict if you want to follow it.
Now making a fast implementation that has decent stack traces and detects unhandled rejections is harder. Bluebird is not very short :)
 
gonna go watch my uni kick some ass, see you all later!
 
(I was actually annoyed by the .then thing just the other day because having a .chain instead would make promises monads which would make composing them with other monads a lot easier - but no one in JS land uses monads for anything else and the JS community is quite retarded in general so there's that)
 
user1804599
I don't like futures much anyway, but if you need them they better be right.
 
user1804599
9:10 PM
(CSP or GTFO)
 
Futures generalize and compose nicely and are very useful.
 
I tried to be as abusive as possible last year, but didn't get any warnings or a ban. I think I'm being discriminated against:) — Martin James 7 mins ago
 
Using futures and observables makes my life a lot easier than using callbacks and streams, and there are usually less places things go wrong.
@Mysticial omg lpapp is banned - that guy was so abusive in the queues I remember having clashes with him. Classic meta police guy
 
user1804599
Green threads plix.
 
wait
modulus for negative numbers is well defined?
 
9:14 PM
Well, you have generators in JS which are fun for async, but what do they yield?
 
like -23 % 3 == -2 makes sense to you?
 
@Jefffrey sort of, it's well defined but different people have different ideas about the implementation - I think that in Java you can use % on doubles.
 
@Jefffrey Not... really.
 
user1804599
@BenjaminGruenbaum it's not fun for async
 
everybody agrees that it should make sense, but nobody can agree on whether the result should be positive or negative.
 
9:15 PM
@rightføld why? It's like do notation, everyone likes do notation
 
> In computing, the modulo operation finds the remainder of division of one number by another (sometimes called modulus).
 
user1804599
The only thing that is fun for async is when it's done by the runtime, instead of by the programmer's code, and the programmer's code is just sequential and blocking.
 
It seems to make sense actually.
 
personally I favour negative because you can always abs back to positive if you want.
 
user1804599
See also Go and Erlang and GHC.
 
9:16 PM
but if you get always-positive it's more annoying.
 
the division -23 / 3 is negative, so it should be negative
but this coliru.stacked-crooked.com/a/d5e161affb212ec0 doesn't make much sense to me
 
from memory it's totally undefined behaviour.
 
@rightføld yes, and you can get that quite easily with coroutines, if you really want to you can avoid typing yield too but I don't think that's actually too useful - I like IO to be explicit so my IO in languages like C# for example always returns Tasks and I always await it so I know from the call site it's doing something expensive.
 
@Puppy wat
 
user1804599
JavaScript has no stackful coroutines.
 
user1804599
9:17 PM
C# has no stackful coroutines.
 
@Jefffrey It's C++; as soon as there's the slightest ambiguity it's UB.
 
user1804599
In JS it's not even that much of a problem since all APIs are async, but in C# it is since you now have all I/O APIs duplicated once for sync and once for async.
 
@Puppy Why would it be undefined behavior?
 
user1804599
Except for some APIs which are only sync and now you're screwed.
 
Just do it always async?
Why would you have to do it twice?
 
user1804599
9:18 PM
If you're willing to rewrite all existing .NET libraries then I'm totally fine with that.
 
@Jefffrey For the same reason signed overflow is- because different hardware at the time did it differently and nobody could be arsed with unspecified result (apparently).
 
@rightføld oh, there's legacy support but when you write your own code there is no reason to do it twice you can always .Result if you really want to block and wait for it.
But C#'s coroutines are really weak compared to JS's
 
Well, I'm handling my own integer class, so... what would you guys expect from a % -b, -a % b and -a % -b respectively?
 
user1804599
JS's are also weak since they're stackless (lol).
 
@rightføld Can't you "outsource" the work to thread pool threads in case of sync API?
 
user1804599
9:20 PM
@VáclavZeman you sure can, have fun if you want to call it a lot and it takes a long time.
 
@rightføld yeah, but in JS it's fairly easy to write a transform yourself to turn them into stackless.
You just stick yield in front of everything with a 3 line AST transform - I've seen it done but I honestly like having to type it to be explicit about what I'm doing.
 
Xcode's allocations instrument is neat.
 
user1804599
Green threads or bust.
 
@Jefffrey You have to choose if you want modulus or remainder, I believe. There is IIRC a subtle difference.
 
Ell
@rightføld fibers or bust
 
user1804599
9:24 PM
Pretty much equivalent.
 
user1804599
func get4chan() (chan int, chan int, chan int, chan int) {
    return make(chan int), make(chan int), make(chan int), make(chan int)
}
 
@VáclavZeman wat
why are they complicating this
 
Your first line asked me to downvote. Done that. May I be of any further assistance? — Hans Klünder 2 hours ago
rude or offensive
 
> It is very tempting to think of the A % M operator in C# as meaning "partition the integers into M equivalence classes and give me the canonical element associated with the class that contains A" operator.
 
user1804599
@LightnessRacesinOrbit You're a troll.
7
 
9:28 PM
yes, I agree, that's so tempting.
 
@rightføld How am I trolling right now?
 
user1804599
troll
 
The modulus operator is intuitively really simple
 
Pretty much done with @rightfold at this point tbh
 
@Jefffrey Intuition often fails hard on its face.
 
9:29 PM
@rightføld I'm a troll-tourist.
 
@rightføld He's actually right though. That comment is rude after all.
 
user1804599
OP is rude.
 
Well, being nice is no reason to downvote.
 
That doesn't mean being rude to him is useful
 
9:30 PM
@BenjaminGruenbaum It is, it sends a message.
 
ANyone here with creating nuget packages skills?
 
@E_net4 OP isn't nice - OP is rude, OP didn't make minimal effort to lurk or read the rules. That's no reason to be rude to them.
 
user1804599
Always be rude to OP.
 
@VáclavZeman yeah, the wrong message.
 
user1804599
Fuck OP.
 
9:31 PM
Ok, I was talking about the first line.
 
@rightføld No. I'm telling you, OP will deliver.
 
12 % 3 means: start from 3 and add 3 as many times as you without going over 12, the remaining of that operation is what you are looking for
 
And not making additional effort doesn't directly make OP rude, but naive and somewhat careless.
 
Now, for identifying this, I get "you're a troll" linked to me crawling up the starboard. Excellent.
 
12 % 3: 3 -> 6 -> 9 -> 12 -> remainder = 0
12 % 5: 5 -> 10 -> remainder = 12 - 10 = 2
34 % 7: 7 -> 14 -> 21 -> 28 -> remainder = 34 - 28
 
9:32 PM
@LightnessRacesinOrbit because you were lashing at someone from the room - show some comradery, there is a nice way to tell people you're not cool with what they did.
 
how can you complicate this
 
You can't act all hosting to someone and then blame people for being rude back.
 
Worst thing with programming is that it takes time to write stuff.
 
9:35 PM
The worst thing with programming is that you can never find the perfect abstraction.
 
> One expects that changing the sign of a term changes the sign of the result; it does not change the magnitude of the result.
wat
 
It's always flawed and in the end you end up fixing code rather than designing the app.
 
user1804599
@StackedCrooked ugh don't do it in C++
 
user1804599
@StackedCrooked horrible, so slow
 
@Jefffrey What's that from?
 
user1804599
9:37 PM
no immediate feedback after click
 
...
 
14 mins ago, by Václav Zeman
@Jefffrey: http://blogs.msdn.com/b/ericlippert/archive/2011/12/05/what-s-the-difference-rem‌​ainder-vs-modulus.aspx
 
Ell
I want to write a wayaland compositor
 
@rightføld this chat gives immediate feedback, but it's misleading
but I still like it :P
I like being lied to.
 
user1804599
I had sex with your mother.
 
9:38 PM
How was it?
 
user1804599
A lie.
 
@StackedCrooked I'm assuming this doesnt apply to your gf (if any) :P
 
user1804599
lol expecting francis has a gf
 
who's francis
 
@Jefffrey ??
 
9:40 PM
1 min ago, by rightføld
lol expecting francis has a gf
 
user1804599
the pope
 
wat
 
huh
 
I'm confluzed.
 
user1804599
so is francis
 
9:41 PM
strange position in KSP where I'm inside the atmosphere, but I've had <10m/s vertical velocity for like, 5-10 minutes.
 
how has the pope anything to do with any of this
 
StackedCrooked's wife is Coliru
 
@Puppy That might be possible if you're in elliptical orbit.
 
we were talking about stacked
not the pope
 
9:42 PM
it was somewhat elliptical before beginning re-entry.
 
user1804599
@StackedCrooked's name is Francis you fools.
 
you mean his name is not Coliru?
oooh
 
user1804599
@AlexM. His daughter's is.
 
I made the puppy bark every 15 seconds
he's so cuuute
 
My full name is Stacked Francis Crooked Coliru.
9
 
9:45 PM
there was a model of a shiba inu in this package
and there's a package with cats
I should make a Doge vs. Cate game and get money from crazy meme lovers
 
user1804599
I think McDonald's uses 3D printers to make their unburgers.
 
@rightføld :)
 
user1804599
Funfact: in Dutch "burger" means both "citizen" and "hamburger."
 
:)
Nice.
 
Fun fact: in English, "burger" means "hamburger", "lamb burger", "chicken burger", "goose burger", "shark burger" and many other things.
 
user1804599
9:50 PM
I had delicious pork for dinner today.
 
user1804599
@StackedCrooked And you were born in Rammeloo?
 
@LightnessRacesinOrbit isn't that like saying chair means dining chair, lawn chair, computer chair, club chair, armchair and so many other things?
 
user1804599
12º is nice.
 
user1804599
I like Spain.
 
user1804599
I wonder what it's like when it's summer here.
 
user1804599
9:53 PM
Probably feels like 80000º and instant sunburn even when inside.
 
lol:
http://stackoverflow.com/questions/27735024/why-has-my-account-been-locked-it-is-asking-me-to-verify-info-and-provide-photo
@rightføld You know I hate you, right?
2
 
user1804599
I don't, and I don't care either.
 
@rightføld Heh.. have a San Miguel on me.
 
@LightnessRacesinOrbit you complain about rude comments and then post that :P?
 
9:59 PM
Shark burger?
 
user1804599
I want to give alligator a try.
 
user1804599
Is there any place you can buy such meat?
 
shag, shog, shagged
 
user1804599
Shagohod
 
10:05 PM
@rightføld I had alligator in Berlin, it was decent but it wasn't as exotic or as tasty as you might thing.
 
user1804599
@BenjaminGruenbaum ah, I see.
 
user1804599
Did it taste like chicken?
 
@MartinJames @rightføld: Ehm, so your left nipple is no longer arduino-powered? When did you change that?
 
@rightføld What is the code like?
 
@rightføld not really, it's more like chicken than like steak but there is a distinctive difference.
 
user1804599
10:06 PM
@honk Discrimination against cyborgs became unbearable so I decided to go back to being a non-cyborg.
 
user1804599
It still saddens me every day. :(
 
user1804599
@JohanLarsson ???
 
What is the code like in Spain?
 
@JohanLarsson Unemployed?
 
user1804599
@JohanLarsson No idea.
 
10:08 PM
@VáclavZeman Nope, I worked today and yesterday :)
 
@JohanLarsson It's a holiday destination. The code in Spain is left mainly on the plane.
 
Gosh! I love the humor here! Do I have to feel sorry for that?
 
user1804599
@JohanLarsson But there are probably no commits in the early afternoon.
 
@honk No, but do not tell your family.
 
@VáclavZeman No problem, I only enter chat after everybody else went to bed ;)
 
user1804599
10:14 PM
We should do some waterboarding at the unconference.
 
@rightføld Scary...
 
How should I link runtimes? Dynamically or statically?
 
o.o
 
I prefer static but others prefer dynamic
 
@Nooble Dynamically. :)
 
user1804599
10:16 PM
@VáclavZeman You go first.
 
@rightføld Hehe. Good that I did not go the first time either! :)
 
user1804599
No let's waterboard Tomalak while he's asleep!
 
@rightføld Haha. :)
 
@LightnessRacesinOrbit - you ask if I am a rude man. So, here is the answer: No, not quite. I am a man, and I am not rude. I am friendly and helpful, often even to people who don't even care to bring their questions in a proper form. Sometimes my only advise to them is to edit their questions more carefully.
 
@HansKlünder lol
@rightføld :(
@HansKlünder advice*
 
10:19 PM
Well - yes.
 
user1804599
You are rude by calling yourself friendly and helpful you egocentric narcist!
 
@rightføld narcissist*
 
I try to be honest.
Being friendly and helpful, I would consider it wrong to call myself rude.
 
I'll be honest with everyone here, right now.
I'm hungry
 
@HansKlünder You were rude in that instance. End of.
@AlexM. me too
chicken pie is what I want, but the pulled pork shoulder needs eating
goes off "best before" expires today
 
10:21 PM
The fuck... I can access any website i want... except hotmail (fuck off in advance to any "you should be using <other mail service>" troll)
 
You should be using Hotmail.
 
@Borgleader You should be using something else than Hotmail. Hotmail is so 1990s.
 
you put the "troll" inside quotes btw
@VáclavZeman That's like saying we should breathe something other than air, because air has been around for billions of years
 
@LightnessRacesinOrbit oops, fixed
 
user1804599
@VáclavZeman Hotmale.
 
10:24 PM
@LightnessRacesinOrbit No. That is like saying you should not be using steam locomotive when you can use electric TGV locomotive, ...or some such.
 
@Puppy This seems like the way to go. Even though it results in a larger exectuable, it should be more convenient.
 
@VáclavZeman No because Hotmail has been constantly upgraded and its age has very little to do with whether or not you should be using it.
Of course if you wanted to use the version of Hotmail actually released in the 1990s then that's where your train analogy begins to work out okay
 
@LightnessRacesinOrbit I accept your wish not to discuss the matter nor my possibly different view
 
HEY
look at the bright side
at least you're not me
I'm using Yahoo Mail
 
@HansKlünder ok
 
10:25 PM
@Nooble I prefer to leave as few things to the runtime system as possible.
 
Happy New Year @Hans
please don't downvote me for saying that
 
I'm not abandoning my yahoo mail because it's my only firstnamelastname address
and looks good when I give it to others
 
@AlexM. Someone has taken your firstnamelastname on gmail?
 
it's also not @yahoo.com so it's fine
it's @ymail.com
 
@imayahoo.com
 
10:26 PM
@LightnessRacesinOrbit I won't! I actually enjoy the year until now and I hope you do, too.
 
@Nooble yea
 
@HansKlünder I've spent most of this year in the Lounge so, no, I haven't particularly enjoyed it
 
user1804599
YongYea is nice.
 
If you're real professional, why not have your own domain? firstname@lastname.com would be ideal if your last name isn't common or taken.
 
10:27 PM
Yeah Alex is "real professional"
Bogdan@InDetails.com
 
@LightnessRacesinOrbit are you sure you don't actually enjoy not enjoying the time? Because, that would explain your activity in the Lounge
 
user1804599
@Nooble me@rightfold.sexy.
 
@HansKlünder not sure at all
 
I'm not looking to get clients to throw their money at me
so there's no need for my own domain
 
@rightføld so people have to address mail to "me" ... weird
 
10:28 PM
@LightnessRacesinOrbit Why downvote? Isn't there a "Contains Happy New Year Wish" flag for that?
 
user1804599
@AlexM. Buy all three-letter domains.
 
I just want an address that I can remember easily and can give to people at work without them raising eyebrows
 
user1804599
Then sell them for ridiculous prices.
 
@AlexM. bogdan@loungecpp.net
 
10:29 PM
me@bogdan.sexy
"See, I'm a true C++ expert, I have a C++ lounge email address."
"Certified by Cat"
 
@rightføld Do you actually hand this out to clients?
 
as if rightfold has clients
 
user1804599
I should publish a library to Maven Central with the package sexy.rightfold in it.
 
user1804599
@Nooble No.
 
It'd be funny on a business card.
 
user1804599
10:31 PM
lol
 
something tells me the clients rightfold gives his .sexy email address to aren't exactly looking for software
 
@Nooble If you are a porn star...
 
@AlexM. The best kind of certification. Prestigious.
 
user1804599
Some people cannot view my website at work because they have retarded firewalls.
 
10:32 PM
@AlexM. hardware, maybe
 
user1804599
@VáclavZeman I am.
 
@rightføld Uh, oh, that might be expensive. I mean, there are at least 30 three-letter domains. Or 40. Roughly.
 
@rightføld C++ porn does not count.
 
@rightføld seems pretty reasonable. porn at work is bad and .sexy is almost entirely porn
 
sex.happen();
^ C++ porn
 
10:33 PM
you're the retard for trying to use that domain for non-porn
 
user1804599
@AlexM. UB
 
user1804599
@AlexM. std
 
@VáclavZeman Not even when using templates?
 
@rightføld having sex with Unidentified Bitches is bad mkay
 
@AlexM. As long as you do it in a sandbox it will be safe...
 
10:39 PM
that sounds awfully uncomfortable
what if sand ends up getting in your more private parts
 
@rightføld vector::insert
 
user1804599
std::front_inserter
 
@AlexM. Continue using the less private parts... :p
 
private members*
 
user1804599
I like C++, because in C++ it's actually a good thing to get friendzoned.
 
@Nooble First you have to call vector::resize.
 
> If you're not careful about how you do it, all sorts of nasty bugs can appear.
 
@Nooble Haha, that is awesome. :D
 
@Nooble Happy new year! I can't compile my vector. What could be the reason?
 
I should tweet more
also I'm using 70% of my RAM with a few cheap chrome tabs, and the usual work stuff
I should add 4GB more to this laptop
 
10:53 PM
Happy new year every one
May the coding force be with you on your journey to Mordor
 
wot
 
user1804599
wot
 
Champagne hangover talking
 

« first day (1538 days earlier)      last day (3426 days later) »