8,448 reputation
42445
bio website google.com/…
location Berlin, Germany
age
visits member for 4 years, 1 month
seen Oct 16 at 11:30

Aug
7
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Leo: Code bloat through templates was a problem 15 years ago. With heavy templatization and inlining, plus abilities compilers picked up since (like folding identical instances), lots of code gets smaller through templates nowadays.
Aug
6
comment I'm at a crossroads with programming and theory
C++ is >30 years old and has been one of the most-used languages for the last 20 years, so "languages come and go" doesn't really seem to apply to it.
Aug
6
awarded  Good Answer
Aug
6
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Matthieu: Of course, there's reason. But is this reason rational? From what I can see, the "cost of RTTI", if not used, is an additional pointer in every polymorphic class' virtual table, pointing at some RTTI object statically allocated somewhere. Unless you want to program the chip in my toaster, how could this ever be relevant?
Aug
5
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Matthieu: While I understand your sentiment, I can't help but notice that even that has been added with care regarding performance. RTTI is specified so that it can be implemented using virtual tables, and thus adds very little overhead if you don't use it. If you don't use polymorphism, there is no cost at all. Am I missing something?
Aug
4
awarded  Nice Answer
Aug
3
comment When is Singleton appropriate?
Now my standard link for all discussions regarding Singletons: jalf.dk/singleton
Aug
3
answered What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
Jun
14
comment Is it common for a programmer not to know the difference between C and C++?
@KirkBroadhurst: I think I indicated what part of your answer I disliked enough to downvote, and that comment was upvoted five times as often as you were downvoted after that, so I'm not sure what explanation you're after. However, to elaborate: The term "difference" is sufficient here, since C and C++ share only superficial syntactical similarities, and, other than that, are very different languages. As for qualifications: I don't think there's a qualification needed to answer here, but when an answer is blatantly wrong as this one, it will be downvoted irrelevant of the qualification.
Jun
13
comment Is it common for a programmer not to know the difference between C and C++?
"I'd struggle to give any real differences between C and C++." You're certainly not a C++ programmer. Please?
Jun
13
comment Is it common for a programmer not to know the difference between C and C++?
I'd very much hope the percentage is not as small, because those "converted to C++" C programmers often are very bad C++ programmers.
Jun
8
awarded  Constituent
Jun
8
awarded  Caucus
Jun
6
comment Why are there so many string classes in the face of std::string?
"writing string classes is one of the more popular indoor sports among C++ programmers" — P.J. Plauger (Note the date, though. In fact, Ben had it right this is mostly for historical reasons.)
May
4
comment What were the “core” API packages of Java 1.0?
@WorldEngineer: I give you Mosaic.
May
2
comment When to use C over C++, and C++ over C?
@ZanLynx: Of course you got to understand the internals of some lib if you want to debug into a broken implementation of it. But this is true for any lib, including C ones, so to post it as an argument here is genuine bovine excrements.
May
2
comment When to use C over C++, and C++ over C?
@ZanLynx: Did you really argue that one has to know the internals of some library in order to find bugs in its implementation? And was that really meant to support the argument that you cannot use the STL without knowing its internals? (That's certainly nonsense.)
Mar
30
awarded  Civic Duty
Mar
27
comment Are there design patterns or generalised approaches for particle simulations?
@Pubby: Because you can only simulate what's already understood? You cannot build a model of something you haven't even seen yet.
Mar
1
awarded  Nice Answer