« first day (783 days earlier)      last day (4167 days later) » 

6:00 AM
The one mistake I made was to use assume that 64-bit compilers would have 128-bit integer support.
That ultimately led to this entire refactoring mess.
Of course that wasn't the case. So when 64-bit came around, I ended using the same 32-bit representation for everything.
Until I ran around about 2 years ago - missing out on all the 64-bit optimizations.
So I had to make the decision to rewrite the entire program using a new (more flexible representation).
 
@Mysticial I don't know if that qualifies as lack of care though -- based on history, I'd have said it was a fairly safe assumption (at the time).
@Mysticial And given what you're doing, I can certainly see where that made a serious difference.
 
All the modules that worked directly on the representation had to be rewritten.
Fortunately, most of the big ones (like the FFT) had their own internal representation, so all I had to do was update the conversion front-ends.
 
@JerryCoffin Thing is, software design is such an abstract art. There's no definitive recipe for success. I keep reading things on design where it's like "Design to allow change" well gee thanks that reall points me in the right direction. Or even "design so it's easy to test because usually classes that are easy to test are more robust to changes" yet another vague answer. I wish there was a repository of "great software designs" with an explanation as to why they're good.
(I had to stop apparently there is such a thing as a message that's too long)
 
That reminds me of something I was thinking about a while back: is there enough redundancy in the data you're writing to disk that it would be worthwhile to consider trying to use one of the standard lossless compression methods on it?
@Borgleader I'm long-winded enough, I run into that all the time.
 
From the beginning I was always trying to OOP the whole project better.
 
6:09 AM
@Borgleader Yeah -- that's where experience comes into it. To be honest, a fair amount often comes down to simple luck, at least in my experience. Quite a few changes I've had to do weren't things I planned for at all. Some ended up easy quite by accident. In other cases, things I thought I'd planned for ended up enough different my plans accomplished nothing. Anymore, I try to avoid obvious traps, but otherwise tend toward the YAGNI viewpoint.
 
But it's one of those cases, where you have one class with about 30 million methods - each of which work directly on the class members.
So you change the class members, you end up need to change all 30 million methods. A typical case of OOP fail.
 
@Mysticial No the fail is having 30 million methods in your class.
 
@Mysticial More a case of OOA fail -- they tell you to think of the "nouns" in your description of a problem, and build classes to correspond to them. The problem is that most of those are so high-level that if you do that, you end up with a few classes so huge you've accomplished nearly nothing.
 
You can also avoid the problem by having all your methods access the members through the accessors
 
I think a better way to put it is: A single class with 10 methods. But one of those methods needs 30 million lines of code.
Right now, the new code supports multiple underlying representations.
 
6:15 AM
@Borgleader Nearly always a mistake, IMO. Accessors usually mean you've defined a member as one type -- but assuming your accessors do something meaningful, you're using them to imitate some other type. If so, you should usually factor that out to become a real type of its own.
@Mysticial That's usually the goal -- access the underlying representation via an abstract enough interface that you can change the representation without affecting the code that uses it. Hard to do that while maintaining maximum performance though.
 
@JerryCoffin That was the original goal. I had a variable that was the word-size. And it was supposed to be able to switch back and forth between 32-bit and 64-bit.
However, I was never able to do 64-bit due the lack of a 128-bit integer type. So as new code came piling on it would work on the 32-bit word. But never tested on the 64-bit word.
And after a while - due to timing pressures of the the world-record runs, I just started to hard-code 32-bit values.
So it made impossible to ever switch it to 64-bit. Even if compilers did support 128-bit integers.
All the code was written and tested for the 32-bit word. But never on the 64-bit word. And it was almost certain that everything would break if the switch were ever to be done.
 
What are you guys doing?
 
So I ended up starting from scratch. I dropped the requirement for a double-word integer size.
 
@Jeffrey Having a discussion about how much of a bitch software design is.
 
And everything that was written would be tested with both the 32-bit and 64-bit representations.
 
6:22 AM
@Mysticial Yup -- until it's actually been ported, "portable code" never really is.
 
Because of the need to have everything work on two different representations, it inherently blocks me from making stupid mistakes like doing word-size dependent code.
 
@Borgleader, oh, I'm out for this topic
 
@Mysticial Yup -- for vaguely similar reasons, I don't consider a computer set up for development until I have at least two compilers installed and ready to use (but things have gotten better -- at one time I routinely tested with 4).
 
I think I might have overdesigned it a bit too. Currently, the program can use the 32-bit path on 64-bit and vice-versa. In fact, both 32-bit and 64-bit paths are compiled together at the back-end. So the user can pick whichever to use at run-time.
 
@JerryCoffin You're bat-shit crazy ;)
 
6:26 AM
@Mysticial That does seem a bit excessive -- I find it hard to imagine a benefit from running the 32-bit path on 64-bit hardware.
@Borgleader You're not the first to say that. Then again, at the time I pretty routinely found new portability problems with every one of the 4 compilers I kept installed...
 
@JerryCoffin Yeah. I basically moved the word-size selection to the middle-end of the program instead of the back-end.
The back-end provides both 32-bit and 64-bit implementations of everything. The middle-end selects one. And the front-end uses that chosen word-size.
But yeah... that's my experience in software design. Never had a precedence. Never learned from anybody else. Done all by myself with my own guns at my own feet.
 
Is there someone willing to talk a little bit about Game Dev architecture and structure?
 
@Mysticial Question is whether there's any real reason for run-time selection at all, or whether it can be selected automatically at compile time and be done with it. For that matter, is there any longer a real reason to support 32-bit at all? Is somebody going to set a new record for number of digits computed on a cell phone?
 
@JerryCoffin Right now, the 32-bit path serves the part of having two different versions to keep it "portable".
And every once in a while, I'll do a large-scale test using 32-bit to make sure nothing breaks.
Originally I made the decision to support both 32-bit and 64-bit together in the same binary was to better interface with GMP.
 
@Mysticial Ultimately, I'm not sure how much anybody learns from anybody else. I've read more books than I could carry, and did darned little to help me avoid the same mistakes -- at best, I recognized them as mistakes a little quicker.
 
6:32 AM
Since GMP isn't completely consistent with its word-size selection.
 
@Jeffrey That's incredibly vague, you know.
 
@EtiennedeMartel, yeah, I was having some trouble figuring something out; now I've solved the problem, thanks anyway...
 
What do I look into to make something like std::wstring tempStr =L"भाषाओं"; print to the console properly?
http://stackoverflow.com/a/13758113/583833
Am I right in wanting to downvote this for a) macro usage b) use of magic constants?
 
@Borgleader std::wcout .
 
6:44 AM
@Borgleader To the console? Do you mean on Windows? If so, it's trivial with printf, next to impossible with iostreams. In theory, wcout is what you want. In reality, it just won't work (at least in all the testing I've done, though I'll admit that isn't with the latest compilers).
 
@Borgleader Well, if it's C++11 you can try codecvt & friends
If you are trying Windows, std::wcout should work (I've used it to print Unicode in the Master File System Table)
However, for teh characters you're looking at,
those look to be something that might even be multi-byte even if its using unsigned short internally
 
I've tried this using Sublime Text 2 and g++, and on ideone it fails in both cases.
It's for a question I found on a forum I regularly visit. And I'm actually quite curious on how it's done.
 
AFAIK, Windows with VC++ will honor most L"" created strings and display them properly using std::wcout.
As far as GCC and Linux goes, I haven't the slightest clue.
Ask Robot, he's the Unicode master.
 
The basic idea that should work is to set up the console to use UTF-8, and set up a codecvt facet that produces UTF-8. On Windows, however, the UTF-8 codepage is completely broken, and the compiler doesn't (or didn't used to) include a UTF-8 codecvt facet.
 
Huh... that sucks
 
6:53 AM
@Borgleader One thing to add though: hidden in the bowels of Boost, there is a (working, portable) UTF-8 codecvt facet‌​. I still haven't gotten console display to work right, but it's at least useful for producing UTF-8 files and such.
 
Hmm ok, I'll take a look at that :)
 
FWIW, some test code I wrote some time ago: ideone.com/wOBvd6. If memory serves, the commented-out section produces correct output -- but using wcout fails utterly.
 
7:14 AM
8
Q: Why is std::vector so much more popular than std::deque?

Karthik TI am curious why is it that std::vector is so much more popular than std::deque. Deque is almost as efficient in lookup, more efficient in insert (without vector::reserve)and allows for inserting/deleting in the front. Herb Sutter once recommended that if you want to use vector, just prefer deq...

Holy crap my comment got 4 votes in like 2 min o.o
i guess i should have made it an answer lol
 
@StackedCrooked Wow, vector needed some serious warmup.
 
@StackedCrooked Yup -- it's fast for initial storage. Noticeably slower access though.
 
@ThePhD Because it comes first. If you swap them then deque will need more warmup. However, it will still be faster because of less copying when reallocating.
 
Note that deque does not allow a similar optimization.
 
7:27 AM
@R.MartinhoFernandes Results not showing
 
I'm confused.
What changed?
 
@Pubby Blame @Stacked.
I got 34 vs 43.
 
I don't see the results as well ...
 
Me neither.
Also, what changed? Dx
 
@StackedCrooked See, now you have repro'd it.
@ThePhD The vector now reserves space.
 
7:28 AM
Oh, reserve.
 
@R.MartinhoFernandes It always fails when you touch it!
:)
 
Curse of the Robot.
 
The builds are cached. I can only get the output if I resubmit the program with a few added spaces..
I should look in to that..
Anyway, no I can see the results of @R.MartinhoFernandes 's modification: stacked-crooked.com/view?id=4b41ebdc7a7eff69585f065b0dede89c
 
Welp.
it's about time I embraced the Iterator-style approach that C++ std demands I have.
I need to figure out what's the required functions on all these Iterator Types, liek Bidirectional, Foward, Random Access, etc.
 
I had a program where I generate a list of QImage objects from a directory recursively. Switching from vector to deque greatly improved speed. It's not very friendly to reserve many megabytes up front if you don't know you're gonna need that much.
 
cpx
7:36 AM
What is this function in C? I've never seen something like in C++.
 
It looks like a section for declarations.
 
That's a K&R declaration.
It's the same as int func(int n)
 
cpx
Perhaps comma separated?
 
That's a really... strange way of declaring things.
 
cpx
int func(a, b) int a, b;
{
    return a+b;
}
Right?
 
7:39 AM
.... o_O
No wonder C++ is a parsing nightmare. Jesus christ.
 
C++ does not have this.
 
It has the this pointer.
 
If C has it, then doesn't C++ have it by default (superset of C?)
 
cpx
Can I call it non-prototyped function?
 
7:40 AM
@ThePhD No.
 
Oh. Well okay.
 
C++ only has what it explicitly adds from C (and that is pretty much limited to the standard library; all the rest is redefined, often in a compatible way, but not always)
 
Okay.
Boost uses Ranges a lot,
has the std mandated Ranges yet?
Or is it still in Iterator land?
 
Boost Ranges are pairs of iterators.
 
Hm. So all this fancy stuff in 'Iterators Must Go' is not really actualized yet....
Welp, I can live with iterators. Pointers and all.
 
7:51 AM
@ThePhD Iterators only. Ranges have been discussed, but I don't recall having seen a proposal they could accept into the working paper for the next standard (i.e., something that actually proposed wording and such).
 
Yeah, I guess I'll just stick with Iterators.
After all, most ranges can be decayed to a pair of iterators.
 
@ThePhD I'd also note that Stepanov is a lot less excited -- he commented that ranges really only work for a limited subset of algorithms (and noted that Andrei had really only implemented something like 10 algorithms).
 
Mm... I'll keep that in mind.
 
That doesn't sound right.
 
I'm tired. I'm not obligated to be right.
 
Say, you wouldn't happen to know where I could find the required operators and such for the various iterators, would you?
So far, I'm at ++ (forward), -- (backward / bidirectional), * (all of them), +=/-= (random access), and.... ... yeah that's about it in my head.
 
@R.MartinhoFernandes It might not be -- he may have characterized it unfairly, or my memory of what he said may be wrong. Or maybe he's thinking at a higher level of abstraction where (for example) all versions of "search a collection" are treated as a single algorithm.
 
in D you can pass functions as strings? is that compile time only?
 
@bamboon Yes.
 
7:58 AM
@R.MartinhoFernandes hmm, still very cool. have to think about that
 
Hm.
 
So what's your any of you people's opinion on D?
 
I'm sure this has been asked before but search doesn't work
 
Dunno. I seem to know a lot more about it than most people that diss it in this room. But I have never actually compiled a single program in it.
I like some of its features.
 
8:01 AM
I like its standard library.
It looks diesel and pleasant to use.
 
Quick question, if I put an inline function in a header, do I need to make it static to avoid redefinition errors?
In both C and C++.
 
@R.MartinhoFernandes Any neat ones in particular?
 
@Pubby IMO, it has some good points, but not enough points that are enough better to justify switching. If it had come along before C++, I doubt C++ would ever have happened. Coming after, it just isn't enough of an improvement to justify the trouble.
 
@Mysticial In C++, just inline suffices.
 
@Mysticial What redefinition errors?
 
8:02 AM
But in C, do i need static?
@Pubby I put a function in a header, I'll get redefinition errors if the header is including into more than one compilation unit. So I'm asking if inline will prevent it, or do I also need static.
 
@Mysticial I don't think so, except on old enough C compilers that they simply don't support inline (but I'm uncertain -- I've never used a C compiler that supported inline).
 
@JerryCoffin gcc does
 
what is up?
 
Subtraction between two iterators isn't defined here it doesn't seem like...
 
I think I'll add static just to be safe. I don't have GCC in front of me to test it.
 
8:04 AM
@Mysticial Yeah, inline works
 
Ooh wait here it is.
RandomAccess, hm.
 
@Pubby There is some metaprogramming stuff that in C++ has to be done with tricks and hacks: static if, an operator that tells you if something is a valid expression (no need to write those SFINAE-based traits all over), other minor stuff.
 
@LuchianGrigore Up is a concept related to the vertical dimension in the direction away from the local center of gravitation.
 
@Mysticial dafuq is up with that question? That's the kind of question I repwhore on. And you're asking it? dude!
 
@JerryCoffin Admit it, you copy-pasted that from wikipedia.
 
8:05 AM
@ThePhD It is for random access. Otherwise, you need to use std::difference.
 
@R.MartinhoFernandes Does it have equally powerful templates?
 
@LuchianGrigore Apparently the answer may be different depending on whether it's C or C++.
I've bee using inline and static by habit for a while.
 
@R.MartinhoFernandes Nope -- did like the statistics most people "quote": made it up on the spot.
 
@Pubby More or less. I don't think I know enough to give an exact answer.
 
Since I remember one instance that it would break massively on GCC under with default or C99, don't remember.
 
8:06 AM
hmmmm... that's interesting... but I doubt inline doesn't work for both...
 
@Pubby Roughly equal in power, but a lot cleaner when it comes to TMP.
 
It has language level tuples, with iteration and stuff.
static for, basically.
Or, IOW, Boost.Fusion builtin.
 
@Mysticial Yup -- but I haven't really used it (as a C compiler) -- recently at all, anyway.
 
Variadic templates are made with tuples.
 
It is strange that D isn't used very much
 
8:09 AM
Before I started to multi-module compile, I would only use inline by itself since GCC requires -O3 to inline functions not declared with inline.
And then I remember everything breaking massively when I starting breaking things into multiple modules.
And how inline (IIRC) implies static in C++ and C99, but not GNU's extensions to ANSI C.
So I had something that worked only in VC++ (because it had some non-compliant extension) as well as GNU C. But it would break under g++ and gcc C99.
 
@Pubby To be honest, I don't know what I don't like that much about it, but I can't really feel myself drawn to try it.
 
@Pubby See my earlier comments. It's nice, but not enough nicer to justify a switch for most people. In particular, I think it's at least generally perceived as really only competing directly with C++, not for projects where you'd more often use, say, Java, Python, Ruby, etc.
 
@JerryCoffin That makes sense
 
Oh, just to clarify: I have installed it and tried it, but never put it to any serious use (and no longer have it installed). My timing was probably somewhat unfortunate: I first got it just before D2 came on the scene, so I tried it a little bit, then everything I'd done broke completely. Then D2 was new and being changed pretty quickly, so literally every time I updated to fix some bug, nearly everything I'd written broke completely. That got discouraging very quickly.
 
Are there any programs you know of written in D?
Actual, useful programs?
 
8:18 AM
I want a compiler for the "English" language, so I know what I am typing are actually correct, or has a syntax error.
 
@Pubby If so, I'm not aware of them.
 
@Pubby I only know a bunch of games.
 
@Nican Good luck with that. Even professional grammarians don't agree on the exact boundaries.
 
@Nican Just to what us normal folk do, and google.
 
And for games it's not particularly great because of the GC.
And contrary to popular belief, no, you cannot disable the GC. Well, you can, but then you will leak like a sieve.
The language does not work without it.
 
8:22 AM
That's silly
 
Forcing a GC in a language designed as a successor to C++
 
They will tell you that the GC is not forced and you can disable and blah blah it is awesome. But then you use, say, string literals or array literals, and you are immediately leaking because those are GCed.
Not to mention that the standard library probably does not have a single instruction to clean up memory.
Most of those are faults of the implementation, not the design, but there aren't many alternatives around...
 
Sounds like the alternative is just use C++
 
8:29 AM
The current GC is also pretty primitive (basic mark/sweep) and completely broken for some kinds of situations. For example: d.puremagic.com/issues/show_bug.cgi?id=7251#c0. Also note this issue marked as "resolved", but nothing was actually done to resolve it. Doesn't exactly inspire tremendous confidence in the development team.
 
I've been thinking about a new language past few days
 
@Pubby Just don't name it Wide.
 
It started with that idea of using prolog for C++ concepts but I realized that wouldn't work in C++
 
"C Narrow"
 
8:31 AM
@JerryCoffin Yeah, you see a lot of complaints about the quality of the implementation.
 
@JerryCoffin I read a study somewhere that essentially said that in order for GC to perform as fast as explicit memory management you need like 3 or 5 times as much memory used by the explicitly managed program
I need to go find it and dig it out
 
I'm thinking that template <...> could be interpreted as a fact in prolog engine, and then you could do predicates which would essentially be a concept check
Except stuff like enable_if fucks it up
 
@Insilico The study I saw showed closer to 7 times as much to be at all sure, but yes. Make no mistake: especially when it comes to multithreading, GC has some real advantages.
 
> Huh? Comment #1 was added when it was closed. Reclosing.
Great.
 
@JerryCoffin LOL. And they're arguing that it's not a bug, but if it is, it's inevitable. :))
> The static data segment and the stack generate _always_ contain false pointers.
So even if you're not generating them yourself much, they do exist and things
will get stuck.
 
8:33 AM
I wonder if garbage will ever be a solved problem. GCs still have problems nowadays.
 
:))
@Pubby There's an easy fix to GC...
It's called... drumroll... C++
 
C++ introduces more problems than it solves
 
@Pubby GC can be made to work well. The problem is that most implementations haven't caught up to what Self (for one example) was using ~30 years ago. OTOH, good Lisp implementations (for one example) really do work quite nicely.
 
Too bad nobody uses Lisp :(
 
@JerryCoffin What does Self's GC do that makes it work well?
 
8:40 AM
@Insilico Self used Generational Scavenging. About the only currently popular system that uses the same is .NET. It's a copying collector, so you only pay to keep objects alive, not to get rid of garbage. It also notes that if objects have lived a long time, they're likely to survive longer, so it doesn't try to collect them as often.
A lot of it depends on good support from the rest of the system though. For example, the problem above in D's collector seems to indicate that they're using a conservative collector, which means it can't compact the heap (prevent fragmentation) and doesn't know for sure whether a memory region is reachable or not (assuming anything that could be a pointer really is).
That's sort of all right if you're tacking a GC onto a language that doesn't support/depend on it (e.g., the Boehm/Demers/Weiser collector for C and C++), but unacceptable if you truly depend on it.
 
When you speak of GC helping out multithreaded programs, are you talking about situations involving things like linked list nodes, for example?
 
#German word of the day: der Eierschalensollbruchstellenverursacher (breakfast gadget used to crack shell of a boiled egg) @germanlanguage
What have I got myself into.
 
I want breakfast now.
 
@Insilico It helps out a number of things. First, if you share objects between threads, reference counting can be really slow (reference counts need to be synchronized). If you do manual management, you end up with either locks in the heap manager, or a number of separate heaps (e.g., one per thread). Then freeing memory gets ugly, because you have to release a block back to the heap it came from.
You end up with a fully connected graph from threads to heap managers. Works, but definitely non-trivial.
 
@JerryCoffin What's your opinion on things like TCMalloc which does thread-local caching?
 
8:47 AM
There are several problems that become trivial if you are allowed to simply leak the memory (in a way; obviously, the GC will pick that up, but you are essentially letting it leak).
 
@Insilico Haven't looked at it enough to have an opinion.
Well, I need to be back up in about 6 hours -- I think I'd better go sleep. Later, all.
 
@JerryCoffin Nite.
 
> :t JSString
JSString :: JSString -> JSValue
 
It's amazing.
> JSString $ Text.JSON.Types.JSONString "Hello?"
JSString (JSONString {fromJSString = "Hello?"})
Because JSString doubles as a JSValue constructor and a newtype for JSONString.
And of course there's no cabal uninstall so I'm not sure on how to proceed to extirpate this horror.
 
9:02 AM
the question is, why VS needs a Readme.txt to create a project template?
 
I was having a problem using a set::find() with my own comparator
bool operator() (const A& i,const A& j) {return (i.x<j.x);}
Will std::set use my comparator?
While testing, I note that it sometimes is not able to find an existing entry in the set? Any ideas?
 
Maybe? There's no way to answer with what little you have told us.
 
@LucDanton Ok. Perhaps, then I modify my question to this, "How does set::find work internally? Does it use a functor if defined?"
 
Yes.
 
class minheap{

public:

bool operator()(const pair<int,int>& i,const pair<int,int>& j) const {

return (i.second<j.second);

}

};

set < pair<int,int> , minheap > S;
 
9:12 AM
What kind of values do you put in that you can't retrieve?
 
With the above definition, set::find is not able to find an existing entry in the set. (I am new to STL.Might be a noob question. Excuse me for that)
 
Post (more) code. Or if it's too long to fit in the chat, a link to a paste of the code. Also see hints to the right.
 
@Insilico I can believe that: almost every object in C# has (I believe) 4 bytes of overhead attached to it, irregardless of what its for. Then there's other things that can be attached to it, which continues to stack on the overhead.
 
Is SO lagging for anyone else?
 
How does... SO lag?
It's not a real-time game, AFAICT.
 
9:20 AM
The round-trip is significantly longer than usual
smartass
 
sbi
@R.MartinhoFernandes You do realize, of course, that this is a nonsense word, don't you? Nobody here says "egg shell predetermined breaking point causer".
 
http://stackoverflow.com/questions/13759941/unable-to-use-square-function-c
I'm surprised no one mentioned std::pow in their answers...
 
hi
 
Anyway, bed time... 4:30AM I really shouldn't still be up
 
9:26 AM
@jalf hi. How are you today?
 
Hiyo.
 
http://ideone.com/a3qEGa
Here is the link to my code. It is a naive but correct implementation of Dijkstra's algorithm for shortest path. I have tried to explain my doubt through the comments.
 
Question: if you have a std::vector with an excessively small bytesize for its elements (say, 4), do any compilers avoid heap-allocation and just allocate the memory on the stack?
 
@user1112010 See 2.3 of this. Especially the 'short' part.
 
Whoa. Even macro'd the for loop. o_O
 
9:42 AM
@ThePhD I don't know that such an optimization is built in.
problem is that they won't know how many elements you'd store in the vector
and the stack isn't that large in size (1MB) on most systems
 
@ThePhD none that I know of
 
Yeah, I'll just stick with PartialTable then.
 
sbi
@MooingDuck What do you think will come out of calling parents who managed to raise such a... thing?
 
@LucDanton 27 lines isn't short?
 
sbi
@EtiennedeMartel You misspelled that. It's "relieve", dude. He's a fucking idiot, and there's no point in talking to those.
 
9:46 AM
woah, someone almost got away with a spelling mistake on the internet
 
@Pubby The code changed.
 
@TonyTheLion ..and what would happen if the vector was queued off to another thread?
 
@MartinJames you're fucked...
or you'd have to copy it over, and meh
 
sbi
@cpx Now what's that mean, huh?
 
Ape is reading the transcript...
 
9:52 AM
That's what I thought - a dubious 'optimization'.
 
dubious at best
 
sbi
@TonyTheLion Of course. I gotta know what you said about me, don't I?
@billz I always am.
 
@sbi I pinged you, so I'd expect you to see it.
the question is, are you really that paranoid about what people say about you, or do you just enjoy reading the transcript?
 
sbi
@TonyTheLion Yes, but I even find out about you what you didn't want me to know. Like that you spend your evenings with coworkers now. That's good, I guess. Better than being home alone and depressed.
@TonyTheLion I enjoy being paranoid.
 
@sbi Oh I'm glad you found that out about me. If you take joy in knowing that fact, than I'm quite happy for you to know that.
 
sbi
9:59 AM
@EtiennedeMartel I don't dare to. I already realized you know places in the Internet I wouldn't even want to hear about, let alone go to.
 
@sbi Seems like, I guess each to their own, really.
 
sbi
@TonyTheLion What?
 
@LucDanton Thanks. Problem solved now. My comparator function had a bug. :)
 
@user1112010 In general writing a SSCE leads to finding bugs more often than not.
 
10:14 AM
SSCE?
 
@sbi I a word in that sentence. :(
 
Is there a shorter way to do this?
//write lines to file
std::ofstream ofs("out.txt");
std::ostream_iterator<std::string> out_it(ofs);
std::copy(lines.begin(),lines.end(), out_it);
I guess this is better?
 
I believe this has the same effect, yes. Worth a try.
 
Is there a way to set a different default platform in VS2010?
 
10:25 AM
Google's personal filtering doesn't work, I get hits from cplusplus.com :<
@TonyTheLion What do you mean?
 
@CatPlusPlus all my projects are x64, but it always sets it to Win32 everytime I open/close project. I just want it to be x64 and stay that way.
 
Manage Configurations?
 
@CatPlusPlus Google sucks.
 
Or however it was called
 
Hey guys, quick question.
Is there an assert or similar that will fail a function at compile-time?
 
10:29 AM
@TonyTheLion weird, it always stays on whatever I last set it to for me
 
@TonyTheLion AFAIK, that kind of info us contained in the .suo file.
 
@ThePhD static_assert
 
can try going into configuration manager and make sure that all projects are set to x64 in the solution-wide x64 configuration
might be some weird thing where some projects are still win32/x64, so depending on which project is active, it'll show different values
 
Default platform is stored in .sln AFAIR
 
cppreference down?
 
10:33 AM
@ThePhD BOOST_STATIC_ASSERT because I know how much you love boost
 
@Pubby <___< I do not know of this boost of which you speak.
 
sbi
Too bad, because your knowledge could use a boost.
 
dat pun
11 hours ago, by Zoidberg'--
The number of fucks I will give tomorrow is neither negative nor positive.
lol
 
classy
 
I guess he's giving no fucks today
 
10:46 AM
Your fucks are going to overflow/except? NAF?
 
the fuck?
@MartinJames NAF?
 
@TonyTheLion Not-a-fuck, I assume (like NaN)
@sbi Yes. I was joking about it.
Meeting with the boss in five minutes. Which by my calculations means next week.
 
I guess he runs on some variant of Valve time.
He does reply to mails in a timely fashion though, so it's not that bad.
 
10:55 AM
oh cool
 

« first day (783 days earlier)      last day (4167 days later) »