• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Kaj
13-Jul-2012
[674]
Better enter both in the bug tracker, then
DocKimbel
13-Jul-2012
[675]
Rebolek: yes, add them to the bugtracker, I will fix them this weekend.
Rebolek
13-Jul-2012
[676x2]
That's great, thanks!
Just an update, I just tried latest Kaj's code on Ubuntu under VirtualBox 
and I get *** Runtime Error 9: float invalid operation
DocKimbel
13-Jul-2012
[678]
It looks like we haven't tested floats pointer arithmetic enough.
Kaj
13-Jul-2012
[679]
Is that 64 bit Ubuntu?
Rebolek
13-Jul-2012
[680]
32bit Lubuntu
DocKimbel
15-Jul-2012
[681]
Rebolek: I've pushed a fix for your issue (Intel CPU). I'm looking 
on the other issue you had with ARMv5TE.
Rebolek
15-Jul-2012
[682]
Great! But I've got another one... putting it to bugtracker.
DocKimbel
15-Jul-2012
[683]
For the ARM isse, I'm testing with an emulated ARMv5TEJL, and both 
Fibonacci and Mandelbrot perform correctly. I've added some questions 
to the ticket on the bugtracker.
Rebolek
15-Jul-2012
[684]
I will provide the info tomorrow when I have access to the machine.
DocKimbel
15-Jul-2012
[685]
I've answered to your ticket #220.
Rebolek
15-Jul-2012
[686]
Thanks, it's getting late, I better should left testing for tommorrow 
:)
DocKimbel
15-Jul-2012
[687x2]
I've located the cause of bug #220, you should have a fix when you'll 
wake up. ;-)
Fix for issue #220 pushed.
Rebolek
16-Jul-2012
[689x2]
Wow, that' was fast! :)
I've added information about my machine to #219 (no gcc info, as 
it doesn't have gcc installed).
Rebolek
17-Jul-2012
[691]
Doc, another float! problem found (#221).
Rebolek
18-Jul-2012
[692]
Can anybody check this code? https://gist.github.com/3135678

It's not a bug, but I wonder why the obviously more complex sine-osc 
is cca 50% faster than square-osc. These are the results I get on 
my machine:

sine-osc time:  1068
square-osc time:  1790
PeterWood
18-Jul-2012
[693]
Are you running on OSX?
Rebolek
18-Jul-2012
[694]
Windows
PeterWood
18-Jul-2012
[695x2]
If I remember correctly, the Windows clock function is a bit different 
from the LibC one.
I use Query PerformnceCounter in Windows in my Date-Time lib.
Rebolek
18-Jul-2012
[697]
So you think that the 50% speed difference between these two functions 
is due to Windows clock?
Pekr
18-Jul-2012
[698x3]
Windows clock is bitch :-)
http://www.codeproject.com/Articles/1236/Timers-Tutorial
There's even some mention of the Amiga in the above article comments, 
and even Carl liked it, IIRC :-)
Rebolek
18-Jul-2012
[701]
Well the timing is consistently more or less same and square-osc 
is always about 50% slover than sine-osc. I think that it's not caused 
by Windows timing.
Kaj
18-Jul-2012
[702x3]
Beats me. It looks OK
It's true, though, that process-time is currently a primitive function
Have you tried moving the one execution before the other, to make 
sure it's not some process anomaly?
Rebolek
18-Jul-2012
[705]
Yes.
Kaj
18-Jul-2012
[706x2]
Seems like a fairly sound timing, then
You could try increasing the loops another tenfold
Rebolek
18-Jul-2012
[708x3]
Yes, I also tried putting more loops there (for example sine sine 
square square sine square), but the timing is always consistent.
Loop increased tenfold:

sine-osc time:  10576
square-osc time:  22034
Switched order:

square-osc time:  17441
sine-osc time:  15318
Kaj
18-Jul-2012
[711x4]
There's a lot of variation in the results for such a long loop, so 
it does point to timer instability
I remember that most platforms account real scheduler timeslices 
in this function, while some basically take wall clock time
I think the latter was Windows, so that would make ik very susceptible 
to anything else going on in the machine
Still, the difference between the Red functions is mysterious. I 
think Nenad would have to analyse that
Rebolek
18-Jul-2012
[715]
It isn't causing any problems, I'm just curious why it happens.
Kaj
18-Jul-2012
[716x5]
Yes, it's a good point
Syllable Server (Linux):
bash-4.0# ./test                                                 
                                                                 
           
sine-osc time: 5330000
square-osc time: 2760000
bash-4.0# ./test 
sine-osc time: 5450000
square-osc time: 2830000
That's stable scheduler timing. Problem solved, I guess, but not 
a good verdict for Windows
There could still be a performance issue on Windows
Rebolek
18-Jul-2012
[721]
These numbers look like something I expected :)
DocKimbel
18-Jul-2012
[722x2]
These are the timings on my Win7/Corei7 box:

sine-osc time:   1003
square-osc time: 939

sine-osc time:   997
square-osc time: 938

sine-osc time:   997
square-osc time: 952

-- reversed order --

square-osc time: 938
sine-osc time:   995

square-osc time: 939
sine-osc time:   996

square-osc time: 939
sine-osc time:   996
(ran the tests 3 times for each order)