Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Christian Ulrich: > > > Very few OOP is used in the Pascal implementations, so Pascal and C are > > on equal grounds here. > > > musnt the memory manager included if only few oo stuff is included ? ? The heap manager is always in the exe; it cannot be smarlinked a

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Christian Ulrich
Very few OOP is used in the Pascal implementations, so Pascal and C are on equal grounds here. musnt the memory manager included if only few oo stuff is included ? why g++ is soo mutch slower than gcc if so few oo stuff is used ?? pure c is no higher level laguage for me. asm is not soo mut

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Christian Ulrich: > NO: C gcc has the first Place C is not Object oriented, FPC is Object > oriented. Very few OOP is used in the Pascal implementations, so Pascal and C are on equal grounds here. Daniël___ fpc-pascal ma

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Christian Ulrich
NO: C gcc has the first Place C is not Object oriented, FPC is Object oriented. And g++ is behind fpc. regards Christian Bisma Jayadi schrieb: http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all&xfullcpu=1&xmem=1&xloc=0&binarytrees=1&chameneos=1&message=1&fannkuch=1&fasta=1&kn

[fpc-pascal] SqlDB and Text BLOB fields (part 2)

2007-05-23 Thread Graeme Geldenhuys
I'm using a Firebird DB. If I create a field with 'Blob sub_type 1' and insert 3000 random characters, my applications freezes on the .Commit. If I created a field with 'varchar(3500)' and again insert 3000 random characters it works fine. Anybody got a clue why? I'm using FPC 2.1.3 (r7241).

[fpc-pascal] SqlDB and Text BLOB fields

2007-05-23 Thread Graeme Geldenhuys
Hi, I'm using a Firebird database with a field define as 'Blob sub_type 1' to store text. What method am I supposed to use to set the parameter value? AValue: string; FIBSQL.Params.ParamByName(AName).AsString := AValue; or FIBSQL.Params.ParamByName(AName).AsMemo := AValue; What's

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Tom Verhoeff
On Wed, May 23, 2007 at 11:36:20AM +0300, Christos Chryssochoidis wrote: > > >>It *is* allowed. The only trick is that you have to declare a type for > >>your dynamic array, i.e. you have to write something like > > Yes, I have noticed that if you first wrap a dynamic array in a type > definiti

Re[2]: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Пётр Косаревский
The one missing FPC program measures the speed and abilities of the regular expressions engine from language distribution. Tonow FPC one has not enough abilities, but the engine may be written even exclusively in assembler or C: what matters is whether it is present in the distribution and has

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Felipe Monteiro de Carvalho
It's obvious that the benchmark is flawed. This is also stated at their website. everyone knows that benchmarks are flawed I'd say it's more like a game. But, it's also interresting to see that in all benchmarks I've ever seen Perl, Python and Java are dozens of times slower and consumes dozens

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Jonas Maebe: > > On 23 mei 2007, at 10:39, Bisma Jayadi wrote: > > > Of course it's very relevant since they are all using same algorithms > > No, because there are lot of ways to implement a single algorithm. Do you use > ansistrings, shortstrings, arrays of char

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Jonas Maebe
On 23 mei 2007, at 10:39, Bisma Jayadi wrote: Of course it's very relevant since they are all using same algorithms No, because there are lot of ways to implement a single algorithm. Do you use ansistrings, shortstrings, arrays of char, or pchars? Do you use getmem or dynamic arrays? Do y

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Bisma Jayadi: > > No C programs have been submitted recently. It is probably the new broken > > scoring system. > > Is Shootout using new scoring system? How did you know that? See the long thread on the forum. It penalizes Pascal because we have a bad score for C

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Christos Chryssochoidis
On 23 Μαϊ 2007, at 11:11 ΠΜ, Daniël Mantione wrote: Op Wed, 23 May 2007, schreef Michalis Kamburelis: Christos Chryssochoidis wrote: Hi, I tried to write some function that returned a dynamic array, and realized that this isn't allowed. Why? After all one can specify an array of variable

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Bisma Jayadi
favourite compiler/language, but largely irrelevant as far as comparing different compilers is concerned (and even more so as far as comparing different programming languages is concerned). Of course it's very relevant since they are all using same algorithms (please read http://shootout.aliot

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Bisma Jayadi
No C programs have been submitted recently. It is probably the new broken scoring system. Is Shootout using new scoring system? How did you know that? -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Bisma Jayadi: > http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all&xfullcpu=1&xmem=1&xloc=0&binarytrees=1&chameneos=1&message=1&fannkuch=1&fasta=1&knucleotide=1&mandelbrot=1&meteor=0&nbody=1&nsieve=1&nsievebits=1&partialsums=1&pidigits=1&recursive=

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Jonas Maebe
On 23 mei 2007, at 10:16, Bisma Jayadi wrote: Obviously, some C programmers has done some more optimizations. :( So it obviously means that gcc does not beat fpc (and that fpc did not beat gcc before), but simply that the C programs beat the Pascal programs (and that it was the other way

[fpc-pascal] gcc beats fpc again

2007-05-23 Thread Bisma Jayadi
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all&xfullcpu=1&xmem=1&xloc=0&binarytrees=1&chameneos=1&message=1&fannkuch=1&fasta=1&knucleotide=1&mandelbrot=1&meteor=0&nbody=1&nsieve=1&nsievebits=1&partialsums=1&pidigits=1&recursive=1®exdna=0&revcomp=1&spectralnorm=1&hello=1&sumc

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Michalis Kamburelis: > Christos Chryssochoidis wrote: > > Hi, > > > > I tried to write some function that returned a dynamic array, and > > realized that this isn't allowed. Why? After all one can specify an > > array of variable length as type for variables... Fur

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Michalis Kamburelis
Christos Chryssochoidis wrote: > Hi, > > I tried to write some function that returned a dynamic array, and > realized that this isn't allowed. Why? After all one can specify an > array of variable length as type for variables... Furthermore - if I'm > not mistaken - a dynamic array is implemented

[fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Christos Chryssochoidis
Hi, I tried to write some function that returned a dynamic array, and realized that this isn't allowed. Why? After all one can specify an array of variable length as type for variables... Furthermore - if I'm not mistaken - a dynamic array is implemented internally as a pointer, and so th