Re: Trying to decide between PHP and Python

2011-02-09 Thread Benjamin J. Racine
Cython/Sage is no small undertaking, but I have no idea how to measure relative success between that and hiphop. Ben On Jan 6, 2011, at 11:11 AM, John Nagle wrote: > On 1/4/2011 12:20 PM, Google Poster wrote: >> >> About once a year, I have to learn yet another programming language. >> Given a

Re: Trying to decide between PHP and Python

2011-01-06 Thread BartC
"Ben Finney" wrote in message news:87bp3wf3zw@benfinney.id.au... Tomasz Rola writes: Heh. One day, guys, when you have nothing better to do, try writing a parser for Lisp-like language (Common Lisp, Scheme, whatever). After that, do the same with some other language of your preference

Re: Trying to decide between PHP and Python

2011-01-06 Thread geremy condra
On Thu, Jan 6, 2011 at 12:54 PM, John Nagle wrote: > On 1/6/2011 12:41 PM, Chris Rebert wrote: >> >> On Thu, Jan 6, 2011 at 11:11 AM, John Nagle  wrote: >>> >>> On 1/4/2011 12:20 PM, Google Poster wrote: About once a year, I have to learn yet another programming language. Given all

Re: Trying to decide between PHP and Python

2011-01-06 Thread Sol Toure
> > >> > >>> There. Now that I've tossed some gasoline on the language wars fire, > >>> I'll duck and run in the other direction :-) > >> > >> May I suggest a better strategy? Run first, duck next :-). > > > > Or more precisely: > > > > ((run) duck) > > If you're going to mock another language,

Re: Trying to decide between PHP and Python

2011-01-06 Thread Kurt Smith
On Thu, Jan 6, 2011 at 3:32 PM, Alan Meyer wrote: > On 1/5/2011 11:40 AM, Tomasz Rola wrote: >> >> On Tue, 4 Jan 2011, Roy Smith wrote: >> >>> There.  Now that I've tossed some gasoline on the language wars fire, >>> I'll duck and run in the other direction :-) >> >> May I suggest a better strateg

Re: Trying to decide between PHP and Python

2011-01-06 Thread Alan Meyer
On 1/5/2011 10:30 AM, Grant Edwards wrote: 1) How often is a compiler for language X written? 2) How often is source code written in language X? 3) How often is that source code in language X read/modified? If you compare those numbers you'll realize that optimizing for case 1 at the ex

Re: Trying to decide between PHP and Python

2011-01-06 Thread Alan Meyer
On 1/5/2011 11:40 AM, Tomasz Rola wrote: On Tue, 4 Jan 2011, Roy Smith wrote: There. Now that I've tossed some gasoline on the language wars fire, I'll duck and run in the other direction :-) May I suggest a better strategy? Run first, duck next :-). Or more precisely: ((run) duck) Al

Re: Trying to decide between PHP and Python

2011-01-06 Thread John Nagle
On 1/6/2011 12:41 PM, Chris Rebert wrote: On Thu, Jan 6, 2011 at 11:11 AM, John Nagle wrote: On 1/4/2011 12:20 PM, Google Poster wrote: About once a year, I have to learn yet another programming language. Given all the recommendations (an outstanding accolade from Bruce Eckel, author of "Thin

Re: Trying to decide between PHP and Python

2011-01-06 Thread Chris Rebert
On Thu, Jan 6, 2011 at 11:11 AM, John Nagle wrote: > On 1/4/2011 12:20 PM, Google Poster wrote: >> >> About once a year, I have to learn yet another programming language. >> Given all the recommendations (an outstanding accolade from Bruce >> Eckel, author of "Thinking in Java") I have set my aim

Re: Trying to decide between PHP and Python

2011-01-06 Thread John Nagle
On 1/4/2011 12:20 PM, Google Poster wrote: About once a year, I have to learn yet another programming language. Given all the recommendations (an outstanding accolade from Bruce Eckel, author of "Thinking in Java") I have set my aim to Python. Sounds kinda cool. If you're just doing simple

Re: Trying to decide between PHP and Python

2011-01-05 Thread Chris Rebert
On Wed, Jan 5, 2011 at 9:26 AM, MRAB wrote: > On 05/01/2011 10:44, Nobody wrote: >> >> On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: >> >>> The indentation-as-block is unique, >> >> Not at all. It's also used in occam, Miranda, Haskell and F#. >> > Don't forget about ABC. Just to round

Re: Trying to decide between PHP and Python

2011-01-05 Thread MRAB
On 05/01/2011 10:44, Nobody wrote: On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: The indentation-as-block is unique, Not at all. It's also used in occam, Miranda, Haskell and F#. Don't forget about ABC. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
On Tue, 4 Jan 2011, Roy Smith wrote: > There. Now that I've tossed some gasoline on the language wars fire, > I'll duck and run in the other direction :-) May I suggest a better strategy? Run first, duck next :-). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's n

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
On Wed, 5 Jan 2011, Grant Edwards wrote: > On 2011-01-05, Tomasz Rola wrote: > > On Tue, 4 Jan 2011, Roy Smith wrote: > >> Alan Meyer wrote: > >>> On 1/4/2011 4:22 PM, Google Poster wrote: > >>> > The syntax reminds me of Lots of Interspersed Silly Parentheses > (L.I.S.P.), but withou

Re: Trying to decide between PHP and Python

2011-01-05 Thread Neil Cerutti
On 2011-01-05, Grant Edwards wrote: > Optimizing a language for the ease of the compiler writer is > like saying, sure, that car is expensive to buy, expensive to > run, doesn't work well, and tends to kill a lot of people, but > it took less time to design! A simple to parse syntax has non-trivi

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
On Wed, 5 Jan 2011, flebber wrote: > My two cents, I am understanding python far better by learning scheme. > Didn't intentionally set out to achieve that as a goal just a by > product. An excelent resource http://htdp.org and using the racket > scheme ide(as much of an ide as idle), simple thorou

Re: Trying to decide between PHP and Python

2011-01-05 Thread Grant Edwards
On 2011-01-05, Tomasz Rola wrote: > On Tue, 4 Jan 2011, Roy Smith wrote: >> Alan Meyer wrote: >>> On 1/4/2011 4:22 PM, Google Poster wrote: >>> The syntax reminds me of Lots of Interspersed Silly Parentheses (L.I.S.P.), but without the parentheses. >>> >>> I haven't heard that version

Re: Trying to decide between PHP and Python

2011-01-05 Thread Duncan Booth
Nobody wrote: > On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > >> The indentation-as-block is unique, > > Not at all. It's also used in occam, Miranda, Haskell and F#. > Also Yaml. -- Duncan Booth http://kupuguy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to decide between PHP and Python

2011-01-05 Thread Alice Bevan–McGregor
On 2011-01-04 12:53:02 -0800, Alan Meyer said: I confess that I haven't used PHP so someone correct me if I'm wrong. [snip] +1 You're pretty much on the ball with your description. I might summarize it as: PHP (PHP: Hypertext Processor) is a templating language with a significant enough st

Re: Trying to decide between PHP and Python

2011-01-05 Thread Nobody
On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > The indentation-as-block is unique, Not at all. It's also used in occam, Miranda, Haskell and F#. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to decide between PHP and Python

2011-01-05 Thread flebber
On Jan 5, 6:48 pm, "Octavian Rasnita" wrote: > From: "Tomasz Rola" > > > On Tue, 4 Jan 2011, Dan M wrote: > > >> As to choice between Python and PHP, I would say learn anything but PHP. > >> Even Perl has fewer tentacles than PHP. > > > However, the quality of code depends heavily on who writes i

Re: Trying to decide between PHP and Python

2011-01-04 Thread Octavian Rasnita
From: "Tomasz Rola" On Tue, 4 Jan 2011, Dan M wrote: As to choice between Python and PHP, I would say learn anything but PHP. Even Perl has fewer tentacles than PHP. However, the quality of code depends heavily on who writes it. My impression is that more folks of "I did it and it works so i

Re: Trying to decide between PHP and Python

2011-01-04 Thread Aahz
In article , Roy Smith wrote: >In article <4d23a29d.7030...@yahoo.com>, Alan Meyer >wrote: >> On 1/4/2011 4:22 PM, Google Poster wrote: >>> >>> The syntax reminds me of Lots of Interspersed Silly Parentheses >>> (L.I.S.P.), but without the parentheses. >> >> I haven't heard that version befor

Re: Trying to decide between PHP and Python

2011-01-04 Thread Aahz
In article , Google Poster wrote: > >The syntax reminds me of Lots of Interspersed Silly Parentheses >(L.I.S.P.), but without the parentheses. You're not the first person to make that observation: http://norvig.com/python-lisp.html See also: http://norvig.com/python-iaq.html -- Aahz (a...@py

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
On Wed, 5 Jan 2011, Ben Finney wrote: > > Tomasz Rola writes: > > Heh. One day, guys, when you have nothing better to do, try writing a > > parser for Lisp-like language (Common Lisp, Scheme, whatever). After > > that, do the same with some other language of your preference (Python, > > Java, wh

Re: Trying to decide between PHP and Python

2011-01-04 Thread Ben Finney
Tomasz Rola writes: > Heh. One day, guys, when you have nothing better to do, try writing a > parser for Lisp-like language (Common Lisp, Scheme, whatever). After > that, do the same with some other language of your preference (Python, > Java, whatever). Compare time and code spent... Perhaps Li

Re: Trying to decide between PHP and Python

2011-01-04 Thread Roy Smith
In article , Tomasz Rola wrote: > Heh. One day, guys, when you have nothing better to do, try writing a > parser for Lisp-like language (Common Lisp, Scheme, whatever). After that, > do the same with some other language of your preference (Python, Java, > whatever). Compare time and code spe

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
On Tue, 4 Jan 2011, Roy Smith wrote: > In article <4d23a29d.7030...@yahoo.com>, Alan Meyer > wrote: > > > On 1/4/2011 4:22 PM, Google Poster wrote: > > > > > The syntax reminds me of Lots of Interspersed Silly Parentheses > > > (L.I.S.P.), but without the parentheses. > > > > I haven't heard

Re: Trying to decide between PHP and Python

2011-01-04 Thread Roy Smith
In article <4d23a29d.7030...@yahoo.com>, Alan Meyer wrote: > On 1/4/2011 4:22 PM, Google Poster wrote: > > > The syntax reminds me of Lots of Interspersed Silly Parentheses > > (L.I.S.P.), but without the parentheses. > > I haven't heard that version before. The one I heard was: > > "Lots of

Re: Trying to decide between PHP and Python

2011-01-04 Thread Alan Meyer
On 1/4/2011 4:22 PM, Google Poster wrote: The syntax reminds me of Lots of Interspersed Silly Parentheses (L.I.S.P.), but without the parentheses. I haven't heard that version before. The one I heard was: "Lots of Irritating Single Parentheses". Alan -- http://mail.python.org/mailman/lis

Re: Trying to decide between PHP and Python

2011-01-04 Thread Steven D'Aprano
On Tue, 04 Jan 2011 13:09:13 -0800, Alex Willmer wrote: > You could also combine this into one line: > > import os > filenames_lower = [fn.lower() for fn in os.listdir('.')] That's two lines :) Here are a couple of nicely obfuscated one-liners: [name.lower() for name in __import__('os').listdi

Re: Trying to decide between PHP and Python

2011-01-04 Thread Google Poster
On Jan 4, 3:09 pm, Alex Willmer wrote: > On Jan 4, 8:20 pm, Google Poster wrote: > > > Can any of you nice folks post a snippet of how to perform a listing > > of the current directory and save it in a string? > > > Something like this: > > > $ setenv FILES = `ls` > > > Bonus: Let's say that I wa

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
On Tue, 4 Jan 2011, Dan M wrote: > As to choice between Python and PHP, I would say learn anything but PHP. > Even Perl has fewer tentacles than PHP. However, the quality of code depends heavily on who writes it. My impression is that more folks of "I did it and it works so it is good, right?"

Re: Trying to decide between PHP and Python

2011-01-04 Thread Ben Finney
Google Poster writes: > On Jan 4, 2:34 pm, Dan M wrote: > > This Usenet group is a truly awesome resource. > > My kinda place. :-) Can I ask, since you'll be joining us here, that you use your name (“Ramon” according to your signature, but preferably a full name) in your “From” field to ident

Re: Trying to decide between PHP and Python

2011-01-04 Thread Stef Mientki
> As to choice between Python and PHP, I would say learn anything but PHP. > Even Perl has fewer tentacles than PHP. type this in a form field 2.2250738585072011e-308 http://www.exploringbinary.com/php-hangs-on-numeric-value-2-2250738585072011e-308/ cheers, Stef -- http://mail.python.org/ma

Re: Trying to decide between PHP and Python

2011-01-04 Thread Alex Willmer
On Jan 4, 8:20 pm, Google Poster wrote: > Can any of you nice folks post a snippet of how to perform a listing > of the current directory and save it in a string? > > Something like this: > > $ setenv FILES = `ls` > > Bonus: Let's say that I want to convert the names of the files to > lowercase? A

Re: Trying to decide between PHP and Python

2011-01-04 Thread Alan Meyer
I confess that I haven't used php so someone correct me if I'm wrong. Looking at the history of the two languages, it is my impression that php originated as a language for web/CGI development which eventually added features enabling it to be used (sparingly) as a general purpose language. Py

Re: Trying to decide between PHP and Python

2011-01-04 Thread Chris Rebert
On Tue, Jan 4, 2011 at 12:29 PM, Dan M wrote: > On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > >> About once a year, I have to learn yet another programming language. >> Given all the recommendations (an outstanding accolade from Bruce Eckel, >> author of "Thinking in Java") I have set

Re: Trying to decide between PHP and Python

2011-01-04 Thread Benjamin Kaplan
On Tue, Jan 4, 2011 at 3:20 PM, Google Poster wrote: > > About once a year, I have to learn yet another programming language. > Given all the recommendations (an outstanding accolade from Bruce > Eckel, author of "Thinking in Java") I have set my aim to Python. > Sounds kinda cool. > > The indenta

Re: Trying to decide between PHP and Python

2011-01-04 Thread Google Poster
On Jan 4, 2:34 pm, Dan M wrote: > On Tue, 04 Jan 2011 12:32:28 -0800, Google Poster wrote: > > Not to mention that it took me 9 minutes to get a reply from you... > > Quite speedy community support. > > > That is a very important parameter in my technology decisions these > > days. > > > Thanks! >

Re: Trying to decide between PHP and Python

2011-01-04 Thread Dan M
On Tue, 04 Jan 2011 12:32:28 -0800, Google Poster wrote: > Not to mention that it took me 9 minutes to get a reply from you... > Quite speedy community support. > > That is a very important parameter in my technology decisions these > days. > > Thanks! > > -Ramon This Usenet group is a truly a

Re: Trying to decide between PHP and Python

2011-01-04 Thread Google Poster
On Jan 4, 2:29 pm, Dan M wrote: > On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > > About once a year, I have to learn yet another programming language. > > Given all the recommendations (an outstanding accolade from Bruce Eckel, > > author of "Thinking in Java") I have set my aim to Py

Re: Trying to decide between PHP and Python

2011-01-04 Thread Dan M
On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > About once a year, I have to learn yet another programming language. > Given all the recommendations (an outstanding accolade from Bruce Eckel, > author of "Thinking in Java") I have set my aim to Python. Sounds kinda > cool. > > The inde

Trying to decide between PHP and Python

2011-01-04 Thread Google Poster
About once a year, I have to learn yet another programming language. Given all the recommendations (an outstanding accolade from Bruce Eckel, author of "Thinking in Java") I have set my aim to Python. Sounds kinda cool. The indentation-as-block is unique, but that is how I always indent, anyway.