« first day (1546 days earlier)      last day (3416 days later) » 

user1804599
12:01 PM
@Xeo lol primitive countries
 
user1804599
> Fetishism, exhibitionism and voyeurism are also included as "mental disorders" now barring people from driving.
 
user1804599
lol fetishists can't drive, guess the roads will be very empty
 
Xeo
33
Q: Is ++x %= 10 well-defined in C++?

kykuWhile browsing the code of some project I came across the following statement: ++x %= 10; Is this statement well defined in C++ or does it fall into the same category as a[i] = i++ ?

lol, so much hate on that question
 
user1804599
> Mikhail Strakhov, a Russian psychiatric expert, told BBC Russian that the definition of "personality disorders" was too vague and some disorders would not affect a person's ability to drive a car safely.
 
user1804599
R.I.P. Mikhail Strakhov
 
12:04 PM
I wouldn't be able to drive in Russia
 
Xeo
I have ++_cur_player %= _players.size(); in my code.
 
well I can't drive in Romania either
but that's another story
 
@Xeo I've had a couple comments deleted on that garbage:)
 
how the fuck does that have +33
that's it, I'm finding a dupe for it
yes after reading some more about that in Joannes Shlaub's answer I now concur that in C++11 only, indeed the prefix ++x is sequenced in its side effect, because the value must be sequenced by standard AND the operator returns a lvalue. this is not obvious at all, but now I see it. — v.oddou 5 hours ago
ITT "Joannes Shlaub"
 
@rightføld does that mean that people who are into feet also can't drive
 
12:06 PM
/cc @Johannes
 
I never understood what's so attractive about feet
I get turned on by hair tho
 
there is nothing attractive about feet
long, light, straight hair and an exposed nape/back is where it's at
 
user1804599
> Neurologist Vilayanur S. Ramachandran proposed that foot fetishism is caused by the feet and the genitals occupying adjacent areas of the somatosensory cortex, possibly entailing some neural crosstalk between the two.
 
user1804599
There are other theories.
 
the hair can be up. this is the sexiest thing ever
 
user1804599
12:08 PM
No, it's definitely not.
 
nope
 
user1804599
Never paint your nails that colour.
 
I'd google for things but I'm at work
and there are girls around
 
user1804599
Also turn around and lower the camera a bit.
 
12:09 PM
they might think that I'm actually having sexual needs after all
 
@AlexM. I hope you have
Would be sad otherwise!
 
why do you care whether Bogdan has sexual needs
whut
 
that's sexi...
no it's not
but it's something, it has to be
 
user1804599
0
Q: "If a C++ pointer is deleted twice, it can cause a trap" -- what does trap mean?

athosI met such a C++ quiz: what would happen if a pointer is deleted twice? A) it can abort the program B) it can cause a failure C) it can cause an error D) it can cause a trap and the answer is D. I was a bit lost, what does "trap" mean? is it a special term in C++?

 
12:10 PM
It's funny
 
user1804599
All answers are correct!
 
Each time I open the chat window, there is catchy stuff going on
 
@rightføld Yeah - typical school multiple-choice garbage.
 
@Rerito define catchy
 
why do people keep on giving stuff like "demons flying out of your nose" as an example for UB
 
12:11 PM
@BartekBanachewicz Things likely to evolve into a heated conversation
 
I'm pretty sure that, as undefined as that behavior is, it still happens in the confinement of your computer
 
user1804599
Because the standard allows that and it's funny.
 
and your nose does not happen to be there
 
Now, defining heat
 
@AlexM. Memory corruption and stuff on systems with no OS memory protection can result in very funny things
 
12:13 PM
Either flame war like or on "hot topics" (sex, drugs, alcohol, lust in general)
 
@AlexM. the standard doesn't define UB as confined to your computer
> SFML 2 drawing does not work when connected with OGRE
 
@BartekBanachewicz there's also common sense
 
oh wholy whuck
 
@BartekBanachewicz .. the ♩ stars are brightly whiiiiiining... ♫
 
@BartekBanachewicz It could not - computers have I/O, (else they would be pretty useless).
 
12:14 PM
We can say. It is a well-established general computing term. This "anything can happen" cookie-cutter answer is well and good when we're language lawyering, but the guy is asking about what can happen in practice. In practice, "anything can happen" is simply not true. — Lightness Races in Orbit 1 min ago
UBait
@AlexM. Exactly
 
user1804599
No.
 
user1804599
He is asking what a trap is.
 
when discussing the abstraction that's fine
when discussing an actual computer it's not
@BartekBanachewicz He is not asking about the standard.
 
@AlexM. it's been rumoured to exists
 
@LightnessRacesinOrbit questions asking about a program behaviour on one particular machine are off-topic
they're not likely to help general audience
 
12:16 PM
They're off-bartek
 
@sehe I'm pretty sure it still exists, though some of the rooms have good drainage.
 
@BartekBanachewicz That's right, because there is no significant group of people using the same computer architecture anywhere in the world!
 
@FredOverflow I do. I bet the Robot does. That's two
 
x86? Hobbyist. x86_64? Hobbyist. Only a few people use those.
 
I might have an x86 computer hooked up to the demonic portal though.
 
12:17 PM
Right, but you don't.
 
Well pure x86 is on the way out
 
@AlexM. The demon and missile references, at the least, bounce off the original comments that make it a point to disentangle specification from implementation.
 
Not that it matters
 
user1804599
It's a terrible question anyway.
 
user1804599
Who cares what answers it gets.
 
user1804599
12:18 PM
OP gets bad education and is doomed.
 
You need at least one .c oder .cpp file to build a DLL. But nobody inhibits to add hundreds of source files to build a DLL. — harper 21 secs ago
lazy German is lazy
speak English Mutterfocker
 
at least one .c udder .cpp file
 
Ho boy... here's some fun...
8
Q: Should students be told they're wrong

Dane BouchieI base this question off where I got my motivation for math and science. Throughout several attempts in my junior years, I was able to design a perpetual motion machine, design a free energy device, prove Einstein $E=mc^2$ wrong. Obviously I was way, way off, and I eventually found that out by my...

 
that thing should depend on each student's personality
 
are you seriously going to participate on that site?
 
12:21 PM
but overall I really think it's about how you put it
"You're WRONG!" will annoy anyone
 
why everytime I am looking for images of 'granny' on google, I always get to see whole bunch of disgusting pictures?
 
related, I am still not appearing on neither CS or TCS because of fucking fragmentation
who the hell thought it would be a good idea is beyond me
 
when I review code I take care to mention some good parts first, whatever those may be
 
user1804599
Tell them they're wrong even when they aren't.
 
then continue with "however, I can see some places where I'd suggest some improvements, to make sure the result is as great as the other parts"
 
user1804599
12:22 PM
They'll be puzzled and kept off the streets.
 
user1804599
Scum.
 
@AlexM. interesting. We focus only on wrong parts in our potato PR-s to save time to find the issues
 
There are no good parts
 
I may need to work to extract some good parts, yes
 
@CatPlusPlus pfff
 
12:23 PM
however, I want to ameliorate the "your code sucks" impression I'd give otherwise
 
@chmod711telkitty Why did you disable SafeSearch in the first place anyway?
 
@BartekBanachewicz no
 
especially if it's the Nth review
ideally you want to see some progress as you work further
 
I did very nearly sign up to troll comment, but I'm already on 592 Stack Exchange sites and don't need another one
 
@BartekBanachewicz what makes you think that :)
 
12:23 PM
if you don't see, your morale gets damaged
 
@chmod711telkitty Also, personalized search results.
 
@sehe he's been posting stuff from there quite often
 
it may be that the dev just had a bad day or didn't pay enough attention, no need to make him feel that bad
 
I wish I could put my finger on what it is about having X million distinct Stack Exchange sites that I think is bullshit
 
12:24 PM
I'm pwetty proud of my rep on Music.SE
 
@BartekBanachewicz hot network questions. Also, whoosh
 
@sehe oh right
 
@milleniumbug I did not disable it, I just did not enable it ... why would I - putting effort into trying to find out how to turn it on?
 
@Mgetz repost
 
aww
 
12:24 PM
21 mins ago, by rightføld
lol fetishists can't drive, guess the roads will be very empty
around here
 
@sehe Note how "participate" doesn't require knowing anything about the subject, if that was what the joke was about.
 
@Mgetz Having died in 1015 AD I'm not sure he ever qualified
 
@chmod711telkitty It's enabled by default AFAIK.
 
@BartekBanachewicz The joke was more like "why would he suddenly break his habits and start participating" FWIW
 
12:26 PM
it never was for me
 
@BartekBanachewicz I'm proud of my Sci-fi rep
 
how old are you?
 
@LightnessRacesinOrbit The new russian empire... under Czar Vladimir Putin
 
haha gutted Mike
his score was climbing ahead of mine due to the "I'm on top" effect
then the OP went and accepted me
teehee
 
user1804599
12:26 PM
user image
3
 
user1804599
> ITERATE
 
there's this rumour that Russia is waiting for the ISIS guys to cause even more ruckus
so that Europe can focus on them
WW3 confirmed
 
rumour*
@rightføld hehe
 
@rightføld In inversion of control, dependencies inject containers!
@chmod711telkitty that's a good question. You should ask on meta
 
12:28 PM
@chmod711telkitty That's surprising, need to research.
 
user1804599
This is so nice.
 
@sehe "communist programmin' I tell ye, communist!"
 
user1804599
Soon I can write RxJS code with do notation.
 
I wonder if Vlad's "Unemployed" is really just a decoy
and he's a programmer for the KGB
 
12:29 PM
@AlexM. To stave off the asphyxiating hordes of recruiters desperate to bring him into their clients' ranks?
 
lol
 
ah
actually yeah I got that backwards anyway
 
user1804599
I bet Vlad can't drive.
3
 
that's the best comment you've made in about two years
that's the only decent comment you've made in about two years*
 
@Mgetz "ye" strangely conflicts with "comrade" for me. What are we, elite now?
 
12:30 PM
@rightføld "Serial downvoting is a mental disorder."
 
hey, @chmod711telkitty! Bullying is occurring! Where are you to save the day?!?!
 
@sehe it was supposed to be said by a crotchety old american
 
@rightføld he's neither floppy, nor 3.5"
@Mgetz oh. I don't have that in my repertory - soz
 
the errata for Alexandrescu's D book is huge
how can I read it knowing that there are so many mistakes, do I keep the errata close to me or what
constantly switching to it
 
wanted to link to her meta post but it's gone
 
12:32 PM
51 mins ago, by rightføld
What is a KB?
 
@AlexM. can't star. needs context.
 
Hold on. Things are getting complicated
 
or do I read the whole book then forget what I read when I notice there's mistakes
 
Well in the other books they don’t tell you where the errors are.
 
@AlexM. wait for the reprint
 
12:32 PM
Books do that?!
Mine have never reprinted while I was on watch
 
@ShauryaChats: Welcome :) One thing I've noticed from this answer is that you formatted it very well, especially for a newcomer. Thank you! — Lightness Races in Orbit 19 secs ago
s/a newcomer/an Indian/
 
They’re shy.
 
So, positive discrimination is ok
 
whenever I see complaints about Indians here I remember about that guy's tweet
 
12:34 PM
"You destroyed our country, we destroyed your language."
or something like that
 
lol
 
 
template<
    typename Integer,
    typename std::enable_if<
        (  std::numeric_limits<Integer>::is_integer
        && std::is_convertible<
            Integer,
            typename integer<
                std::numeric_limits<Integer>::min(),
                std::numeric_limits<Integer>::max()
            >::data_t
        >::value )
    , int>::type = 0
>
integer<
    std::numeric_limits<Integer>::min(),
    std::numeric_limits<Integer>::max()
>
from_int(const Integer& i) {
    return integer<
I'm so terrible
 
12:35 PM
@LightnessRacesinOrbit are the chooks bullying the magpies now?
 
fffucking idiot
 
I should probably define a using for that integer<...min, max...> thingy
 
@Jefffrey what's the use?
 
to be fair, that's C++{11,14}'s fault
 
@Jefffrey what difference does that make?
 
12:36 PM
awful language
 
@sehe more readable
 
Jan 5 at 15:36, by sehe
Again a case of don't lose sight of purpose
 
@LightnessRacesinOrbit could you expand on that statement?
 
@BartekBanachewicz probably
Anyone who says that C++ has not become an unintelligible mess is crazy. — Lightness Races in Orbit 11 hours ago
hth
 
@sehe my current chooks are ... big n fat n thinking our backyard is their terrritory - like defending our territory for us ...
 
12:38 PM
what's unintelligible in that code?
 
@sehe My purpose is to masturbate with C++.
 
chasing em other birds away
 
Am I doing it right?
 
> to be fair, that's C++11's C++14's fault
There you go
 
It specifies a low-level primitive
 
12:38 PM
except they can not fly ... so other birds just flap wings to get away from the chooks
 
@Jefffrey you wouldn't be able to drive in Russia
 
Codor, Germany
2.8k 2 4 21
LOL
@BartekBanachewicz If you don't understand it then I can't explain it to you
 
@LightnessRacesinOrbit lol, again?
 
@Jefffrey Oooh. I hope you will eventually reach your dream
 
@BartekBanachewicz Yes apparently not understanding is a frequent occurrence for you :)
 
12:40 PM
lol
 
also trying to get inside the car when they get a chance
 
@Jefffrey Perhaps also use std::enable_if_t to spare yourself the typename/::type thingy
 
Xeo
28
Q: How to work with a supervisor who forgets what he asked for?

happybuddhaI work as a programmer in a small company and a small team. I am currently working under a senior supervisor/architect. The problem I face is: The architect assigns work to individual programmers in his cabin. The programmers submit their work at end of the day and have a quick chat about it. N...

bwahahaha
 
22
Q: Explain MVC to non-programmers

DennisI have a need to explain MVC to non-programmers. Namely, to managers of other departments, in the context of progress report. One of the things I do is refactor our codebase towards MVC separation. What is MVC separation they might ask? Why is it needed they might ask? After reading a fairly ...

^ perhaps I should link this to my team
@Xeo old — I've already planted my flag on it :P
 
template<
    typename Integer,
    std::enable_if_t<
        (  std::numeric_limits<Integer>::is_integer
        && std::is_convertible<
            Integer, typename inferred_integer<Integer>::data_t
        >::value )
    , int> = 0
>
inferred_integer<Integer> from_int(const Integer& i) {
    return inferred_integer<Integer>(i);
}
So beauty
 
12:42 PM
not as so beauty as me
 
You don't need the typename before std::enable_if_t
 
right
 
Xeo
you removed the wrong typename there
 
You can also define a variable template like is_convertible_c or something so you don't have to type ::value
 
I did?
oh yes, I did
 
12:43 PM
@AndyProwl hey, that's handy
@AndyProwl or use robot's Invoke thingies
 
Xeo
ITT: People learning about standard trait aliases
 
@BartekBanachewicz Yeah
 
@Xeo well too bad I haven't learned about every other minor addition to C++14 yet, soooo baadd boo hiss
 
Xeo
Glad you see the problem.
 
chickens can get jealous too ... just like tomalak
 
What's more concerning is that I haven't still looked at every minor addition to GHC 7.10
 
@LightnessRacesinOrbit you & my two chooks, who do you think a rooster would find more attractive?
 
coliru.stacked-crooked.com/a/695bb9b86d3ae592 - the data_t needs typename tho
GCC bug?
@chmod711telkitty dunno never met them
coliru.stacked-crooked.com/a/2058433f8e53575b - confirmed no typename needed for enable_if_t tho
 
why do you use typename std::enable_if_t [...]::value?
 
3 mins ago, by Andy Prowl
You don't need the typename before std::enable_if_t
 
12:46 PM
The entire point of _t stuff is to be an alias that doesn't require those
 
@CatPlusPlus should be named the other way around, but heck
(as in, shorter, more intuitive names should be shorter, more intuitive to use)
 
Xeo
template<...> using <trait>_t = typename <trait><...>::type;
 
but I see why _t for ::type makes sense
@Xeo LOOK A UNICORN
 
Xeo
@BartekBanachewicz Unfortunately, history had a word in that.
 
@LightnessRacesinOrbit Indeed, you don't need it - nor the ::value thing. The question was why do you have them there
 
12:47 PM
@AndyProwl Because it's not my code?
It's Jefffrey's code, about which you'd made the same observation several minutes prior, and about which I made the same observation immediately afterwards
2 mins ago, by Lightness Races in Orbit
http://coliru.stacked-crooked.com/a/2058433f8e53575b - confirmed no typename needed for enable_if_t tho
 
@AndyProwl Why aren't those aliases in the cppreference? :c
 
user1804599
I need to refactor my compiler.
 
compilator*
refactorise*
 
user1804599
I just realised some expressions must be compiled into statements.
 
@Jefffrey They're not aliases - they can't be. They don't resolve to types, but rather to constant expressions
 
12:48 PM
@rightføld that sounds idd
 
They can only be variable templates
 
user1804599
E.g. match x { case a => a + 1 } must create a new variable a.
 
@AndyProwl or hihihi macros
 
true :P
 
@AndyProwl but... enable_if_t is ultimately a type, no?
 
12:49 PM
@rightføld have you tried creating a language without variables instead?
 
and a type cannot come from a constexpr
 
user1804599
No.
 
_t are aliases
 
@Jefffrey Yes, it is. I was talking about the other trait
 
He said 'variable template'
 
12:50 PM
@AndyProwl _c?
 
Xeo
@AndyProwl psst: <query_trait><...>{} to convert
 
user1804599
Well I can compile it to an IIFE but that's just silly.
 
@Jefffrey yes, the is_convertible<...>::value thing
 
I see
 
Xeo
12:50 PM
is_convertible<...>{}
 
@rightføld I've heard languages without variables are easier
 
Why _c and not _v again?
 
@Xeo but then you need {} don't you?
 
user1804599
@BartekBanachewicz I can only imagine shitloads of duplicate code.
 
Xeo
yes, so? same number of characters
and usable in C++11.
 
12:51 PM
@rightføld why would that be?
 
less intuitive IMO
 
user1804599
Because if you cannot name things you end up with horrible code?
 
user1804599
Or are you confusing variables with mutable variables again?
 
you can name constants
@rightføld sigh
 
user1804599
In def f(x) = …, x is a variable and it's impossible to assign to it.
 
Xeo
12:52 PM
@AndyProwl vOv
 
user1804599
You will get a compile-time error.
 
Because it's a constant variable?
wat
 
user1804599
Protocols are so nice.
 
A variable is by definition variable.
 
user1804599
Fuck extending prototypes.
 
12:55 PM
@Jefffrey yes, as opposed to a mutable variable whistles
I wonder if rightfold's language also has mutable and immutable constants
 
It has 6 ways to define objects. Almost as many as C++ does.
 
Using 'constant' for computed immutable values is worse than using 'variable' for that
iow you're all nerds
 
'local constants' :O
@CatPlusPlus there's nothing varying about those values
 
@Jefffrey You may not know the value until run-time, so it's not really a fixed "constant". It is immutable, but it depends on some conditions that are variable.
 
the value itself doesn't appear before it has the value though
 
user1804599
12:57 PM
@Jefffrey No, it has 6 ways to create variables.
 
Nobody caaaaaaaaaaaaaaaares
 
user1804599
Variables aren't objects.
 
What you call variables are not variables.
 
Hi everyone ! I am not sure of how it works here... I have a problem for a side project of mine. I am writing a wavelet library and I would like to do something like this : ideone.com/g8CvtX. I don't understand why this code dont compile with g++ 4.9. Thank you in advance for your help. (ps : I would like to stick with c++03.)
 
or, IOW, aren't variable
 
12:58 PM
Can you modify a lazy "variable"?
 
@matovitch why would you like to stick with C++03
 
user1804599
No. It's immutable.
 
If so, the thunk is never evaluated?
 
I'll even quote lolkipedia
> In computer programming, a variable or scalar is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity or information referred to as a value.
 
user1804599
You can be an idiot and do side-effects in the expression you initialise it with but then I just laugh at you.
 
12:59 PM
lol
 
user1804599
But you can definitely not say lazy x = …; x := 2.
 
> However, in pure functional and logic languages, variables are bound to expressions and keep a single value during their entire lifetime due to the requirements of referential transparency.
 
@CatPlusPlus local constants don't have to have a storage location
 
relying on how good programmers are is the worst thing ever
 
well at first I would like to be able to compile it with old g++ at school.
 
12:59 PM
they don't need to exist during execution
 
Note how this is still a variable
 
user1804599
@Jefffrey Right, let me make everything impossible.
 
@matovitch how old is that g++ there
 

« first day (1546 days earlier)      last day (3416 days later) »