1. rearranging routine positions
- Posted by Tone Skoda <tone.skoda at siol.net> Apr 24, 2001
- 411 views
This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C0CCFF.80A68F60 charset="iso-8859-2" utility which would rearrange routines in euphoria file so that they would be all at place before they are used would be very useful and would save me some or sometimes much time. if i have to arrange them by hand it is an endless process i can just hope i will get a combination which will work. if somebody has already written it i would certainly like to have it. or if someone is considering to write it, go ahead! If euporia programs startup time is faster because of this, then i'm for it, cause program startup time is important for me, but if it's for code readability or something similar, then :(. ------=_NextPart_000_0005_01C0CCFF.80A68F60 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-2" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>utility which would rearrange routines = in euphoria=20 file<BR>so that they would be all at place before they are used<BR>would = be very=20 useful and would save me some or sometimes much time.<BR>if i have to = arrange=20 them by hand it is an endless process<BR>i can just hope i will get a=20 combination which will work.<BR>if somebody has already written it i = would=20 certainly like to have it.<BR>or if someone is considering to write it, = go=20 ahead!<BR>If euporia programs startup time is faster because of = this,<BR>then=20 i'm for it, cause program startup time is important for me,<BR>but if = it's for=20 code readability or something similar, then = ------=_NextPart_000_0005_01C0CCFF.80A68F60--
2. Re: rearranging routine positions
- Posted by Irv Mullins <irvm at ellijay.com> Apr 24, 2001
- 399 views
This is a multi-part message in MIME format. --Boundary_(ID_Xbm7BMuq2jdFnnQpP9ZAiQ) ----- Original Message ----- From: Tone Skoda utility which would rearrange routines in euphoria file so that they would be all at place before they are used would be very useful and would save me some or sometimes much time. if i have to arrange them by hand it is an endless process i can just hope i will get a combination which will work. if somebody has already written it i would certainly like to have it. or if someone is considering to write it, go ahead! If euporia programs startup time is faster because of this, then i'm for it, cause program startup time is important for me, but if it's for code readability or something similar, then :(. I have a "routine" that works well: Whenever I write a function/procedure call, I immediately scroll up a bit and write the function or procedure. If I don't exactly know exactly how the function is supposed to work, I write a skeleton function, which can be filled in later. That way I can run my program and catch typos. This saves you a lot of debugging later on, and gives you easier to understand code at no extra expense. It also makes it possible for Euphoria to convert your code to byte codes in one pass, rather than two or three, as would be required if you could declare things in any order. So, yes, it does make Euphoria load faster. Regards, Irv --Boundary_(ID_Xbm7BMuq2jdFnnQpP9ZAiQ) Content-type: text/html; charset=iso-8859-2 Content-transfer-encoding: 7BIT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-2" http-equiv=Content-Type> <META content="MSHTML 5.00.2614.3500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV> </DIV> <BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A href="mailto:tone.skoda at siol.net" title=tone.skoda at siol.net>Tone Skoda</A> </DIV> <DIV><FONT face=Arial size=2>utility which would rearrange routines in euphoria file<BR>so that they would be all at place before they are used<BR>would be very useful and would save me some or sometimes much time.<BR>if i have to arrange them by hand it is an endless process<BR>i can just hope i will get a combination which will work.<BR>if somebody has already written it i would certainly like to have it.<BR>or if someone is considering to write it, go ahead!<BR>If euporia programs startup time is faster because of this,<BR>then i'm for it, cause program startup time is important for me,<BR>but if it's for code readability or something similar, then :(.</FONT></DIV> <DIV> </DIV></BLOCKQUOTE> <DIV><FONT face=Arial size=2>I have a "routine" that works well:</FONT></DIV> <DIV><FONT face=Arial size=2>Whenever I write a function/procedure call, I immediately scroll up a bit and write the function </FONT></DIV> <DIV><FONT face=Arial size=2>or procedure. If I don't exactly know exactly how the function is supposed to work, I write a </FONT></DIV> <DIV><FONT face=Arial size=2>skeleton function, which can be filled in later. That way I can run my program and catch </FONT></DIV> <DIV><FONT face=Arial size=2>typos.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>This saves you a lot of debugging later on, and gives you easier to understand code at no extra </FONT></DIV> <DIV><FONT face=Arial size=2>expense. It also makes it possible for Euphoria to convert your code to byte codes in one pass,</FONT></DIV> <DIV><FONT face=Arial size=2>rather than two or three, as would be required if you could declare things in any order.</FONT></DIV> <DIV><FONT face=Arial size=2>So, yes, it does make Euphoria load faster.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Regards,</FONT></DIV> --Boundary_(ID_Xbm7BMuq2jdFnnQpP9ZAiQ)--
3. Re: rearranging routine positions
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 24, 2001
- 418 views
Hi Tone, this issue brings up the trade-off that RDS made when designing Euphoria. Single-Pass Interpreter (quick load times) verses Multi-Pass Intepreter (improved code quality) I can understand the original decision as it was no doubt influenced by the available computer power when originally devised. I can now no longer understand this philosophy for today's machinery. The current Euphoria design is sufficient for small source files. However it is counter-productive for large source files or projects, where a higher priority is for quality of code rather than loading speeds. I maintain that code quality can be improved if the coder can keep together related pieces of code, regardless of the order of their loading by the interpreter. After some discussion with Robert Craig, I feel that Euphoria will never change to accommodate a multi-pass version while Robert has control of the product. This, in my opinion is a sad thing. By the way, what sort of load times are you experiencing? On my machine, a Win32lib plus EDS program of a many thousands of lines loads in under a second. This has never been an issue for me, so I'm a bit surprised by your requirement. I run an Intel Pentium III 500MHz with 256MB RAM using Windows ME. Not a specially impressive machine, I would have thought. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: Tone Skoda To: EUforum Sent: Wednesday, April 25, 2001 4:45 AM Subject: rearranging routine positions >utility which would rearrange routines in euphoria file >so that they would be all at place before they are used >would be very useful and would save me some or sometimes much time. >if i have to arrange them by hand it is an endless process >i can just hope i will get a combination which will work. >if somebody has already written it i would certainly like to have it. >or if someone is considering to write it, go ahead! >If euporia programs startup time is faster because of this, >then i'm for it, cause program startup time is important for me, >but if it's for code readability or something similar, then :(.
4. Re: rearranging routine positions
- Posted by Tone Skoda <tone.skoda at siol.net> Apr 25, 2001
- 407 views
Derek Parnell wrote: > By the way, what sort of load times are you experiencing? On my machine, a > Win32lib plus EDS program of a many thousands of lines loads in under a > second. This has never been an issue for me, so I'm a bit surprised by your > requirement. Load times aren't slow (Duron 700MHz, 64MB RAM) , but if interpreter would scan files for all functions/procedures/types they would be a little slower, 2 times slower than now? because it would parse all files twice (I'm guessing).