Discuss Scratch

NoMod-Programming
Scratcher
1000+ posts

Scratch Interpreter Help

Alright, we all know that Scratch 2 is much faster than Scratch 1.4, but I am wondering if that is due to the new interpreter code. Basically, in Whiskers (which aims to add scratch 2 to 1.4), I've noticed that script execution is MUCH slower than 2.0, which leads me to believe, is it the new interpreter in scratch 2 that makes it faster? I want to know that way I know if it is worth it to rewrite the interpreter in Whiskers.

tl;dr: Is the new interpreter what makes scratch 2 run faster?

Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
bobbybee
Scratcher
1000+ posts

Scratch Interpreter Help

NoMod-Programming wrote:

Alright, we all know that Scratch 2 is much faster than Scratch 1.4, but I am wondering if that is due to the new interpreter code. Basically, in Whiskers (which aims to add scratch 2 to 1.4), I've noticed that script execution is MUCH slower than 2.0, which leads me to believe, is it the new interpreter in scratch 2 that makes it faster? I want to know that way I know if it is worth it to rewrite the interpreter in Whiskers.

tl;dr: Is the new interpreter what makes scratch 2 run faster?
I think Squeak is just kind of slow…

Better to invest your time optimizing Squeak itself, I think.

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
NoMod-Programming
Scratcher
1000+ posts

Scratch Interpreter Help

bobbybee wrote:

NoMod-Programming wrote:

Alright, we all know that Scratch 2 is much faster than Scratch 1.4, but I am wondering if that is due to the new interpreter code. Basically, in Whiskers (which aims to add scratch 2 to 1.4), I've noticed that script execution is MUCH slower than 2.0, which leads me to believe, is it the new interpreter in scratch 2 that makes it faster? I want to know that way I know if it is worth it to rewrite the interpreter in Whiskers.

tl;dr: Is the new interpreter what makes scratch 2 run faster?
I think Squeak is just kind of slow…

Better to invest your time optimizing Squeak itself, I think.
Yeah, I know , but would porting the interpreter from 2.0 to 1.4 to more harm than good, or would it be worth it in terms of speed (without optimizing squeak too much)?

Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
liam48D
Scratcher
1000+ posts

Scratch Interpreter Help

NoMod-Programming wrote:

bobbybee wrote:

NoMod-Programming wrote:

Alright, we all know that Scratch 2 is much faster than Scratch 1.4, but I am wondering if that is due to the new interpreter code. Basically, in Whiskers (which aims to add scratch 2 to 1.4), I've noticed that script execution is MUCH slower than 2.0, which leads me to believe, is it the new interpreter in scratch 2 that makes it faster? I want to know that way I know if it is worth it to rewrite the interpreter in Whiskers.

tl;dr: Is the new interpreter what makes scratch 2 run faster?
I think Squeak is just kind of slow…

Better to invest your time optimizing Squeak itself, I think.
Yeah, I know , but would porting the interpreter from 2.0 to 1.4 to more harm than good, or would it be worth it in terms of speed (without optimizing squeak too much)?
You'd have to try. See online how much optimizing Squeak has helped, though. If a quick optimization is going to make it run 6 times faster, do that instead of re-implementing the 2.0 interpreter

202e-202e-202e-202e-202e UNI-CODE~~~~~
NoMod-Programming
Scratcher
1000+ posts

Scratch Interpreter Help

liam48D wrote:

NoMod-Programming wrote:

bobbybee wrote:

NoMod-Programming wrote:

Alright, we all know that Scratch 2 is much faster than Scratch 1.4, but I am wondering if that is due to the new interpreter code. Basically, in Whiskers (which aims to add scratch 2 to 1.4), I've noticed that script execution is MUCH slower than 2.0, which leads me to believe, is it the new interpreter in scratch 2 that makes it faster? I want to know that way I know if it is worth it to rewrite the interpreter in Whiskers.

tl;dr: Is the new interpreter what makes scratch 2 run faster?
I think Squeak is just kind of slow…

Better to invest your time optimizing Squeak itself, I think.
Yeah, I know , but would porting the interpreter from 2.0 to 1.4 to more harm than good, or would it be worth it in terms of speed (without optimizing squeak too much)?
You'd have to try. See online how much optimizing Squeak has helped, though. If a quick optimization is going to make it run 6 times faster, do that instead of re-implementing the 2.0 interpreter
Alright, I'll get back to you guys on what happens…

Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
NoMod-Programming
Scratcher
1000+ posts

Scratch Interpreter Help

Alright… I couldn't optimize Squeak too much, but I completely rewrote the interpreter from scratch (no pun intended), and I made it about 3-5x faster than NuScratch's interpreter (or about 10x faster than original scratch!). With a few more tweaks, I can expect to get some much needed speed back into the version of scratch made from squeak!

Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
Ethan_1
Scratcher
100+ posts

Scratch Interpreter Help

NoMod-Programming wrote:

Alright… I couldn't optimize Squeak too much, but I completely rewrote the interpreter from scratch (no pun intended), and I made it about 3-5x faster than NuScratch's interpreter (or about 10x faster than original scratch!). With a few more tweaks, I can expect to get some much needed speed back into the version of scratch made from squeak!
Wow! That is great! Keep up the good work @NoMod-Programming

Powered by DjangoBB