View Full Version : Which language?
RobertoBianchi
07-09-2006, 11:46
First of all which language is better to use for the module development?
We can choose from C and PB, both language have strength and weakness.
Mainly with C language we can found a large amount of code to inspect and contemplate, instead with PB we have a lot of interface work (I mean how handle IN/OUT arrays) already done.
So isn't a simple choice, is it?
Cheers,
Roberto
Petr Schreiber
08-09-2006, 18:43
Hi Roberto,
your question is interesting. I think the result will be quite similar using both languages. I have very basic knowledge of the statistic, but it doesn't seems that any of this languages has less power to implement it good and fast.
Long time ago, I made some comparsions between PB and C code to compare speed of both languages, and the results were good for PB in many cases. But that was in times of DOS versions of this languages. Some test projects under DevC++ ( don't know which compiler it uses ) were better for C on another side. So maybe it is just question of personal preference :)
Best for speed could be write it in pure assembler but I don't know how much time it would take ;D
Bye,
Petr
ErosOlmi
08-09-2006, 22:03
Too late, we have already decided. Try to guess? ... PowerBasic
Roberto have already prepared first version. It is very fast.
time to fill an array of 10 million EXT in a script loop: 14 sec
time to calculate the mean in STAT module: 0.125 sec
Anyhow, will be released next update.
RobertoBianchi
11-09-2006, 18:55
Hi Petr,
as Eros said, we choose PB, mainly for data compatibility reasons.
Moreover both C and PB language allow 'fine controll' (I mean the possibility to code in assembler directly).
C language offers also a good source level debugger and compiler optimization :-\
Ciao,
Roberto