« first day (560 days earlier)      last day (4388 days later) » 

9:00 PM
Valgravel.
 
On Windows the Google memory checker might work.
Not sure if it is ported to Windows though.
 
hmmm
you guys said that std::set determines equality as (!a < b) && (!b < a), right?
 
I know nothing.
 
9:04 PM
@DeadMG equivalent ordering, or equivalence, not equality per se
 
Shouldn't it be !(a < b) && !(b < a)
 
hmm
perhaps I should be dealing in a multiset then
 
non-sequitur
 
but perhaps
perhaps you should be dealing in an octree. We can't really tell from where we're sitting
 
perhaps you should reflect on what you've done.
 
9:11 PM
@sehe I already have an octree.
 
@DeadMG I kinda knew that. The point is we can't know whether a multiset is appropriate if we don't know what it is for
 
pathfindings
 
So, here's a question. If i have a game in a quasi functional state and i haven't hooked it up to any graphical interface yet (it's a turn based thing so no need for fancy stuff), is it going to be a huge hassle to "connect" it to OpenGL or something ?
 
the set of open nodes has to be sorted by a given value- current max distance plus heuristic- but it may need to contain multiple nodes that have equivalent estimates
 
@ScarletAmaranth It might go better than expected.
 
9:16 PM
@StackedCrooked Thanks :)
 
That will be 40 EUR :)
 
Do you take checks :) ?
 
damn
 
@StackedCrooked hey, you're not even Dutch (treading the PC borders here: you must be Jewish then)
 
now the MSVC STL implementation gives me back "invalid operator<" :(
 
Ell
9:17 PM
I hate graphics :'( but they are necessary
 
@sehe My dad is from Philippine.
But I'm not, I'm from Brugge.
 
Of course. That explains.
Totally
@StackedCrooked And you're in Gent, IIRC
 
@Ell Yeah i kinda can't want the users to type commands into console with a promise of deep gameplay experience :)
 
Gent is cool.
 
@sehe Yep moved to Gent in 2007.
 
Ell
9:19 PM
@ScarletAmaranth I was thinking of doing this - making the game seperate to graphics, then adding the graphical side - it would ensure separation of concerns. But also if I design it wrong then it could make connecting graphics very difficult. Let me know how it goes!
 
@classdaknok_t Especially in winter
 
@ell See, I'm going to be cheating, everything will be fairly static since it's gonna be turn based. No need for octress and pathfinding and shit :)
 
Man I finally got curtains. Now I can sleep in complete darkness.
 
@Ell If you're prone to doing it wrong, you'll make it very difficult anyways
 
@classdaknok_t And people won't see you naked anymore.
 
9:20 PM
Dark Octress
Sounds like a good game title
 
Ell
Yeah I do everything wrong :L I can't programme to save my life but I enjoy it so hey :L
@ScarletAmaranth haha it's not cheating - turn based games can be thrilling - think of total war
 
@Ell There's rooms for programmers like that :)
 
Dark Ocress, a DeadMG creation.
 
Yeah it's kinda funny when people ask me why on Earth i'd ever spend so much time programming random stuff :)
 
Honestly, of course, no need to sell your self short
 
9:21 PM
@StackedCrooked I had rolgordijnen before, but they let light through from the sides. And nobody could ever see me naked anyway since I'm never naked. :P
 
@Ell Yeah i like HOMM for instance, also, I'm a good chess player :)
 
Except when taking a shower, but let's not get into the details here.
 
@classdaknok_t That makes sense.
 
@classdaknok_t You're not? Amazing. You must stink. And, as a corollary from recent observations, you must not have much inspiration:
 
Ell
@sehe people say "dont sell yourself short" - but seriously I have never finished a project of any difficulty (apart from "hello world") in my 3 year period of learning programming so far
 
9:22 PM
yesterday, by StackedCrooked
Or maybe they don't shower for a month and then get inspired when they finally do shower.
 
@sehe He changes clothes by first putting on the new clothes and then removing the old ones.
 
@sehe I have no inspiration at all.
 
Ell
@ScarletAmaranth I have been wanting to make a clone of a game called Trade Empires - its not turn based but it is not greatly time dependant - most of the time is taken up by thinking and planning
 
@StackedCrooked I put on new clothes after taking a shower.
 
You take the shower in your old clothes then?
 
9:23 PM
@Ell I never did anything significant (besides learning) in my first three years. I spent about 1500 pages in printing documentation (most of it useless, but I printed it)
 
And changing clothes even in a normal way doesn't require you to be naked.
 
It doesn't? Dammit!
 
I've been doing it wrong all that time then!
 
You can keep your socks on while changing your T-shirt, for example.
 
Ell
@StackedCrooked shower shorts: for the male with nothing to hide - but still wants to
 
9:24 PM
That explains so much.
 
Heck, I came across a hardcopy of FDFormat the other week.
 
Ell
@sehe I have been at school at the same time and at current I am trying to give exams priority - so I'm hoping that in summer I can make progress on a project of some kind
 
I'm the prince of darkness.
 
@sehe Is that supposed to be significant or something? ;)
 
@StackedCrooked No just to show the silly things I spent my time on
 
9:26 PM
@Ell a project? I know a fun project: port libc++ and LLDB to Windows and Linux.
 
Ell
from os x? :L
 
Port and programming don't go well together.
 
I must have printed that around 1991 (I think) and I suppose I should be able to find polaroids of me in the back garden actually reading that in a binder and taking notes with a pencil.
 
Well yeah.
 
Ouch
 
9:27 PM
@sehe What is this pencil thing again ?
 
@StackedCrooked "fix for" also fine.
 
@Ell The thing with that is that you need a project. A job can really help getting something 'worthwhile' (beware of corporate dwellings and bubbles though)
 
right
problem defined
 
Ell
@sehe I was looking at getting a job at a place where I did a little bit of vb.net programming for work experience
 
I need to look up in the set according to one comparator sometimes, and then look up into the same set according to another comparator some other tims
 
Ell
9:28 PM
even if I didn't get payed I would still do it
 
VB.NET "would do it"??!
 
@Ell As long as you get 'real' work experience, it should be ok
 
Ell
@sehe what do you mean "real"?
 
Sorry for trolling today. I'm a bit trolly.
 
Ell
vb.net is good imho - not so much different from c#. But I don't know c# so :P
 
9:29 PM
@Ell Not some crummy office automation that should really have been outsourced
 
@Ell VB is actually awesome; you can use it to make GUIs to track IPs.
 
Ell
ahh kk. Well I did a bit of that and a bit of programming - it was general IT work. If I get payed then I'm happy doing that, if not then I'd rather do programming but learning IT will still be useful
active directory and whatnot :L
 
@Ell C# is better and less inconsistent. It is also more relevant to the job market. That said, you should look for proper project experience and Ruby/Python/F#/C might be fine to get it
@classdaknok_t hehe. cue mandatory CSI vid from youtube
 
Ell
@classdaknokt I made tic tac toe in vb.net! and an async chat server!
 
Cool.
 
Ell
9:31 PM
thats about the extents of my projects. My problem is will power / motivation
 
I made "Hello John" in DOS.
 
I made an asynchronous chat server in JS with Node in under ten lines of code.
 
@classdaknok_t You appended them?
 
@Ell Jobs help in that respect. I must admit, I will learn anything. But only if I need it to solve someone's problem
@classdaknok_t Hehe. It is in the samples
 
@StackedCrooked to me 1 LOC == 1 statement.
@sehe ssssstt!
 
Ell
9:32 PM
I recently started a sailing bot in c# for puzzle pirates (nerdy I know, but apparently its rather profitable) but after the initial burst of productivity and excitement - I just can't force myself to keep working
 
I wrote hangman in C++. It's on codereview.se. It probably sucked.
 
7
Q: How can I improve this implementation of hangman?

WTPI wrote a hangman game to try out some of the new features in C++11. I'm pretty new to C++, and I would like some good advice on how I can improve this code (in terms of conventions, bad/good practices, …): #include <iostream> #include <fstream> #include <vector> #include <s...

 
hahahah
 
It's got 7 UV already? Cool.
 
That is one big fat main :)
 
9:35 PM
The C++11 application chart should be expanded with hangman.
 
@StackedCrooked Zing
 
@ScarletAmaranth What's in a name?
 
@StackedCrooked which chart?
 
@StackedCrooked I'm not following ... ? :)
 
9:38 PM
Haha cool. :P
 
@classdaknokt it's broken! I lost:
Lives left: 1
Already guessed: e a r h t d o c m w z
_o_thearted
Enter a letter: l
Game over! The right word was: softhearted
 
No it's not broken.
 
It's the file containing the list of words.
 
@sehe What's wrong with that? :D
 
9:41 PM
"softhearted" doesn't contain an "l".
 
That's why it's game over.
 
when you erase from a map, what are the iterator invalidations?
only current?
 
I like game programming, just not the graphics part. I hate that.
 
> References and iterators to the erased elements are invalidated. Other references and iterators are not affected.
 
9:45 PM
I use the "custom search engines" feature of Google Chrome so when I start my search with "cpp" it searches in the en.cppreference.com site.
That allows me to very quickly look up stuff.
It's super convenient.
 
@StackedCrooked I like the mozilla binding functionality. I can type into url bar : " wiki Chuck Norris " and it takes me to a wiki page / chuck norris :)
 
I guess that's very similar behavior then.
 
Yeah it's super convenient.
 
I just use Google.
Good enough.
 
Ell
I use cinnamon :D
 
9:47 PM
@classdaknok_t Blue pill.
 
I use deodorant :D
 
I don't. My body natural odor has a refreshing fragrance.
new T[n] doesn't initialize, new T[n]() does initialize, T x[n] does initialize. So confusing.
 
Ell
I tend to find that chloroform has the desired effect
anyway
 
You may want to recheck your findings.
 
If the constructor throws when you allocate with new, do you get a memory leak?
 
Ell
9:50 PM
Its late >.< Must go to sleep. Goodnight all :) I shall probably talk tomorrow :D .Hopefully I will die painlessly in my sleep though :L
night all
 
@classdaknok_t Oh god. The joke was lost on you guys ?
 
@Ell Don't say that, you fool. You won't die.
 
@classdaknok_t If your class' constructor throws then the destructor of your class will not be executed. However, the member variables will be destructed.
So if all resources are bound to member variables then you should be safe.
 
@StackedCrooked I know, but if I have a constructor A::A() which throws and I do new A, do I get a memory leak?
 
No, the runtime will free the memory.
 
9:53 PM
Thanks.
 
I asked this once on SO.
11
Q: What happens to the memory allocated by `new` if the constructor throws?

StackedCrookedWill this code cause a memory leak? #include <stdexept> class MyClass { public: MyClass() { throw std::runtime_error("Test"); } }; int main() { try { MyClass * myClass = new MyClass; } catch (const std::exception & exc) { // Mem...

 
I asked this once on SO Chat.
 
I seem to recall.
 
Well that would be an unpleasant surprise if it leaked some memory :)
 
FUUUUCK. I need to take a shit but the toilet is already taken.
 
9:56 PM
@classdaknok_t Don't let that stop you.
 
@StackedCrooked you mean I should come over to your house?
 
My toilet is free.
 
facepalm
 
I'm not sure if that is correct English usage.
 
I'm afraid of it. It probably has demons in it. Not nasal demons, but anal demons.
 
9:57 PM
facepalm
 
palmtree
 
God says my name is written in his palm. So he has facepalm instead of facebook?
 
bacefook is a band.
 
It's a handjob.
 
My code only gets clangjobs.
 
10:02 PM
My code is secure because I'm using signed integers.
 
My code is secure because I'm using RAII.
 
Are you lecturing me?
 
Are you complaining?
 
c++ was first to use RAII ?
 
Are you looking for a fight?
Bjarne invented RAII.
 
10:04 PM
ta
 
RAII is very Bjarnic.
Like indentation-based scoping is very Pythonic.
 
oh god
i hate python for that
 
However, Alf explained to me that RAII also means that an object needs to be fully initialized at construction. And then the phrase "Resource Allocation Is Initialization" suddenly make sense.
 
I never used Python, but I really love Haml for its indentation-based things.
 
srsly, curly brackets are arguably way better
 
10:07 PM
Bjarne said that he was bad at naming things. :P
 
Well, the idea that all memory is basically owned by something is ridiculously useful.
 
resources FTFY
 
The standard library has some awkward names. Like exception::what().
Or std::vector which isn't really a vector.
 
What?
 
10:08 PM
Why don't you like what() :) ?
 
How is std::vector not really a vector?
 
@ScarletAmaranth Would you have named it what() ?
 
@StackedCrooked Nah prolly not ^^
 
@classdaknok_t Not in the mathematical sense. It's basically a resizable array.
 
@StackedCrooked Btw, new one piece episode up very soon.
 
10:09 PM
@ScarletAmaranth O right!
 
In maths, a vector is a matrix with one row or one column. Are you confusing it with physics?
 
Almost forgot.
 
@StackedCrooked I wish the fillers ended already tho ...
 
43
Q: Why is a C++ Vector called a Vector?

SkilldrickThe question's pretty self-explanatory really. I know vaguely about vectors in maths, but I don't really see the link to C++ vectors.

> It's called a vector because Alex Stepanov, the designer of the Standard Template Library, was looking for a name to distinguish it from built-in arrays. He admits now that he made a mistake, because mathematics already uses the term 'vector' for a fixed-length sequence of numbers. Now C++0X will compound this mistake by introducing a class 'array' that will behave similar to a mathematical vector.
 
10:11 PM
> "One could argue that valarray should have been called vector because it is a traditional mathematical vector and that vector should have been called array. However, this is not the way the terminology evolved."
It's quite messy.
 
I dont seem to give a shit tho :) I like std::vector name :)
 
dynamic_array is so long. :P
TIL: dynamic_cast with raw pointers is fucking useful.
 
Yeah, plus the well known fact that vector can be easily converted into pirate talk.
 
Mutexes are strange too: lock opens the door, and unlock closes it.
But that's not c++ related.
 
I want mutin.
 
10:15 PM
Find a sheep.
 
@StackedCrooked lock closes the door for others.
 
Ah I see. It's like a private room where you can do your thing with whatever is locked inside?
That way it makes sense.
What do you think of this song? ユメノツバサ I like it, but I wonder if it sounds childish to other people.
 
@StackedCrooked I don't like it. But i do love most of the music that's in anime.
 
That reaction came quickly!
 
Yeah, i heard first 20 secs, then moved it into the middle, heard it's "pop-ish" character, had enough :)
Hell, Binksu no sake is better than that! :)
 
10:20 PM
hmmm
 
(very catchy! :D)
 
@ScarletAmaranth Fanatic! :D
 
I like Girugamesh.
 
@StackedCrooked Tell me you don't like Binksu no sake! :D
 
Sure I like it!
I don't recall much One Piece music actually.
It's not really a music anime :)
 
10:22 PM
Yup, not too hot rly, but Bleach has some serious goodness.
And also, japanese - related stuff, my favourite composer is Nobuo Uematsu (The guy behind most of the final fantasy saga music.)
 
I watched only 20 eps of Bleach or so.
 
@StackedCrooked I almost stopped watching one piece after like 7 epis, the aestethic takes some time to get used to, imho.
 
@ScarletAmaranth I think I heard some of his work. It's quite good.
 
@JohannesSchaublitb what()
 
10:24 PM
getting shorter
hm
 
@StackedCrooked This one always gets me:
http://www.youtube.com/watch?v=h-0G_FI61a8
 
(predictive text input?)
 
hmm represents vocal vibration without actually saying something. It's a way to indicate willingness for conversation without having something to say immediately.
 
h
 
10:25 PM
I just made that up actually.
 
"this is an empty-string-wannabe"
 
user1077685
Can any of you C++ experts help me with the time efficiency of a certain C++ algorithm?
 
It's like allocating a little memory in order to ensure good alignment .
 
@TimeBomb006 Try the regular SO first ?
 
10:26 PM
@TimeBomb006 I think it's running fine as it is.
 
Fuck SO; ask me.
 
Get out with alignment, SIMD nightmares ...
 
user1077685
Actually, I was about to post there and I though the chat might be a better place, it shouldn't be too difficult, it's just ugly code.
 
I LOVE reading ugly code.
 
Post it on Ideone.com so that it runs.
 
10:27 PM
Anyone happened to check the song i posted link to ? You kids like it :) ?
 
@ScarletAmaranth Nice.
 
@ScarletAmaranth love ugly code? here, my GitHub repos: github.com/radeks
 
@classdaknokt You should have checked the state of my sarcasm flag there :)
 
@ScarletAmaranth Concerning piano, I really like this piece. (However, the first 45 seconds sound awkward, you might want to skip that.)
 
STOP
hammer time!
 
10:30 PM
That's kind of a lame joke.
:D
 
Tadadada tada tada!
 
@JohannesSchaublitb But no worries, I make lame jokes all the time.
And people still seem to tolerate my presence.
 
user1077685
Yeah, it doesn't run. LOTS of errors. It's actually the double metaphone algorithm with some bug fixes addressed by Kevin Atkinson. It's looking for <dmetaph.h> which I can't find anywhere.
 
@StackedCrooked I don't. Go away. :P
 
@StackedCrooked That's weird, i've never heared of that game and I'm a huge fan of older RPGs. (Reaching to the original NES basically.)
@StackedCrooked Btw, i'm enjoying the song so far.
 
sbi
10:31 PM
What the hell are you guys even doing here? It's SO meetup day!
 
@sbi FML, none in Slovakia :(
 
@TimeBomb006 if it doesn't run, you can't see if it's efficient enough. Make it run first.
 
@JohannesSchaublitb I briefly had a similar joke where I shouted STOP, followed by in the name of love.... It was kind of awkward so I stopped doing it after only a few times.
 
@sbi you are also here, so don't complain.
 
Where's the meetup?
 
10:32 PM
My backyard.
 
sbi
@classdaknok_t Yeah, but I just came back from a nice evening at the Prater, where we had beer and talked.
 
user1077685
I'll do my best. I have a running copy in MySQL, but MySQL chat is dead most of the time.
 
Sounds fun.
 
@StackedCrooked The song is pretty good. Try this one :
http://www.youtube.com/watch?v=AGLenxR0QZM
 
I imagine a guy with a sledge hammer making his entrance.
 
It always bugged me there are no "START" signs.
 
We start moving automatically. Like the Mr Bean intro.
 
sbi
@StackedCrooked Basically, yes. Only I wasn't in London, but in Berlin.
 
don't you think about this guys
 
10:37 PM
hlt ; Hammerzeit?
 
Halt = stop Hammerzeit = hammertime
 
You don't say?
 
(Now you know the true identity of captain obvious!)
 
Saw that before. I thought it was in the average to above average range of funniness.
He doesn't look very supple in his legs.
 
"Stop! Hamertijd." sounds stupid.
Especially when pronounced by someone from America.
 
10:39 PM
@ScarletAmaranth For some reason that video is really loud. The violin really pierced my ear drums near the end :)
 
@StackedCrooked It's a shame that state of current technology doesn't allow for adjusting the volume :)
 
It's a nice melody though.
 
It's rather intriguing but i find eastern music very different.
And more often than not, i like it.
 
I wouldn't call this eastern music. I think it's fantasy themed music.
 
I like eastern and northern music. J-rock is cool.
 
10:42 PM
@StackedCrooked That, yes, but i mean, in general.
@StackedCrooked I also prefer JRPG games to the regular RPG games. And i tend to prefer anime to our series. (Death note too damn epic of a psychological drama.)
 
@ScarletAmaranth It is very different. Just like building styles, clothing styles, traditions, .. :)
 
@StackedCrooked yeah true dat
 
yay
got ALL THE COMPILATION ERRORS!
 
Fix ALL the errors by inserting a forgotten semi-colon!
 
Youtube search for traditional chinese music brings up this. That's quite different than Bach, Beethoven or Mozart ;)
 
10:45 PM
evening
 
@sbi Are you working!?
 
I can't decide how to do my event system... do I want to pass a 'generic' event with an event type variable in it, thus one function can take any event, but then has to use a switch to work out how to handle it. Or have a different event class for each event, with a function for each type of event you want to listen too
 
sbi
@ManofOneWay No, I'm not working. I'm drunk. Feels better that way.
 
@sbi haha =D what are you drinking?
 
sbi
10:50 PM
@ManofOneWay I've been at the SO Meetup in Berlin, and I had a few beers.
 
@sbi I wasn't invited? =(
 
Also, I think C++11 has introduced a better way to handle observers. I'm used to the 'design pattern' where you store an array of objects references of type 'listensToMyEvent', but I am fairly sure I can just store an array of 'functions that I can pass myEvent to'
 
@ManofOneWay I don't think it works with invitations.
 
@sbi a 'few' huh?
 
sbi
@ManofOneWay No invitation needed. You have to register yourself for the meetup. And if there isn't one in your area, you have to make one.
 
10:51 PM
@thecoshman Something wrong with std::function?
 
sbi
@thecoshman Beers. You know them?
 
@sbi only in plural form :P
@DeadMG yeah, it's new and scary :P
 
sbi
@thecoshman What's "a few beers", if not plural?
 
will there be a meetup in germany?
 
@sbi the start of a good night :D
erm... last time I checked, Berlin was in Germany
 
sbi
10:53 PM
@JohannesSchaublitb What about "I have been at the Berlin meetup" did you fail to grasp?
 
@thecoshman @thecoshman boost::function should do the job. You can also use boost::signals2, which enables you to register multiple listeners for one event.
 
@sbi 'what part of...' ftfy
 
i couldn't fail or succeed to grasp any statement of yours regarding that
now that you confronted me with that statement of yours, I now that there was a meetup in berlin
 
It's a general failure.
 
hey all
 
sbi
10:55 PM
@JohannesSchaublitb This is just four messages above one of yours, and this isn't even off the screen on my monitor.
 
may I ask, why are iterators in C++ as they are?
 
A few beers won't cut it for me. If I'm going to Berlin.
 
@sbi i see you haven't grasped that I have a smaller monitor than you
 
sbi
@NikiC Yes, you may ask that. Go ahead.
 
@sbi your in one of those moods :P
 
10:56 PM
@NikiC They are modeled after pointer arithmetic.
And they were designed by Stepanov.
 
sbi
@thecoshman Always.
 
I'm always in one of my moods.
 
@sbi Great :) Well, my main question is why C++ has chosen the for (it = begin(); it != end(); ++it) way of iterating. I really love working in C++, but this way of iterating really gets in my way. Why was it chosen over alternatives, like (it = begin(); it->valid(); ++it)?
Heh, bad choice of words
 
@NikiC Recently there has been some interest in range based algorithms as well.
 
so erm... is std::function<R(int)> callBack = foo.giveMeOneInt; right?
 
sbi
10:58 PM
@NikiC As @Stacked said, the way it is now, pointers are perfect iterators.
 
@sbi how many people turned up to party?
 
@thecoshman callBack = std::bind(&Foo::giveMeOneInt, &foo);
 

« first day (560 days earlier)      last day (4388 days later) »