« first day (978 days earlier)      last day (3970 days later) » 

3:00 AM
Remind me not to share an apartment with you. Seriously, I've had problems with roommates not getting all the pee down the drain. It is a serious mess.
 
I don't have that issue.
@Mysticial Did you ever find out who was removed?
 
I didn't try.
 
who was removed from where?
 
SO.
 
another big rep loss? :p
 
3:03 AM
Not big, just a large # of users.
 
Initially I thought it was Tomalak.
If upvotes get removed, do downvotes get removed too?
Would be interesting to see +2 User was removed
 
I didn't get any rep loss
 
@Rapptz hehe
 
@Potatoswatter do you have a weak shower head or something? In mine nothing is surving in that thing
 
@JustinMeiners The speed of water coming out of the head is little related to the speed of water going down the drain. It depends more on the geometry of the drain to make sure there's no stagnant water, and the pee needs to go in the right general direction or there will be nothing to wash it down at all.
 
3:09 AM
@Mysticial I'm pretty sure you know more about places around here than I do. As far as time goes, anytime after about 5:30 should be fine for me.
 
@JerryCoffin I thought it was not a geography related question?
But it is ... (asking to meet up etc)
Because it involves being geographically close to each other and requesting the other person's presence ...
 
(Too Localized)
 
meta offline for maintenance:
 
@DeadMG FWIW I started reading on the subject and the only thing I found that got adjusted were our teeth and digestive tract. They became smaller to become accustomed to the new diet of meats and other crispy veggies.
 
sounds delicious
 
3:19 AM
@Rapptz Teeth became smaller to adjust to a diet of meat, and meat is a vegetable?
Look, I don't wanna pick on you, but…
 
What?
I don't know what to say.
 
C++ is giving people cancer
 
meats and other veggies
 
@Aboutblank In English, that phrase implies that meat is a vegetable.
 
Cancer++
 
3:21 AM
Maybe I should put a footnote saying there are other crispy vegetables that exist prior to the new ones we eat due to cooking.
 
@Potatoswatter yes I know
 
But okay.
 
Anyhoo… I recall reading that congenital crooked teeth result from the jawbone shrinking faster than the teeth; evolution didn't adjust things at the same rate to the changing diet.
 
@Potatoswatter true, but a strong showerhead can be sure to wash it all away in a nice puddle. Good tub shape is essential
 
Also, teeth are less important overall when food is cooked.
 
3:25 AM
confession time: everytime I read std as in std::list I say std like "stud" in my head. so I say like stud list
a few times it even breaks out when I dictate code
 
@JustinMeiners That implies an algorithm called stud-sort which uses stud-move.
 
@JustinMeiners Herb Sutter (or is it Scott Meyers) pronounces "std" as "stud" too. ;)
 
@JerryCoffin What kinda food are you interesting in?
 
Why do the smart pointers feel rejected? Because of the stood pointer.
 
lol
 
3:34 AM
@Mysticial I'm fairly flexible, but was thinking Italian might be good.
 
@MarkGarcia we must think alike!
 
@JerryCoffin I'll ask my parents to see what's around. Usually they just take me out so I don't really know.
 
@Mysticial Okay -- like I said, I'm pretty flexible though.
 
Are you guys visiting?
 
@Rapptz Yeah
He's in the area.
 
3:37 AM
Cool.
 
@Rapptz It is -- especially when the wind is blowing off the bay. Downright chilly at times...
 
Ah. I was going to!
 
too slow
 
Yeah I got ninja'd.
 
3:53 AM
Wow, a typedef in my code. How antique.
 
Changing that to using?
 
Ye.
 
Does anybody know if the OpenGL 4.0 Shading Language Cookbook [Kindle Edition] has the associated software source codes?
 
Took me a while
 
@JerryCoffin There's a restaurant called BJ's that's a good.
 
4:08 AM
BJs eh?
 
It's right off of 92 and 101.
@Rapptz Is it a chain?
 
I'm hearing $5 dollar BJs off 92 and 101
 
No I was poking fun at the name.
 
@Rapptz good
 
BJ's is a mix of an italianish restaurant and a sports bar.
 
4:09 AM
lol
 
Oh, it has nothing to do with fellatio?
 
I know of an Italian restaurant called Fellatio
 
@JerryCoffin maps.google.com/…
Do you have a car, or should I come pick you up?
 
Italian BJs
Sounds wonderful.
 
4:25 AM
why would anyone use mul over lea
isnt lea like way easier to use
for assembly
 
lea can't do everything that mul can do.
 
if i want to multiply two registers can i do lea[eax*ebx]?
 
I don't think you can do that with lea.
 
@Mysticial I have a car -- should be no problem to get there.
 
@JerryCoffin Cool.
Lemme check to see when's a good time for me.
 
4:35 AM
also some answers say like mul does operation in ax:dx
what does ax:dx mean
waht does it mean to say register:register
 
@Kelvin Those are the single operand multiplies that work on multiple registers.
 
ok
 
lea can only multiply by 2, 4, or 8 + some additions allow you do 3, 5, and 9 as well.
 
@Kelvin @Mysticial is right -- lea can add two registers, or a register to a constant, but multiplication is limited to constants (and not just any constant either, at least if memory serves).
 
ok
cause im trying to build a simple calculator for assembly
 
4:37 AM
I have no idea what I'm doing anymore. :D
 
My last thing ends at 5:30 tomorrow in Mountain View. Given the rush hour traffic, I'd say at least 7pm would be safe.
 
@Kelvin Just use mul or imul to do multiplication.
 
ya
are there any other ways to do what mul does
other than the bitshifting/adding trick
 
@Mysticial Okay. Would it be better to plan on 7:30 to be on the safe side?
 
@JerryCoffin yeah
 
4:39 AM
@Kelvin Are you doing an integer-only calculator? For a typical calculator, you'll be working in floating point, so you'd be using fmul, or perhaps some SSE instructions.
 
7:30 it is!
 
@Mysticial See you there/then.
 
for now im just gonna do unsigned integer
 
@Mysticial Make sure to hand him lots of bribe money for him to become a Mod. :D
 
to keep it simple cause i am only beginner
 
4:40 AM
@ThePhD hmm...
 
i thinhk the book i bought is very begginnery
doesnt go indepth enough
 
Why is goto bad? Linux kernel has about 10000 gotos - github.com/torvalds/linux/search?q=goto&ref=cmdform.
 
but it was a good intro
 
I have finally arrived into the right world! I shall unleash my Poke Ball and capture all types of creatures! May my Pikachu be with me!
 
@ShuklaSannidhya At least they know what they're doing.
@AshKetchum Yeah. Catch a duck, a wasp, a bald-headed creature, two dogs, a cat, and a handful of humans.
 
4:42 AM
@ShuklaSannidhya Primarily because goto makes it all too easy to produce horrible messes of code that you can't keep straight how it works, what uses what, how control flows, etc. The Linux kernel is a little bit of a special case where it's used so heavily, that it's worth sacrificing readability and maintainability to gain a little bit of speed. Most code...isn't.
 
Guys I have a question
Chrome browser uses multiple processes for each tabs, is it an example of distributed processing in Erlang?
 
@O0oO0oOO0ooO It's just a product of laziness.
 
@Kelvin At least for a first attempt, just use what the processor supplies. When/if you find a shortcoming with it, that's soon enough to worry about using something else. If that arises, the shortcoming(s) you've found will guide what else to do.
 
are you sure?
@MarkGarcia
 
inb4 Alexander is into S&M
 
4:46 AM
@O0oO0oOO0ooO It's not in Erlang, and the processing is not "distributed".
@MarkGarcia Trollin' trollin'.
 
@O0oO0oOO0ooO Distributed processing normally means processing that's distributed between multiple machines. Further, I don't think Chrome is written in Erlang anyway.
 
@JerryCoffin It's in C++.
 
I'm talking about its mechanism
 
Well, C++/Google.
 
@O0oO0oOO0ooO Don't know. They could do it using one process with multiple threads. They're just so lazy not doing it that way. Lotsa memory consumed, stuff...
 
4:46 AM
not Erlang specific
 
@EtiennedeMartel That certainly matches my recollection.
 
On one machine, there are 3 common ways to do it
 
@MarkGarcia And not making the whole browser crash when a tab fucks up.
So, yes, might be lazy. Might also be the main reason why they crushed Firefox for so long.
 
I think it is an example of distributed processing
 
@MarkGarcia This isn't entirely a matter of laziness (probably not laziness at all -- it's probably extra work the way they're doing it).
 
4:47 AM
1) single process with multiple threads
2) multiple single-threaded processes
3) multiple processes using multiple threads
 
@O0oO0oOO0ooO You're thinking of map/reduce.
 
@EtiennedeMartel Yeah...
 
@MarkGarcia Also, I have 16 GB of RAM. So, might as well use it.
 
@MarkGarcia Definitely not lazy.
 
@JerryCoffin I like referring "laziness" to "not doing something" (though not doing it might be better). Please deal with me...
 
4:49 AM
The friggen laptop they gave me at work has 16GB of ram in it. But I can't run anything on it because it's locked down. It's like being given a Ferrari without the keys.
I mean like... 16GB on a laptop is totally useless if you're not doing any dev work on it.
 
Anyway, I don't really get this Adobe CC thingy.
 
Not even iTunes needs that much.
5
 
@Mysticial You could run multiple VMs with an instance on iTunes on each of them.
 
On Windows, iTunes runs like a turtle
 
@MarkGarcia I'm guessing they did not trust WebKit and/or their own JS engine.
 
4:51 AM
I think Apple did that on purpose (lol)
 
@Mysticial IMO, a computer is just dead weight until it has a compiler installed.
 
Distributed process in Erlang is not always about map/reduce or managing processes across multiple machines
 
@EtiennedeMartel Can't install VMs on it. It's explicitly on their black list.
 
@JerryCoffin You don't need a compiler for porn.
3
@O0oO0oOO0ooO What are you looking for, by the way? Your question sounds like homework.
 
@EtiennedeMartel I guess you have a point there.
 
4:52 AM
@EtiennedeMartel Good thing they're doing it in their own way.
 
No it's not a homework
0
Q: Chrome's multiple process per each tabs

TemporaryNickNameI am wondering what is the purpose of Chrome using multiple processes for each tabs? I asked this to C++ chat room and many responded it is a product of laziness. I personally believe this is an example of "Distributed processing" like in Erlang programming language. What exactly is it?

@EtiennedeMartel I am just curious about it
 
@EtiennedeMartel Porn can be "compiled"... into collections of even more porn.
5
 
I wasn't aware that "many" meant "one person". — Etienne de Martel 7 secs ago
@Mysticial Yes, but it's not necessary.
 
@EtiennedeMartel true
 
@EtiennedeMartel How about a way back machine for porn? Tracking porn stars as they age?
 
4:55 AM
@O0oO0oOO0ooO As I said, it's not distributed processing because the "processing" (sending the request, parsing the response, rendering the page, executing JS, etc.) isn't distributed between the tabs.
 
Too slow connection...
 
Each tab lives in isolation and does its own thing.
There is no sharing of data between the tabs.
 
4K resolution porn in 3D
So worth it
 
@Magtheridon96 What the hell is 4K resolution?
 
Typically 3840 * 2160
 
4:57 AM
@JerryCoffin What do you think of that?
 
@EtiennedeMartel lol @ the pun.
 
@MarkGarcia I already have enough Pokemons in my storage. My Pokedex is nearing its capacity limit at 1 octodecillion Pokemons.
 
@AshKetchum have you caught them all?
 
@EtiennedeMartel Honestly, I think most of it misses the point, at least as a rule. To do anything meaningful, you need an encrypted connection to a proxy. Simply using a different browser (or search engine) does virtually nothing to improve your privacy -- it's still trivial to tap in at the ISP (or anywhere your traffic is routed).
 
@JerryCoffin "speed"? goto increases speed?
 
5:03 AM
goto end; //Mega-fast
 
@JerryCoffin We should probably exchange phone #s in case shit happens. Drop me an email.
 
@ShuklaSannidhya Not automatically or directly, but under just the right circumstances, it can be faster than most alternatives (e.g., back when such debates were all the rage, Knuth showed a piece of code that was roughly 8x faster than "structured" alternatives).
 
@ShuklaSannidhya The only use of goto in code that I find justifiable is when you're too deep in a loop that you need to have bools to flag that you want to break out of it entirely
 
@Mikhail I still have another duodecillion Pokemons to capture. I might have to contact Brock and Misty to "instant ship" me a new Pokedex.
 
@AshKetchum why do you do it?
@AshKetchum you should have an AMA on reddit
 
5:05 AM
@Mysticial Is the email on your website still current (the one at northwestern)?
 
yep
 
@JerryCoffin I see that as trying to advertise FOSS by using people's fears.
"Want to protect yourself from the evil government? Install that software!"
 
@Mysticial You should have an email waiting.
 
got it. responding with mine
 
@EtiennedeMartel Pretty much, yeah. If they were advertising software that would actually help, that wouldn't bother me so much, but advertising products that are unlikely to do any good is a whole different question.
@Mysticial Got it -- see you tomorrow. Oh, as fair warning: my beard's currently quite a bit shorter than the pictures that have been posted here before. Not really much more than stubble right now.
 
5:09 AM
@Mikhail I do because the people of this unknown world are stupid. They call me "crazy" when I tell them that I am a true Pokemon trainer and Brock and Misty are my friends. They tell me that there is already some show whose character goes by the same name as me!
 
@JerryCoffin Ah ok. And me... I'm Asian with black hair who doesn't look too different than like half the people in the area. :)
 
gahh
500 error.
 
I don't visit immature and idiotic web locations like "reddit"
 
@AshKetchum mostly 4chan?
 
Ah.
The good ol' "Does anybody else hate this popular website?"
 
5:10 AM
@Mysticial I'll try to dig up a recent picture of me and post a link. More likely tomorrow than tonight though.
 
lol, k
My picture on my about page is fairly accurate. I haven't changed at all.
 
@Mysticial is it because you are asian
 
@Mysticial Okay.
 
@Mikhaik No. I spend my day waking up in the morning and kicking Pikachu so he wakes up. After he wakes up scared and caused and says "Pika Pika," I grab my Pokeballs, Ultraballs and a couple of potions and I begin my journey as I roam across the streets trying to capture Pokemons that look weird with two eyes, two hands, two legs, one had, one nose and one mouth.
 
This lounge is slowly turning into a dating site with loungers going on 'dates' and exchange photos :D
 
5:20 AM
@Telkitty猫咪咪 And phone numbers. ;)
 
Cat x Etienne <--- still shipping
 
hmm
how come when i try to get standard input
 
Jerry and Alexander sitting in a tree
 
it skips it
like if i have 1 interrupt to show text another for standard input and another for showing text, then another one for standard input aftter that, it skips all of them
 
5:27 AM
well, you're a dog
 
doesnt it have to wait until u press enter
 
@Magtheridon96 Just don't tell my wife!
 
@JerryCoffin YOU FILTHY CHEATER
Then again, we're all proud of you for broadening your horizons
 
cheetah*
 
range::equals or range::equal?
 
5:38 AM
@LucDanton "Is this range equals this range?" or "Is this range equal to this range?"
 
if(range::equals(a, b)) -> 'if a equals b' though
Meh, let's follow in the footsteps of std::equal.
 
Why am I so frikking perfectionistic? I'm sitting here debugging the handling of whitespace between # and include… not a functional issue, but whether it gets preserved when comments are enabled in preprocessor output.
 
a equals b <--- go with equals
You're comparing one object to another, use the singular present-tense verb.
 
what about operator==?
 
Xeo
if(a <eq> b)
 
5:45 AM
Is operator== not viable?
 
LOL
Shit I have to compile LLVM and Clang for x64 and x86
Fuck this gay earth my computer practically explodes compiling LLVM
It heats up tremendously
 
Suppose I write a range in namespace app, a client of annex::range -- how is that operator found?
 
Xeo
@ThePhD Cook yourself a fried egg on it!
 
I keep recompiling GCC on my MacBook Pro from 2007… Apple was supposed to introduce a new model this month and now I'm very nervous
One o these days the magic smoke containment chamber might fail.
@LucDanton How are ranges defined? There's no base class?
 
There's a range concept.
 
5:49 AM
Meaning what exactly?
 
Have you ever written an iterator?
 
Just template requirements?
 
'template'?
 
Well, Iterator requirements are based solely on trait members and operations, but in practice it's usually derived from std::iterator.
 
int* has no members.
 
5:50 AM
^^ you two can make good friends like a compiler with a linker
 
Is there a fundamental type that qualifies as a range?
 
See,
these are the kinds of things they discuss at those C++ Standard Library meetings (that and porn of course)
 
@Potatoswatter With trickery in the global namespace you can make one I think, but that's fairly underhanded.
 
@Magtheridon96 If we didn't write libraries to prototype these things, they would be very hard to standardize.
 
1 message moved to bin
 
5:52 AM
@LucDanton So is it really that much to ask that they be derived from something akin to std::iterator, even if the base isn't really needed for functionality? (Aside from getting you ADL.)
Actually I suggested operator== as a joke, there are many potential reasons it wouldn't work of course.
 
@Potatoswatter Yes, I'd agree with that
 
@Potatoswatter Suppose not only there's a range in namespace app, but the program also depends on libcool, which also provides a range. What operator should be found and used in such a situation?
 
@Rapptz if you can't solve let others see it.
 
@Potatoswatter If it isn't needed, why bother?
 
@LucDanton Yeah, that's the main problem… ranges are general enough that the object might also qualify for some other equal-to relationship.
 
5:54 AM
This isn't a help desk.
 
@LucDanton For ADL.
 
@Rapptz k
 
@Rapptz Sounds really like a binner. Hail!
 
@Potatoswatter More ADL means more problems, not less.
 
FWIW I say go with range::equals
 
5:56 AM
@LucDanton If there are two obviously valid meanings, an argument could be made that the user should explicitly specify which one. That would mean calling range::operator== with qualification or range::equal as shorthand.
 
I don't like the idea. I want reliable software.
A heuristic of trying to be helpful and bailing out if it becomes complicated for an operation like equality seems more trouble than its worth.
 
Xeo
@Rapptz You're supposed to edit your "moved to" message!
 
@Xeo I am a newbie room owner :(
 
@Xeo Forgive him, he's still learning the ropes.
 
I also like that the concept so far coopts no operator at all. It leaves those operations freely available to the models.
As an example, I have optional as a model of a range. It already has an operator== with its own semantics.
@Potatoswatter std::iterator isn't even used for that purpose.
 
6:00 AM
@LucDanton Yes, I know.
 
Another precedent I think is std::vector<T> and std::equal. While the former delegates to the latter for the implementation of operator==, there is still no 'mixed' comparison available via that operator.
 
Really, it started as a joke and then I played devil's advocate. I don't know how general your library is intended to be, but I know a very abstract class isn't the right place to overload operators.
 
morning o_-
 
I think the problem is the idea of an operator at all actually.
 
Woot, found where the whitespace is leaking through.
Isn't there a law that over half the problems in any parser are in the whitespace handling?
 
6:08 AM
tbh I like a == b much more than stuff::equals(a, b) but if it isn't possible then meh
 
I loves my ADL and it works more than enough of the time.
 
@Rapptz What do you think of the pitfalls and counterpoints I brought up?
I honestly think that equality and range equality are two distinct operations. So that makes == not available, meaning that the next best thing is a named function.
 
Hm. I see what you mean.
What's an example of a range from libcool that would be equal with another range?
 
A range containing exactly 1 and another range containing exactly 1.
For instance std::vector<int> { 1 } and boost::vector<int> { 1 } (or is that boost::container::vector or something? Never used the stuff).
(Those things aren't actually ranges so to speak but can be made into one so bear with me for the sake of the argument.)
 
Ah.
So for that you'd do something akin to looping through it but operator== wouldn't be viable because you don't know of the existence of that class?
 
6:16 AM
It's more to do with the rules for lookup. operator== must be in scope, as seen from the point of use, or found via ADL.
range::equal is a qualified call.
 
Oh okay.
 
And again some types are ranges and would like to provide their own operator== with well-known semantics at the same time.
Now that I think about it the optional example maybe wasn't that great. I think the semantics match exactly in that case.
Okay, time for groceries.
@Rapptz Note that a 'solution' to 'must be in scope' is to put the operator in the global namespace. I leave you to consider the ramifications this has on a typical program.
 
void foo(int a, char b){}
std::function<void(int)> func_foo = std::bind(foo, _1, 'C');
that will let 'foo' be called via 'func_foo' only giving 'func_foo' the int with the char always being 'c'
 
Um.
 
Is there a plonked question I'm not seeing?
 
6:29 AM
@thecoshman Use auto in your assignment.
 
^ Yeah. std::function adds an unnecessary virtual dispatch there.
 
@MarkGarcia yes, but it will give me that type, and the assignment in my case is actually as a function assignment
 
@R.Martinho So, I'll be in Berlin (Mitte) the 24 and 25. If you want we can meet and have hot, steamy summer sex. Or a drink. Or not meet. Up to you! I don't know who else lives in Berlin besides @sbi but they're welcome too!
 
well... constructor
 
I was about to get shipped to Berlin/Frankfurt today.
But then they realized they made a mistake, and instead I'm going to go to England.
FISH AND CHIPS, BITCHES.
 
6:31 AM
@ThePhD Well they sell Fish & Chips at Nordsee here
 
I've never actually had Fish and Chips. :D
But! There is a place around here which claims to make good Fish & Chips.
So I could try them, I guess. To prepare my taste buds.
 
well ok, let's get more real world with it.
I want to pass the function to a constructor that wants a `std::function<void(int)>`
but I need to be able to pass into this constructor a `void(int, int&)` where the int is constant and the `int&` is the variable I want passed
So I figure I need to pass this constructor `std::bind(bar, 1, std::ref(_1))`
@ThePhD :O
 
Xeo
@thecoshman std::bind doesn't return std::function
 
@thecoshman Sounds like a job for a virtual constructor.
 
Or maybe a templated one.
 
6:34 AM
^ Specifically.
 
Xeo
@thecoshman Without the std::ref
 
@Xeo o_0
 
@thecoshman It's unspecified.
 
Xeo
A placeholder says "please perfect-forward the Nth argument to this place".
 
@MarkGarcia how so?
 
Xeo
6:35 AM
std::ref also obscures the placeholder type.
 
@thecoshman I'll try to make an example.
 
I thought std::ref was 'I want that parameter, but can I have a ref to it please)
 
Xeo
@thecoshman std::ref is for "store this thing by-reference"
 
basically, I need to be able to give class foo a std::function either void styleA(int ID) or void style_B(1, int& ID)
 
@thecoshman And BTW, when I use "virtual constructor", I usually mean a factory function or something like it (e.g. std::make_shared and std::make_*).
 
Xeo
6:39 AM
@thecoshman Yeah, just std::bind(fun, the_constant, _1) for style_B
 
yes, but (as I just found out) std::placeholders::_1
@MarkGarcia hmm... I don't think so in this case...
actually, style_b needs to be int* not int&
 
And people will run and buy it
:facepalm:
 
Meh.
 
@Xeo as in, the function I want you to call will expect it to be passed as ref, or I know you will try to pass it as ref, but don't?
 
6:52 AM
int i = 0; std::bind([](int& a) { ++a; }, i)(); doesn't change i. If you'd used std::ref(i), it would have.
 
Xeo
@thecoshman No, it's only for binding arguments. Say, for f(int&, int), you want to fix the first argument to a reference to some int: std::bind(f, some_int) would copy some_int, and pass the copy - any changes you made after the bind call are lost / not propagated. std::bind(f, std::ref(some_int)) will store a reference.
 
FUCK YEAH 3K Errors and 238 Warnings!
 
@thecoshman Something like this: coliru.stacked-crooked.com/…
I don't know if that's what you really need though.
 
hmm... well, I got to get to work... will have a look when I get there
 
@Rakkun Cool. We can meet on the 24th then.
 
6:56 AM
@ThePhD What the hell is that?
 
A nightmare.
 
@ThePhD Using an old compiler?
 

« first day (978 days earlier)      last day (3970 days later) »