Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.fortran > #39337

Re: Several Topics - Nov. 19, 2013

From Rainer Weikusat <rweikusat@mobileactivedefense.com>
Newsgroups comp.lang.fortran, comp.lang.perl.misc, comp.lang.python
Subject Re: Several Topics - Nov. 19, 2013
Date 2013-11-19 21:35 +0000
Message-ID <87fvqs6pns.fsf@sable.mobileactivedefense.com> (permalink)
References <ro-dnch2dPtbRhnPnZ2dnUVZ_rSdnZ2d@earthlink.com> <jcKdnQiu1ZxguxvPnZ2dnUVZ_qmdnZ2d@earthlink.com> <UdKdnSzeg-k9BBXPnZ2dnUVZ_vadnZ2d@earthlink.com> <N6qdnQB9idNM1xbPnZ2dnUVZ_sadnZ2d@earthlink.com> <l6gj03$khv$1@speranza.aioe.org>

Cross-posted to 3 groups.

Show all headers | View raw


glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
> In comp.lang.fortran E.D.G. <edgrsprj@ix.netcom.com> wrote:
>>>> "E.D.G." <edgrsprj@ix.netcom.com> wrote in message 
>>>> news:ro-dnch2dPtbRhnPnZ2dnUVZ_rSdnZ2d@earthlink.com...
>> Posted by E.D.G. on November 19, 2013
>  
>> 1.  PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN
>  
> (snip)
>
>>       This program translation project has become one of the most 
>> surprisingly successful programming projects I have worked on to date.  A 
>> considerable amount of valuable information has been sent to me by E-mail in 
>> addition to all of the information posted to the Newsgroups.
>  
>>       The original posts actually discussed calculation speed matters 
>> involving Perl and Python.  And responses indicated that there were ways to 
>> develop routines that could dramatically accelerate Python calculations. 
>> But it did not sound like there were any for Perl.
>
> In general, language processors can be divided into two categories
> called compilers and interpreters.  Compilers generate instructions for
> the target processors. Interpreters generate (usually) an intermediate
> representation which is then interpreted by a program to perform the
> desired operations. That latter tends to be much slower, but more
> portable.
>
> There are a few langauges that allow dynamic generation of code, which
> often makes compilation impossible, and those languages tend to be
> called 'interpreted langauges'.

These two paragraphs use the same terms in conflicting ways and the
assertions in the second paragraph are wrong: Lisp is presumably the
oldest language which allows 'dynamic code creation' and implementations
exist which not only have a compiler but actually don't have an
interpreter, cf

http://www.sbcl.org/manual/index.html#Compiler_002donly-Implementation

The main difference between a compiler and an interpreter is that the
compiler performs lexical and semantical analysis of 'the source code'
once and then transforms it into some kind of different 'directly
executable representation' while an interpreter would analyze some part
of the source code, execute it, analyze the next, execute that, and so
forth, possibly performing lexical and semantical analysis steps many
times for the same bit of 'source code'.

Some compilers produce 'machine code' which can be executed directly by
'a CPU', others generate 'machine code' for some kind of virtual machine
which is itself implemented as a program. The distinction isn't really
clear-cut because some CPUs are designed to run 'machine code'
originally targetted at a virtual machine, eg, what used to be ARM
Jazelle for executing JVM byte code directly on an ARM CPU, some virtual
machines are supposed to execute 'machine code' which used to run
'directly on a CPU' in former times, eg, used for backwards
compatibility on Bull Novascale computers.

Prior to execution, Perl source code is compiled to 'machine code' for a
(stack-based) virtual machine. Both the compiler and the VM are provided
by the perl program. There were some attempts to create a standalone
Perl compiler in the past but these never gained much traction.

Back to comp.lang.fortran | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-14 08:18 -0600
  Re: Program Translation - Nov. 14, 2013 "FX" <coudert@alussinan.org> - 2013-11-14 14:37 +0000
    Re: Program Translation - Nov. 14, 2013 Tim Prince <tprince@computer.org> - 2013-11-14 07:04 -0800
      Re: Program Translation - Nov. 14, 2013 Tim Prince <tprince@computer.org> - 2013-11-16 08:23 -0800
        Re: Program Translation - Nov. 14, 2013 mecej4 <mecej4_nospam@operamail.com> - 2013-11-17 08:28 -0600
  Re: Program Translation - Nov. 14, 2013 mecej4 <mecej4_nospam@operamail.com> - 2013-11-14 11:07 -0600
    Re: Program Translation - Nov. 14, 2013 Gordon Sande <Gordon.Sande@gmail.com> - 2013-11-14 13:36 -0400
      Re: Program Translation - Nov. 14, 2013 Clive Page <usenet@page2.eu> - 2013-11-15 11:46 +0000
    Re: Program Translation - Nov. 14, 2013 Jürgen Exner <jurgenex@hotmail.com> - 2013-11-17 09:02 -0800
  Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-15 07:51 -0600
    Re: Program Translation - Nov. 14, 2013 e p chandler <epc8@juno.com> - 2013-11-15 09:18 -0800
      Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 05:26 -0600
        Re: Program Translation - Nov. 14, 2013 e p chandler <epc8@juno.com> - 2013-11-20 07:12 -0800
    Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 04:25 -0600
      Re: Program Translation - Nov. 14, 2013 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-17 12:45 +0000
        Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 08:37 -0600
          Re: Program Translation - Nov. 14, 2013 Henry Law <news@lawshouse.org> - 2013-11-17 14:42 +0000
            Re: Program Translation - Nov. 14, 2013 Roy Smith <roy@panix.com> - 2013-11-17 10:20 -0500
              Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 10:25 -0600
                Re: Program Translation - Nov. 14, 2013 Tim Prince <tprince@computer.org> - 2013-11-17 08:30 -0800
                Re: Program Translation - Nov. 14, 2013 Roy Smith <roy@panix.com> - 2013-11-17 11:43 -0500
                Re: Program Translation - Nov. 14, 2013 nospam@see.signature (Richard Maine) - 2013-11-17 09:05 -0800
                Re: Program Translation - Nov. 14, 2013 Gordon Sande <Gordon.Sande@gmail.com> - 2013-11-17 14:09 -0400
              Re: Program Translation - Nov. 14, 2013 Rainer Weikusat <rweikusat@mobileactivedefense.com> - 2013-11-17 18:59 +0000
          Re: Program Translation - Nov. 14, 2013 "James Van Buskirk" <not_valid@comcast.net> - 2013-11-17 09:05 -0700
            Re: Program Translation - Nov. 14, 2013 Ron Shepard <ron-shepard@NOSPAM.comcast.net> - 2013-11-17 10:39 -0500
              Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 11:24 -0600
        Re: Program Translation - Nov. 14, 2013 Charlton Wilbur <cwilbur@chromatico.net> - 2013-11-17 23:22 -0500
      Re: Program Translation - Nov. 14, 2013 "FX" <coudert@alussinan.org> - 2013-11-17 14:21 +0000
        Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 10:34 -0600
          Re: Program Translation - Nov. 14, 2013 "FX" <coudert@alussinan.org> - 2013-11-17 20:30 +0000
            Re: Program Translation - Nov. 14, 2013 Thomas Koenig <tkoenig@netcologne.de> - 2013-11-17 20:35 +0000
              Re: Program Translation - Nov. 14, 2013 nospam@see.signature (Richard Maine) - 2013-11-17 13:14 -0800
            Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-18 10:50 -0600
            Re: Program Translation - Nov. 14, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-18 22:41 +0000
      Re: Program Translation - Nov. 14, 2013 Henry Law <news@lawshouse.org> - 2013-11-17 14:31 +0000
        Re: Program Translation - Nov. 14, 2013 Gib Bogle <g.bogle@auckland.ac.nz> - 2013-11-18 07:07 +1300
      Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 10:17 -0600
        Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-17 12:07 -0600
        Re: Program Translation - Nov. 14, 2013 Thomas Koenig <tkoenig@netcologne.de> - 2013-11-17 19:36 +0000
      Several Topics - Nov. 19, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-19 05:26 -0600
        Re: Several Topics - Nov. 19, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-19 20:51 +0000
          Re: Several Topics - Nov. 19, 2013 Rainer Weikusat <rweikusat@mobileactivedefense.com> - 2013-11-19 21:35 +0000
            Re: Several Topics - Nov. 19, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-19 22:43 +0000
              Re: Several Topics - Nov. 19, 2013 gamo <gamo@telecable.es> - 2013-11-20 21:48 +0100
                Re: Several Topics - Nov. 19, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-21 01:55 +0000
                Re: Several Topics - Nov. 19, 2013 Charlton Wilbur <cwilbur@chromatico.net> - 2013-11-21 14:35 -0500
  Re: Program Translation - Nov. 14, 2013 "Terence" <tbwright@bigpond.net.au> - 2013-11-16 20:31 +1100
  Re: Program Translation - Nov. 14, 2013 ftinetti@gmail.com - 2013-11-19 06:12 -0800
    Re: Program Translation - Nov. 14, 2013 Gordon Sande <Gordon.Sande@gmail.com> - 2013-11-19 11:10 -0400
      Re: Program Translation - Nov. 14, 2013 ftinetti@gmail.com - 2013-11-19 08:35 -0800
    Re: Program Translation - Nov. 14, 2013 "Terence" <tbwright@bigpond.net.au> - 2013-11-20 14:43 +1100
      Re: Program Translation - Nov. 14, 2013 "Terence" <tbwright@bigpond.net.au> - 2013-11-20 14:56 +1100
        Re: Program Translation - Nov. 14, 2013 ftinetti@gmail.com - 2013-11-20 02:32 -0800
        Re: Program Translation - Nov. 14, 2013 michaelmetcalf@compuserve.com - 2013-11-22 00:54 -0800
      Re: Program Translation - Nov. 14, 2013 Brian Salter-Duke <brian.james.duke@gmail.com> - 2013-11-20 10:19 +0000
      Re: Program Translation - Nov. 14, 2013 ftinetti@gmail.com - 2013-11-20 02:28 -0800
    Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-21 14:50 -0600
      Re: Program Translation - Nov. 14, 2013 e p chandler <epc8@juno.com> - 2013-11-21 14:07 -0800
        Re: Program Translation - Nov. 14, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-21 22:41 +0000
          Re: Program Translation - Nov. 14, 2013 robin.vowels@gmail.com - 2013-11-21 16:13 -0800
            Re: Program Translation - Nov. 14, 2013 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-11-22 02:41 +0000
        Re: Program Translation - Nov. 14, 2013 e p chandler <epc8@juno.com> - 2013-11-21 17:13 -0800
          Re: Program Translation - Nov. 14, 2013 "E.D.G." <edgrsprj@ix.netcom.com> - 2013-11-21 23:24 -0600

csiph-web