From: vasudevram Date: 2006-07-27T00:35:05+09:00 Subject: Re: For performance, write it in C Kristof Bastiaensen wrote: > On Wed, 26 Jul 2006 17:47:13 +0900, Peter Hickman wrote: > > > 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). > > > > > > Hi, > > When reading your C code, I saw that there is a lot of code that is > generated. I'd be interested to see how well the C program does if > it can work for any size of the squares. In this case I think the problem > is well suited for logic languages. I wrote a version in the functional > logic language Curry, which does reasonably well. It will probably not be Interesting ... I read somewhere that the OCaml language, while higher-level than C (and a functional one too), runs some programs at least, as fast or faster than C ... Not sure how true that is ... Vasudev http://www.dancingbison.com