ekecole, I don't understand your comment. There are two scratch interpreters, one written in java (for the web applets) and one written in Squeak. Canthiar was noticing the difference in the two implementations.
I don't know whether the timer in the java implementation has bugs, or whether it is just a really slow implementation. From the behavior I have seen in some programs, I suspect bugs, but this tool is not adequate for determining that.
very intersting... in squeak by displays were approximately bimodally distributed around
0.0025 (lots of variance) and 0.01 (a little variance), but in java I was shocked to see they were distributed around 0.06 and 0.21 (with no variance at all). This is a much longer delay
A simple timer test that measures how long a wait statement takes and draws a histogram of the extra delay.
Note: the extra delay is in part due to the time it takes to read the timer before and after the wait.
Comments
You need to be logged in to post comments
Add a Comment
ekecole, I don't understand your comment. There are two scratch interpreters, one written in java (for the web applets) and one written in Squeak. Canthiar was noticing the difference in the two implementations.
(view all replies)Comment Reply
*in response to a certain 'Canthiar' who will probably never read this* LOL! 'Squeak'? Tell me somebody caught that.
(view all replies)Comment Reply
I don't know whether the timer in the java implementation has bugs, or whether it is just a really slow implementation. From the behavior I have seen in some programs, I suspect bugs, but this tool is not adequate for determining that.
(view all replies)Comment Reply
OK this is all fancy talk! there's some internal software clock that is goofy in the way it times things / clock cycles for events? Foob
(view all replies)Comment Reply
very intersting... in squeak by displays were approximately bimodally distributed around 0.0025 (lots of variance) and 0.01 (a little variance), but in java I was shocked to see they were distributed around 0.06 and 0.21 (with no variance at all). This is a much longer delay
(view all replies)Comment Reply
It really shows a big difference between the timer in the Java version and the timer in the Squeak version.
(view all replies)Comment Reply