« first day (1020 days earlier)      last day (3920 days later) » 

8:00 AM
@EiyrioüvonKauyf erm, no clue
 
@jalf dinosaur flip
 
@AlexDan void* is two tokens :)
@EiyrioüvonKauyf you mean you want to be notified when all scripts have loaded, basically?
 
@jalf i want my shit on one page. and no onload and the rest aren't going to work i think. i want to run javascript on an external library it seems :| also i'm calling the function manually - it's a bookmarklet ;) shit has loaded mate
user image
3
we should spread this across the internet
 
@EiyrioüvonKauyf (a) you just said that facebook loads 30 external libraries, so clearly, everything on one page isn't an option. (b) try asking in the JS room (or on SO)
 
@EiyrioüvonKauyf nexus 4 can be loaded wirelessly
Still, they dabble in js :/
 
8:06 AM
@EiyrioüvonKauyf shrug
 
@EiyrioüvonKauyf damn you posted worst worst mobile image
 
@jail : but void* is a type, it will be considered as one token, no ?
 
just for the record, if someone tells you "I'm sorry, I can't help you with that, why don't you try asking in these other places instead?", it is not an invitation to please tell me all about the drama that occurs in those other places
 
@jalf hehe :P. sorry. rant for the day
 
8:08 AM
0
Q: C++ parameter type and efficiency

Red XIIIBasing on what I've gathered from compiler writers value types are much preferred to references/pointers in terms of efficiency. This comes from a fact that a values types are easier to reason about when you don't have to care about aliasing, externally changed memory (which the pointer refers t...

this is a dupe right?
 
@AlexDan const unsigned long long is a type too. Is that one token?
 
@BartekBanachewicz did you read it? i meant the part where you put it in the microwave. we need to distribute this everywhere... then again that would probably raise the apple stock price :|
@Rapptz why would a reference/pointer be slower than a copy .....
 
@EiyrioüvonKauyf if the copied type is pointer-sized? Then you can either pass a copy of the object itself, or you can take the address of the object, pass a copy of the address, and then dereference the copy to get the object
 
@EiyrioüvonKauyf and why do i give a fuck about people microwaving their phones again?
 
#if (__has_feature(cxx_rvalue_references)) that is one neat macro.
I don't think it exists but it'd be cool if it did
 
8:13 AM
@jalf sorry i'm thinking like an array vs a pointer to it. but yeah a pointer to a pointer :| but that's negligible at that point no?
 
Xeo
@Rapptz Clang has it
__has_feature and __has_include too IIRC
 
Pretty useless if only one compiler has it.
 
@EiyrioüvonKauyf often, but not always
 
@jalf what's the edge case?
 
Anyway I remember seeing a proposal for this
 
Xeo
8:16 AM
@Rapptz Dunno if GCC has something similar, but I don't think so.
 
@EiyrioüvonKauyf the one where performance matters? :p
you're doing extra work. If the code is called very often, it can add up
 
@Xeo You don't think it's useless that only one out of 4 mainstream compilers has this?
 
@jalf ??? ... if it's pointer sized i stop caring about trying to make it smaller
 
It would not work on old compilers anyway
 
If I actually wanted to check for features I'd just use Boost's macros but I think it'd be cool if it existed.
 
8:18 AM
Sup sup.
 
In the... Oh yeah morning
 
@EiyrioüvonKauyf Say you're calling a function which takes an int as a parameter. That happens quite often , yes?
 
@jalf yes :|
 
If you call such a function inside a tight loop, then it can make a difference whether you're just passing the int itself, or if you are passing a pointer to the int
 
. use a function reference? uses the same memory, just points to the address
ahh i see
does the compiler optimize for either?
and so would the pointer + dereference or the copy be faster in that case
 
8:21 AM
if you call it once, then sure, it's a matter of a nanosecond or two at the most, but do it 10 million times per second, and it might be significant
 
i'm not sure what the relative performance is
 
@EiyrioüvonKauyf if it can. What if the function is defined in another dll? The compiler can't mess with that, so if the function accepts a pointer to an int, you have to give it a pointer to an int
 
Xeo
@Rapptz Not particularly. It makes checking against features that much easier on that compiler - for the others, you'll have to resort to inaccurate version testing
 
kk
i should benchmark this
 
Xeo
And also, if one compiler comes forward with something like that, the chances are non-zero that other compilers will follow
 
8:22 AM
yup :)
 
... sometime
..... eventually
 
Yeah, but if you're targetting that one compiler, it's kinda silly to have workarounds for lack of features in old versions.
 
.......... one day
 
Xeo
@R.MartinhoFernandes libc++ makes good use of it
 
@Xeo Well it definitely hasn't happened (the snippet I got this from was from early 2012 so it hasn't happened in the past year)
 
8:23 AM
@Rapptz I doubt it will.
 
Me too.
 
@Xeo Doesn't matter. The fact is that it doesn't really help you: why would you care to support clang 3.0 but not GCC 4.7?
And let's not consider bugs and shit. You'll need the usual version test crap at the end of the day anyway.
 
Ahaha! I found it!
Chrome history search is so awful
 
It's a minor convenience at best.
 
I guess with that proposal (if it ever gets accepted, I doubt it though) you can do #define has_feature(x) x > 0 or whatever.
 
8:31 AM
It's totally useless imho
 
It's not.
But a library like Boost.Config is a better option, because it can account for things the compilers fail to advertise.
@Rapptz It's not meant as something normative.
 
oh wait, is that tagline in relation to Telkitty?
 
ok time to sleep
adios
 
> You'll find that UTF-8 is the new Unicode.
 
8:47 AM
What
Also i went to the python room. First thing I've noticed was "python2 cannot into unicode" /cc @R.MartinhoFernandes
 
@BartekBanachewicz If you open at any given moment, I bet you will find one question about it in the first page of questions.
There it is.
 
Yeah was just browsing that.
 
Is char16_t useless?
 
It really looks absolutely useless but I'm not sure if it is
 
8:54 AM
char32_t and char8_t would be the real things, but we got char32_t and char16_t instead.
 
Oh I'm wrong, nvm.
 
For the longest time I thought there was only char_traits for wchar_t and char.
 
I think it's good to have it for completeness, but it is a rather niche thing.
 
because there was only cout and wcout but no equivalent for char16_t and char32_t.
 
8:57 AM
Ah, yeah.
 
@R.MartinhoFernandes well, a lot of widely used apis are stuck in UTF-16 land. Seems like char16_t would be relevant to those.
 
@jalf Yeah, but those use wchar_t, no?
 
c16out and c32out just don't have the same ring to it I guess.
 
why do I have pings about some irrelevance about some other user being a pdeant?
 
@R.MartinhoFernandes Win32 does, others don't (because they often have to work in environments where wchar_t is 32-bits)
Qt uses short
which is just... ugh
 
8:59 AM
@jalf lol
 
Well, it might work for C, but not for C++ because char16_t is a distinct type.
 
OSX uses UTF-16 a lot as well, but I can't remember which C++ datatype they represent it by
 
Still, my point is that those APIs won't really benefit from char16_t (again, ignoring C), because they already use something else.
 
@R.MartinhoFernandes Well, Win32 already made the switch from "wchar_t is just a typedef`to wchar_t is a distinct type", afaik, so seems like switching to char16_t should be doable as well
(disclaimer: I could be wrong :p)
 
I think char_traits is pretty neat but I guess I'm ignorant.
 
9:01 AM
I'm not saying they cannot be fixed, but the possibility is dubious.
 
I think Cat already started prototyping
 
But short is just... WTF
 
We are doing that for real o.O Lounge project.
 
How do you initialise a Qt string?
No readable literals anywhere?
 
@R.MartinhoFernandes plain char literals
 
9:02 AM
@BartekBanachewicz lol
 
With string literals
 
QString foo = "Hello world";
 
Yeah.
 
And if you want o-umlaut?
\xnn shit?
 
or QString::fromUtf8(someutf8data)
 
9:03 AM
Wait, where does it use short then?
 
and fromUtf16 etc
fromUtf16 takes a const short* iirc
 
I don't think switching to something more sensible would be a breaking change would it?
 
Inb4 the server will be in Haskell
 
They can actually just overload it, since they are not a C API.
It wouldn't break anything, except maybe shit with template <typename T> operator T() const but that's something fishy and quite fragile already.
 
Hm I wonder if references could be written as library in Terra
 
9:06 AM
But then the only benefit you get is u"" strings and interop with APIs that return const char16_t*. lol
 
I was writing something with wchar_t and writing L"" was surprisingly painful.
 
Not completely useless, but not amazingly useful either.
 
then again the code was bad and I had a lot of strings to write.
 
America
 
9:20 AM
@TonyTheLion Accounting: if(bill<8000) bill=8000;
 
@jalf one thing I find video tutorials really good for is for overview of new stuff. Before reading a book for example.
what happened to kitty? DNA-ban?
 
It covers medical costs, ($10), accountants fees, ($90), building overheads, ($150) and malpractice insurance, ($7750).
 
haha
yea
 
Every time something seems stupid, there is a lawyer connected to it somewhere, (with the possible exception of my code).
 
Xeo
9:33 AM
hm... Gource is cool to look at
 
@MartinJames I usually think that there are individuals, CEO types, making a lot of money on it as the reason. Perhaps that applies more to evil than stupid though.
 
@JohanLarsson Maybe, but many CEO's are lawyers-in-disguise :)
 
9:50 AM
ugh, I hate the phrase "under the hood"
Thank @LightnessRacesinOrbit for the enlightment ... especially since according to some regulars, you are the second biggest troll in the lounge. — Telkitty 猫咪咪 8 hours ago
Pretty sure she's confusing "troll" for "annoying person"
 
what is the difference?
 
@JohanLarsson 'troll' is child class.
2
 
A troll wants to be annoying.
 
would it be wrong to think of the wanting to be annoying as annoying in itself?
probably a way to write taht in English
 
The Annoying class does not have to implement the Troll interface.
 
9:55 AM
[x] makes sense
 
I smell circular dependencies
 
I never thought kitty was that annoying btw but I read only fragments of the transcript
 
The gravitationally-challenged parking enforcement officer down town is extremely annoying, but I would not describe him as a troll.
 
Xeo
Apparently she has improved her behaviour, but idk, I got her on ignore.
 
hello people
 
Xeo
9:57 AM
@MartinJames "gravitationally-challenged"? You mean he has to live in constant fear of just floating away?
6
 
@MartinJames No but he could extend that class
 
@Xeo Ermm.. not exactly his problem, no :)
Put another way, if he gets any fatter, there will be problems with tides.
 
that would also mean he would start to attract you
 
@R.MartinhoFernandes good point
@JohanLarsson It was fine :)
 
Is gravitation linear distance linear on distance?
 
10:02 AM
@MartinJames You might claim that his employers are trolls, though :(
@Xeo In the UK, we're not allowed to call people "fat".
 
@JohanLarsson Yeah, local motorists are already fitting grippy soft-compound rally tyres to avoid being dragged off the road as they pass him.
 
@JohanLarsson AFAIK most of the annoyance from her consisted of posting/oneboxing stuff meant to shock/disgust/whatever else trolls like to do completely out of the blue. This one last incident was merely the worst ever.
 
@MartinJames dragged into orbit, gotta walk puppy afk
 
@JohanLarsson OK, if it's that time, I'll go get Bailey's lead and head off round the fields.
 
@LightnessRacesinOrbit What about pigs? Can you call them fat?
"He's a fat pig".
 
10:06 AM
@R.MartinhoFernandes If you're actually talking about pigs, it's fine. If you're referring to the gravitationally-challenged parking enforcement officer down town, you've committed a double-sin.
To the Tower with you!
 
Oh, can't call people "pigs" either? What happened to freedom of expression?
 
@R.MartinhoFernandes Apparently it doesn't cover negatively-perceived expressions.
 
@Xeo "gravitationally-challenged" = "double-seater"
 
Xeo
@R.MartinhoFernandes Ooh, so he has wheels and you can drive him?
In unrelated news, time for fooood
 
He can probably roll like a wheel.
 
10:14 AM
I've decided I'm going to start my new job with a very positive attitude and I'm going to make every effort to enjoy it and make the best of it.
5
 
@LightnessRacesinOrbit is it a law?
 
@JohanLarsson No, British politeness
@ScottW Thanks <3
 
ok, that is nice
 
Liar, I'm fat
 
In a few cases I've had British people give me strange looks because I was rather upfront with them. Its very unBritish of me to do that.
@ScottW No you're not
<3
 
10:20 AM
Don't remember if I spammed this here
 
Cool shot
 
Yeah, I really like it, he looks so peaceful.
 
@TonyTheLion That's a very optimistic outlook! I suspect it has a half-life of about a week.
 
I really hate Xcode.
 
10:22 AM
@MartinJames Hey. Don't depress me before I've even started.
 
It's a decay series, positive attitude -> disillusionment -> misery -> update CV
 
Damn you.
I don't want to be doing that cycle for the rest of my life
Its been quite enough as it is
If people like @Xeo and @R.MartinhoFernandes can have a job they like, then why can't I?
 
@TonyTheLion Sorry - not all jobs are radioactive.
 
or even @LightnessRacesinOrbit (I think he likes his job)
@MartinJames haha
 
..some are just poisonous.
 
10:25 AM
are you more cynical than me?
does that mean we need to go have a beer sometime? :)
 
Not at all, just older.
 
lol
@MartinJames So how many jobs have you had then? (If you don't mind my asking)
 
@TonyTheLion s/British/fake/
 
Also, I have three main projects at the moment. The unicode one is radioactive.
 
@R.MartinhoFernandes Yes, exactly that.
@MartinJames ah so you're a contractor.
 
10:27 AM
@TonyTheLion Well, in long long int or FP?
 
@MartinJames Man, that's an awesome way to put it.
 
@MartinJames long long int
 
@TonyTheLion -3036723968
It may have wrapped :)
 
@TonyTheLion Best wishes, anyway. Who knows - your new job may have an LD50 of more than a year.
 
10:30 AM
lol
 
@R.MartinhoFernandes You can laugh now, but aren't you in for a high dose of new job soon?
 
lol
@R.MartinhoFernandes Are you looking forward to it?
 
Shift keys everywhere are weeping. — R. Martinho Fernandes 29 secs ago
 
that guy again
not sure what his fetish for capital letters is, but it doesn't make for readability
also keep thinking I'm reading Win32 code
 
10:35 AM
@TonyTheLion Dunno. I haven't been feeling very well lately.
 
Yeah, wierd. All his CLASSES are shouting, (probably "Please reformat me!").
 
@R.MartinhoFernandes oh :( You mean physically or mentally?
 
Oh, no, I'm fine physically.
 
Right
 
Had to rephrase that for clarity.
 
10:38 AM
@R.MartinhoFernandes You seemed fine to me when I was over there, (well, except just after the gig:).
 
@MartinJames cough
 
> seemed fine
 
@R.MartinhoFernandes Yeah, OK, I was semi-ratted.
 
ratted?
is that another term for drunk?
 
@TonyTheLion Yup:)
 
10:40 AM
oh lol
 
@TonyTheLion I really liked Berlin. There was beer everywhere. I should have gone for the week.
 
Hehe, yea Berlin is a nice city. Though not good for my feet.
 
I think it's just anticipation of meeting my family again. I realised I don't see that trip as going home anymore. That upsets me, for some reason.
Now I'm leaking again.
 
@R.MartinhoFernandes I think I can understand that.
 
If I had gone for six days, I could have travelled Ryanair instead of Lufthansa and saved enough cash to pay for the extra hotel nights. Unfortunately work :(( As it was, my customers tracked me down when I answered my cell while pissed in a Biergarten :((
 
10:45 AM
Who answers their phone when pissed to talk to customers?
 
Is this a riddle?
 
@TonyTheLion Some idiot who's too pissed to check the caller ID before swiping the green.
 
ahahahaha
That probably didn't leave too good an impression.
What the hell is with ?
did Zoidberg quit on us again or something?
 
@TonyTheLion The call kept err.. 'dropping out' and I promised to call back when I had a 'better signal'.
 
I like how the top contributor on the Humble Deep Silver Bundle (which is Windows-only) is currently "@LinuxGamers love ports".
 
10:48 AM
Portuguese fortified wines? 0x8000C000?
 
WTF?
> please delete me
why is he quitting again?
rage quit?
He deleted his twitter account too
 
where does it say delete me?
 
in his profile
 
Yesterday he was just fine.
 
meh
12 hours ago, by Bartek Banachewicz
rightfold deleted his SO account and GH account
 
10:51 AM
Meh, teenagers get angsty everywhere. He'll be over it.
 
He insulted my mother just like unusual. So I didn't suspect anything wrong.
 
@TonyTheLion Yeah, Bartek panicked.
 
I saw that
@R.MartinhoFernandes lol true
 
Is there a 'cooling off' period? Maybe there should be.
 
Xeo
@R.MartinhoFernandes They explained on their Twitter that they simply want to show that they can and will pay for ports, IIRC
@TonyTheLion At the moment, I mainly like the people, not so much the Flash. ;) Although you could see it as a challenge, porting this 3 year old Flash monstrosity from the toddler-days of Funatics to mobile.
Feels quite rewarding when you get something to work nicely on the iPad
 
10:58 AM
Cool :)
The people are as much part of the job as the job itself
 
Xeo
Definitly
 
It makes up for a lot if the people are nice and enjoyable to work with
 
Xeo
If the coworkers suck, the job just isn't fun
 
@TonyTheLion Esp if you work in prostitution.
 
what?
 
Xeo
10:59 AM
@TonyTheLion (Now's your chance! Push your "talk about sex, Tony appears" cliche off to Stacked!)
 
Man, there's a question on one of my pet peeves. Now I'll lurk around it forever dropping comments explaining why everything people suggest sucks :/ So much time wasted.
 
Xeo
Just... answer it?
 
@Xeo Too much effort.
 
Xeo
What question, in any case?
 
0
Q: Convert a unicode String In C++ To Upper Case

PankajHow we can convert a multi language string or unicode string to upper/lower case in C or C++.

 
Xeo
11:00 AM
lol
 
Xeo
'course it had to do with Unicode
Perfect answer! :P
GRAHTHISDAMNSPACEBARGRRRRRRR
 
Xeo
Also, my boss mentioned that he'd really like it if I had a "working" show-case ready for the GamesCom in ~2 1/2 Weeks
 
so hurry up then
get it ready so you can show off and get another pay rise :)
0
Q: Capacitated k-means clustering?

user2567696I'm newbie to algorithm and optimization. I'm trying to implement capacitated k-means, but getting unresolved and poor result so far. This is used as part of a CVRP simulation (capacitated vehicle routing problem). I'm curious if I interprets the referenced algorithm wrong. Ref: "Improved K...

I think this question is too long
 
Xeo
11:03 AM
Yeah, problem being, the artist that knows how all the artist-side flash stuff works is currenly on "vacation", he had twins a few weeks ago.
 
oh damn
well gratz to him, but damn for you
 
Xeo
So I'll have to see what I can do about that.
@R.MartinhoFernandes Oh wow, all of them suggest upper- or lower-casing
Python3 <3
 
@Xeo What's wrong with upper- or lower-casing when you want to upper- or lowercase something?
(It may be that the OP really wants case-insensitive comparison, but to be fair that's just guessing)
 
Xeo
@R.MartinhoFernandes Oh wait, I somehow had in mind that comparision was involved.
maybe from your comment
 
@Xeo One answer suggested it as a use case.
WTF is going on here coliru.stacked-crooked.com/…
 
Xeo
11:07 AM
lol
 
Xeo
@R.MartinhoFernandes Wait, how can transform even change ß to ss?
 
@Xeo That was the first WTF.
The second is... how the fuck... what the fuck... I have no explanation.
 
Xeo
Well, a wchar_t is 2-4 char, so maybe... I don't know, wtf.
 
Waiiiiiiiiiiiiiit.
std::wcout is nasty.
Why the fuck.
 
Xeo
11:11 AM
lawl
 
Locale is en_US.UTF-8 so I wouldn't expect the uppercasing to do anything, but the printing to lie?
 
Xeo
And with that, you can't even really check what ::towupper really does...
 
Hi Guys, I am a newbie,any good ways to learn cocos2d-x?
 
@Xeo It keeps it as is (per the en_US locale).
 
Xeo
mh
 
11:14 AM
But wcout does truly nasty things in it.
I need a different demo.
 
@ScottW you mean official wiki? I read it, but only able to make the player monster game...
@ScottW you mean official wiki? I read it, but only able to make the player monster game...
 
Xeo
I think that in general this is not the right place to learn cocos2d.
 
but i can ask for the pointer ryt?
 
int* pointer = NULL;
 
Xeo
I think you're better off in one of the mobile chats.
@TonyTheLion 0x8120D4E4
 
11:17 AM
Ha, found an easy victim stackoverflow.com/a/17992539/46642
 
lol
 
His fault for mentioning German.
 
Xeo
@R.MartinhoFernandes concat_map! :P
> The second someone goes there, my antibodies engage.
^ Bjarne on static-if in class-scope.
 
WICKET - Watson c Cook b Bresnan 19 (Aus 76-1). Time to tighten the garrote and put the Oz into the ground.
 
11:38 AM
@Xeo In ogonek I might use that in the implementation, but there won't be a character-based uppercasing API (well, sort of; there is a ogonek::ucd::get_uppercase_mapping but that's an advanced API) so clients won't use concat_map.
> and I even dont know hello world programme properly in CPP
 
Ell
@r.martinho is the windows terminal broken beyond repair? I read all these things that its impossible to output Unicode characters outside of the ucs-2 encoding or something. Or have I just made that up?
 
I really don't know. I know that it isn't easy to get that kind of stuff working, if possible.
 
11:58 AM
@Ell 'windows terminal' - who cares :)
 

« first day (1020 days earlier)      last day (3920 days later) »