Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Ryan Joseph via fpc-pascal
> On Jul 10, 2021, at 11:18 AM, Jonas Maebe via fpc-pascal > wrote: > > A constexpr function means that it must be computable at compile time if > all of its arguments are also constexpr. So like the "pure" functions that Gareth was working on? Seems to have moved on from the idea but I thou

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Ryan Joseph via fpc-pascal
> On Jul 9, 2021, at 4:56 PM, Ryan Joseph wrote: > >> Current standings at the time of this video >> Iterations per sec: >> Ada: 67 >> Pascal: 143 >> Fastest language: 7301 >> Slowest language: 1 > > So Pascal failed pretty bad it looks like. ;) I just ran that unit with -O2 and got nearly ~

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Jonas Maebe via fpc-pascal
On 10/07/2021 18:46, Ryan Joseph via fpc-pascal wrote: > Here's the C++ version that won. Looks like the magic comes from constexpr, > which I don't understand very well in C++ except that it's a constant > expression. Can anyone explain how constexpr works here? A constexpr function means that

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Ryan Joseph via fpc-pascal
> On Jul 10, 2021, at 4:16 AM, Guillermo via fpc-pascal > wrote: > > Hi, > > I remember years ago a similar test in a web page. Pascal was way low > in the list, even below Java and Python! but we (in a forum) found that > it wasn't Pascal fault: most versons program were optimised in code >

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Guillermo via fpc-pascal
Hi, I remember years ago a similar test in a web page. Pascal was way low in the list, even below Java and Python! but we (in a forum) found that it wasn't Pascal fault: most versons program were optimised in code while Pascal used brute force (also compiling using -O3 made it way faster than the

Re: [fpc-pascal] FPC & Lazarus moving to gitlab

2021-07-10 Thread Florian Klämpfl via fpc-pascal
There is a third conversion of the FPF repository meanwhile (from June): https://gitlab.com/freepascal.org/fpc/testconversion3 Please check and report any problems, this is most likely the last chance to get things fixed before the final c

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Peter via fpc-pascal
On 09/07/2021 23:56, Ryan Joseph via fpc-pascal wrote: On Jul 9, 2021, at 11:40 AM, Wayne Sherman via fpc-pascal wrote: Current standings at the time of this video Iterations per sec: Ada: 67 Pascal: 143 Fastest language: 7301 Slowest language: 1 So Pascal failed pretty bad it looks like.

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Jonas Maebe via fpc-pascal
On 10/07/2021 00:56, Ryan Joseph via fpc-pascal wrote: > > >> On Jul 9, 2021, at 11:40 AM, Wayne Sherman via fpc-pascal >> wrote: >> >> Current standings at the time of this video >> Iterations per sec: >> Ada: 67 >> Pascal: 143 >> Fastest language: 7301 >> Slowest language: 1 > > So Pascal f