« first day (1143 days earlier)      last day (3809 days later) » 

12:00 AM
Heh - the poster I linked above wants us to unzip code from some link and compile, link, run, debug it. I'm gonna suggest 120€/hr.
 
You forgot to post your testcase. You know, the 10-15 line sample program you've been debugging with for the past three or four days. — Lightness Races in Orbit 4 secs ago
I love me.
 
@MartinJames it's jaba
 
java the cunt
 
user3010322
@LightnessRacesinOrbit I love you too. <3
 
<3
I love you loving me
 
12:02 AM
@ThePhD you & scott should have an open relationship
 
@sehe Oh, you mean auto-malware.
 
user3010322
@Telkitty I think regardless of what I've done, ScottW has made the relationship very open.
 
Together they could do beautiful pair formatting.
 
@MartinJames also. And I mean: why post this?
 
user3010322
@KerrekSB Mmm, yeah, I want you to put everything you can deep in my curly braces~
 
12:03 AM
au pair programming
 
@sehe Letting cheap 17-year old continental girls fix your CSS margins for free.
 
@sehe I didn't notice it was jubba until too late.
 
cheap != free
it's either cheap or it's free
 
"See the world", they say. "Make a difference", they say. "Free board and lodging", they say. "Just fix those template errors..."
@Telkitty Well, au pairs are cheap (but not free) to get to come over, but once they're here you can coerce them to solve complex problems without further pay.
Amazingly enough, no matter what time of the day or how pointless the original post, there's always someone who will edit a massive wall of code and format it nicely within minutes.
 
@KerrekSB Yeah - they don't put that on the posters. There should be legally-enforced warnings, like 'Smoking may damage your health', 'May contain nuts', 'May involve some css margin adjustment', 'Font may be off by one pixel'.
 
12:08 AM
"Sure you can have the evening off. Can you just quickly center that for me? In two columns, if you don't mind?"
Do we have a CSS chat room?
I'm tempted to lurk
 
user3010322
There might be one.
 
user3010322
I need to convert a member function to a static function.
 
user3010322
Including the state of the member function. <_>
 
user3010322
Sounds like I'm gonna need some global state, desu.
 
12:10 AM
:13260958: Oh lord, give us our daily troll...
 
@ThePhD Oh gawd...
 
user3010322
What? It ain't my fault. :c
 
@ThePhD you suck nananana
 
zch
Why do you think you need it?
 
@zch look above
basically everytime he says that we discover a major design flaw
 
12:12 AM
Well, put all the state in a class instance and pass it in as a parameter.
 
eh, we've been over that like 100 times already
he's just repeating that over and over for whatever reason
I'm not even angry, but we could really talk about something actually nice instead
 
@BartekBanachewicz Oh, right:(
 
user3010322
=[
 
user3010322
It's just...it's just for Lua...
 
user3010322
I wanted to call C++ functions from Lua, and was hitting a brick wall... I'm sorry... :c
 
12:14 AM
OK, how about 'I just remembered I bought pizza. I'm gonna get one out of the freezer now!'.
 
Use SWIG
 
user3010322
SWIG?
 
> C++ rectified this a bit with the std::basic_string template, but plain character arrays expecting null terminated strings are still pervasive. This is also imperfect because it requires heap allocation.
 
@ThePhD use Lundi.
 
@KerrekSB oooh sounds soooo sexy
 
12:15 AM
Do, say, C# or Java strings not require heap allocation?
 
@Pawnguy7 dioaf
 
@ThePhD you are supposed to google that
 
Yes, no, maybe
 
@Pawnguy7 What is this "heap" you speak of?
 
I'm not swigging anything at 00:15 on a Monday morning, and besides, my beer fridge is empty again:(
 
12:16 AM
@LightnessRacesinOrbit hm?
 
@ThePhD Sounds like you want coroutines
 
@Pawnguy7 =)
39 secs ago, by Kerrek SB
@Pawnguy7 What is this "heap" you speak of?
 
@KerrekSB That reminds me - Anne's car passed its MOT without any bill >£500. Just about the first time ever.
 
@MartinJames Speak for yourself. It's 00:16 on a Monday morning and the red wine is going down quite nicely still
@MartinJames Flying colours last month. £25. Ta.
 
"free pool" or whatever they said?
 
user3010322
12:17 AM
@CatPlusPlus That looks interesting. I wonder how it's done on the inside...
 
I don't understank why begin and end functions should go into a legacy namespace or what is that namespace anyway. Anybody? :(
 
@LightnessRacesinOrbit Heh - I had too much lubrication at lunchtime. No more till tonight.
 
@Jefffrey what are you doing?
 
@ThePhD Lundi is opensource
 
12:19 AM
@MartinJames I think I'm missing the context :-(
 
@Pawnguy7 Giving the matrix class a nice for (auto& i : matrix) loop, hopefully.
 
lol I am totally not advertising
 
@Jefffrey just have begin() and end()?
 
Xeo
@Jefffrey The legacy namespace is just an example, a placeholder for whatever namespace the class that should get begin/end resides in
Just give it member begin/end
 
@LightnessRacesinOrbit Fine, as is my own motor. Unfortunately, whenever Anne says "I've got a problem with my car", I can feel my credit cards literally shaking with fear in my pocket.
 
12:20 AM
if only we could put int in legacy namespace
 
What have you against ints?
 
@KerrekSB 'What is this "heap" you speak of?'
 
@Pawnguy7 you can't ADL them
 
@BartekBanachewicz namespace std { using Integer = legacy::int; }
 
12:21 AM
@KerrekSB Pretty sure legacy::int is illegal, no?
 
@MartinJames Ah, zing. I recommend bicycles, easier to fix, and less space consuming when scrapped
@sehe #define int __int. Fixed.
 
Xeo
@Jefffrey No.
 
user3010322
@sehe What are coroutines? o.0
 
Xeo
If you have control of the class, just have member begin/end functions
 
@sehe Can you expand ADL?
 
user3010322
12:22 AM
@BartekBanachewicz I'm looking... can't quite see where, though.
 
@Pawnguy7 AAADDDLLL
 
@ThePhD which part do you want?
 
@Pawnguy7 You can too.
 
@KerrekSB It's a word-asssociation thing. The SO/chat text says 'heap', my brain reads 'Fiat Croma'.
 
@ThePhD The stuff you google, once Pawnguy is done using it.
 
12:22 AM
@MartinJames I sense a world of pain there...
@MartinJames It's not your fault.
 
@Xeo Hmm. Oh, yeah, that works, too. I didn't expected that, for some reasons.
Thanks.
 
@KerrekSB You can have no conception. The wipers failed and it cost, in the end, over £1000.
 
user3010322
@BartekBanachewicz I found it. You're using lua_touserdata to do it, it seems...
 
@MartinJames I take it back, I recommend garbage collection
 
@LightnessRacesinOrbit :P
 
user3010322
12:24 AM
And some virtual dispatch. That's a lookup for every lua -> C++ function call. ... Hm. Looks like a good way to go, I guess.
 
@ThePhD you have to do that lookup in _G in lua internals anyway
seriously, stop thinking about performance
 
@KerrekSB I'll turn to PHP server scripts and js jobs before I ever contemplate ever going near any Italian car ever again.
 
stop thinking about sex
 
user3010322
@BartekBanachewicz _G ?
 
the global table
 
user3010322
12:27 AM
Ooh.
 
Yeah yeah. Just when I explained it
 
:13261163 I'd say performance in bed is how quickly you can recover for another day in the office while still slotting gym hours in.
(I discovered the context eventually)
 
I hear slotting the gym hours in helps with that bed performance
 
@ThePhD the _G point
 
@sehe Wild rumours
 
12:29 AM
How can I be expected to think about sex or bed-performance when I have a pizza defrosting?
 
@MartinJames Multi-tasking
 
@MartinJames Bed or sex-performance, presumably, unless your nightlife is really strange...
 
"I am not going to have sex until you piss into that hippo" ?
 
'Ding!' "Oh, sorry love, Pizzas Interrumptus".
 
Saves her from ending up with a pizza in the oven
 
12:33 AM
This chat room has jumped the shark. I'll be in the CSS room for the next 72 hours.
Expect all margins adjusted by dawn.
 
That's a long night....
Yay, 93k. BYE
What moron accepts that answer and not mine? Well, "user1476992", I suppose. Ah, that "user1476992"...
 
What moron writes an answer with SQL and PHP and expects to be rewarded?
 
the last php question with a positive score was 48 minutes ago.
are php questions that bad?
sucks
 
@sehe Fair point. To be fair, I was rewarded with 50 sweet repz...
@Rapptz Yes. And, oddly, is largely going that way now too.
 
at least is good
 
12:42 AM
@Rapptz too bad C++11 isn't
 
cute
 
aye
Well, as I said, I'm off. Going to go for a smoke and wait for my ex-fiancée to get home from seeing the guy she's fucking. Y'know, just to say goodnight.
twat
 
Goodnight!
Put one in the chamber, but leave the safety on until you have your shot.
This question is just so sad...
http://stackoverflow.com/questions/20319191/how-important-is-sql-to-php
 
@MartinJames Thought I'd add a few extra to shoot the corpse...
I mean, it always makes me feel good in Halo!
@MartinJames Don't know why I answered...
 
1:01 AM
@BartekBanachewicz hey when a lua function returns multiple values do you pop all of them?
I can't find the answer online oddly enough :|
 
Or in Lounge<C++>, oddly enough
 
yeah he's not here
 
chewing a banana
or possibly banana-flavoured chewits, not sure
 
Pop goes the Bartek.
 
1:16 AM
"cannot call member function without object"
I wonder why I need this-> here
 
This rings a bell
Impossibru to search for though, of course, amidst all the newbie shite for that error
 
yeah when I searched all I found were people doing MyClass::function_name
 
Is this in a trailing-return-type decltype? That's not part of the body, so <something here>.
 
the function call is long
template<typename... Ret, typename... Args>
auto invoke(Args&&... args) -> decltype(this->invoker<Ret...>(Bool<(sizeof...(Ret) > 1)>{}, std::forward<Args>(args)...)) {
    return this->invoker<Ret...>(Bool<(sizeof...(Ret) > 1)>{}, std::forward<Args>(args)...);
}
 
there you go
 
1:20 AM
without this-> it failed to compile
 
interesting
 
I had a quick scan through the most obvious places in the standard, but couldn't find a rule; odds are it's buried deep within the most horrendous parts of lookup rules.
3.4.1/7 maybe? Is your invoker found lexically before or after invoke?
 
it's before invoke, a private function in the class.
 
Mm not quite that then. But still, I'm sure it's something similar. You should post an SO question and either wait for answers to roll in, or post your own once you've figured it out
 
1:25 AM
@Rapptz POI/specializations
 
Meanwhile, I've asked Seth for comment on that answer I linked to
 
That had me confused. The namegänger again
 
POI?
 
Point of Instantiation
 
2:08 AM
Oh men, I wish there was a type trait to get the number of elements in an enum class.
 
make a count variable at the end
 
Yeah, but then, every time you use that enum class, you have to assert that the last variable is not valid.
 
hi
 
@Jefffrey aren't you trying to assert if a value is within the range anyway? :/
what if your enum values aren't contiguous because of reasons :p
 
@mike Hello.
 
2:15 AM
Sorry for the spam. New to the chat feature. Just trying it out.
 
@melak47 what value and what range?
 
@ScottW you're right Gus is pretty bad ass.
 
@melak47 that's the main reason why I want a type trait for that
 
@Jefffrey I thought you were trying to validate if a value is a defined enum value by checking its underlying value gainst the count of values
 
@mike That's fine. I was fearing an incoming SQL question, TBH..
 
2:16 AM
Oh, nope.
I was expecting an -derp question TBH.
Sorry.
 
@Jefffrey what are you trying to do, then?
 
@melak47 Fuck! You got me, I'm trying to use std::array and an enum class to give meaning to those magical indexes. :(
And yes, I know about std::map.
 
hehe
I just put two maps in my enum <-> string "parser" :p
requires manual initialization though ._.
 
I thought really hard as to why anyone can possibly want to know the enum size without requiring some kind of range, but nothing got to me. :(
@melak47 Yeah, that's a little ugly.
Welp, time to go to bed.
 
	enum Semantic
	{
		Binormal,
		Normal,
		Tangent,
		TexCoord,
		SV_Position,
	};
	const EnumParser<Semantic> SemanticParser
	{
		{Binormal, "BINORMAL"},
		{Normal,"NORMAL"},
		{Tangent, "TANGENT"},
		{TexCoord, "TEXCOORD"},
		{SV_Position, "SV_Position"}
	};
 
2:22 AM
@MartinJames I assume you use Vim for your C++ dev?
 
@Jefffrey night :)
 
@melak47 that's nicer than expected
 
I'm not sure if there is any way around initializing any enum related thing like that by hand :/
if the enum values are automatic, then you could possibly iterate over them with a "count" or "end" value...but there'd be no way to detect if it's actually such an enum
 
Yeah, well, good night everyone.
 
night
@ThePhD hey there
 
user3010322
2:31 AM
Ohaithere.
 
user3010322
Did everyone int eh room die?
 
user3010322
in the room*
 
looks like it :p
 
@mike Nope - I use that avatar to try and wind up those who do use a descendant of an editor from the 70's that was designed to be used from a 9.6Kb serial terminal like DEC VT100.
 
user3010322
@melak47 So how're things going?
 
2:36 AM
@ThePhD fine. C++/CLI thing works fine in both directions
 
user3010322
Sweet. :D
 
user3010322
What's it used for again?
 
for not using angelscript :D
 
user3010322
>.>
 
user3010322
Melak
 
user3010322
2:37 AM
melak, pls
 
user3010322
y u do dis 2 urself
 
o.O
whaddya mean
 
user3010322
y u use da angel script
 
I'm not
that's what I just said :p
now I'll be able to call C# assemblies, and drop angelscript :D
lol
 
lol ooops, didn't read far back enough :)
 
user3010322
2:42 AM
Ooh.
 
user3010322
So you're scripting with C#.
 
user3010322
I guess it's a good scripting language?
 
I suppose so. and the distinction between script and plugin is moot :)
 
user3010322
:D
 
2:59 AM
and I don't even have to do any icky COM stuff
the wrappers don't mess with how the C++ implementation is used in C++ :)
 
user3010322
... I, uh
 
user3010322
Don't follow at all. :O
 
user3010322
How the C++ implementation is used in C++?
 
C++ host wants to invoke a script on some objects, the script wants to invoke some methods on those objects which do stuff with possibly other objects
so anything in the host that's supposed to be exposed to the script has to be COM compatible :/
 
user3010322
... Uhhhhh.
 
user3010322
3:02 AM
You've really lost me. <__>
 
user3010322
Explain it to me like I'm 2. :c
 
you want to invoke a C# assembly from C++
 
Best way is to host the CLR, I think.
 
@EtiennedeMartel I just have a C++/CLI wrapper for either direction now
 
Sounds good.
 
3:05 AM
@ThePhD the C# side would need to implement IUnknown, be comvisible etc. But now you also want to call back into C++ from that C# assembly...so the C++ classes you want to call also need to be COM compatible
 
user3010322
Sounds lame.
 
user3010322
What's the fix?
 
not using COM :D
C++/CLI can link to a native C++ implementation, provide wrappers, and be accessible from C# like any other managed class, and the other way around
 
user3010322
Okay.
 
so now your class methods don't have to return HRESULT and take output variables as pointers etc :E
CppImpl impl;
CsCliWrapper plugin;
plugin.process(&impl);
 
user3010322
3:11 AM
Uhm.
 
^now the C# assembly can operate on CppImpls without any mess in my C++
 
user3010322
@melak47 Oooh. Now it makes sense.
 
user3010322
I think I'd understand it more if I saw it in action, though.
 
I can show you the project where I tried this, not much "action" there though :)
 
Can you give a right?
 
3:17 AM
I am not a lawyer :E
 
Like.
In the US, say, you have the right to vote, or whatever.
> a moral or legal entitlement to have or obtain something or to act in a certain way.
I am not positive if rights can be given.
 
3:36 AM
@Pawnguy7 The theory is that "rights" are something to which you're entitled, so you may be deprived of them, but not really given them (because they were yours to start with).
 
@ThePhD do you want to look at the solution, or are you not that curious :p
 
user3010322
@melak47 Uhhh. Sure. :D
 
check your dropbox :)
 
user3010322
DOWNLOADING 36 FILES 80 WHOLE KB JESUS CHRIST BREAKING MY BACK HERE MELAK
 
you also got a free 23.5MB sdf file. :D
 
user3010322
3:45 AM
q_q y u no store SDF files off-disk somewhere? :c
 
forgot :c
 
user3010322
Also
 
user3010322
Are you gonna support templates? <3
 
?
 
user3010322
E.g. Wrap<CppImpl> ? :D
 
user3010322
3:46 AM
Where CppImpl is the target of the class that you want to expooose?
 
I'm not sure, hows the template supposed to expose functionality automatically?
 
user3010322
I dunno.
 
user3010322
Was just curious.
 
so, you can see how the wrappers are pretty straight forward, no-nonsense? :)
 
user3010322
Uhm.
 
user3010322
3:53 AM
I guess so?
 
compare with
I like the C++/CLI approach better :3
I'm hungry
 
Cannot sleep, as usual.
 
haha
guess you're stuck with us :p
 
user3010322
For allll eternniiiittyyyy :D
 
4:08 AM
wut
 
Walt didn't die, that sucks.
 
apparently, you're right
@Rapptz hm? what?
 
they brought him to the desert and everything
 
what episode are you on now?
 
I was hoping he'd die
um
S4E11
iunno, I watch it in the background while I work on other things
 
4:14 AM
I do that, too. Now I have no shows left to watch, because they're all too fresh in my memory still :p
 
@Rapptz what are you watching again?
 
Breaking Bad
 
Right, are you liking it?
 
do you always wait til a show is over, then marathon through it? :)
 
yes
but I have work tomorrow so I can't power through it anymore
 
4:19 AM
ask your boss for another screen :D
 
lol
the end of season 4 feels like the real ending of the show
I'm not sure how they can prolong this for 15 more episodes.
then again I'm not really done with season 4
 
4:34 AM
How on earth does this not give any warnings?
 
why would it?
 
what warning would you expect?
@chris since you're not using the initialization list in the constructor, your string members will be default constructed, so assigning says = howIspeak; is fine, if that's what you mean?
 
I expected unused assignment and extra semicolon warnings.
Well, the semicolon one being an error because of -pedantic-errors.
 
why would extra semicolons be a warning?
 
@melak47 I guess it's just GCC, but coliru.stacked-crooked.com/a/bb4480bf9b9ed682
 
4:43 AM
hm.
 
And I'm honestly clueless about the lack of unused assignment warnings.
Or variable set but not used or w/e
 
@chris Oh, you are looking at the same question :3
 
@Jefffrey Yes, I am.
I probably wouldn't mention returning by value. Even before C++11, that wasn't much of a problem.
 
wat
Has that something to do with some kind of optimization?
 
(N)RVO is great.
When did MathOverflow happen?
 
4:52 AM
I see.
Is that even legit? Yes it is
 
From what I can tell, it's math.stackexchange.com on steroids.
 
120
Q: Differences between mathoverflow and math.stackexchange.

Prasoon SauravWhat are the differences between MathOverflow.net and Math.stackexchange.com? Why two communities for Mathematics? Wasn't one enough?

 
@JerryCoffin Oh, thanks. I just got to reading the help centre and found "MathOverflow's primary goal is for users to ask and answer research level math questions, the sorts of questions you come across when you're writing or reading articles or graduate level books."
 
So, one is for any level, and the other is only for expert level?
 
@Jefffrey That's about it, yeah.
 
5:01 AM
Isn't that stupid?
> The community at <SITE> is not interested in the typical question here. It is too elementary, and they don't want to be flooded with people asking basic <TOPIC> questions. Conversely, most <SITE> questions would not be well suited to the audience here.
Cannot be the same be said of any other SE website? Including SO?
 
I'm of the opinion that there should be a reasonable audience for either.
 
5:19 AM
(removed)
 
user3010322
(removed)
 
It was not as funny as I thought! OK? :<
 
5:31 AM
@Jefffrey The same is probably true to some degree of many sites, but I think in the case of mathematics, the degree of difference between experts and the rest of us is often much greater.
 
6:01 AM
@Jefffrey ok
 
Good!
Night
 
Just woke up :(
 
6:29 AM
:/
 
Next time when a bird flew out of the bush and hit my car, I will be more experienced - I will stop at the nearest safe place to check out the bird.
The last two times, I have been panicking, and did not checkout the birds afterwards ...
Not that I wish to hit another bird ever!
 
I don't like waking up.
On Monday.
 
I don't think many people do ...
 
lol
I don't get it.
 
I have too many things to do, but I am not doing any ... I suck :(
 

« first day (1143 days earlier)      last day (3809 days later) »