« first day (564 days earlier)      last day (4370 days later) » 

10:00 PM
so how should I prepare for this interview I'm having?
 
Hmm, too bad I already have a name for my Witch Doctor.
 
@TonyTheLion alcohol
 
@JerryCoffin it's terrifying how good that is, considering it's 44 years old :(
 
10:02 PM
lol
 
Not that I'm actually laughing…
 
I need neat language to embed in a game.
Mono doesn't want to cooperate.
 
@CatPlusPlus I like lua. Easy for people to pick up.
 
10:05 PM
Lua.
 
I don't like Lua. :<
 
Python
 
@CatPlusPlus Java?
 
you like Python, don't deny it
 
C++. Just use libclang.
 
10:05 PM
@MooingDuck isn't it though? I assumed it was quite new when I first saw it, but was wrong by ~15 years...
 
@TonyTheLion let's make this between lua and Java so he has to use Lua
 
Oh wait you don't like C++ either…
 
@MooingDuck but Java makes me sick with disgust, how could you even offer that as an option?
 
@TonyTheLion so he takes lua, obviously
 
at least Python is bearable
lol
 
10:06 PM
@MooingDuck That's a bit like asking a teenager whether he'd rather be tortured for a few hours, or go have sex with Miss Universe.
 
@JerryCoffin exactly
 
Lua is a crap, with a weird C API
 
better than Java
 
@Tony The Lion everything is better than Java, so your statement is redundant.
 
10:08 PM
Yeah, that stack thing is really weird.
 
btw, some of .NET languages could be used for scripts
 
@CatPlusPlus use PHP.
 
@ScottW Horny 24/7.
 
Mono doesn't cooperate. No .NET.
 
@CatPlusPlus what stack thing?
 
10:09 PM
@ScottW Yes, but for a teenager, the disparity is even more pronounced.
 
@TonyTheLion Lua stack thing.
See the API and you'll know.
 
@TonyTheLion Lua's stack thing in the C api. It's hard to wrap your head around
 
@MooingDuck yea I know, I've had to deal with it
 
@CatPlusPlus I tried to write a C++ wrapper, and the more I understood the stack thing, the more I gave up
 
@JerryCoffin what if the teenager is homosexual, or a girl?
 
10:10 PM
Maybe V8.
It's JS, but at least designed for embedding.
 
@classdaknok_t I don't think they'd choose the torture
 
@classdaknok_t What if it's an homosexual girl?
 
@classdaknok_t Presumably you mean homosexual XOR a girl.
 
@Scott I'm not a teenager.
 
@EtiennedeMartel Aw, you beat me to it.
 
10:12 PM
@Jerry Coffin in my English, or = xor.
 
Of course I did.
 
@classdaknok_t that's your problem
 
@ScottW and someone who's eighTEEN is also a teenager?
 
@classdaknok_t You have my condolences.
 
How would you guys interpret this question?
 
10:13 PM
@JamesCuster in English
 
@JamesCuster what about it?
 
@JamesCuster From what I interpret as the subject there, I'd mostly interpret it as "off topic".
 
Well, he just answered me saying what I thought he was getting at -- that he thinks "refactoring a method" can't improve its speed?
It's a really weird question
 
Technically, refactoring isn't supposed to change the behavior of code.
 
10:15 PM
@JamesCuster so the answer is "yes"
@EtiennedeMartel OP doesn't seem to know what "refactoring" is
 
Perhaps, I didn't read the question.
 
(just to be sure, I'm looking it up)
refactoring does not change the external behavior, it may change internal behavior (speed)
 
According to Wikipedia, "Code refactoring is a "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior""
 
@EtiennedeMartel Sure, but unless you're in a real-time system, it's open to question whether speed is considered part of the behavior. Using a better algorithm would normally qualify as refactoring, but could change the speed a lot.
 
So yeah, you can certainly completely change the internals of the function as long as it does not change the output.
Example that everyone sees in basic CS classes: sorting.
 
10:17 PM
any refactoring will in general affect speed. so. dumb question.
it has just snowed, again
should it be able to do that on 2nd of may?
or 3rd, as it may be?
i think this is third and last month of spring, and then it simply should not snow
 
It's 85 F here...
I wish it were colder.
 
@CheersandhthAlf sue
 
SUE THE WEATHER!
 
@sehe in my defense, it was @RMartinhoFernandes that returned .code() not .what()
helllos
wow 13 *'s on a comment
 
@std"OrgnlDave I like how you use "that" instead of "who" when referring to robots.
 
10:28 PM
@classdaknok_t who? you mean whom?
 
template <typename T, class G> grammar_person; grammar_person<english, girl> p({});
that's the correct usage of vagina initialization syntax there
 
I'm kinda bothered that the wiki page for quicksort doesn't mention that it can be done with O(1) extra space.
 
oh?
what is 1, exactly?
 
10:34 PM
`Worst case space complexity O(n) auxiliary (naive)
O(log n) auxiliary (Sedgewick 1978)` It can be done in O(1) extra space. It's just much slower
 
@MooingDuck Add it in, if you can find references.
 
are you saying, in-place sort, or a temporary...
 
@stdOrgnlDave constant space overhead
 
yes but what is the constant
 
Irrelevant.
 
10:34 PM
@stdOrgnlDave Do you understand the Big O notation?
 
It's constant, no matter how many elements you're operating on.
 
so if the constant is HUGE, say, 500mb. that's great then?
 
@stdOrgnlDave I never measured it. I think mine is about 20 bytes + whatever std::partition needs
 
Still constant.
 
10:35 PM
@stdOrgnlDave Big O never mentions the constant unless it's massive. In this case it's tiny
 
If you had constant of 500MB and it was O(n), then it'd be worse, and that's what O() thing is about.
 
@sehe On ideone, what() gives zilch ideone.com/P1GAm.
 
@RMartinhoFernandes I was about to try to add it in, but I ought to find references, you're right
 
sorry guys, not even gonna bother to argue with you about this. you must have gotten your big O understanding from each other because seriously, your basic understanding of the maths there is...let's just say that I would expect better from a starving african baby that is simply named c++
 
10:38 PM
@stdOrgnlDave we realize that it's relevant in practice. However, it's not determinable for an algorithm. Any algorithm.
 
@CatPlusPlus Don't ask me.
 
@EtiennedeMartel Must be UB.
 
Big O is about growth. O(1) means it doesn't grow. There is nothing else to say.
 
@RMartinhoFernandes That's strange. And mildly (very mildly) interesting
 
@RMartinhoFernandes that would be known as an "in place" sort. I'm not saying anything else
 
10:39 PM
@sehe That was the reason I tried outputting code().
 
...........
 
@stdOrgnlDave I doublechecked that last claim, I was wrong. It is in-place
 
thank you :-P
I was literally about to leave the room in disgust
 
So, a traditional quicksort is not an inplace algorithm?
 
@RMartinhoFernandes correct
 
10:42 PM
I never quite understand how 'identical' answers posted later would get more upvotes. And my answer was arguably (quite a lot) more complete from the get-go... — sehe 6 mins ago
Anyone for a pity vote here? It'll be my cap for the day
 
Oh man, you're hitting a new low.
 
@RMartinhoFernandes You know... These days, I have to get myself motivated to even go for a rep cap. I was at 165 without any work. I repwhored for all of an hour and this stuff happens ;)
I'm not fit for this job anymore :)
 
You really need to work on your repwhoring techniques.
 
@RMartinhoFernandes Hints? I can't really be bothered beyond just scanning the incomings. I must admit that halfway that hour I noticed that I was scanning the 'active' tab, not the 'newest' tab. That wasn't very effective :)
 
lol
Really, just grab the nearest noob with memory allocation problems and mention std::vector.
 
10:47 PM
Thanks for the boats. I deserved one at least, and I feel a lot happier going to bed now :)
 
@RMartinhoFernandes So, repwhoring is simply not closing questions that should be closed?
 
I get so frustrated that people are still taught C style C++.
 
whoa, I just thought of a massive optimization for my O(1) space overhead quicksort. now I have to rewrite it :( The optimization should bring it very very close to standard quicksort's time.
 
@EtiennedeMartel You can still vote for them to be closed at the same time. Inevitably the general population will throw you a vote
 
@EtiennedeMartel No one said repwhoring didn't conflict with desired behaviour.
 
10:48 PM
SO MANY PLINKS
I saw that.
 
:)
 
@RMartinhoFernandes I can't find any references :(
 
Ironically, the teenager might elect the torture as it is likely a more interesting experience. And it lasts longer.
The analogy with the lua dillemma seems to be intact still.
 
Holy papayas! There are at least seven Internet people that believe #including non-standard headers is UB. Ok guys, you can give up now. I have found out your little charade. You can stop pretending. I know you set up all these aliases to pull a prank on me.
 
@RMartinhoFernandes link?
 
10:55 PM
You did a nice job at hiding the evidence, but you've made a mistake by taking it too far. It's extremely obvious now.
 
room topic changed to Lounge<C++>: We're undefined. [c++] [c++11] [c++-faq]
 
@MooingDuck I'm not honouring that thing with another link.
 
Our behavior is certainly undefined
However I believe that I myself am fairly well defined
 
@MooingDuck Plus, you're probably in on the prank, so you already know what I'm talking about.
 
@RMartinhoFernandes I give up on finding a reference. I'll rewrite the code to be faster, give it to some blogger, make him mention it, and use that as my reference :/
 
user406009
10:58 PM
Use the improved version of the algorithm itself as a reference. Can't dispute math.
 
@EthanSteinberg that means I have to get it on the internet somewhere first. I'd also have to explain how it works and all that. I can't words.
 
You can't self-cite.
There's some wikipedia rule against it.
 
@RMartinhoFernandes those two messages contradict.
 
@sehe Anything's possible, of course. Somehow, I think I remember being a teenager well enough to know which I'd have, and I can't think of any of the teenagers I knew at the time who'd have done any differently either (even a few who were gay, and at least a few girls).
 

« first day (564 days earlier)      last day (4370 days later) »