« first day (992 days earlier)      last day (3965 days later) » 

7:12 AM
wtf
So, I've moved on from going wtf at the code in this library, to going wtf at the comments in the code
 
@jalf Oh no -- it goes downhill quickly from there.
 
@JerryCoffin trust me, it's hard to see a "downhill" from the code I was looking at yesterday
have you ever come across an assert(f(x) || 1), where the only reason for calling f(x) here is that it contains an assert on something else?
(it also returns a value which makes it useful in other cases, but the only reason for that particular call is the nested assert)
 
@JerryCoffin you need to become an elite troll like me, all elite trolls have great self esteem even when they should not
 
@jalf Can't say I've run into that before, no.
@Telkitty猫咪咪 Refusing to grow up is unrelated to my self esteem.
 
You sound like you have low self esteem. I on the other hand, probably should have low self esteem, but I don't
 
7:20 AM
Yikes! Java update.
 
@Telkitty猫咪咪 Nope -- this is about refusing to grow up; unrelated to self esteem.
 
@Telkitty猫咪咪 "It looks like you have low self esteem. Would you like me to help you with that" </Clippy>
2
 
@JerryCoffin denail! (not denial)
@jalf I will do anything to turn people into trolls and train them up for elitedom
 
@jalf Yes Clippy. It would help my self esteem immensely if you would commit suicide in some particularly horrible, gruesome and painful manner.
Oh, but first practice on Barney!
 
7:25 AM
@Telkitty猫咪咪 Might be good if that's Binney(ed). :p
 
@rightfold Have you been in one?
 
@MarkGarcia another reason why it's usually friendly earlier was because no unfriendly garbage collectors around.
 
@RobertHarvey looks legit. I'd be happy to find an answer on SO. (I'd probably have normalized the data before hand, but that's another matter)
 
@not-sehe you are so slow
 
Meh. I care. And I do sleep
 
7:33 AM
@not-sehe Speaking of which, I should go do that (sleep, I mean). Talk to you all later.
 
:)
 
"3 Billion Devices Run Java" Oh no.
 
3 Billion Devices were infected with the "Ask toolbar"
 
Ask the question on the main site, maybe someone has some experience with it
 
ok .. thanks :)
 
7:44 AM
you are welcome (even though I didn't help much) :p
 
hi there
@NipunGogia yo do have grammar?
 
You want an RAII-style kart or a reference-counted one? :)
 
@MarkGarcia don't feed the vampire
Jun 28 at 16:22, by thecoshman
If you are new here, please read the newbie hints and keep the acronym list under your pillow. Thank you.
 
I'm not feeding him (yet).
 
if only I could remember where I saw it last
 
7:47 AM
I feel kinda sad
 
Oh no.
 
I just put my GF into the plane
she's out to UK for 3 months
whole summer :/
@sehe AAAAAAAAA!!! hugs
 
WTF. @sehe and @not-sehe.
 
feels almost like I've traded my life and GF for sehe back :P
 
@BartekBanachewicz (and it was worth it, amirite?)
That is what people who can't program usually do when they need a programming job done
 
7:49 AM
@jalf for the first few days probably will feel like that
@MarkGarcia IRTA drive
 
@rightfold let's face it, 'Europe' is a mess :P
 
hi pirate
 
29 messages moved to bin
 
Whoah.
 
@BartekBanachewicz Yeah. I couldn't stand just watching passively
 
7:51 AM
morning person who uses his own face
 
Woohoo! [Rainbowdash], you rock!
 
posted on July 04, 2013

I'd like to take a detour to discuss what moving an object actually does.

 
@BartekBanachewicz o_0
 
@Feeds Who said it does?
 
@Feeds it leaves it in valid state you dumbass.
at least should.
 
7:52 AM
So, on that note. I'm still cutting down on SO time. But I won't try to force myself using account callanetics
2
@BartekBanachewicz At least: could, legally. Also: define "invalid state". I doubt it's true in the sense you mean.
It should be in a proper state that allows destruction.
 
@sehe valid means you can, for example, print the vector you've moved from, but the insides (i.e. value) are undefined.
@sehe or reuse.
 
@sehe so your back to this account?
 
@BartekBanachewicz Not per se. That depends entirely on the implementation. Of course, if inplace destruction (o.~Class()) followed by placement-new counts, then,obviously, re-use is possible by definition
 
Welcome back to sehe
 
Ohai
 
7:55 AM
now I have to change my name again
 
@MarkGarcia That was precisely my reaction when I saw the article
 
@not-TonyTheLion was about to say that :P
 
@sehe I thought about stuff like op=. I would expect that to work on an object moved from
 
@thecoshman Hehe.
 
Let's see what the std library implementations do.
 
7:57 AM
TIL our codebase has file FIFO.cpp in it... Shit like that turns me from regular nerd into MC Hawking all my shootings be drivebys nerd :)
 
My friend just posted a PHP job offer. One of the points there was "you care about code quality"
4
 
room topic changed to Lounge<!!C++>: GF took the boat to the island, Clippy a hike [c++] [c++11] [c++-faq] [no-helpdesk]
 
@BartekBanachewicz ahahahahahaha
 
@BartekBanachewicz Your missing the "not-" prefix on that.
 
@sehe so enigmatic :3
@MarkGarcia If that offer is a joke it's a not- funny one.
 
7:59 AM
@BartekBanachewicz I must admit I share the expectation. I have never seen it stipulated. I reckon that would be in the element-type requirements for the standard container library
@BartekBanachewicz I'd go there. It seems like they have a solid sense of humor
 
@BartekBanachewicz :)
 
Can I have some query on c++
 
You can, if you implement it
 
So @sehe did your accounts get merged?
 
@AbhishekGoswami yes, but you have to write it in proper SQL
 
8:01 AM
Funny how, indeed, clippy is still in the user list
 
@sehe you didn't explicitely leave the room (methinks?).
 
@not-TonyTheLion Nah no word on that yet. But I needed the ban hammer so I didn't wait
 
I mean, I have some question on c++.
 
@BartekBanachewicz Still funny
 
@sehe hehe
 
8:02 AM
@AbhishekGoswami It happens
 
@AbhishekGoswami who doesn't?
 
@Bartek I did not get u
 
I think I recognize the name. Funny. Who else is called Abhishek?
 
@AbhishekGoswami "I have some question on c++" - "Who doesn't have one?"
 
@AbhishekGoswami Does it matter? Ask, or forever hold your peace. Only short questions allowed, since we're not a Q&A site.
 
8:03 AM
@AbhishekGoswami Questions here mostly results in undefined behaviour.
2
 
See Stack Overflow for Q&A
 
hmm
I do not know I have stuck on my exiting code and not able to find out the root cause.
I post this question on stackoverflow also and got lot of negative point without get valid responce
 
someone should help reopen this question since OP changed the code snippet
0
Q: What is the difference beetween '.' and '->' when used in array?

ReignBoughWhat is the difference between . and -> when used in array? That is: (*foo)[i].bar vs foo[i]->bar or: Are they just the same? Edit: Thanks for the fast reply. BTW, the other reference only asked between foo.bar and foo->bar. And I know the difference. But lately, I am reading some sample t...

 
Not again! ......... — Mitch Wheat 3 hours ago
^ Still the same.
 
-4
Q: migration c++ code 32 bit machine to 64 bit machine

Abhishek GoswamiI am working on very legacy code which is migration to 32 bit to 64 bit machine.it generally write file with data which was working fine in 32 bit but having issue in 64 bit machine.When I check the file and found that it is generally contain division of 4 of 32 bit value. I mean if we have 80 va...

 
8:08 AM
@greatwolf still the same
@AbhishekGoswami this question has an accepted answer
well fuck me if "without valid response" sums it up
 
@AbhishekGoswami I upvoted you just because I randomly upvote things I see
 
@AbhishekGoswami if you didn't get a good answer on stackoverflow, then why do you think you'll get a better answer here? Try improving your stackoverflow question instead, so people can give you better answers
 
ok fine
 
@MarkGarcia I upvoted your latest comment :p
 
8:13 AM
I liked the second answer
> This is some really awful code.
 
@Telkitty猫咪咪 Still great! :)
 
@Telkitty猫咪咪 that's not random, that's just idiotic
 
@thecoshman I'm always facing you guys, so yes, my back to my account
 
@sehe ¬_¬
 
8:22 AM
@BartekBanachewicz ಠ_ಠ
 
@Telkitty猫咪咪 Way to go. Not much pedagogical insight there.
 
you are not not-sehe anymore?
 
Strictly speaking @sehe was never @not-sehe
 
why aren't you not being more non-negative?
 
all the negatives
FUCK YOU SQL SERVER, FUCK YOU
 
8:29 AM
The device runs the tests, the screen flashes but it doesn't get the results to the results tool. Wasted half an hour. FML
 
Man, I've wasted days of my life on things that don't work
 
@TonyTheLion what'd it do? Serve you cold buns?
 
> ERROR : [Microsoft SQL Native Client] 'CREATE VIEW' must be the first statement in a query batch.
this ^
 
@TonyTheLion That's a tautology. You wouldn't be claiming 'wasted time' if it had worked, right?
 
I'm trying to create a view with a SQL statement sent from C++ code
@sehe lol
 
8:32 AM
@TonyTheLion So, end batches before create view? Usually you can just 'COMMIT;' before that point, after all, you're doing DDL so (except on PostgreSQL?) there's no transaction support then
 
@sehe DDL?
 
Inheriting standard containers is taboo according to the classic OOP school of thought. However, it think it can be used to add convenience methods. Is it really so wrong?
 
CREATE TABLE/VIEW/USER etc. are 'data definition language' (DDL)
SELECT, INSERT, UPATE etc. are 'data manipulation language' (DML)
 
oh
I see
I hate SQL
 
@TonyTheLion Oh wait, you're using libtds or something similar? Better check the docs on the most free-form of script submissions. (E.g. You don't want 'ExecuteQuery' if there's also 'Execute'). I haven't used this for MSSQL before
 
8:34 AM
> ERROR : [Microsoft SQL Native Client] Incorrect syntax near the keyword 'COMMIT'.
 
puss the wuss, I saw a fake Tony:
 
@StackedCrooked huh?
 
@TonyTheLion DDL + DML are FML :)
2
 
@Telkitty猫咪咪 son of a bitch
 
8:35 AM
looks so much like you (r avatar)
 
@jalf Is it a strange question?
 
apparently I have to use the GO keyword
but if I do it claims incorrect syntax
WTF
 
GO separates the statements
it's one of the (numerous) fucking shitful things in SQL
 
@StackedCrooked it.. seems upside down to me :)
 
> ERROR : [Microsoft SQL Native Client] Incorrect syntax near 'GO'.
 
8:42 AM
"classic OOP" more or less says "inherit everything in order to do anything". It's good C++ practices which are saying "dont' inherit standard containers"
 
createViewsSQL << L"GO\n";
this cannot possibly be wrong?
 
And convenience functions can/should usually be added as free functions instead
 
@StackedCrooked coliru.stacked-crooked.com/… Cleaner, more general, more flexible, less code
 
@jalf I think that advice mostly means to not treat standard containers as polymorphic base classes.
 
@sehe huh?
 
8:44 AM
@sehe Yeah, that's what I would normally do.
 
@TonyTheLion That's the problem I hinted: your API might not accept general SQL script. Imagine it wrapping your statements in session cruft internally
 
@StackedCrooked no, you don't need polymorphism for it to break horribly.
 
@StackedCrooked Okay. So what 'problem' does inheriting solve?
 
@jalf How can this cause breakage?
 
@sehe But they're creating views elsewhere in the damn code
damnit
why are thing that seem to be so simple, so darn complicated here.
 
8:47 AM
@sehe I don't think I can defend the idea here..
 
So never mind..
 
@TonyTheLion Need moar copy/paste then
@StackedCrooked Can it break sausage!
 
@StackedCrooked use in a context where when the object is destroyed, the base class destructor is called instead of the derived class destructor (yes, that is easily avoided when you're careful, but code which requires you to be careful for no gain is probably not a good idea)
also slicing
 
@TonyTheLion Because they were never simple. It's the Windows UX fallacy. Extended to database servers. And, don't complain. You're writing in C++. Pffft
 
8:49 AM
In C++, the advice to not derive from base classes is because it opens up for incorrect usage (even though it can be used correctly without too much trouble), and because what do you gain? Where's the advantage?
 
I don't think slicing is a problem when using non-polymorphic inheritance. It's just a partial copy.
 
A small negative and no positives is still a net negative :)
 
Time to demonstrate buf<-insert(begin(a), end(b)) extension methods again :/
 
@sehe I really really want that to be viable and not a horrible hack!
 
@sehe pfffffffftttttttttttttttttttttttttttttttt
 
8:50 AM
@jalf Me too. But let's have simple class reflection first. And concepts. Then we'll see
 
@sehe demonstrate?
 
@BartekBanachewicz It was in a ACCU presentation. Quite nifty. I think I retwote in case you really want to see it
 
@sehe I saw it.
 
So: go ahead. Demonstrate :)
I'm off, cya
 
oh wait it means it can be an alternative syntax to extension methods
woo.
 
8:53 AM
@BartekBanachewicz that was the point, yeah :)
 
@jalf I never really dig into the presentaion, I saw a funny syntax, but didn't really get into the reasoning. It appears I've missed a bit.
 
tbh, syntactically, it's the best approach to extension methods I've seen. I much prefer it over C#'s :)
in terms of implementation, of course, it might need a bit of work :p
 
@jalf well I'd like too see it wrapped just like @KonradRudolph wrapped his operators
btw, look what I found when browsing old tweets
Overheard today: "Unless you're in kernel mode, you shouldn't be using C in 2013."
does gcc 4.6 have std=c++11 already?
 
9:09 AM
@BartekBanachewicz you mean does it recognize that specific flag, as opposed to std=c++0x?
or "does it have any 0x/11 features"
 
@jalf the former
 
no clue :)
 
quick search suggests no, but newer versions still support 0x, right?
 
I'd suspect not though. It was released before the standard was finalized
yeah, afaik 0x is still valid
 
good.
we're finally moving to C++11 :)
 
9:11 AM
wooo, grats
I wish we were
 
Xeo
Mornin
@BartekBanachewicz Meh, why have "extension methods" when they need a different syntax anyways :|
 
@Xeo different syntax?
 
Xeo
<- vs . or ->
 
@Xeo I like the idea because they basically enable you to define non-operator functions with infix notation (so they can be easily chained)
and using different syntax makes it clearer that they're extension methods, which is fine by me
I don't have any need for them to look precisely like regular members
 
aaaaand it went on
now to see how many platforms will break
oh well, someone just broke the build before me :P
 
Ell
Haha that is awesome :D
 
oh hi Elliot
 
Ell
Hi :)
What is the preferred way to do flags in c++? I first though std::set of an enum. But nobody does that, do they?
 
>C? >C++ STL >98||11 >11 >Y? >Lambda "Can you decipher this chatlog?" I keep a straight face. "With time." "Two weeks." I nod. Woo, holiday!
 
@Ell compile time flags?
 
Ell
9:37 AM
No, runtime flags
 
@Ell unordered_map<string, bool>?
 
Ell
Like Bitsets
 
@Xeo lol
 
Ell
Ahh wait sorry yes I meant compile time
 
boost::mpl::map<string, bool>? :D (most probably just a joke)
 
Ell
9:39 AM
think std::set<StreamFlag> will do
 
@Ell that's runtime
 
Use an enum set for flags?
 
Ell
Okay, I do mean runtime then xD. But it seems everybody just does ¦¦ with integers
 
oh wait nope.
 
Ell
I don't need a map though, I just need a set
 
9:40 AM
@Ell fuck everybody. Also use @R.Martinho's bit operation utilities
 
@Xeo I need this too!
 
@Ell well then you need a set, what can I say.
 
That made me laugh hard
 
I think @thecosh has posted it before.
 
Ell
9:41 AM
but why does everyone do integers?
 
@R.MartinhoFernandes nope
 
Ell
To save space or what?
 
error: narrowing conversion of ‘c::{anonymous}::ALPHA_REF_VALUE’ from ‘const double’ to ‘GLfloat {aka float}’
@Ell ~save~space~
 
Ell
Exactly
 
ok so it seems it's the problem with that fucking narrowing conversion, which is an error
 
Ell
9:43 AM
Can you construct a set from a brace list thing? Std::set<int> set = {1,2,3,4};
 
@Ell Because of C.
C has only one readily available implementation for subsets of a finite set.
 
Ell
Hmm.
I don't need c compatibility
 
@BartekBanachewicz why didn't you use GLfloat for that (what I assume to be) enum class in the first place?
 
@thecoshman meh, not really
 
Enums cannot have non-integral backing.
 
9:47 AM
@Ell yes
 
@R.MartinhoFernandes well I guess that is one good reason to not use GLfloat :P
 
@R.MartinhoFernandes sadface.jpg
 
@Ell Well, it also happens that said implementation is the cheapest one.
 
Ell
Yeah. I just don't like it, it feels wrong
 
went to bed at 4am?
 
9:51 AM
@ScottW Morning
You never answer on Skype anymore, what's up with that?
@ScottW Happy Independence Day!! :)
 
@TonyTheLion you are black listed by him?
 
What a lame excuse.
 
@R.MartinhoFernandes but robor ... I don't see your pic with cicada anywhere
what's the deal with that?
photoshop to the rescue!
 
@ScottW oh you!
I need some love
 
Ell
@Scottw well organise an orgy then
 

« first day (992 days earlier)      last day (3965 days later) »