|
libjpeg is a c library, not c++. The title should have been "Rewriting in C for Fun, Speed and Masochism"
|
|
|
|
|
But he said he was writing in C++. Using a C library from C++ still counts as "rewriting in C++" in my world, but perhaps our views differ.
|
|
|
|
|
Just read the article:
"When given the right amount of abstraction - in this case, a fast C++ library - writing the code to be adequately fast was trivial. Using old-school C-style library integration, on the other hand, ended with me wasting hours making little to no progress. "
|
|
|
|
|
So? That still doesn't mean he was rewriting anything in C.
|
|
|
|
|
Really? Do you understand english?
Using old-school *C-style* library integration, on the other hand, ended with me wasting hours
|
|
|
|
|
Do you?
ed welch wrote: <layer>*C-style* library integration Means exactly that. It does not necessarily imply he rewrote the whole thing in C. In fact he probably didn't, if that's what he had done he would have said "I also tried to rewrite it in C, but that turned out to be a waste of time". Or something like that. It is far more likely he actually meant what he wrote, and he used C-style library integration into C++, which is a perfectly valid thing to do.
|
|
|
|