569 reputation
412
bio website rmartinho.github.com
location Berlin, Germany
age 26
visits member for 2 years, 1 month
seen 2 days ago
stats profile views 78

I like to (re)invent wheels. I am starting to like Unicode. Despite what others might say, I am not a Unicode expert. I have a personal website.

When I quote the C++ standard, I do it from a relatively up-to-date build of the sources at http://github.com/cplusplus/draft. (last build August 29th, 20121)

Trying to contact me? I usually hang out by the C++ Lounge. If you prefer e-mail, I sometimes check this mailinator mailbox: M8R-gt1qwe@mailinator.com.


1 it will remain a bit out-of-date until I get my build machine set up again; meanwhile, you can get a more recent official draft, N3485.


Apr
16
awarded  Popular Question
Apr
12
awarded  Yearling
Mar
7
awarded  Taxonomist
Feb
6
comment C++ vs D - Algorithm Optimization/Conversion (Using vectors/arrays)
@Dr.Kameleon sorry, I only know C++ :) I would probably get rid of log2, but from there I have no idea.
Feb
6
comment C++ vs D - Algorithm Optimization/Conversion (Using vectors/arrays)
@Dr.Kameleon optimisations in the code are a pointless exercise if you request of the compiler to make a slow program.
Feb
6
comment C++ vs D - Algorithm Optimization/Conversion (Using vectors/arrays)
What further optimisations? What about... -O3?
Jan
26
comment Naive C++ Matrix Multiplication 100 times slower than BLAS?
And two threads.
Jan
26
comment Naive C++ Matrix Multiplication 100 times slower than BLAS?
"I believe both are using only a single core." There is no way the BLAS version is using only one core: note how CPU time is about twice as much as wall clock time.
Dec
15
revised C++ My matrix class
added 6 characters in body
Aug
19
comment C++ My matrix class
Yeah, that looks good.
Aug
17
comment C++ My matrix class
@R.M. obviously feel free to disregard the parts about iterators right until you start understanding them. If you decide to get on with and have trouble I'll be happy to help you with it on Stack Overflow or giving advice here :)
Aug
17
revised C++ My matrix class
added 5 characters in body
Aug
17
revised C++ My matrix class
deleted 1 characters in body
Aug
17
answered C++ My matrix class
Aug
8
comment C++ shared_singleton
Konrad mentioned that someone in the C++ chat had some other solution. That was me: gist.github.com/3284629. However that solution doesn't allow for reinitialization, which you seem to desire. To be honest, the way it is now, this looks like a nice question for StackOverflow instead.
Aug
4
answered Is this predicate valid to delete single shared_ptr's?
Jun
26
comment Thread-safe singleton class using std::shared_ptr in C++(11)
This is off-topic. codereview.SE is for working code. This doesn't even compile.
Jun
22
awarded  Commentator
Jun
22
comment Checking if a string is a number with STL
It's not elegant if it has code for special cases (that's part of my definition of elegant).
Apr
20
comment Edit Distance Between Two Strings
@user1131467 No, it's not only a problem when you do that. It's also a problem when you forget to using namespace phoronix and now you're inadvertedly using std::ref when you meant phoronix::ref, but the compiler doesn't help you in the slightest there. It's also a problem when ADL picks up the wrong things because you never intended for ADL to be doing anything here. Wrapping an #include in a namespace is also a bad idea that will probably lead to linker errors down the line.