Article View: comp.lang.basic.visual.misc
Article #170Re: "SHOULD I DUMP VISUAL BASIC?"
From: John Osborne
Date: Tue, 27 Feb 1996 02:40
Date: Tue, 27 Feb 1996 02:40
65 lines
4201 bytes
4201 bytes
Jack... I can agree with you up to a point. I believe it is a fine line. And I believe that one "crosses the line" when the decisions in the called routine have to infer a lot of semantic content based on the parameters, and/or a combination of parameters. John jackf@sisna.com wrote: > > On Sun, 18 Feb 1996 17:56:34 +1000, John Osborne > <josborne@magna.com.au> wrote: > > >Pat, et. al.... > >The compiled .vs. interpreted debate is partially bogus. Even in > >compiled languages, on a PC or a mainframe, as soon as ones code enters > >a runtime library routine, you are -probably- off into > >interpretation-land. > >I say -probably- because if your runtime routine has any conditional > >statements that cause the routine to act differently depending on > >parameter content (i.e., different logic paths) it is > >"mini-interpreting". > > > >For example, you call the printf routine in -C-, or a formatted -write- > >statement in Fortran, VB's Format$ routine, or just about any > >non-trivial Delphi component, and you are executing an interpreter of > >that language feature. Sure, the printf function in the -C- runtime > >library is compiled, as is the ChartFX component in Delphi, or the > >read/write routines in a Tandem Cobol program, but the runtime system > >has to -interpret- your parameters via lots of conditional statements to > >make sense of your parameters/data and perform the requested action. > >When using VB or other -statement based- interpreted languages, where > >most people suffer a performance hit is doing things like writing their > >own INSTR function -within- VB. Each p-code statement has to be > >interpreted via VBRUNxxx.DLL which is far worse than just using the > >library routine. > > > >Regards, John > > > >viewer wrote: > >> > >> Pat White <pat@pwhite.demon.co.uk> wrote: > >> > >> >In nearly 40 years in computing I've never come across anything in any > >> >language definition that prevents compiling. That includes BASIC which > >> >is where this discussion started and p-code. Likewise, they COULD all be > >> >interpreted, only most companies realise compiling is better. Microsoft > >> >is the exception - they tried and failed badly, anyone remember their > >> >Fortran compiler for the PC. When it compiled without falling over you > >> >were amazed. When you ran the results you were sorry! > >> > >> OTOH, their DOS Basic compilers were fantastic. > > I believe John is incorrect if he is saying as it appears that any > code which has a decission tree is interpretive. Interpretive > languages vs compiled has nothing to do with the logic of the code. > The point is that compiled (true compiled not pcode) languages are > already in binary form and so executable directly while each line of > an interpretive language is converted to binary, each time it is > executed. Four calls to the BASIC print function results in for > "compiles" at run time. Four calls to printf in C results in one > compile at compile time and no compiles at run time. The difference > is not trivial in terms of speed of execution. Note that the printf > function is a bad example as it carries more overhead than most C > functions. > Jack
Technical Details
Message-ID:
<31326F10.6A4D@magna.com.au>Path:
arc1-ca.pugleaf.net!kettle.magna.com.au!newsReferences:
<4e9g08$3dp@maureen.teleport.com> <Pine.SUN.3.90.960126125658.2477C-100000@menger.eecs.stevens-tech.edu> <sundial.2191.00464727@primenet.com> <DLvxyq.62w@news.hawaii.edu> <4et3p7$79o@cloud9.net> <823335327.28831@williaj.demon.co.uk> <4f8akg$i3k@druid.borland.com> <W1eMJBAdliGxEwNI@pwhite.demon.co.uk> <31224bc4.6786639@news.netonecom.net> <3126DBB2.5209@magna.com.au> <3129f6ce.1813908@news.sisna.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kettle.magna.com.au!news From: John Osborne <josborne@magna.com.au> Newsgroups: comp.lang.basic.visual.misc,comp.lang.pascal.delphi.misc,comp.lang.c++ Subject: Re: "SHOULD I DUMP VISUAL BASIC?" Date: Tue, 27 Feb 1996 12:40:16 +1000 Organization: MAGNADATA Internet Services Message-ID: <31326F10.6A4D@magna.com.au> References: <4e9g08$3dp@maureen.teleport.com> <Pine.SUN.3.90.960126125658.2477C-100000@menger.eecs.stevens-tech.edu> <sundial.2191.00464727@primenet.com> <DLvxyq.62w@news.hawaii.edu> <4et3p7$79o@cloud9.net> <823335327.28831@williaj.demon.co.uk> <4f8akg$i3k@druid.borland.com> <W1eMJBAdliGxEwNI@pwhite.demon.co.uk> <31224bc4.6786639@news.netonecom.net> <3126DBB2.5209@magna.com.au> <3129f6ce.1813908@news.sisna.com> NNTP-Posting-Host: josborne.magna.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0GoldB1 (Win95; I) To: jackf@sisna.com