Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 02-20-2011, 07:23 PM

Alice does not compile code before runtime, so it actually does have go process the comment to know to skip over it. In a language like C, the comments are completely removed before the code is compiled into assembly. In python, bytecode is generated for each command and comments are ignored, and then the code is run, so the only performance drawback is when the file is modified. Remember that alice isn't exactly a programming language that you'd expect. It's all executed in an unorthodox way. Also, it's interesting to note that disabled tiles are not time consuming. Please try running this world for an example of what I mean. I guarantee that I didn't make the comment loop longer. It's because of the comments!
Attached Files
File Type: a2w speed test.a2w (182.8 KB, 6 views)


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.