« first day (1403 days earlier)      last day (3538 days later) » 

2:00 PM
@sbi ok
 
COLIRU SO SLOW
 
@sbi Yes it's incredibly stupid argument
 
@Mints97 Then you should be open to the option that you don’t need to know C to learn C++. Obviously I’m not asking you to forget everything about C, but the value in a tutorial might not follow from whether they mention C at all or not. Having said that… it’s been a while since I’ve read C++ tutorials, sorry :s
 
> execution expired
sigh
 
@LucDanton The value of a C++ tutorial is inversely proportional to how much they mention C.
 
2:01 PM
@StackedCrooked plz2fix
 
sbi
@CatPlusPlus Of course, it is. (For wits, C has 1+2 and 1.0+2.0 – which is overloading.)
 
@LightnessRacesinOrbit I've been doing stuff.
 
how am I supposed to FGITW like this?!
 
They also have _Generic now
 
@StackedCrooked coliru's server hasn't :(
 
user3079266
2:01 PM
I just didn't want to go through the basics of the syntaxis again, since they are mostly the same in C and C++
 
You should charge per compilation
 
LOL no.
 
@CatPlusPlus I like how _Generic is absolutely pointless if not behind a macro.
@Mints97 C++ syntax is one of the aspects that is most often complained about.
 
not unreasonably.
 
I guess I could have left it as before the edit, too.
 
2:02 PM
but it's hard to argue that C has mostly the same syntax as C++.
 
sbi
@Mints97 In C++, obj.func() is basic syntax. Do you already know that?
Really, the C part is about 7% of C++. Whether you repeat those few bits or not before you dive into the other 93% makes no difference.
 
user3079266
@sbi whoah, really? I never anticipated it is like that
 
@sbi So you're the one really bad at clicking
:v
 
@Mints97 Hey, that is what I told you.
 
sbi
2:04 PM
@CatPlusPlus In this case, I was.
 
user3079266
@LucDanton well, now that I've been told this by several people...
 
sbi
@LucDanton You're not The Grumpy Old Man, though.
 
 
@R.MartinhoFernandes Oh, I could make this one self-referent, too.
 
user3079266
anyway, thanks to you all for the advice you've given
 
2:04 PM
Probably best to avoid that.
 
C++ is all errors
 
sbi
@sbi Can a message here refer to itself?
 
> mulberry bag mulberry bags mulberry handbag mulber
 
If you predict the ID
 
2:05 PM
@sbi In theory you're right. In fact, (from what I've seen) having to review things they already know is sufficiently off-putting that getting rid of that 3% makes a disproportionately large difference in the number of people who actually carry through with learning the new language.
 
@CatPlusPlus No.
 
wtf imgur. i just uploaded that
 
Or edit yeah that works
 
2:06 PM
It only becomes referent if the message exists at publication time.
 
SO chat broken
 
> how is a newbie suppose to know that
lol
 
AGH WTF
can you see the image? it 404s in here but direct link works. odddd
 
sbi
@JerryCoffin That's why Accelerated C++ shines so much, despite it being so old. The only thing familiar to C programmers reading it might be the curly braces.
 
TIL access to rules is denied to newbies.
 
2:07 PM
oh god there's loads of SO crap in my "Other" FB inbox
 
sbi
@R.MartinhoFernandes I noticed.
 
> Hi
> I came upon ur profile on stackoverflow. I saw that you were creating a ticketing system that pulled data from a form submitted into MYSQL and then displays that into an HTML table that can be edited and updated.
> I am working on something similar. Do you have the codes or tell me how I can get it done. So far I am have created a form and a DB to save the form.. but have no idea on how to pull it from the DB and display it as HTML table that can be edited too...
> P.S still a bit new to PHP.
 
imgur probably gives the link before it finishes syncing up the CDN
 
> hi ******,
> i am doing Mtech in Computer Science and i need your help in my project. Actually i have seen your profile in stackoverflow.
> My project is i have to implement OR Mapping frame work in C++.
> Can you tell me about that. I am waiting for your answer. Please reply as soon as possible. and thank in advance
 
lol ORM in C++
 
2:09 PM
lol
 
Failing implementation of a failing concept in a failing language.
 
damn lrio sure is popular with the noobs
7
 
Mao (or Mau) is a card game of the shedding family, in which the aim is to get rid of all of the cards in hand without breaking certain unspoken rules. The game is from a subset of the Stops family, and is similar in structure to the card game Uno or Crazy Eights. The game forbids its players from explaining the rules, and new players are often told only "the only rule you may be told is this one". The ultimate goal of the game is to be the first player to get rid of all the cards in their hand. Specifics are discovered through trial and error. A player who breaks a rule is penalized by being given...
 
Nobody bothers me anymore and I'm happy about that
 
sbi
Anyway, I gotta leave work now in order to pick up my youngest. See you!
 
2:11 PM
OS X sure is shiny
 
Peanuts are so nasty.
 
I was able to free 100GB.
Thanks god.
 
Xeo
nom nom peanuts
 
Any of you ever used nested lambdas in VS?
 
yes.
 
2:15 PM
Did it work?
 
which version
 
then yes.
what error are you getting
 
> error C2440: 'return' : cannot convert from '`anonymous-namespace'::find_closest_marker::<lambda_e7061b2689047e667e863d75684‌​5b36d>::()::<lambda_19e63207f843676b4e30338b22a7244b>' to 'bool (__cdecl *)(const mynd::marker &,const mynd::marker &)'
        auto compare_timestamp_distance = [](int n) {
            return [n](marker const& a, marker const& b) { return (a.timestamp - b.timestamp) < n; };
        };
Code.
 
Xeo
oh, that fun
yeah, you're fucked
 
2:16 PM
er
I've seen that one before, reported it as a bug, and the compiler guys said it was not a bug.
 
Sigh.
The what.
How the fuck is that not a bug?
 
not sure
 
Xeo
It's totally a bug
absolutely
 
the problem is that the outer lambda deduces the return type as a function pointer instead of as the lambda type.
then you obviously can't convert because it's not captureless.
 
@Puppy Yes, also known as "the bug".
 
2:18 PM
try returning std::function instead.
 
Makes sense.
 
@R.MartinhoFernandes I agree.
 
@Puppy Can't. Boss will beat the pulp out of me.
 
for what, returning a std::function?
 
2:20 PM
How can it be a bug if it's a feature?
 
FTR, I reported this bug in VS2010.
 
> May be C++ is smart language ...
:lol:
 
@Puppy Wow.
Thoroughly impressed.
At least they added new features. Right?
@Puppy Do you have a link?
 
maybe
@R.MartinhoFernandes No.
 
I wanna bump it.
 
2:23 PM
@JerryCoffin most of the C programmers I've met don't get C++, the concept of RAII is completely foreign to them.
 
Well, I'll report it again, then.
As soon as I think of a slightly funny title.
 
If it's impossible to accelerate to the speed of light, how come light can travel at the speed of light?
 
Does that help with getting a proper resolution?
 
It started there.
 
@LightnessRacesinOrbit kaidul.com/sensitive-stuffs-cc
 
2:25 PM
@Jefffrey oh god
> char * Source = "Hello, world.";
etc
 
user3079266
@LightnessRacesinOrbit it is impossible for MATTER to accelerate to the speed of light
 
> C/C++
@Mints97 According to the wave-particle duality, light is also matter is it not?
@Mgetz I will but I wanted to rule out obvious stupidity first :D
 
user3079266
not exactly, since it doesn't have mass
 
> So we can use Pointer to Pointer...
 
2:26 PM
wave-particle duality has nothing to do with mass-energy duality.
but yes, E = mc^2 clearly states that mass and energy are the same thing.
 
fun grows exponentially when using additional indirection
 
@LightnessRacesinOrbit Photons are massless.
 
@Mints97 Sure they do. Apply E=mc^2 and take the energy of a photon.
 
the reality is that the physics behind photons is the layer below quantum physics so we really don't know that much about it.
 
@R.MartinhoFernandes :(
 
2:27 PM
(Or if they're not, light travels slower than the speed of light, which is a constant not necessarily related to light)
 
//You can also allocate memory, depending on your requirements
*ppInt = new int;
 
@R.MartinhoFernandes Light is not heavy!
 
stupidity is mass less too, so it can travel @ speed of light?
 
Lightness Races Without Mass
 
photons have momentum, that's what radiation pressure is.
and to have momentum you must have mass.
 
2:27 PM
Your mom also has momentum.
 
user3079266
@Puppy photons have momentum but not mass, isn't it so?
 
> 6. C++ requires a Cast for malloc() but C doesn’t
Oh boy
 
@Puppy AFAIK there are currently no experimental results that show photons must have mass.
 
If you feed a plant beer will it get drunk?
 
things are rapidly going out of hands
 
2:29 PM
But again, if they do have mass, if doesn't matter.
 
@Mints97 Momentum is mv. How can mv be non-zero if m is zero.
 
@R.MartinhoFernandes dat pun
 
In classical mechanics, linear momentum or translational momentum (pl. momenta; SI unit kg m/s, or equivalently, N s) is the product of the mass and velocity of an object. For example, a heavy truck moving quickly has a large momentum—it takes a large or prolonged force to get the truck up to this speed, and it takes a large or prolonged force to bring it to a stop afterwards. If the truck were lighter, or moving more slowly, then it would have less momentum. Like velocity, linear momentum is a vector quantity, possessing a direction as well as a magnitude Linear momentum is also a conserv...
 
If photons have mass, photons don't travel at the speed of light.
Simple.
 
> If you want something that will stick around and cannot go out of scope, you should allocate it with new:
 
user3079266
2:29 PM
@Puppy momentum is calculated differently for photons
 
photon does not have mass but it possesses energy
 
@Puppy That’s classical.
Well, Newtonian.
 
31
Q: How can a photon have no mass and still travel at the speed of light?

user1500I've read a number of the helpful Q&As on photons that mention the mass/mass-less issue. Do I understand correctly that the idea of mass-less (a rest mass of 0) may be just a convention to make the equations work? From a layperson's view, it's difficult to understand how a particle of light (pho...

 
@LucDanton Not everything about classical physics is different for quantum physics, for example conservation of mass/energy/momentum.
 
2:30 PM
Turns out there are a million questions like the one I was about to post :(
 
oh wait, he literally stole sbi's answer and put it there
 
I'm a conservative massematician.
 
@Puppy Conservation is not what you stated.
Relativistic momentum is not equal to classical momentum. Both are still conserved within their own systems.
 
@R.MartinhoFernandes Yes, I know that.
but I never really looked into quantum momentum.
 
Conversation laws tend to hold everywhere. That doesn't mean the values are the same.
 
2:33 PM
personally I could never understand how both kinetic energy and momentum can be conserved classically.
 
if two light beams travel towards each other, that's the speed they have in relation to each other? If time is distorted, how does it do so?
 
> Well, now come to solution.The only way to stop piracy is mixing server side language with client side.
 
@Puppy By definition.
 
the guy is drunk
 
@chmod711telkitty There's a formula for relativistic addition of speeds
 
2:34 PM
@Puppy No wait, what?
Kinetic energy is not conserved.
 
energy conserves, not just kinetic energy. kinetic energy can be transferred into other sorts of energy such as potential energy or heat
 
user3079266
the total energy of a system is conserved
 
user3079266
if I remember correctly
 
of a closed system
 
user3079266
yep
 
2:35 PM
Energy and momentum conservation follow from temporal and translation invariance
 
@chmod711telkitty They each travel at the speed of light relative to each other.
 
momentum conservation is obvious, if my fist hit against your tender face, I could argue that your thick skinned face wanted to hit my tiny fist ... & how my fist moved by your head could be calculated by a formula dictated by the conservation of momentum
 
can’t think of a pun about gauge
 
@TonyTheLion When I see things like this I always wonder whether somebody was really that stupid, or just grabbed (for example) some ancient POS they no longer care about, and used it for trolling.
 
2:39 PM
Is there a difference?
 
@R.MartinhoFernandes well, that's the easy part of the question, the hard part is 'how is the time frame distorted?'
 
@chmod711telkitty The same way as in pretty much any other circumstance.
 
@JerryCoffin its 4chan, anything is possible. I still found it quite funny, despite that
 
@TonyTheLion No argument there -- it is pretty funny.
 
@chmod711telkitty The speed at which other objects travel does not affect your perception of time, only yours does.
> Post Undeleted by Puppy, Cubbi, haccks
You guys are assholes.
 
2:43 PM
Also what was the point of the 0WS edit? Style points?
 
You mean Cody's?
 
Ironically they rendered as boxes, too.
 
He's one of those U+200B people.
 
…that’s a thing?
 
@bib: Check your privilege (incorrectly*) — Lightness Races in Orbit 12 secs ago
 
2:44 PM
Er, maybe.
 
What extension? — TheChymera 36 mins ago
Help I posted on SO
And it's still all idiots
 
Are you feeling home? :P
 
@R.MartinhoFernandes I'm sure that I thought that, if you conserved momentum, the kinetic energy of the result after a collision must be more than before. But I ran some samples and it's always less, which is what it should be. Maybe I just didn't work it out right ten years ago.
 
@CatPlusPlus Eh, I can relate. I knew pretty much nothing about stuff when I started learning programming etc.
 
I would expect it to be pretty common.
 
2:46 PM
@Puppy There are two kinds of collisions. Some have the same kinetic energy in the end ("elastic"), some have less ("inelastic"). Needless to say the former is really not occurring in practice due to all sorts of factors like friction and shit.
 
@R.MartinhoFernandes It was the best answer.
 
But some collisions are close to elastic enough that you can model them that way.
 
Eh, it really went downhill after the first edit.
 
Which was about the time I deleted it.
Say, billiards might be one example where modeling with elastic collisions gives reasonably good results.
 
@Puppy momentum = mass x speed and it is directional
 
2:49 PM
Oh, found it. Elastic are the ones where the objects don't touch.
 
nothing to do with kinetic enegy
 
Do not use elevator
 
A gravitational slingshot is one example.
 
Be elevator
 
2:50 PM
your momma's so fat I modelled her as an elastic collision
 
> ALARM SOUNDS LIKE: "RING"
 
@R.MartinhoFernandes Didn't realize that counted as a collision.
 
Alarm is banana phone
 
@Puppy In classical mechanics you can model many interactions (all?) as a collision.
 
:siren:
 
2:50 PM
think about an explosion of a piece of resting rock - kinetic energy would increase in that case
 
The joke's on you, the alarm is literally someone saying 'ring' over and over again
 
but momentum conserves, because of you add the directional momentum of all pieces it would become zero
 
@CatPlusPlus And holding up a sign saying "flashing strobe"
 
2:53 PM
the sauna dot com
 
> Collisions play an important role in cue sports. Because the collisions between billiard balls are nearly elastic, and the balls roll on a surface that produces low rolling friction, their behavior is often used to illustrate Newton's laws of motion.
 
"not very smart"
 
Oh, I did remember correctly that billiard balls were a good enough approximation.
 
god I'm fit
so glad I get to see this photo every time I type something in here
 
Ugh.
Why does Hackage not show in bold red letters that a package is experimental. ;_;
 
2:57 PM
@LightnessRacesinOrbit Pro tip: you can see the photo on the bottom left corner
 
Because it would get old pretty quickly.
alias cabal=echo 'THIS INVOLVES AN EXPERIMENTAL PACKAGE' && cabal
There you go, add colour.
 
Not all packages are experimental.
 
Base has polykinded stuff where it didn’t use to have, and there’s the AMP on the horizon. Everything is experimental!
 
Glad I didn't write too much code using this library.
 
Ya I guess.
 
3:01 PM
@Jefffrey And then we never heard of him again
 
@Jefffrey I don't tend to look down that far
I mean, my eyes are just there more whilst I'm typing, obviously
 
Django's sql* commands are very useful for a real database
ERROR: cannot truncate a table referenced in a foreign key constraint
 
@R.MartinhoFernandes 'fraid not
 
Good job ordering shit
 
@CatPlusPlus Django Unhinged
 
3:03 PM
but your icon would be tiny when you type a one liner
like cat++'s ... if I did not know the cat icon in the first place I would have thought that was an albino owl
 
Don't give him ideas.
 
ARGH PEOPLE CHANGING MODELS AND NOT CHANGING THE SERIALISATION EVEN THOUGH IT'S EXPLICITLY DOCUMENTED
 
@chmod711telkitty No, it stays the same size throughout...
I'm talking about the one on the bottom LHS
 
I wonder how South actually does migrations for non trivial model changes
 
3:06 PM
@Jefffrey Define non-trivial changes
 
@LightnessRacesinOrbit I thought you eyes can't move that far
 
@chmod711telkitty They're already there as long as I'm typing a message. That's my point.
 
@CatPlusPlus Like adding a non-null field to a model for which there's no "universal default"
 
I should be a model
 
It aborts
Or rather it prompts you to provide the default or it will abort
 
3:07 PM
Aborting is wrong
 
You can't issue ALTER TABLE that adds a column with no default value
 
lol? you look at your icon while typing a message? you must be super elite because I don't see many typos there
 
@chmod711telkitty you're confused
(but yes I am "super elite")
 
It's not that unusual for good typists to notice typos as they happen without having to look at the result.
 
@R.MartinhoFernandes good one
 
3:08 PM
@CatPlusPlus You can define a temporary default null, then populate that field however you want and then add a "not null" constraint
 
@R.MartinhoFernandes I have NEVER seen a blind typist who also trolls excessively ... because all self claimed blind typist are all trolls
 
But it's not handled automatically for you, because it can't be
 
@chmod711telkitty They obviously don't exist.
 
You need to define 3 separate migrations for that
 
3:09 PM
right
makes sense I guess
 
@R.MartinhoFernandes kitty != puppy
you're mixing your pets
I still can't believe he's never come across the numa numa song
 
that's pretty spectacular
 
You should sell him to a circus.
"The Boy That Never Heard Numa Numa"
 
I see many trolls though, they claim to be able to do many incredible things
 
3:11 PM
@R.MartinhoFernandes people who can't type also know they are messing up when trying to type blindly
 
@chmod711telkitty There's always something they are not able to do: STFU
 
According to Steve Yegge touch-typing is a primary requirement for becoming a programmer.
 
define touch-typing
 
Not looking at your keyboard like a dumbass
 
@Jefffrey it's like touching yourself, but with electronic aid
 
3:14 PM
@Puppy do check your doors and windows tonight. You fellow british citizen LightnessRacesinOrbit intends to sell you to a circus
 
hmmm, it dawns on me that I haven't seen sehe in here for a while?
 
dunno, does it?
 
QUICK, CALL AN AMALANCE
 
I would like some kind of training program to reduce typos. I make more than one typo per word typed.
 
3:17 PM
An "Ask Me Anything Lance"?
 
why does AstroCB have the meta.SO icon on the right of his name?
@StackedCrooked go slower
 
@StackedCrooked Git gud
There are multiple things like that
 
I think a program that penalizes typos by adding a small delay on delete/backspace could help.
 
Destroy your keyboard, yes.
 
speaking of which, I used to love to go to the night clubs because no one suspected a hot young girl would be an elite troll
 
3:19 PM
I haven't destroyed my keyboard since I got the plastic cover. (I you remember..)
 
My modifier keys are creaky
People also making circular imports
 
Mac keyboard has a delay for the caps lock to prevent it from accidentally activating.
 
URGH
I remapped Caps Lock entirely
 
I unmapped it.
 
I have F13 now
 
3:21 PM
@StackedCrooked wat
 
Daisy begging me for food
 
@Jefffrey Yeah, it's not even noticable.
 
@StackedCrooked it's not noticeable because there's no delay
 
Aforementioned colleague has finally come back with his initial thoughts on the bug he's working on. They are essentially a reworded version of the detail I already wrote on the bug four days ago, minus some important points.
 
@Jefffrey Yeah, I just tested it and the delay is gone.
@Jefffrey But it was there on my macbook back in 2008.
Damn, I should stop living in the past.
 
3:23 PM
@LightnessRacesinOrbit It's annoying colleague day
Or maybe I'm extra cranky
I have way too many boring tasks to do
 
ITT Stacked stop doing drugs sometime after 2008.
 
Yeah. I used to go to parties most of the days of the week. Sleeping only 3-4 hours. It was a great time.
 
I enjoyed going to night clubs but I didn't like partying all that much. Also I didn't get to go to night clubs very often because my friends back then didn't enjoy it ...
now thinking back I alwayas had problem finding friends who enjoy doing what I am interested in doing - even nowadays I never convinced any of my female friends to do overnight hiking/bushwalking trips with me. They are not interested in "sleeping in the mud" or "walking long distance with large bags"
on the good side, I made more friends through those overnight bushwalking/hiking trips. so now my social life is segregated in a few very different groups, none know the others well ...
 
@chmod711telkitty that is helpful if you mess up in one group, you can retreat to the other
 
@chmod711telkitty That sounds pretty normal to me.
I don't know anyone who has one large group of friends for every hobby of his.
 
Woah CMake documentation is suddenly less shitty
Slightly
At least they have not-completely-fucked-up navigation
 
@martin yeah, that's what I would like too. What I find really awesome is that someone friends who I know for like 15 years still keep contact once in a while, like not hearing from them for a year, then get a message during Xmas/new year
 
hmm I've decided I'm going to sell my hoover. it's just collecting dust
 
posted on August 19, 2014 by Herb Sutter

When we announced the CppCon conference program and I posted my final talk selection, the original plan for my Friday ‘endnote’ plenary was for it to focus on giving an update on future standardization plans. However, quite a few people immediately wrote me to express disappointment that I wouldn’t cover my Modern C++ Style material, […]

 
> This talk revisits basic questions, such as how to declare and initialize a variable, how to pass a value to a function, how to write a simple loop, and how to use smart pointers, in the light of experience with C++11 and the latest C++14 refinements.
Only C++ to have an expert talk about such topics.
 
3:48 PM
@LightnessRacesinOrbit lol
 
:)
 
@LightnessRacesinOrbit hehe
 
I bought a book on autotools. It contains a chapter on pimpl pattern.
 
Er, the C thing is so dumb.
struct abc; is superior in any way.
 
3:56 PM
you can just cast abc* to abc_impl* in C?
 
pimpl's fine except (a) dynamic allocation (b) what if I want to use teamplatez
 
You can just not publish the struct at all
And it functions perfectly well as an opaque pointer
@LightnessRacesinOrbit You can't hide implementation details from templates anyway so :v
 
@CatPlusPlus exactly
 
@StackedCrooked That is so terrible
typedef void abc; is something you should never do because it's dumb as fuck
5
 
@LightnessRacesinOrbit dynamic allocation cost means I only used it for high-level "controller" objects. (yeah, controllers)
@LightnessRacesinOrbit and, high-level controllers are typically not templates
 
3:58 PM
Your header should be something like typedef struct my_handle_t *my_handle; void api_func(my_handle); void api_func2(my_handle);
 
@LightnessRacesinOrbit Too late. Oh, and don't forget: you live in New York City.
 
Type-safe and opaque
 

« first day (1403 days earlier)      last day (3538 days later) »