Hi there! Do you have an opinion on C over C++, or the other way around? And why do you necessarily need to know one or the other? Is algorithm efficiency, speed wise, that important? I have to admit, I don't mind a job taking an extra day to run, since it gives me time to work on other stuff! But then again, I'm probably in a more laid back situation. I'm just research tech. Not even in graduate school yet, and I can only imagine where that attitude would get you as a professor ; ) But for now, it works
Re^2: perl's long term place in bioinformatics?
Replies are listed 'Best First'.
I actually prefer C++, since I know it and it's as fast as C when you use it as C, and sometimes faster when you understand its compilation model. But the extension APIs for both R and Perl (and many other languages) are written in C, not C++, and C is a much simpler language.
So does learning C, or C++, help you learn the other? And what would be the advantage of knowing the same language as what the extension APIs are in? My knowledge level is such that I just looked up what API is, though I've seen it plenty but just never really knew what it was.
So does learning C, or C++, help you learn the
Yes -- C++ is mostly a superset of C, so learning either helps you
learn the other.
And what would be the advantage of knowing the same
language as what the extension APIs are in?
The idea is that you first write your program in a comfortable,
high-level, slow language (e.g. R or Perl) and then, if it's too slow,
reimplement parts of it in a fast language, calling those parts from
the high-level language.