Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
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
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Arrow 02-21-2011, 11:32 AM

Thats interesting. Check out this one that includes the speeds of python.
Attached Files
File Type: a2w speed test.a2w (214.4 KB, 3 views)


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 02-21-2011, 06:16 PM

That's interesting. However, I think deciding between efficiency and proper documentation is something that one shouldn't have to decide, for I think proper documentation shouldn't affect efficiency. Maybe they should do that for Alice 3.0, take out the comments before runtime.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
Join Date: Nov 2008
Location: In the interwebs
Default 02-22-2011, 03:15 PM

Because of the way that the alice core command base is written, it would create even more overhead to do something like that, because you have to create a cop of the entire method structure. (Arty knows what I mean) Of course, this is 500 comments, so there is very little overhead. (Just over .01 seconds) As long as you don't use comments in endless/very long loops that do short things like change a variable fast, you won't get much overhead.


'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
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default 05-17-2011, 11:04 AM

Bump


"Don't lead me into temptation I can find it myself"
   
Reply With Quote
Help!!!
Old
cpking1
Junior Member
 
Status: Offline
Posts: 12
Join Date: Mar 2011
Talking Help!!! - 05-17-2011, 02:46 PM

First, I'm new to Alice and don"t know much, so please don't be made cuze i'm doing it all wrong.
I have got a problem: why doesn't my collision detector work. it work for a couple of tries, but then sudenly it failed.
Please help me out here!!

Oh i loved the collision engine and stuff (don't get it all but still)

Cpking1

The flying Dutchman
Attached Files
File Type: a2w forward motion.a2w (197.8 KB, 0 views)
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 05-17-2011, 05:05 PM

Zone has not been on in a while, would you like some one else or me to help you?


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
cpking1
Junior Member
 
Status: Offline
Posts: 12
Join Date: Mar 2011
Default 05-18-2011, 10:00 AM

I don't care who helps if some one please helps me
O and I have got an other one same story.

I would be real greatfull for any kind of help


CPKing1

The Flying Dutchman
Attached Files
File Type: a2w collision detection.a2w (190.1 KB, 0 views)
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 05-18-2011, 10:18 AM

I will look at this when I have time. Sorry


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
cpking1
Junior Member
 
Status: Offline
Posts: 12
Join Date: Mar 2011
Default 05-18-2011, 10:33 AM

does not matter at all

thanks


CPKing1

The Flying Dutchman
   
Reply With Quote
Reply

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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.