On Mon, 18 Dec 2017 20:16:03 +0100
Benito van der Zander wrote:
>[...]
> But recently I have started to change everything to pointers.
>
> For example when you have an array and want a subrange without the first
> element of the array, you can either copy almost everything in a new
> array, or
Hi,
Of course not. First of all 10 is ridiculously small and second
the above example is probably optimized by the engine.
For example under V8 with 1 iterations you get 1.1s and 1.9s.
It is not so small or optimized with Firefox.
It took around 100ms
With 1000, it gives 547
On Mon, 18 Dec 2017 14:55:53 +0100
Benito van der Zander wrote:
>[...]
> > That would be quite a slow down.
>
> Is it?
>
> I saw no speed difference between
>
> var x = 1;
> for (var i=0;i<10;i++) x++;
>
> and
>
> var x = [1];
> for (var i=0;i<10;i++) x[0]++;
>
> in Firefox.
Of c
Am 18.12.2017 14:56 schrieb "Benito van der Zander" :
Isn't speed the main idea of using pointers?
It would be to port all existing pascal code
But that isn't the goal of pas2js. That is what WebAsm is for.
You may want to take a look at asm.js, which has a working
model for emulating pointe
Hi,
It seems you want to emulate pointer of integer.
Of all primitive types
In the JavaScript example there was no more integer typing.
That would be quite a slow down.
Is it?
I saw no speed difference between
var x = 1;
for (var i=0;i<10;i++) x++;
and
var x = [1];
for (var i=0;
On Mon, 18 Dec 2017 10:57:59 +0100
Ondrej Pokorny wrote:
> On 18.12.2017 10:54, Marco van de Voort wrote:
> > {$i %CURRENTROUTINE%}
>
> Thank you!
> Ondrej
Lazarus completion box shows that too.
Mattias
___
fpc-devel maillist - fpc-devel@lists.fr
On 18.12.2017 10:54, Marco van de Voort wrote:
{$i %CURRENTROUTINE%}
Thank you!
Ondrej
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
In our previous episode, Ondrej Pokorny said:
>
> I remember there should be a compiler macro in current FPC trunk to get
> the function name but I cannot find it:
>
> function TMyObject.DoSomething: Integer;
> begin
> ? Writeln(_CLASSNAME_, '.', _FUNCTIONNAME_);
> end;
>
> Does anybody know t
Hello!
I remember there should be a compiler macro in current FPC trunk to get
the function name but I cannot find it:
function TMyObject.DoSomething: Integer;
begin
Writeln(_CLASSNAME_, '.', _FUNCTIONNAME_);
end;
Does anybody know the macros or do I remember it wrongly?
Thanks
Ondrej
___
Hallo,
I want to share my experience with FreePascal 3.0.4 so far. Maybe this
can save someone else (that comes across the same problems) some time:
fpcbuild-3.0.4.tar.gz:
I tried to build RPM packages for OpenSUSE from fpcbuild-3.0.4.tar.gz
(downloaded from sourceforge.net). But that failed bec
10 matches
Mail list logo