Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread Rainer Weikusat
glen herrmannsfeldt writes: > In comp.lang.fortran E.D.G. wrote: "E.D.G." wrote in message news:ro-dnch2dptbrhnpnz2dnuvz_rsdn...@earthlink.com... >> Posted by E.D.G. on November 19, 2013 > >> 1. PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN > > (snip) > >> This progr

Re: Program Translation - Nov. 14, 2013

2013-11-17 Thread Rainer Weikusat
Roy Smith writes: > Henry Law wrote: > >> On 17/11/13 14:37, E.D.G. wrote: >> > All of my own important programs are written using Perl. I am starting >> > to run into calculation speed limitations with one of the programs. >> >> Your Perl code is, er, sub-optimal. There is absolutely no poin

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Rainer Weikusat
j...@toerring.de (Jens Thoms Toerring) writes: > In comp.lang.python Steven D'Aprano > wrote: >> On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > >> > According to CIO.com, Python programmers make only $83,000 per year, >> > while Perl programmers make $93,000 per year. >> > >> > http

Re: f python?

2012-04-11 Thread Rainer Weikusat
Shmuel (Seymour J.) Metz writes: > In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 >at 09:10 PM, Rainer Weikusat said: > >>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >>first/rest terminology can

Re: f python?

2012-04-10 Thread Rainer Weikusat
Shmuel (Seymour J.) Metz writes: > In <20120409111329@kylheku.com>, on 04/09/2012 >at 06:55 PM, Kaz Kylheku said: > >>Null-terminated C strings do the same thing. > > C arrays are not LISP strings; there is no C analog to car and cdr. 'car' and 'cdr' refer to cons cells in Lisp, not to s

Re: f python?

2012-04-09 Thread Rainer Weikusat
Rainer Weikusat writes: > Shmuel (Seymour J.) Metz writes: > > [...] > >>>For one thing, if s is a non-empty null terminated string then, >>>cdr(s) is also a string representing the rest of that string >>>without the first character, >> >> Are

Re: f python?

2012-04-09 Thread Rainer Weikusat
Shmuel (Seymour J.) Metz writes: [...] >>For one thing, if s is a non-empty null terminated string then, >>cdr(s) is also a string representing the rest of that string >>without the first character, > > Are you really too clueless to differentiate between C and LISP? In LISP, a list is a set o

Re: Is Programing Art or Science?

2012-04-03 Thread Rainer Weikusat
Xah Lee writes: [...] > For example, “Is mathematics science or art?”, is the same type of > question that has been broached by dabblers now and then. http://en.wikipedia.org/wiki/Liberal_arts HTH. -- http://mail.python.org/mailman/listinfo/python-list

Re: lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-03-01 Thread Rainer Weikusat
Xah Lee writes: [...] > similarly, in perl, either one > require POSIX; floor(x/y); > the require POSIX instead of Math is a quirk. But even, floor should > really be builtin. > or > using a perl hack > int(x/y) > > all of the above are quirks. They rely on computer engineering by- > products (s

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots Af

2012-03-01 Thread Rainer Weikusat
Shmuel (Seymour J.) Metz writes: > In <87aa41k6x5@sapphire.mobileactivedefense.com>, on 02/29/2012 >at 03:15 PM, Rainer Weikusat said: > >>'mathematics' (an essentially outdated write-only programming >>language dating back to the times when

Re: lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-03-01 Thread Rainer Weikusat
Xah Lee writes: [...] > # perl > # in-place algorithm for reversing a list. > > use strict; > use Data::Dumper; > use POSIX; # for “floor” > > my @listA = qw(a b c d e f g); > > my $listLength = scalar @listA; > > for ( my $i = 0; $i < floor($listLength/2); $i++ ) { > my $x = $listA[$i]; >

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread Rainer Weikusat
Xah Lee writes: > A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 > on “Operators”. Quote: > > «The associativity of an operator governs whether it evaluates from > left to right or right to left. Addition is left associative, such > that 2 + 3 + 4 evaluates 2 + 3 first, then