From: "Schüle Daniel" Date: 2006-07-29T08:15:07+09:00 Subject: Re: For performance, write it in C Peter Hickman schrieb: > Whenever the question of performance comes up with scripting languages > such as Ruby, Perl or Python there will be people whose response can be > summarised as "Write it in C". I am one such person. Some people take > offence at this and label us trolls or heretics of the true programming > language (take your pick). > > I am assuming here that when people talk about performance they really > mean speed. Some will disagree but this is what I am talking about. write in VHDL (or Verilog or SystemC), synthesize you piece of hardware, plugin into PCI, have fun with most performant (in terms of speed)and efficient (in terms of energy consumption) solution :) [...] > So what am I recommending here, write all your programs in C? No. Write > all your programs in Perl? No. Write them in your favourite scripting > language to refine the code and then translate it into C if the > performance falls short of your requirements. Even if you intend to > write it in C all along hacking the code in Perl first allows you to > play with the algorithm without having to worry about memory allocation > and other such C style house keeping. Good code is good code in any > language. I like C, but in this context C can be replaced with any compiled language. > If you really really want that performance boost then take the following > advice very seriously - "Write it in C". from my point of view C has the only advantage of running on nearly every platform. As I said above any of compiled languages would speed up the code. my 2 cents Regards, Daniel