This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Add an option to disable automatic compiling of scripts?

#1 2010-05-28 16:18:13

DB88
Scratcher
Registered: 2010-05-20
Posts: 42

Add an option to disable automatic compiling of scripts?

I have been working on a large project, and editing has become painfully slow.  I'm not sure how Scratch works, but it appears to be compiling the scripts after every edit in order to allow the user to have the option to immediately execute the program.  If this is the case, would it be possible to have an option to allow the user to choose when they are ready to compile and run?  I would gladly trade the ability to immediately execute a program for a less frustrating editing experience.


Most Recent Projects: 
Four Bar Linkage Animator:  http://scratch.mit.edu/projects/DB88/1102417  ...... Moon Defender:  http://scratch.mit.edu/projects/DB88/1092234  ..... BUGS:  http://scratch.mit.edu/projects/DB88/1095318

Offline

 

#2 2010-05-28 16:19:26

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Add an option to disable automatic compiling of scripts?

I'd love this! It would certainly be a great addition - though I fear that it might take away from the simplicity of the program. Maybe it could be in the shift-clicked "file" menu, with project summaries, etc?

Offline

 

#3 2010-05-28 18:02:55

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Add an option to disable automatic compiling of scripts?

I agree, this would be nice. But when this happens, they need to make an "script editor only" place/program. Or make it so you can type out the scripts.  tongue

Offline

 

#4 2010-06-25 08:58:23

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Add an option to disable automatic compiling of scripts?

I'm pretty sure the Scratch blocks are compiled into code as the project runs. (That's partly why Scratch is so much slower than other languages.)

I'm pretty sure that the lag in large scripts results from the script having to constantly be redrawn-when it gets big, it takes a while to draw.

Last edited by Harakou (2010-06-25 08:59:38)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2010-06-25 09:00:52

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Add an option to disable automatic compiling of scripts?

Harakou wrote:

I'm pretty sure the Scratch blocks are compiled into code as the project runs. (That's partly why Scratch is so much slower than other languages.) I'm pretty sure that the lag in large scripts results from the script having to constantly be redrawn-when it gets big, it takes a while to draw.

That would make sense.

I think there's several reasons why Scratch is slow:
- Redrawing scripts everytime you change them.
- Runs directly off the source code in Squeak through a VM
- When running projects, runs directly off the scripts
- Added delay when looping.

Yeah... All those things really add up to an unfortunate series of slow events.

Offline

 

#6 2010-06-25 10:03:47

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Add an option to disable automatic compiling of scripts?

This would really speed up script editing, meaning no lag when moving blocks around.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 
  • Index
  •  » Suggestions
  •  » Add an option to disable automatic compiling of scripts?

Board footer