« first day (1288 days earlier)      last day (3658 days later) » 

12:01 AM
which is good because I can now listen to it like new
 
@Borgleader Well, I often, (temporarily:), put a return right at the top of a function as part of debugging stuff. I still expect the app to compile.
 
return to sender
 
@MartinJames wouldnt be too hard to comment out the following code =/
@StackedCrooked return of_the_jedi;
 
Evening.
 
good evening
 
12:06 AM
@Borgleader Well, it depends on how big, and how easily identified, the following code is:) I don't want to post an example from my own inherited stuff because I don't want to be banned from the Lounge for grossly offensive behaviour:)
@StackedCrooked Exactly - stops 'Address unknown' from the bad code in the function:)
 
@StackedCrooked OK, as soon as I get a suitable chance, I'll use the EP lyrics in an exception message.
 
great :D
 
Not much computer-related rymes with 'zone':(
 
user1804599
I’m reading SICP.
 
12:14 AM
what part?
 
user1804599
All of it.
 
user1804599
Except the forword (duh, who reads those).
 
'Return to sender, file path unknown, no such foldah, no permisshone..'
 
user1804599
So poetic.
 
12:16 AM
It's bad, but best I could come up with. It's going in the backup module anyway.
 
user1804599
It is so fucking hot inside.
 
take off all your clothes
 
user1804599
Yes, Master.
 
user1804599
Actually the only thing I’m wearing is underpants.
 
@rightfold Funny you should mention that - it seems to have got warmer here too. I'll check the temp. outside when I get another coffee.
 
user1804599
12:17 AM
(Who wears anything other than underpants in bed?)
 
I'm only wearing a t-shirt and shorts in my office. No heating on except 2 boxes.
..and the boxes are idle 'cos chatting instead of doing real work.
 
user1804599
I think languages should make it easier to decompose functions by using extremely concise syntax and type inference.
 
user1804599
(Or dynamic typing instead of type inference if applicable anyway.)
 
Oooh errr... static typing fight... OK, I'll go do some real work:)
 
You know, that rap song with the lyrics it's getting hot in here so take of all your clothes was released 12 years ago. That
 
user1804599
12:23 AM
No, that’s not my point.
 
makes me feel old.
 
user1804599
It’s extremely irrelevant.
 
Damn. Where did all them years go.
:P
 
user1804599
But if you have to type lots of code just because you have a function and you want to split it into two functions, it keeps people from doing that.
 
user1804599
Speaking of rap. Time for Eminem.
 
user1804599
12:26 AM
> We have now considered the elements of programming
 
user1804599
Hurray! \o/
 
I love Boost Spirit, but this is getting a bit too masochistic for me. If it's undocumented, I'd stay away. In general, utree isn't slated to stay: comment of the dev on the topicsehe 48 secs ago
 
user1804599
I’m hungry.
 
user1804599
Let’s see what I have in stock.
 
I'm slowake
@rightfold Ketchup flavoured...
Night all
 
user3010322
12:31 AM
Night.
 
EPIC FAIL: 'Help - due at midnight'...... it's 01:30 here!
http://stackoverflow.com/questions/23305035/linked-lists-assignment
Yes, of course it's a linked list 'question'.
 
user1804599
@sehe Nah.
 
user1804599
Noodles, it is.
 
user1804599
> We begin by considering the factorial function
 
user1804599
Just for a change, because that’s rare in functional settings. :)
 
12:42 AM
heh
factorial and fibonacci. they really need to come up with some new material.
that's all i ever hear about.
 
user1804599
Speaking of books.
 
user1804599
I should still burn that book about web development that I had to buy for college.
 
that bad?
 
user1804599
It is horrible.
 
user1804599
It doesn’t mention SQL injection, yet the example code is full of such vulnerabilities.
 
12:48 AM
heh. sounds about average.
 
user1804599
Web development isn’t something you should learn about in the first year of college anyway. :S
 
user1804599
If you’re 17 and you haven’t programmed before, you have about five~seven years of not making stuff to catch up in a single year of college.
 
i got my first PC when I was 18
 
user1804599
1:17 AM
i got my first PC when I was 9
 
user1804599
I still know what led me to discovering software development.
 
user1804599
I wanted to make a program.
 
user1804599
So I fucking googled “programma maken.”
 
user1804599
And then I had to go to the dentist. :D
 
2:35 AM
good noon
 
user3010322
2:51 AM
noon good
 
non god?
 
user3010322
Is there a template function
 
user3010322
that takes the template parameter and no arguments
 
user3010322
and just returns a default constructed version of that?
 
template<typename T>
struct defaul_value { static const T value = T(); };
 
user3010322
Is there a std:: version of that?
 
3:14 AM
no
what if a type doesn't have a default constructor?
what are you going to do then?
 
user3010322
Laugh.
 
user3010322
These types have default constructors; that's what I care about. :D
 
user3010322
Okay.
 
user3010322
Arbitrary constructors work, so long as you provide that information when you make the userdata<T>
 
user3010322
std::identity<T> is C++14 ??
 
user3010322
3:22 AM
... Or just MSVC specific. Damnit, MSVC. Fuckin' lying to me.
 
there should be sol::identity<T>
 
user3010322
I was going to cheat with multi_return<T>::type()
 
nope
 
user3010322
But that works too.
 
there isn't
 
user3010322
3:23 AM
Welp, makin' it. :D
 
multi_return<T>::type is the same
 
user3010322
It's true.
 
user3010322
But identity<T> conveys intent better, I guess?
 
std::common_type<T>::type is the same too
 
user3010322
Ooh
 
user3010322
3:23 AM
I can go for that, then.
 
@LightnessRacesinOrbit FFS What is this I don't even.
 
lol
hi robot
 
user3010322
Robot lives!
 
@ThePhD Why not just write T{} directly?
 
user3010322
... Or wait, no, it's like early morning where he is.
 
user3010322
3:25 AM
@R.MartinhoFernandes variadics with MSVC.
 
o_O T{} has no variadics
 
user3010322
Args()... is not valid, neither is Args...() (I know the latter is silly, but I tried it for science).
 
MSVC has shit up my code base
T_T
 
user3010322
Listen,
 
user3010322
listen.
 
user3010322
3:26 AM
It's for the greater good.
 
thought this might interest you
 
If you say so
 
@ThePhD MSVC never is.
 
user3010322
:(
 
user3010322
One day, I'll be free.
 
user3010322
3:30 AM
FUCK
 
user3010322
For some reason, I can't pull the arguments off the stack
 
user3010322
What is this bullshit.
 
user3010322
This is why the stack needs to be properly cleaned up.
 
user3010322
If I don't figure this out, I'm fucked. =[
 
MSVC is literally cancer.
 
3:34 AM
try to tell that to microsoft
 
user3010322
People have.
 
user3010322
I even have, while I was there.
 
user3010322
LOL
 
user3010322
Fucking VC++
 
user3010322
auto fx = [&obj] ( Args&&... args ) {} // compiles
auto fx = [&obj] ( int a, Args&&... args ) // HOLY FUCKING SHIT CALL AN AMBULANCE
 
3:51 AM
Heed my words: pretend VS doesn't support variadics at all.
It's horribly broken.
I spent almost a week butchering my boss's code to get it compiling on MSVC because of that.
 
user3010322
Well, I managed to whip it into shape...
 
user3010322
But I've run into a problem with lua. :|
 
user3010322
For some... utterly bizarre reason
 
user3010322
a '0' is dumping itself on the stack
 
user3010322
And I can't stack::pop_call it.
 
user3010322
3:56 AM
Because there's this fat... thing, in my stack
 
user3010322
It works with 1 argument.
 
user3010322
Works perfectly fine with one argument.
 
user3010322
But two? Nope, something appears on the stack beforehand.
 
user3010322
Why? Who knows. But it's there.
 
user3010322
The bizarre thing? lua_gettop reports the correct number of arguments.
 
user3010322
Lol
 
user3010322
Immediate internet response.
 
user3010322
Unless, they're the same people?
 
user3010322
Nope, their philosophy says
 
user3010322
they're different people
 
4:05 AM
@ThePhD ...and you know if you read it on the internet, it has to be true!
 
user3010322
Precisely!
 
I don't get codedicks, maybe it is too early
 
user3010322
@JohanLarsson codebabes.com
 
@ThePhD Wont load for me
 
user3010322
Da fuck
 
user3010322
4:06 AM
they don't even use www ?
 
> It's not just you! codebabes.com looks down from here.
 
user3010322
No, there's no www on codebabes.com
 
same here
 
user3010322
I don't know what prefix they're using because firefox seems fit to hide it for me.
 
user3010322
@JohanLarsson I fixed it.
 
user3010322
4:07 AM
http://codebabes.com/philosophy
 
ah now
 
user3010322
Yeah, no www
 
user3010322
Apparently it's just not allowed for their website?
 
user3010322
Maybe it's part of that initiative someone else linked here, about dropping the "www" from websites.
 
user3010322
Whatever.
 
user3010322
4:09 AM
Aww, they don't have actual videos.
 
user3010322
Come on now, if you're gonna spoof, spoof 100%.
 
@ThePhD Who does?
 
yes both are strange
 
user3010322
@R.MartinhoFernandes codebabes
 
user3010322
Oh, wait
 
user3010322
4:10 AM
Who does?
 
No, you just say it doesn't.
 
user3010322
Yeah, I misread. Uh. Most websites use www?
 
user3010322
It's just bizarre that you actually can't find it when you punch in www.
 
user3010322
Usually htere's like some automatic pruning at least, from the browser's side.
 
No, there's nothing.
The www subdomain is not special in any way.
 
user3010322
4:11 AM
vOv
 
user3010322
My misconception, then.
 
user3010322
I don't know
 
user3010322
What the hell to do about lua
 
user3010322
It's.... I just... ;~;
 
@R.MartinhoFernandes It's special enough that people give it a special meaning.
 
4:14 AM
like 13
 
user3010322
@Rapptz Can you, like
 
user3010322
pop something off the middle of the lua stack?
 
no
oh
there's lua_remove(state, int index)
 
user3010322
Nn.
 
..?
 
user3010322
4:21 AM
Feels wrong, man.
 
user3010322
Whole situation feels wrong.
 
user3010322
Also what the bloody fuck, why aren't your changes being merged into my repo. ;~;
 
well you're pretty bad at git
 
user3010322
Ah
 
user3010322
The first argument is __self
 
4:28 AM
what
 
user3010322
The first argument is a table
 
user3010322
The new object you're creating
 
there's no such thing as __self
 
user3010322
Well
 
user3010322
it
 
user3010322
4:29 AM
the thing
 
user3010322
we're filling with data
 
user3010322
whatever it is
 
I mentioned before that stuff:test(1, 2, 3) is equivalent to stuff.test(stuff, 1, 2, 3)
 
user3010322
Yeah.
 
user3010322
I wasn't thinking in terms of that
 
user3010322
4:30 AM
That would explain the extra thing between me and the arguments
 
user3010322
Would it have killed them to do it in reverse order, though?
 
brb dying of hunger
 
user3010322
Dude
 
user3010322
Fuckin' eat something.
 
Easier said than done bud :(
 
user3010322
4:31 AM
Grab some lettuce leaves and stuff them in your face at the least
 
4:57 AM
ITT @Rapptz is a rabbit
 
I got some eggs.
and then I made eggs.
 
user3010322
See?
 
user3010322
Wasn't that hard. :D
 
user3010322
5:13 AM
@Rapptz Did you write those check functions that also pop?
 
no
 
user3010322
Hm.
 
just use type_assert
 
user3010322
get doesn't pop, right?
 
get calls the appropriate lua_to* which don't pop
 
5:14 AM
 
user3010322
5:28 AM
Hrm.
 
user3010322
@Rapptz Are you awake?
 
user3010322
Or did you eat and then pass out?
 
of course
 
user3010322
The lua stack is killing me
 
user3010322
I'm sure that my problem is that I don't have the right offsets to get around these infernal arguments.
 
5:36 AM
look at my code and how I did member functions
I know it doesn't work but the theory behind it is the same
 
user3010322
Your theoretical lua_class?
 
tbh I don't know /why/ it doesn't work
 
user3010322
Well
 
user3010322
You get_arg starting with 0
 
user3010322
For thing of multiple arity, you'd need to start at... 2?
 
user3010322
5:40 AM
Yeah, you have to start at 2, I believe.
 
hm?
 
user3010322
Or, er
 
user3010322
For constructors, that's how it is
 
user3010322
That is, when you bind to new
 
why do I have to start at two?
 
user3010322
5:41 AM
When overriding `:new`:
 0 is I don't even know
1 is the LUATTABLE you're creating
2 is arg0
3 is arg1
4 ...
 
user3010322
For member calls, I think it's
 
user3010322
0 - Dunno
1 - arg0
2 - arg1
3 - ...
 
oh that's because you do it that way
you do the silly stuff:new which doesn't make sense
 
user3010322
So if I do stuff.new
 
user3010322
it will work better?
 
user3010322
5:43 AM
That is, argument 1 will be arg0 ?
 
actually a couple of notes that you made me realise
0 doesn't exist
 
user3010322
Yeah, which is why your implementation
 
Lua starts in index 1 and it does that with the C API too for some fucking strange reason
 
user3010322
explodes on the first go.
 
stupid because in C you're used to index 0
god knows why the fuckers decided to start at 1
suddenly things make sense :v
 
5:46 AM
vb starts at 1 also
 
user3010322
But, uh
 
user3010322
Aside from that, like
 
user3010322
Apparently I'm indexing into things wrong?
 
user3010322
@Rapptz What's with your commit for the functions?
 
I make them light userdata
 
user3010322
5:48 AM
I see that, but the next thing... you push the c function onto the stack, and then you...
 
user3010322
.... push it into -2
 
user3010322
which is.... the metatable?
 
should be
I'm going to rewrite this I guess
 
user3010322
:C
 
if only I had another way of turning things to the dumb lua_CFunction
 
user3010322
5:49 AM
You could use templated static functions.
 
yeah I tried that approach
it's impossible
not enough info
 
user3010322
That's the approach I'm using?
 
user3010322
With userdata.
 
user3010322
And the userdata index can come from a static template parameter
 
I meant another way
upvalues is the dumbest concept ever
void luaL_newlib (lua_State *L, const luaL_Reg *l);

Creates a new table and registers there the functions in list l.
but.. what's the table name..
> It is implemented as a macro. The array l must be the actual array, not a pointer to it.
lol
 
user3010322
6:10 AM
Yeah, I saw that too...
 
user3010322
You can't put upvalues when you use luaL_newlib
 
user3010322
That's why I explicitly expanded it when I used it.
 
user3010322
6:29 AM
Huh
 
user3010322
lua_touserdata(L, 0); works for this case...
 
user3010322
How... interesting?
 
lol. The OP to the butthurt meta question accepted this answer: meta.stackoverflow.com/questions/251758/…
Any bets that it's gonna get downvoted negative and then deleted? :)
Seeing as how just about everything that suggests forced comment on downvote gets downvoted pretty heavily.
 
7:08 AM
"Nice" to see that people still have no clue that noob and newbie are two different words :(
 
I used them interchangeably :(
 
user3010322
Weee.
 
Hm?
I just got done building SFML for gcc 4.9.0 :D
I wonder if there's an xclip equivalent in Windows
I know I can do cat file | clip but there's no way to do something equivalent to xclip -o > file
 
7:53 AM
Another one misses the point of encapsulation and mistakes it as a security guard which one can circumvent.
 
very 1337
lol his font size is huge
 
Maybe girls like large... fonts?
 
We like sophisticated contents ... it is about the content, not font.
Of course, if the font is so small, we can not see it, then it is a bit worry ...
 
nicely said :)
 
8:39 AM
Morning!
 
@Mysticial What's the difference? Just the removed minus sign?
 
@FredOverflow Diff the markdown.
 
@Mysticial ijt's just a minus sign?
oh
I see it now
 
8:42 AM
oh pony
 
lol, a picture of the stars and someone replies our planet is awesome.
I guess our planet does provide a good view.
 
> Rust is a systems programming language that runs blazingly fast, prevents almost all crashes*, and eliminates data races.
> * In theory. Rust is a work-in-progress and may do anything it likes up to and including eating your laundry.
lol
 
8:59 AM
@Mysticial what was he thinking o_O
 
9:24 AM
 
9:40 AM
> Cppcheck is an analysis tool for C and C++ code. Unlike compilers and many other analysis tools, we do not detect syntax errors. Cppcheck only detects the types of bugs that the compilers normally fail to detect. The goal is no false positives.
"The goal is no false positives."
That's very easy to achieve :)
Just print nothing.
 
@FredOverflow Oh.. You found this on reddit?
I just saw it.
 
@Rapptz Yes, I browse /r/programming regularly.
 
I hate /r/programming
 
So how did you find the video?
 
you hate many things
 
9:49 AM
It's on my front page
It's post 684.
 
@Rapptz What do you mean "my front page"?
 
the home page is the front page
I don't visit /r/programming by itself
I only stumble through the posts via my front page
 
"my front page" is a reddit feature?
 
no it's literally reddit.com
 
Wait, you go to reddit and then browse up to entry #684? What is wrong with you?
 
9:52 AM
extreme boredom.
 
Holy shit. My everyone hates everyone answer on meta is on Hacker News.
 
@FredOverflow infinite loop
 
That explains all the comments I'm getting.
 
@Mysticial just noticed that as well
 
@Rapptz History is a great way to fight boredom.
 
9:59 AM
good thing you don't get rep huh
 

« first day (1288 days earlier)      last day (3658 days later) »