I just re-read "Why Python?" at http://www.linuxjournal.com/article.php?sid=3882
The article is from 2000 and shows how a programmer who programmed in
many programming languages, and who wrote compilers and interpreters,
was introduced to Python and came to like it.
I wondered if there are any more recent interviews/articles from ESR
on his scripting language tools. I would be interested to know if he
still usesPython? Did he try any other "scripting" languages such as
Ruby or Lua?
I'm going to add the article to my bookmarks for ammo in trying to
change my strictly Perl workplace to at least consider Python.
(I should add that I do know of most of the good advocacy resources
available, I've collected them from answers to other peoples posts,
thanks).
Thanks again, Paddy. 8 4124
>>>>> "Paddy" == Paddy McCarthy <pa*******@nets cape.net> writes:
Paddy> from ESR on his scripting language tools. I would be
Paddy> interested to know if he still usesPython? Did he try any
Paddy> other "scripting" languages such as Ruby or Lua?
Yes - for example he wrote a prototype of his SCO source code
comparison tool in Python. I think he still mostly uses Python for the
stuff he writes himself.
--
Ville Vainio http://tinyurl.com/2prnb
In article <du************ *@mozart.cc.tut .fi>,
Ville Vainio <vi***@spammers .com> wrote: >> "Paddy" == Paddy McCarthy <pa*******@nets cape.net> writes:
Paddy> from ESR on his scripting language tools. I would be Paddy> interested to know if he still usesPython? Did he try any Paddy> other "scripting" languages such as Ruby or Lua?
Yes - for example he wrote a prototype of his SCO source code comparison tool in Python. I think he still mostly uses Python for the stuff he writes himself.
Cameron Laird wrote: Incidentally, have you heard the news about Lua? Look at <URL: http://www.inf.puc-rio.br/~roberto/book/ >.
I have no experience with Lua, but some of the code examples from the book
may frighten me away for good. http://www.inf.puc-rio.br/~roberto/b...words.lua.html
I suppose Python's recent introduction of generators makes this rather trivial.
def allwords():
for line in sys.stdin:
for word in line.split():
yield word
for word in allwords():
print word
In article <ma************ *************** **********@pyth on.org>,
Pete Shinners <pe**@shinners. org> wrote: Cameron Laird wrote: Incidentally, have you heard the news about Lua? Look at <URL: http://www.inf.puc-rio.br/~roberto/book/ >.
I have no experience with Lua, but some of the code examples from the book may frighten me away for good.
http://www.inf.puc-rio.br/~roberto/b...words.lua.html I suppose Python's recent introduction of generators makes this rather trivial.
def allwords(): for line in sys.stdin: for word in line.split(): yield word
for word in allwords(): print word
Provocative comparison; perhaps Roberto will even join in
and comment here. In any case, there's still a place for
Lua, and I think there's value in the discussion of Lua
that comp.lang.pytho n has already hosted.
--
Cameron Laird <cl****@phaseit .net>
Business: http://www.Phaseit.net pa*******@netsc ape.net (Paddy McCarthy) wrote in message news:<2a******* *************** ****@posting.go ogle.com>... I just re-read "Why Python?" at http://www.linuxjournal.com/article.php?sid=3882 The article is from 2000 and shows how a programmer who programmed in many programming languages, and who wrote compilers and interpreters, was introduced to Python and came to like it.
I wondered if there are any more recent interviews/articles from ESR on his scripting language tools. I would be interested to know if he still usesPython? Did he try any other "scripting" languages such as Ruby or Lua?
I'm going to add the article to my bookmarks for ammo in trying to change my strictly Perl workplace to at least consider Python.
(I should add that I do know of most of the good advocacy resources available, I've collected them from answers to other peoples posts, thanks).
Thanks again, Paddy.
Oh, no! I sent the above, then found the right thing to search for in
Google and came up with this interview from January: http://www.internetnews.com/dev-news...le.php/3306511
It seems ESR is still a Pythoneer, and I have another important
article to add to my trove.
Thanks for the other replies, Ill follow them up to.
Pete Shinners <pe**@shinners. org> wrote in
news:ma******** *************** **************@ python.org: Cameron Laird wrote: Incidentally, have you heard the news about Lua? Look at <URL: http://www.inf.puc-rio.br/~roberto/book/ >.
I have no experience with Lua, but some of the code examples from the book may frighten me away for good.
http://www.inf.puc-rio.br/~roberto/b...words.lua.html I suppose Python's recent introduction of generators makes this rather trivial.
def allwords(): for line in sys.stdin: for word in line.split(): yield word
for word in allwords(): print word
NameError: global name 'sys' is not defined
The Python version includes trailing punctuation, while the Lua
version filters it out. It becomes a little less trivial to make
the two functionally identical.
It seems that the syntax of Lua can be a little more verbose. On
the other hand, here are two versions of (more or less) the
functional equivalent of the referenced Lua code:
# in Python:
import sys, string
tt = string.maketran s( '`~!@#$%^&*()_-+=:;"\'{[}]|\\?/>.<,',
' ' )
for line in sys.stdin:
line = string.translat e( line, tt )
for word in line.split():
print word
-- in Lua:
line = io.read()
while line do
for word in string.gfind(li ne, "%w+") do
print(word)
end
line = io.read()
end
There are probably better ways to write the code in either
language. I've only been looking at Lua for a couple of hours, so I
can't really comment much about that. But overall, for a comparable
task, it doesn't look too scary.
--
rzed cl****@lairds.c om (Cameron Laird) wrote in message news:<10******* ******@corp.sup ernews.com>... In article <ma************ *************** **********@pyth on.org>, Pete Shinners <pe**@shinners. org> wrote:Cameron Laird wrote: Incidentally, have you heard the news about Lua? Look at <URL: http://www.inf.puc-rio.br/~roberto/book/ >.
I have no experience with Lua, but some of the code examples from the book may frighten me away for good.
http://www.inf.puc-rio.br/~roberto/b...words.lua.html I suppose Python's recent introduction of generators makes this rather trivial.
def allwords(): for line in sys.stdin: for word in line.split(): yield word
for word in allwords(): print word
Provocative comparison; perhaps Roberto will even join in and comment here. In any case, there's still a place for Lua, and I think there's value in the discussion of Lua that comp.lang.pytho n has already hosted.
Ordered a copy of the Lua book as the language seemed quite
interesting and potentially useful. The full text was available on the
'net, but I like to read this sort of material whilst travelling.
Although it starts out describing quite a nicely structured language
(occasionally similar in concept to, but never as readable as Python)
as the book proceeds, the more in-depth examples become harder to read
(a lot more like Perl) and having finished the book I was left feeling
that the core language offered nothing useful over Python, in fact it
was rather lacking in many areas.
Don't get me wrong, I know if I had a good enough reason I could quite
quicky and reasonably happily start developing in Lua, but it's
unlikely to ever come close to Python for general purpose coding. That
said, it may well fit the bill for a new embedded low-spec PC-based
device we'll be starting development on in a few months time. The
Python runtime is just too big and this is one area where Lua wins
out, so we'll just have to wait and see. ci***@hotmail.c om (ciw42) wrote in message news:<75******* *************** ****@posting.go ogle.com>...
.... Don't get me wrong, I know if I had a good enough reason I could quite quicky and reasonably happily start developing in Lua, but it's unlikely to ever come close to Python for general purpose coding.
Did you skip the foreword? They wrote just that. Lua is meant as an extension
language, not as an replacement for standalone scripting languages. It can
be used standalone, of course, which makes sense if you need speed or size of
the interpreter matters.
I just read the book during a long train-ride and liked it a lot. Terse and
to the point, and I could even learn something new from it. E.g. I hadn't heard
of coroutines before. I also liked the meta-classes stuff.
-klaus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ChrisH |
last post by:
Are there any Eric 3 users out there?
I've been thinking about trying it.
Also, if I write scripts for internal use only at my company, do I have
to purchase a Qt or pyqt license?
Thanks for the info!
Chris
|
by: David Bear |
last post by:
Eric is the first IDE I have used since the borland c++ ide for dos many
many years ago. Aside from the docs that come in the help system, I'm
looking for a quick tutorial that gives me an overview of the test, debug
cycle that is considered -- for beginners.
any pointers or books. This seems like a terrific environment.
--
David Bear
-- let me buy your intellectual property, I want to own your thoughts --
|
by: kayodeok |
last post by:
Nice Take on Selectors from Eric Meyer
Appropriate Selections
http://www.meyerweb.com/eric/thoughts/200312.html#t20031211
--
Kayode Okeyode
http://www.kayodeok.co.uk/weblog/
http://www.kayodeok.btinternet.co.uk/favorites/webdesign.htm
|
by: ChChanges |
last post by:
Hi - I am going to buy a few books on CSS by Eric Meyer - I see that he is
one of the leaders in CSS...
Could somebody give me their opinion about the newer book 'More Eric Meyer
on CSS' ?
How does it compare to the original book 'Eric Meyer on CSS: Mastering the
Language of Web Design' ?
Which one is preferred?
|
by: Tom |
last post by:
Hey experts,
I have to write some classes doing communications with a device
controlled via RS 232. Everthing is working well, but the data the
device is sending back is encrypted.
As I have found out today, the firmware is using algorithms which are
compatible to the algorithms created by Eric Yound and Tim Hudson a
couple of years ago.
| |
by: Kenneth McDonald |
last post by:
I'm wondering if anyone has experience/tips to offer on installing
Eric on OS X and XP. Installation on both seems to require a number
of steps, some of them seeming potentially fragile, and I'm wondering
if I'm looking at a job of perhaps hours (days?), or if everyone
manages in just a few minutes.
Thanks,
Ken
|
by: Pradnyesh Sawant |
last post by:
Hello,
I have the following single line in my .py file:
from PyQt4 import QtCore, QtGui
if i run it from eric, i get the following error:
unhandled RuntimeError
"the PyQt4.QtCore and qt modules both wrap the QObject class"
|
by: zuoxingdong |
last post by:
Hello everyone :
My English name is 'Eric Abraham', so Can 'aberic' be
abbreviation of 'Eric Abraham' ? Or is there another better
abbreviation of 'Eric Abraham' ?
Thanks a lot.
|
by: dmitrey |
last post by:
Hi all,
I have Eric 4.1.1, pylint and Eric pylint plugin installed, but I
cannot find how to use pylint from Eric IDE GUI.
Does anyone know?
Thank you in advance, D.
|
by: Detlev Offenbach |
last post by:
Hi,
I am proud to announce the immediate availability of eric 4.2.0. It is
available via
http://www.die-offenbachs.de/eric/index.html.
The highlight of changes are as follows.
APIs:
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |