« first day (1376 days earlier)      last day (3573 days later) » 

1:00 PM
> As an aside, it's rarely good to argue that you should be given a security exemption by suggesting that if you wanted to screw the company, it was already within your power to do so. Just keep that in the back of your mind as you move through your career.
 
> The proposal also generated renewed interest in the idea of subscripting parameter packs (e.g. Pack[0] gives you the first parameter), to avoid having to use recursion to iterate over the parameters in many cases.
I don't get it.
How does that avoid anything?
I'm trying to remember the last time I thought "if only I could index packs directly, I wouldn't need recursion".
 
I don't get how is that a problem - pack into std::tuple
 
@R.MartinhoFernandes typical mindset of a person to whom recursion is as natural as iteration
 
@BartekBanachewicz What?
 
you don't remember that?
 
1:05 PM
Yes.
But I don't use recursion at all.
Or at least not without extreme circumstances.
 
Again, logic of a person for whom recursion is as easy to understand and use as iteration.
 
95% of my TMP code has no recursion.
 
@R.MartinhoFernandes well still
 
user1804599
> An Indian dentist has pulled 232 teeth during a seven-hour operation.
 
user1804599
@BartekBanachewicz You can iterate using recursion!
 
1:09 PM
best song in tw1, and it's not even on the soundtrack :(
 
@LightnessRacesinOrbit I had made assumptions about your setup that didn't hold true when I re-read your question. I had assumed you had a unique idenifier column and that you could make a view that would always satisfy your query but only return the rows that needed to be deleted.
 
@milleniumbug vOv. Whenever I read such things I think "These people don't really use these language features, do they?"
 
BTW
SpaceBase added C++ and JS APIs
so it's now Java/C++/Erlang/Python/Ruby/JS
 
I mean, the language already has a rather concise way of iterating over packs without recursion. Way more concise than recursion, and way more concise than whatever code you have to write to iterate using pack indexing.
Plus, if you want random access... you are not iterating, are you?
 
user1804599
Ugh.
 
user1804599
1:18 PM
Somebody asked me to come to a festival, but I planned to learn more about dependent types tonight. :<
 
Not that I'm against the feature, but it seems to me the people proposing it don't know what they're talking about.
 
go to the festival with your smart phone with ebook on it
 
This is quickly becoming a legendary answer:
140
A: Passing arguments to program run through gdb

rubenvbYou can do this: gdb --args path/to/executable -every -arg you can=think < of The magic bit being --args. Just type run in the gdb command console to start debugging.

I was so timely there :-p
 
I get bored fast, I went on a couple of overnight hiking/bushwalking trips with my mini laptop
some people were offended because I was not sitting there listening to them
but they were boring
 
> mini laptop
reminds me, I had to use my laptop at the mall 2 days ago
 
1:23 PM
notebook
 
I thought I gonna hit somebody in the head with it
"mobility" and "14" laptops" don't go well together
 
my laptop is so heavy I hope I never have to take it to the mall or any other similar place
 
I'm torn between buying a smaller laptop and buying a backpack for the existing
I'm using a shoulder bag right now
and all that weight concentrated on a single spot is not exactly pleasant
 
My backpack has a laptop holder thingy in the main compartment and an extra zipper on the side for easy access to that.
> The latest version of the source code information capture proposal, which aims to replace the __LINE__, __FILE__, and __FUNCTION__ macros with a first-class language feature. There was a lot of enthusiasm for this idea in Issaquah
> enthusiasm
 
1:29 PM
I can't find my shoulder bag on the web lol wtf
I forgot the name but still
 
@AlexM. I'm gonna have 12.5" now.
 
£24.26 is fucking cheap I paid like £80 three years ago wtf
@BartekBanachewicz I sometimes play games on my laptop so 12.5" would be insufficient for a nice enough experience
 
@AlexM. 15" is also insufficient for nice game experience IMHO
so you need a TV/projector/screen anyway
 
it's at the limit imo
I find my 16.4" good enough
 
I don't think I could realistically go back to gaming at such a small screen
I mean on the road it's okay
 
1:34 PM
@AlexM. 80 GBP for a shoulder bag? WTF? I would not give such money for mere shoulder bag.
 
but at home those 24" are really nice
 
@VáclavZeman I wouldn't pay that much now either
I was dumber 3 years ago
 
gucci or prada bags would be even more expensive
 
I never understand ladies who buy expensive bags ... with that said I have a few expensive ones, most were gifts by others. But I give others expensive gifts too, sometimes it's a gift because I helped someone else (I did not ask for them)
 
1:35 PM
@chmod711telkitty I was originally looking for a Sony shoulder bag to fit the laptop
 
> The destruction sequence described above permits programs to simplify their resource management by using shared_ptr<>.
:(
 
and I saw this Sony <-> Mandarina Duck bag for $shitton
 
Asio is really annoying sometimes.
lol Sony.
 
I used to think hot weather is bad
it's not... hot weather with high humidity is bad
right now I feel like I'm breathing 50% water and 50% air
look at that motherfucker, € 172.26
 
user3010322
@R.MartinhoFernandes That just reads strange as fuck.
 
1:42 PM
meh
I think Yoga will fit my leather messenger bag
Reminds me I have to fix that strap already
 
user3010322
I fixed a whole in my pants.
 
user3010322
But another appeared in my other jeans. So I have to go fix those too.
 
user3010322
Maybe I'll just give it to a shop.
 
@LightnessRacesinOrbit Yeah, that's crap.
 
@ThePhD a whole what?
 
user3010322
1:48 PM
Oh. Woops. A hole.
 
user3010322
To access a base class member in g++
 
user3010322
when the base class is templated
 
0
A: How can I avoid deadlock on indexes of a table with a compound primary key?

Lightness Races in OrbitIndeed you can't name the candidate primary keys from within a subquery, but you can use a view to effectively do the same thing: CREATE VIEW `VDeviceGrantsExpired` AS (SELECT * FROM `DeviceGrants` WHERE `ExpiryTime` <= NOW()); -- ... DELETE FROM `VDeviceGrantsExpired`; Now, the primary key...

@Mgetz ^ is this right then?
 
user3010322
you need this->template member_variable. ?
 
Xeo
no
just this->
 
user3010322
1:51 PM
Well, that sucks.
 
Xeo
wat
 
user3010322
Having to use anything at all. It sucks. :c
 
Why is this-> necessary?
 
Xeo
@ThePhD well, actually only if the derived class is templated too, and passes its argument on to the base class
 
user3010322
My guess is because a templated base could potentially introduce a member_variable that might cause in-fighting as to what member_variable you meant to pick.
 
Xeo
1:53 PM
aka if you have a dependent base class
@rubenvb to make it a dependent name
 
user3010322
@Xeo und passes, Yaah Xeo-chan's Germanness came out.~~~
 
@LightnessRacesinOrbit I would try it with the assumption that it was suggested by someone who was making assumptions that probably don't apply and thus is bullshit. The worst case is it doesn't work.
 
Xeo
ffs
 
@ThePhD #germanity
> it's
 
Xeo
1:53 PM
FFS
 
user3010322
Hee. ♥
 
Fire ze missiles und rocket
 
should const be added to all args on methods that don't change the value it accepts as a param
 
Xeo
I'm being distracted because of ice.
 
1:54 PM
@user3791372 yes
people don't do that nearly enough
 
@R.MartinhoFernandes They don't. That's why so many people want VLAs in C++ (even more suckiness)
 
mhh, wouldn't the compiler be on top of that though?
 
Xeo
wat
 
user3010322
No....?
 
on top of what? guessing that your variable mutation was an accident? how could it do that? that's why const exists.
 
Xeo
1:55 PM
WTB default-const
 
when you make them const, that's when your compiler becomes on top of it
@Xeo yesh
 
but does adding const actually speed the code up in any way?
 
@user3791372 what drugs are you on and may I have some please
 
i knew this test case is fishy
 
Xeo
1:55 PM
@user3791372 Yes / No / Maybe / Ask again in a blue moon
 
since I wrote this thing, it's been failing constantly
so I rewrote it completely
 
You do not use const to "speed the code up"; you use it to prevent accidental mutation of data that you didn't mean to [be able to] mutate.
 
and it's still failing today
 
well if there's no definite speed advantage to adding const, then there's no incentive
19
 
sporadically of course
 
1:56 PM
Sometimes const can result in some optimisations that give you speed increases, but those are bonuses.
 
Xeo
@user3791372 ahahahaha
 
@user3791372 uh no
 
Xeo
you suck.
 
@user3791372 whatttttttttttttttt
 
@user3791372 yes
 
1:57 PM
@user3791372 the incentive is writing less fragile code that has fewer bugs and won't cost you $250,000 to maintain
 
I like specifying const
 
@user3791372 Oh, yet another "performance"-oriented person. Educate yourself.
 
it's like writing contracts
 
actually, the real incentive is finding that warm fuzzy feeling you get from just fucking doing it right
@AlexM. constracts
 
Xeo
2 mins ago, by Xeo
WTB default-const
 
user3010322
1:58 PM
@Xeo Somebody actually wrote a const-cpp
 
user3010322
It's not maintained at all and was just for fun, but if you wanted to mutate things you had to declare them mutable
 
'doing it right' is what forces coders to rewrite code x amount of times. it isn't always the most productive thing to do
 
@user3791372 You get it right with iteration. Deal with it.
 
If you have to rewrite the code, you're not doing it right by any stretch of imagination
 
user3010322
1:59 PM
Meh.
 
@Xeo nooo
I need my mutable universe
 
@user3791372 ......... what????
please don't tell me someone actually hired you
2
 
user3010322
@Xeo If I have a template base and a template derived class, in the derived class, how do I access the base class's typedefs?
 
@user3791372 The alternative to "doing in right in a year" is "debugging for a century". Your choice.
 
user3010322
@LightnessRacesinOrbit :< Well...
 
2:00 PM
@user3791372 doing it wrong is what forces coders to rewrite code x amount of times
 
or until this cool, hip new pattern comes out
 
@user3791372 "x" amount of times?
 
user3010322
I tried typedef-ing the base class and using base_t::the_type_def but ti still errors...
 
user3010322
Maybe I need template
 
@user3791372 immutability was there before computers started to exist
 
2:02 PM
i'm not denying that, but i am saying that as new patterns emerge, some coders want to rewrite non-broken code for reasons x,y,z. it makes no commercial sense
 
@user3791372 const is not a "cool, hip new pattern". it's basic common fucking sense
 
@user3791372 You're referring to joelonsoftware.com/articles/fog0000000069.html . const is a different thing.
 
you need more fibre in your diet
 
@user3791372 If your code is non-broken, then adding const does not break it. If your code is broken, then adding const will inform you of it! Either way you haven't really "rewritten" anything. So I don't understand your problem.
 
@user3791372 it makes sense in the long run. Also it's not really a "rewrite".
 
2:04 PM
you wouldn't charge clients for sorting through code, and then adding const where necessary?
 
@user3791372 ~~patterns~~
Refactoring and maintenance is a thing people do, yes
 
if it costs the client money, it's a rewrite as far as they're concerned.
 
@user3791372 no, I would add it properly the first time. But if I had to maintain and add functionality, I'd do it, because it would ease me further maintenance.
 
No, it isn't
 
@BartekBanachewicz Depends on if you first wrote it at a time when const even exists.
 
2:05 PM
so you'd add const just so you'd feel better
 
@user3791372 Are you a manager?
@user3791372 OMGWTFPHPBBQ
 
No, you're right, it's not worth reducing tech debt of a project under any circumstances
 
@user3791372 no. Adding const gives you more invariants that are helpful in further analysis and modifications
 
@user3791372 No, it's about lowering future maintenance costs, not feeling better.
 
@user3791372 wtf are you talking about you ludicrous individual
 
2:06 PM
> ludicrous individual
I'll save that
 
Ludicrous speed
 
preposterous fuckwit
 
you sound like rik mayall
 
Is there a way to download as zip from github?
 
2:07 PM
@JohanLarsson Yes
 
it's the big link that says "ZIP"
 
@Xeo Disagree, because const is a hideously annoying piece of crap. Maybe if it was implemented better.
 
ok ty, gotta find it then
 
Press "Download ZIP"
Which is in big friendly letters
Right under "clone"
 
yeah found it, eyes broken :)
ty sirs
 
2:09 PM
Imma use a moment of rain being light and run home
 
run rabbit, run
 
@user3791372 There's also no definite speed advantage to adding actually functionality.
I never add functionality to software because it doesn't make it faster.
It's very hard to do something faster than doing nothing.
So my code never does anything.
 
^ this
 
You can see it speeding by everything in the benchmarks.
It beats all the browsers out there, and the compilers too!
 
2:12 PM
if it does nothing, then there's nothing to time to state that it does it fast
 
gist: “I want it as fast as possible”, 2013-04-11 14:37:07Z
int main(){}
Also, fuck you, Nami-Doc.
 
oh i see. humour
 
Seriousness, actually.
 
@user3791372 Are you familiar with concept of "zero"? It's a number, check it out.
 
@user3791372 it's as useful as every other incorrect program
 
2:15 PM
@BartekBanachewicz Not always, but it sure as hell is faster then all of them.
 
user1804599
The most useful program in cat.
 
Xeo
@user3791372 It does nothing very fast!
 
user1804599
This room needs less Fallout.
 
someone recommend me some music
 
user1804599
Friday
 
2:23 PM
@Crow Abney Park
 
2:34 PM
        // Knowing that the Thing could surely overtake the Alert until steam was fully up, he resolved on a desperate chance; and, setting the engine for full speed,
        // ran lightning-like on deck and reversed the wheel. There was a mighty eddying and foaming in the noisome brine, and as the steam mounted higher and higher
        // the brave Norwegian drove his vessel head on against the pursuing jelly which rose above the unclean froth like the stern of a daemon galleon.
        // The awful squid-head with writhing feelers came nearly up to the bowsprit of the sturdy yacht, but 
Just committed this.
The code under it has an explicit destructor call followed by placement new.
I ruined my street cred.
 
you're turning into ThePhD
 
It accurately describes what the code does.
Destroys the thing and then recreates it, with all the associated horridness and madness.
Couldn't find a more accurate description.
It's so bad.
Boss made me do it.
The code, not the comment.
 
call your headhunter
bin that shit
 
@Elvisjames "i get the following error"
...so?
 
2:40 PM
lol random room?
 
It was in the search results for "bin".
 
help?
 
no
 
@Elvisjames get out
 
Don't post walls of code.
 
2:41 PM
@Elvisjames no
 
I'm going for a piss
 
I don't know C++, but I assume the way to fix "'cell' is not captured" is to capture 'cell'.
11
 
> Addicted to solving problems, nowadays programming.
you seem more addicted to getting others to solve your problems tbh
 
@Puppy No fucking idea how it came up when searching for "bin".
 
2:46 PM
@LightnessRacesinOrbit http://stackoverflow.com/a/24911344/332733
Any Luck?
 
@user3791372 my god I hope you were joking there.
 
-1 for not proving your answer before posting it — Abyx 21 secs ago
 
huh.
I swear I had a Wide example that crashed the compiler, and now I can't find it.
 
what would happen if @R.MartinhoFernandes and @jalf got in an argument?
@Puppy maybe you can't crash the compiler?
 
Hey, assholes! Did you know you can create a int *X = new int[5]; int *Y = X; Yeah it's called pointer passing! Hey look at me I'm an SPECIAL Official StackOverFlow Nazi Moderator. You are all wrong - you are wrong and you are wrong! I am a Guru of this CockOverflowing Cum inside your girlfriend's pussies! Everyone on here is a overlord Nazi moderator that can't stand when someone is incorrect. So, here's my cock - put it in your mouth like good bitches and enjoy! I'm off this site! Fuck You! — FuckStackOverflow69 12 hours ago
 
2:50 PM
@AlexM. I solved it.
 
you're so smart!
 
Good for me
 
why did you feel the need to tell us this as if we care
 
I don't feel the need to tell you anything
 
@Elvisjames yet you do tell us things
 
2:52 PM
Puppy cares, he just don't want to show it :)
 
puppy cares about one and only one thing: puppy
 
tsundere puppy
 
    INVALID_OPERATION is generated
     * if either object is a texture and the texture is not complete,
     * if the source and destination formats are not compatible,
     * if the source and destination number of samples do not match,
     * if one image is compressed and the other is uncompressed and the
       block size of compressed image is not equal to the texel size
       of the compressed image.
 
@Puppy We have all seen your heart of gold, too late for this now.
 
and now fucking guess which of those happened
FOR GODS SAKE GET YOUR SHIT TOGETHER YOU PIECE OF CRAP RENDERING API MY ASS
 
user1804599
2:55 PM
@BartekBanachewicz all of them!
 
@milleniumbug Good thing you kept it here for posterity :)
@milleniumbug I like how he can't stand being incorrect to the point of leaving the site in such a way.
 
@milleniumbug Oh it's that guy again.
 
I like it because then he's gone
 
@R.MartinhoFernandes Glad to help :)
 
3:01 PM
> Everyone on here … can't stand when someone is incorrect.
Correct.
 
@Mgetz Well I can't reproduce the issue at will so no idea. :( For now I actually just added the recommended auto-retry and I think I'll leave it at that.
 
@LightnessRacesinOrbit one of the many reasons I dislike SQL, it can make bugs impossible to repro
 
I sometimes really don't get what's going on in some peoples' heads. Completely irrational behaviour.
 
@BartekBanachewicz ATI drivers?
 
@Mgetz nah, it's the spec sucking shit now
well if I had a debug context maybe I'd know more
yeah right nope.
 
3:05 PM
"guagshrisi" doesn't look super pronounceable.
 
A friend of mine recently got interested in bad bad movies. He just posted this in our group.
 
lol, Troll 2.
 
"no ARB_debug_output"
:/
 
Today is the day we all meet to see this one.
 
@Jefffrey I like how he has a fly on his forehead and he doesn't care.
 
3:07 PM
@milleniumbug He just realized they are going to eat him. Give him some slack. :)
 
"The plot concerns a family pursued by vegetarian goblins who seek to transform them into plants so that they can eat them." - now that's overengineering.
 
This is great.
 
hey that's the Community guy who disappeared
 
@milleniumbug Yeah, it was originally titled Goblins but the distributors were afraid that it might not be successful as a standalone so they renamed it as a sequel of the totally unrelated Troll.
 
@Puppy yes
@Puppy and then came back
(SPOILERS)
 
3:15 PM
which was great because yay
 
he did a good World Cup segment on that show
 
And then the show was cancelled.
(SPOILERS)
 
@Jefffrey And then they renewed it anyway.
(SPOILERS)
 
wait really?
 
3:18 PM
good
 
oh hey, a crow just flew into my window. dumb crow.
6
 
@milleniumbug :lol:
 
dayum
 
@Jefffrey GARBAGE DAY
 
I didn't realize that guy was so fucking funny
 
Formatting on this question is horrible
> HERE is it !!!!!!!!!!!!!!!!
Is it? I'm distracted by all the exclamation points
 
user3010322
The best part it, is has like 3 upvotes.
 
user3010322
But, at least he's tried to explain himself properly.
 
user3010322
Also HOLY JESUS BURNING PAIN STRAIGHT THROUGH MY STOMACH.
 
How many times do we have to say it, don't drink acid
 
user3010322
3:36 PM
But it was blue and smell delicious. ;~;
 
user3010322
What is wrong with me. Why am I getting so so often lately.
 
user2985029
@ThePhD what do you mean by "so so often lately"?
 
user3010322
Sick so foten, sorry
 
user2985029
oh
 
user2985029
perhaps it's the weather
 
user3010322
3:42 PM
.... often fuck my fingers fuck these sicknesses fuck this earth
 
user2985029
the temperature changes and people get sick
 
user3010322
Yeah... no that's not it.
 
dayum
that guy is seriously fucking funny
 
@Puppy what does it mean?
 
It's an expression
 
user3010322
3:44 PM
Extended damn.
 
ah
How come you know English so well Cat?
 
I don't
 
user3010322
He does.
 
user3010322
And when Cat talks into your ear it's like auditory silk.
 
Have you lived there or is it just from chatting?
 
3:49 PM
There where
 
Englishland
 
I'm so curious who thought it necessary to downvote this answer after ~2 years, but not comment why? Interestingly no other answer is here, so we're left wondering what a more "right" answer would be. — sehe 46 secs ago
 
@sehe You really think they're going to respond :v
You don't get pinged for responses on things you voted on
 
@CatPlusPlus No, why?
@CatPlusPlus Thanks for the heads up :)
 
3:51 PM
It's just bit pointless to leave those comments
 
Did anyone watch the awesome tutorial?
 
@CatPlusPlus No. It's not. It's good for my soul. It will - by chance - educate others on how the site would work better.
 
@JohanLarsson contradiction
 
@sehe matter of taste at most
 
3:53 PM
The one that costs 29/mo?
 
need to actually use iterators instead of forgetting that i don't have a raw array
 
@CatPlusPlus with free trial yes, are you a student? Think I asked before but forgot the answer
 
@LightnessRacesinOrbit using &a[10] is bad style anyways. Of course you shouldn't be hardcoding the end iterator with a magic number
@LightnessRacesinOrbit Duh. You can actually forget about when you have a raw array
 
Meh :effort:
 
I thought the consensus on that was that it was most likely UB.
 
3:55 PM
Pointers to one-past-end are valid
Well, valid in the sense you can have them
 
@LightnessRacesinOrbit coliru.stacked-crooked.com/a/257cf2de2ab31815 and add a bit of ADL and/or c++11 magic to taste
 
Actually, I've forgotten how exactly &arr[10] is different from &*p
And the latter is ok
 
@chris It's tries to return the reference to one-past-the-end (UB) and then takes the address (or applies the operator& as overloaded)
@chris depends on the type of p
 
@sehe Oh ok, I was thinking in terms of *(arr + 10)
 
@chris that's nice, but forgets that we're doing C++, not C
 
3:58 PM
Okay yeah I'm being dumb. For some reason, I thought C++ still had that for pointer and integral arguments.
Anyway, is an lvalue-to-rvalue conversion done if operator& is overloaded?
 

« first day (1376 days earlier)      last day (3573 days later) »