[fpc-devel] Faster trig functions

2024-06-28 Thread J. Gareth Moreton via fpc-devel
Hi everyone, So for a few weeks now, I've been playing with the idea of speeding up the trig functions in Free Pascal, or at least the trig functions for Single-precision which find uses in graphical applications where deep precision is not absolutely necessary, but speed is paramount.  Never

Re: [fpc-devel] pure function feedback

2024-06-28 Thread J. Gareth Moreton via fpc-devel
Hi Marģers, Thanks for the feedback! Assigning the results of pure functions to constants has not yet been developed.  I had planned to add it once the bulk of pure functions (i.e. the current merge request) had been approved since it requires some additional work (specifically what happens i

Re: [fpc-devel] Concatenating huge AnsiStrings

2024-06-28 Thread Sven Barth via fpc-devel
Virgo Pärna via fpc-devel schrieb am Fr., 28. Juni 2024, 08:41: > On Fri, 21 Jun 2024 20:03:56 +0200, Marco van de Voort via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > > Probably terminate with a heap out of memory error. > > Also depends of platform... > > program tests; > var > s,

[fpc-devel] pure function feedback

2024-06-28 Thread Marģers . via fpc-devel
1. pure function value to constants function foo(i:longword):longword; pure; begin   foo:=9; end; const bar = foo( 8 );  //-- not allowed.. but i expect this to work! jar : longword = foo( 7 ); //-- and this as well 2. this does not end grasefully function foo (i:longword):shortstring;

Re: [fpc-devel] Unnoticed bug report

2024-06-28 Thread Werner Pamler via fpc-devel
Please don't misunderstand  my word "de-motivating" as criticism, I should not have used it, sorry. Am 27.06.2024 um 16:51 schrieb Michael Van Canneyt via fpc-devel: We're not a company with a policy on a guaranteed response time. We all have day-time jobs. Gitlab notifies me of new bugreport