473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Lager'd Statistics on language migration

Frustrated at being prevented from using Python at work I went
gunning for Perl.

Time to roll out some useless Google statistics to make me feel
better

Google Phrase count
------------- -----
"prefer perl to python" 26
"prefers perl to python" 0
"python to perl migration" 0
== ==
Perl over Python Total: 26

"prefer python to perl" 51
"prefers python to perl" 154
"perl to python migration" 785
== ===
Python over Perl Total: 980

These statistics have meaning. (It took my mind off this can
of UK Amstel for a start).

OK, rant over .

Pad.
Jul 18 '05 #1
9 2100
Paddy,

what google do you google?

I just checked out one number:

"perl to python migration" 785

giving me

Ergebnisse 11 - 20 von ungefähr 87.100 für perl to python migration. (0,20
Sekunden)

(on english: google found around 87.100 entries for "perl to python
migration")

the dark side is that most deal with one book of this title

Harald
Jul 18 '05 #2
Harald Massa wrote:
Paddy,

what google do you google?

I just checked out one number:

"perl to python migration" 785

giving me

Ergebnisse 11 - 20 von ungefähr 87.100 für perl to python migration. (0,20
Sekunden)

(on english: google found around 87.100 entries for "perl to python
migration")
He searched for "perl to python migration" _with_ the quotes, you _without_
and therefore you got many hits containing the words "perl", "python" and
"migration" ("to" is excluded because it is too common) but not the phrase
"perl to python migration", i. e. "python to perl migration" would be a
hit, too.
the dark side is that most deal with one book of this title


You are right here...

Peter

Jul 18 '05 #3
Paddy McCarthy <pa*******@netscape.net> wrote:
Frustrated at being prevented from using Python at work I went
gunning for Perl.

Time to roll out some useless Google statistics to make me feel
better

Google Phrase count
------------- -----
"prefer perl to python" 26
"prefers perl to python" 0
"python to perl migration" 0
== ==
Perl over Python Total: 26

"prefer python to perl" 51
"prefers python to perl" 154
"perl to python migration" 785
== ===
Python over Perl Total: 980

These statistics have meaning. (It took my mind off this can
of UK Amstel for a start).


Cool! So, I double checked:

"prefer python to ruby" 21
"prefers python to ruby" 0
"ruby to python migration" 0

"prefer ruby to python" 260
"prefers ruby to python" 0
"python to ruby migration" 0

Judging on the "prefer" only, Ruby > Python > Perl. Check:

"prefer ruby to perl" 5
"prefer perl to ruby" 0

Still OK, I guess. So, my working hypothesis would be: people tend to
post about preferring a newer / less widespread language over an older /
more widespread one, more frequently than they post about the reverse
preference. Why people compare Python with either Ruby or Perl MUCH
more often than Perl and Ruby with each other, I dunno...
Alex
Jul 18 '05 #4
On Mon, 6 Sep 2004 09:24:03 +0200, Alex Martelli <al*****@yahoo.com> wrote:
Still OK, I guess. So, my working hypothesis would be: people tend to
post about preferring a newer / less widespread language over an older /
more widespread one, more frequently than they post about the reverse
preference. Why people compare Python with either Ruby or Perl MUCH
more often than Perl and Ruby with each other, I dunno...


I think that Perl --> Python is a natural path, in historic terms --
both languages having a similar age and maturity. Perl is older - 1.0
was announced in 1987. At this time, Guido was already working on
Python, but the 0.9 was only released in 1991... But now, being 17 x
13 is not a huge different (in language lifetimes, anyway).

As for Ruby, it's a different matter. I think that Ruby is a little
farther away from Perl in the language spectrum than Python, but I
have no hard data to back my claim. It's just how I feel about it, and
it may be more related to the timeline (Perl --> Python --> Ruby, so
Ruby got to learn from both and to position itself as an alternative
to Python). Everyone wants to be the new kid on the block, in this
case.

p.s. I must be with too many time in my hands lately to be answering
this sort of question :-) Time to find real work to do.

--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmail.com
mail: ca********@yahoo.com
Jul 18 '05 #5

On 2004 Sep 06, at 16:33, Carlos Ribeiro wrote:
As for Ruby, it's a different matter. I think that Ruby is a little
farther away from Perl in the language spectrum than Python, but I
have no hard data to back my claim. It's just how I feel about it, and


I think that Ruby has so many things in common with Perl -- mutable
strings, regular expressions as built-ins rather than a module you need
to import, even variable names which can be control characters...! --
that I'd definitely have to consider it far closer to Perl than Python
is.

Can you point out some specific behavior, some language-design choice,
where Ruby is farther away from Perl than Python is?
Alex

Jul 18 '05 #6
On Mon, 6 Sep 2004 17:40:44 +0200, Alex Martelli <al*****@yahoo.com> wrote:
Can you point out some specific behavior, some language-design choice,
where Ruby is farther away from Perl than Python is?


Ok, I deserve it :-) Short answer -- I think Ruby's object-oriented
structure is closer to Python's than Perl's. I don't know many
programmers that start writing Perl's code in object-oriented terms; a
lot of stuff is just thrown out as simple (unreadable) scripts. On the
other hand, it seems to be easier to write object oriented code in
Python, even for simple scripts.

Long answer: I evaluated Ruby a few years ago. All that I can say is
the impression left by the language after a short review. I think that
Ruby benefited, in historical terms, to start with a lot of features
that were relatively late additions to both Perl and Python.

Perl started as a hack. I'm not saying that in any derrogatory sense -
it's just the way it is (or was). For example, object orientation was
a late addition to the language. Python started as a careful and well
structured approach to language design, adding new features one by
one. Ruby's approach is (not surprisingly) an attempt at a mid-term --
starting with a well defined and clean framework, but still trying to
make things as concise as possible. Many of the first published Ruby
examples were written to show how concise some things could be
implemented -- I remember seeing examples such as sending email, or
loading a URL as samples of concise Ruby code. But all examples, and a
lot of Ruby documentation, enforces its object-oriented nature above
all. So in this sense I think Ruby is closer to Python than it is to
Perl.

I hope it sounded convincing ;-)
--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmail.com
mail: ca********@yahoo.com
Jul 18 '05 #7

On 2004 Sep 06, at 20:27, Carlos Ribeiro wrote:
On Mon, 6 Sep 2004 17:40:44 +0200, Alex Martelli <al*****@yahoo.com>
wrote:
Can you point out some specific behavior, some language-design choice,
where Ruby is farther away from Perl than Python is?
Ok, I deserve it :-) Short answer -- I think Ruby's object-oriented
structure is closer to Python's than Perl's. I don't know many


Agreed, but while this may meen dist(Ruby,Python)<distr(Ruby,Perl) in
some sense, it definitely has no implications re your thesis that
dist(Ruby,Perl)>dist(Python,Perl).
all. So in this sense I think Ruby is closer to Python than it is to
Perl.

I hope it sounded convincing ;-)


Sure, and I wouldn't argue either pro or con THIS thesis, but what you
originally stated was different: you were comparing distances of the
other two languages from Perl, not of the other two from Ruby!
Alex

Jul 18 '05 #8
Alex:
Can you point out some specific behavior, some language-design choice,
where Ruby is farther away from Perl than Python is?


Everything is derived from a base object type in Ruby.
Defintely not in Perl, while in Python things are moving
more and more that way.

Ruby started off (from what I can tell) with automatic
widening of platform ints into bignums. Python more
recently did that, while Perl doesn't.
Andrew
da***@dalkescientific.com
Jul 18 '05 #9
Alex Martelli <al*****@yahoo.com> wrote:

Can you point out some specific behavior, some language-design choice,
where Ruby is farther away from Perl than Python is?


Ruby's functional constructs (map, reduce, zip etc) are method calls on
enumerable objects, rather than perl/python-style orthogonal application
of a lambda to an enumerable.

martin
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Felix | last post by:
Dear Sql Server experts: First off, I am no sql server expert :) A few months ago I put a database into a production environment. Recently, It was brought to my attention that a particular...
5
by: Jesper Jensen | last post by:
Hello group. I have an issue, which has bothered me for a while now: I'm wondering why the column statistics, which SQL Server wants me to create, if I turn off auto-created statistics, are so...
3
by: Metal Dave | last post by:
Hello, A script we run against the database as part of the upgrade of our product is failing with the following message: ALTER TABLE ALTER COLUMN EncodedID failed because STATISTICS hind_61_3...
2
by: Ross A. Finlayson | last post by:
Hi, I wonder if there is a simple library or set of functions for basic statistical functions, like what may be on a pocket calculator, without getting into linking into the language runtimes of...
8
by: jacob navia | last post by:
Last year, Paul Bristow proposed a series of mathematical functions to be added to the C and C++ standard libraries. I have implemented this proposal, and I would be interested in knowing what...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
5
by: Allan Ebdrup | last post by:
Hi We have a large class library of different classes, now we are going to implement a lot of usage statistics that we need, stuff like how many times a user has logged in, how many times a...
0
ADezii
by: ADezii | last post by:
In last week's Tip, I showed you how to use the ISAMStats Method of the DBEngine (DAO) to return vital statistics concerning Query executions such as: Disk Reads and Writes, Cache Reads and Writes,...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.