« first day (1283 days earlier)      last day (3658 days later) » 

10:00 PM
@HamZa he is
 
References are forever, Mr. Kidd.
 
@HamZa I was prescribed them by my doctor.
they're fucking awesome.
 
posted on April 21, 2014 by Scott Meyers

As I continue my work on Effective Modern C++, I'm pleased to see that my pile of stuff I need to read or reread (or reread again), because it might be useful in the book is getting smaller. Today I finished my second full draft of my chapter on rvalue references, move semantics, and perfect forwarding, and part of that process was reviewing some interesting blog posts that appeared at Flaming

 
@DeadMG I hope you get better
 
I am better, at least by a substantial chunk.
so I only broke 38 of my 125 tests.#
 
10:02 PM
@Feeds Haha, I see that Scott has been binging my blog.
 
fuck
 
@barlop int x = 1; int z = 2; int& y = x; y = z; at the end y == 2 and x == 2 and y still references x
 
@Xeo Scott Meyers featured you.
 
Can't think of an appropriate quip back from Mr. Kidd. Dammit.
 
Xeo
10:04 PM
@R.MartinhoFernandes hah
 
@Jefffrey thanks, and what is that int& called?
 
It's a reference.
 
@barlop reference to int
 
@R.MartinhoFernandes whoa; neat, you're like... famous; now sign my tits
 
> (To be more precise, I believe that a better way was suggested by one of the technical reviewers of the initial draft of that chapter.)
Who was it :)
 
10:05 PM
I'll do tit-signing at the Unconference. Just bring your tits; I'll bring the pen.
8
 
@Jefffrey a cultural reference :)
 
@R.MartinhoFernandes "the pen"
 
And a variable can't be moved to sit at a different memory location?
 
@barlop I'm not sure of what you mean
 
@Jefffrey well, if you say int a; int b; then a will sit at one memory location, and 'b' at another. When you do int a; it reserves a memory location or area of memory and lets you refer to it as 'a'.
see what I mean there?
 
10:14 PM
Variables are objects.
 
GitHub changed their font sizes?
 
@barlop yes, but that's not a question
 
so the question (now you know what I mean by sitting at a memory location)
If you say y is a reference to z, does that do A)make 'y' sit at the same memory location as 'z'. Or does it do B)make 'y' sit at its own memory location, but 'y's contents is a reference to the memory location that 'z' sits at?
 
References are the objects they refer to.
 
@barlop, references don't necessarily occupy space in memory
 
10:16 PM
It makes y and z be the same object.
 
they just refer to another variable
most of the time they are implemented as null-free pointers
 
imagine this was a procedural language.. as just talking of int.. why talk of an 'object' ?
 
object in C++ is defined as something that takes up memory
 
@barlop in C++ an "object" is just a region of memory
 
not a class
 
10:17 PM
* not an instance of a class
 
an instance of a class takes up memory so it's an object
 
so yeah, int x is an object, int& y is not necessarily an object
 
why not necessarily?
do we not know whether y takes up memory?!
 
because the standard does not require it
 
References are not objects.
 
10:19 PM
if references take up memory, and things that take up memory are objects.. ?
 
Forget about memory.
 
i'd rather forget about objects
 
memory is kind of crucial.
 
...
 
10:20 PM
objects sound like semantics
 
unless you're in an embedded platform it's not a big deal
 
is it me or this is going nowhere?
 
Objects is what things are in C++.
References are not things.
 
ok so imagine that was a C question then
 
10:20 PM
that is pretty confusing, i think
 
C doesn't have references
 
int x = 1; int z = 2; int& y = x; y = z; at the end y == 2 and x == 2 and y still references x <-- if you did y with a pointer would the result be different?
 
y and x are the same object.
That's what int& y = x; means.
 
i'm saying that if it was a pointer, then you could talk in C terminology, without the word 'object'. Would the result be the same?
 
@barlop forget about pointers, just image it like if x and y refers to the same memory allocation.
@barlop a pointer would still be an object btw
 
10:23 PM
@barlop C has "object" too.
 
@barlop If it was a pointer the code wouldn't compile.
 
ok, so no variable sits at any memory location. they just refer to memory locations
 
716
Q: What are the differences between pointer variable and reference variable in C++?

PrakashI know references are syntactic sugar, so easier code to read and write :) But what are the differences? Summary from answers and links below: A pointer can be re-assigned any number of times while a reference can not be reassigned after initialization. A pointer can point to NULL while refe...

 
@Borgleader he has to ask here; you see, this is impossible to find anywhere else
 
Don't watch this if you love bees: youtube.com/watch?v=JDSf3Kshq1M
 
10:26 PM
Bet you it doesn't.
 
depends on how much the compiler optimized it.
 
@DeadMG The command-line is right there :P
 
oic
better to dump the LLVM IR from Clang or the assembly from GCC so we can actually see the result :P
 
@barlop why does it matter?
 
main:                                   # @main
	.cfi_startproc
# BB#0:
	movl	$4, %eax
	ret
The assembly is easy enough to read.
Sometimes objects don't use memory; sometimes references use memory.
 
10:29 PM
@DeadMG How well have you been sleeping/eating lately?
 
much better
 
Ah that's good to hear :)
 
@ScarletAmaranth I reckon Lisbon's new BF is in it up to his ears. Hey, maybe he's Red John!
 
@LightnessRacesinOrbit D: Shaddap
 
@LightnessRacesinOrbit How convenient.
 
10:30 PM
spoilers T_T I'm not far into the show
 
Watcg this, instead, if you love honey-bees: youtube.com/watch?v=R5QxUR-mZVM
 
@LightnessRacesinOrbit all I reckon is that he's in Mentalist for a reason (could be your theory; could also be a reason for Lisbon to leave Patrick - or maybe to tell Patrick how much she loves him)
 
@sehe Death by cozy warmth.
 
yeah. Amazing stuff
 
@ScarletAmaranth it's gotta be one of the three surely
 
10:36 PM
@LightnessRacesinOrbit I am slightly disappointed that no real RJ-related-stuff has been happening for quite a while now; like, no still-undiscovered Tiger Tiger members attempting to avenge RJ or some such
 
@ScarletAmaranth yep
^ Brilliant.
 
> Some trivia: for male victims, the Brazilian wandering spider’s venom often causes a prolonged erection, leading some to call it a “natural Viagra.”
http://all-that-is-interesting.com/deadliest-animals-you-dont-know-about/2/#e2wzrIptSyXo4V5h.99
 
'victims' ?
 
@LightnessRacesinOrbit lolwut
 
10:45 PM
Pepsi Invaders (also known as Coke Wins) is a video game for the Atari 2600 platform, based on the popular Space Invaders. It was commissioned by Coca-Cola for their 1983 sales convention, and developed by Atari as a modification of the original Space Invaders cartridge (essentially, an official ROM hack). The game is a modification of Space Invaders, with each row consisting of the letters P E P S I followed by an alien, instead of the original six aliens. In addition, the game was changed from having limited lives but unlimited time as in the original Space Invaders, to having unlimited...
TIL
 
@barlop venomous spiders are infrequently enjoyed
 
@sehe it was a joke
 
no. don't tell me. wow. I'm devastated
 
though if the person was a masochist then that pain+erection may be a positive thing for them.
 
I'm pretty sure it became funnier :|
 
11:01 PM
@sehe you mean I should assume the smile you have is from laughter?
 
@ScarletAmaranth Fuck RJ - an overused and dead plot device.
 
well
I'm gonna go to bed now
nighty night
 
Also, I don't want my tits signing.
.. again.
 
@R.MartinhoFernandes almost worth buying
 
11:18 PM
@Griwes prokemblatic.
 
@R.MartinhoFernandes Oh god. Tell me he didn't just tweet this.
Weird bugs and a little corrupted vote database... fixed now, importing the first votes is very interesting :)
The guy has no shame
 
@EtiennedeMartel What's really prokemblatic is that I can't even begin to understand that, despite being kinda drunk.
 
@Griwes 'kinda drunk' - you are not trying hard enough.
 
So the guy is having fun building a tool, who cares?
I don't understand
 
@MartinJames Nah.
I gave a little concert, and the after party didn't quite work out, so I didn't get seriously drunk. :P
 
11:22 PM
Time for bed
@Rapptz He's using it "in production". People who want to vote for meeting c++ 2014 talks have to download the source, compile it (get this: requires Qt) and use a GUI to enter votes. Now, export votes as XML or JSON (wtf) and then he... fails to import the stuff.
So much incompetence. It's hard to fathom.
 
@sehe WHAT
That's quite the severe NIH.
 
@Rapptz And remember, this is the same incompetence that ensured that last year, like the previous year, there were no usable recordings of all of the talks, despite people operating his video capture tool (also in Qt) at each of them.
@R.MartinhoFernandes It's worse. "NIH" would lead to a reimplemented web-page for voting. This is just... insanity
 
@sehe That's what I mean by "severe".
 
Meh. So he's not very good at making software I take it.
 
He's bloody organizing Meeting C++. You know, a paid conference for professionals with international speakers. And he's throwing /this/ at it.
Stop missing the point because you dislike people getting mad at things.
Believe me, I'm in your camp. So, when I /do get publicly mad/ it's for good reason.
Wokay. So, I decided to get over my fear of giving negative feedback:
@meetingcpp Ok, I'll have to say it: could use existing online poll tool (https://support.google.com/drive/answer/87809?). Would make Meeting C++ look better IMO
 

« first day (1283 days earlier)      last day (3658 days later) »