« first day (860 days earlier)      last day (4081 days later) » 

3:00 PM
@Nils That works fine for local variables. Just not for temporaries.
 
my head still aches, I waited at uni for 2 hours and the teacher didn't show up, I took a half an hour ride by the train to find out the papers i need to fill out the tax form were already sent back to my previous employer
and the kitchen sink is full
 
It seems that it also didn't work for *this.
 
@R.MartinhoFernandes And where do I read up in the standrad?
 
(Unless you are on a const function)
 
3:01 PM
also with an old gcc?
 
@Nils Hmm, probably overload resolution. I don't know that section very well. Ask @Xeo.
 
@xeo?
 
@Nils Dunno. It works in C++03.
 
Xeo
As I said, gimme actual code.
 
@R.MartinhoFernandes Nah, it'd be in wherever reference types are defined.
overload resolution has nawt to do with it.
 
3:03 PM
I was told to share this with you guys: stackoverflow.com/about
:P
 
IOW, instead of implementing innumerable features that I'd actually find useful, they dick around with the about page.
thanks stack exchange
 
@DeadMG Nope.
 
@DeadMG And where are reference types defined?
 
§8.3.2.
You won't find this there.
 
I have to confess that I did not open my C++ standards pdf for quite a while.
 
Xeo
3:05 PM
@R.MartinhoFernandes Cool, there's a badge associated with it.
JUST GIMME YOUR ACTUAL CODE, DAMMIT
 
@R.MartinhoFernandes woo, new badge
 
And @JerryCoffin has an example answer :-P
 
@DeadMG The standard text doesn't structure that way :|
 
oh, man. now they made the tag UI element ugly. why? what problem did this solve?!? CHANGE FOR CHANGE'S SAKE IS IDIOTIC, STACK OVERFLOW
btw hi
 
user142019
3:10 PM
So many skills and requirements.
 
user142019
lol
 
un/pw prompt?!
 
user142019
(Also, that company is terrible and I hate it.)
 
lol Penetration Tester
 
Xeo
8
Q: Who stole the tag shadows?

XeoJust an hour ago, they were still there! Now, it seems, somebody took 'em far away. Luckily, a buddy of mine had a unicorn-powered time machine in the backyard, so I can deliver proof of the evil deeds: Before: After: On a personal note, I liked those shadows. Good buddies. Can haz back?

 
user142019
3:12 PM
{-# LANGUAGE CPP #-}

#define be =

main :: IO ()
main = do
    let it be 42 -- ha. ha.
    print it
 
Xeo
I just noticed my Rule of Five question has 91 favorites. Woah.
 
You get a gold badge at 100.
 
Xeo
Yeah, Stellar Question IIRC.
 
user142019
I got that one recently.
 
user142019
3:15 PM
> Question favorited by 100 users. This badge can be awarded multiple times.
 
Xeo
@R.MartinhoFernandes Seriously, dat question.
 
It's perfect Google bait.
 
0
A: Happy 4th Anniversary, Stack Overflow!

Lightness Races in OrbitDammit! I'm the second user on page 6!

 
Xeo
@R.MartinhoFernandes Yea
 
I was reading about this free swag for top-five-page users thinking, "as awesome as I am, there's little chance I'm on page 1, 2, 3, 4 or even 5". Turns out I'm on the top row on page 6
 
3:17 PM
I did not ask it for bait, though. I was really facing that problem.
 
Xeo
What's a submodule anyways?
 
Think of it as a symlink to another repo.
 
user142019
A symbolic link to a repo somewhere else that you can use as a subdirectory of your repo, but its contents are not directly included in your repo when you do commits and such. Useful if you have dependencies.
 
Xeo
mhm
 
git submodules are so flawed
you can't (afaik) have them anywhere else than the root directory
 
user142019
3:18 PM
You can.
 
and most tools don't cope well with them
 
That's wrong.
 
you can now ?
 
I don't think that restriction ever existed.
 
well I can assure you it must have, because I spent a lot of time trying to think about another way of doing what I did
let me give it another try
 
(It was something like 2 years ago)
 
@ereOn Nope. Never was.
 
okay it scares me when random people that I've never heard of say "I bet you're regretting your hiatus" I mean how the fuck do they know?!
 
git submodule add <remote> <path/inside/your/repo>
It's FUD spread by people thinking the command is cd path/inside/your/; git submodule add <remote> <repo>
 
Hurray, it works now
I can assure you I tried that at the time.
 
user142019
3:22 PM
Also man git-submodule.
 
The path is always given relative to the root of the repo.
 
I was actually quite pissed that I had to put everything under the root.
Well git-buildpackage still doesn't work with submodules though...
 
But that does not mean it has to be in the root.
 
(but that has nothing to with the original git)
 
@ScottW evidently
0
Q: Jquery DataTables - PDF export with character šŠđĐčČćĆžŽ

Keramika BenčićPlease, if anyone knows how to do export PDF with this special character (šŠđĐčČćĆžŽ)! Thanks a lot!

^ haha
 
3:23 PM
@LightnessRacesinOrbit Which special character? I see none.
 
should I downvote that one?
 
@R.MartinhoFernandes I think the OP may be referring to himself
 
http://stackoverflow.com/questions/15026792/how-do-i-prompt-the-user-to-run-program-again

see the tags :)
 
ahaha that's good
 
user142019
Oh God.
 
3:25 PM
@satuon while loop is relevant ^^
 
user142019
Korn y u bagpipe.
 
@Zoidberg oh, they love a good bag-pipe
 
@satuon terrible
 
user142019
@ScottW Dead makes my ears bleed.
 
3:26 PM
@Zoidberg isn't Korn making dubstep now?
 
user142019
@BartekBanachewicz yes :(
 
also, who asks Java questions in the C++ room
seriously
kornstep
 
user142019
The Path of Totality is a terrible album.
 
maybe because it's dubstep
duh.
 
3:27 PM
@TonyTheLion who did that?
 
really?
oh fuck sake
 
user142019
s/I feel/my ears feel/
 
@satuon Also, WTF is it with the reverse indentation.
 
@ScottW I am happy
I am not leaving home today
neither tomorrow
fuck yea
 
Recently found out that doom metal is a term for something I like, always new it as hard rock, but where ever
 
3:28 PM
WHY ISN'T THIS WORKIIINNNG?????
Incidentally, good morning.
 
@ScottW I honestly don't care about Korn anymore
 
mostly because that is how Black Sabbath described them selves
 
@R.MartinhoFernandes school question, they don't care about indentation
 
@BartekBanachewicz dubstep, what more needs be said?
 
Black Sabbath is
 
3:29 PM
@satuon Perhaps a reason Python is a good introductory language.
Or Haskell (that's what you get in the University I studied at)
 
@BartekBanachewicz doom-metal specifically. And this is only a retrospective label. At the time, metal was not a thing, they just considered them selves (and Sabbath them selves still do) hard rock
 
@ScottW I am listening to nickelback right now, because my brain died
and I am waiting for the pills to kick in
 
@BartekBanachewicz @_@
 
@BartekBanachewicz Finished with my women cause she couldn't help me with my mind!
 
@TonyTheLion hey, I can play it!
 
3:31 PM
awesome
 
Currently indulging in a Withfinder General
 
I've played some more of their songs. Iron Man and Electric Funeral
 
@R.MartinhoFernandes Yep! If only K&R had added style-enforcement in the C compiler
 
@R.MartinhoFernandes Parents obviously get fascinated by names of well-known or great leaders, but must be unaware that some of them, like Hitler, had been highly controversial
"highly controversial" is really mild for Hitler, IMHO
 
3:34 PM
ahahahahah
 
@thecoshman "binôme" looks like French slang. I never really undestood that. I do know that it can mean "pair", as in "pair programming", but it doesn't really make sense in this case.
 
@R.Martinho what's a "trivial operation" in terms of std::is_trivially_constructible ?
 
user1182183
hm, anyone recommends a website where I can look for people who would like to participate in my open source projects? : P
 
@EtiennedeMartel according to @Kbok, it is basically the person you are working with when you have a partner
 
@thecoshman Yeah, so, looks like it's pair programming.
 
3:38 PM
@BartekBanachewicz Not user-provided, more or less. Full details here: stackoverflow.com/a/7189821/46642
 
@GamErix if you want people to help, don't look for people. Make something worth working on, and people will come to you
 
@GamErix nobody is going to write in Pawn, FYI. Game related, try gamedev.net
 
@GamErix: Build something great, put it in a place like github, and if you are lucky contributors will come at some point
 
user1182183
@BartekBanachewicz haha no it's not for pawn haha :D
 
if 90% of commercial products fail, 99% or open source projects fail to get any where
 
3:39 PM
@thecoshman I knew it :)
 
user1182183
ahwell, I atlleast have one person helping, who is good in assembly, just needs someone who understands DirectX stuff in C++ :p maybe someone will contribute : x
 
@GamErix also the other guys got it right.
 
@sehe lol what?
 
@R.MartinhoFernandes thanks
 
@GamErix assembly? what you smoking fool?
 
3:40 PM
Wut
 
@GamErix Shit son. I don't like where this is going.
 
@thecoshman I knew I could leave posting the DS up to you :)
 
@GamErix: May i ask what is your project about and what skills you have/you lack ?
 
@sehe oh right, of course :P
 
user1182183
3:41 PM
@ereOn A modification which allows you to control a game, and all the directx stuff etc related too
 
very descriptive
 
user1182183
@BartekBanachewicz I don't like mentioning pawn because it's not only pawn based, lua, squirrel etc can be implemented too
 
I don't know what a "modification" might be in this context.
 
A GTA: San Andreas mod.
 
@GamErix Don't you dare to say Pawn and Lua in one sentence!
 
3:43 PM
do people use boost::scoped_array ?
 
I'm not omniscient.
 
user1182183
@R.MartinhoFernandes yep
 
@R.MartinhoFernandes you're just a front end for Google, no?
5
 
user1182183
@BartekBanachewicz Pawn and LUA are great. Bam.
 
user1182183
each of them has it's own pros and cons
 
3:43 PM
Except Pawn has only cons
 
user1182183
@BartekBanachewicz that's personal taste
 
@GamErix Name a one "pro", then.
 
No, that's facts
 
user1182183
@BartekBanachewicz then I have to quote much stuff from this page :P
 
So you have an idea about something, but don't have all the required resources to it yourself, and so hope that people will join you on that basis ? oO
 
3:44 PM
@GamErix no, say something what you can think about just now. Name one of Pawn's pro-s
 
user1182183
@ereOn no, I just started the project and did what I can etc, but much more functionality is cool ; D
 
@GamErix It's taking you an awful amount of time to find one thing, tbh.
Maybe because there aren't any?
 
user1182183
@BartekBanachewicz It's somehow easier to learn for total assholes who didn't ever touch a programming language (I was one of them) 1.
 
@GamErix easier than what?
 
user1182183
@BartekBanachewicz Why should I anyway name pros, anything I say you say it's a con :P
 
3:47 PM
You can't say it's easier than anything if you don't know anything else
 
@GamErix Because I want to show you that pseudo-language has only cons.
 
user1182183
it also supports Assembly instructions
 
that's great for beginners, I guess
 
@GamErix not a con it self, but not a pro at all
 
Which everybody should use on a daily basis
 
3:48 PM
and a very needed feature of a script language, right?
 
user1182183
@BartekBanachewicz nope, just for the very advanced stuff
 
I have a quick question about memory allocation
 
Like ?
 
It's not even a feature
It's a misfeature
 
@JakeM: Go ahead :)
 
3:48 PM
Any other "pros"?
 
if I allocate an array of fixed size in a loop, eg
 
user1182183
@ereOn #emit
 
for (i = 0; i < 10; i++) { char[10]; }
 
There's no place for inline assembly within high-level language which has express purpose of being embedded in other applications
 
@JakeM: A friend of mine did that. He died the next year.
 
3:49 PM
haha
 
@CatPlusPlus lolwut. What has that?
 
@GamErix I've said. No links. Your own facts and knowledge.
 
Ahahaha it's even better
 
@JakeM: (Despite the joke, I'm still reading ;))
 
3:50 PM
It's not assembly, it's VM IR
 
er char c[10];
 
Even more useful
 
and i print out c and c+10 for each iteration
I get the same numbers
 
@CatPlusPlus so it's like saying Java has the ability of you writing JVM IL?
 
showing that the compiler optimized by moving it out
cool, makes sense
 
3:50 PM
So, what's the question?
 
No, it's literally embedded VM IR
 
no, it makes no sense
 
new
    a;
#emit CONST.pri  5
#emit STOR.S.pri a
printf("%d", a);
 
but then if I allocate in the loop, say char c[i+10], and print c each time
 
Yeah, no sense at all.
 
user1182183
3:51 PM
don't really know how to compare pawn to lua as I didn't ever write a lua script ; >
 
I can see that it's allocating 10 different arrays
 
But it's totally easier than Lua guys
 
@JakeM Should not even compile. Turn up your compiler's warning levels.
 
@GamErix I can see that even without you saying. If you ever touched Lua, you wouldn't touch Pawn ever again
 
Also, I'll just completely randomly mention std::vector<T> now.
 
3:52 PM
¬_¬ if I understand what you are saying, it's because the in the first example you are not doing anything different each loop, but in the second you are doing it based on the value of 'i'
 
@JakeM Looks like UB.
 
Theres more going on in the loop
 
If you ever touched any real language you wouldn't touch Pawn ever again
Because it's amalgamation of bad design choices
 
I'm just showing the minimum
 
@R.MartinhoFernandes I am going on the theory he is not showing us everything
 
3:52 PM
Also, know that the compiler is free to switch/move your operations if the resulting program has the same observable behavior.
 
Actually, one shouldn't touch Pawn regardless.
 
right
 
I am going to start pointing to Stack Overflow now
 
(and there are no memory barriers)
 
@thecoshman I'm going on the theory that he is inadvertedly using VLAs.
 
3:53 PM
mhm ^
 
@R.MartinhoFernandes trying to use yo mean?
 
user1182183
@CatPlusPlus well the reason I'm using pawn is not because "I just wanted it". if that reason wasn't there I would make a modification which you would need to supply DLL's to run anything. not scripts.
 
So I'm implementing a threading library (operating systems class assignment), and so what I want to do is allocate n arrays of STACKSIZE, but the compiler will either allocate one array of STACKSIZE and use it n times
 
@GamErix: Care to explain that ?
 
I couldn't care less about GTA modding jesus
 
3:54 PM
@GamErix the reason you are using Pawn is because you don't listen.
 
user1182183
@ereOn ofcourse,
 
or I have to allocate n arrays of STACKSIZE+i
 
for (i = 0; i < 10; i++) { char c[i+10]; } is not valid C++. That's all.
 
the idea is to allocate the array, then save the environment there so that i can later jump back
 
user1182183
I use pawn because I want to run unmodified sa-mp (san andreas multiplayer) scripts in a singleplayer game, where the "other players" would be computer controlled
 
3:54 PM
I am going back to template wankery, ping me if he writes something interesting.
 
xy problem
 
I get that that's not valid.
more is going on in the loo
*loop
 
@JakeM Doesn't matter.
 
also it's plain C, but that chat room is empty right now
 
@JakeM ...
 
3:55 PM
...
 
If you allocate your array on the stack, it is likely to be destroyed/recreated (or reused) on each iteration.
 
(╯°□°)╯︵ ┻━┻
stupid questions by stupid people get stupid plonks
 
stackoverflow.com/questions/ask has a larger audience interested in C.
 
user1182183
else I would have just made some headers which allow you to control all my modifications' functions from a DLL made in C++.
 
3:56 PM
@BartekBanachewicz: Still nothing interesting. Just wanted you to know.
 
thanks, @ereOn. You're helpful.
 
user1182183
(well there is a SDK for DLLs right now, but it does not support controlling everything yet)
 
user1182183
anyway my DLL loading system will have to be extended cuz it's very basic right now
 
@JakeM: Maybe if you were in it, it wouldn't be so empty :)
 
wow robot
effective starbait with your "Zoidlang sucks".
 
3:58 PM
@DeadMG Eh, I was just reading that.
 
@GamErix: Does your DLL loading system load DLLs yet ?
 
We're like transcript brothers.
 
Xeo
FFS, VS2012, Y U NO GENERATE MOVE MEMBERS?! :|
 
not really, since I starred it way back when it was written
 
Xeo
iMad.
 
user1182183
3:59 PM
@ereOn it can load any valid DLL, and if it's a specific AMX DLL it even provides basic functionality for it ;P
 
@DeadMG I should try it with Wide some day. See which gets better results ;)
 
lol
 

« first day (860 days earlier)      last day (4081 days later) »