Re: question about speed of sequential string replacement vs regex or

2011-09-28 Thread John Bokma
; However, a function can be easier on the eye: s{...}{ some_good_name( ... ) }ge; -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http://johnbokma.com/perl/help-in-exchange

Re: Why did Quora choose Python for its development?

2011-05-26 Thread John Bokma
should have spoken up sooner, especially as the spokes person of this community. But every bully has is fan club. -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Dennis Lee Bieber wlfr...@ix.netcom.com writes: Python books than after six months of trying to understand PERL... And Perl is the language, and perl is what runs Perl. -- John Bokma j3b Blog: http://johnbokma.com/Perl

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
: if Python is really so much better than Python readability wise, why do I have such a hard time dropping Perl and moving on? -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Ethan Furman et...@stoneleaf.us writes: Terry Reedy wrote: On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time dropping Perl and moving on? [you meant 'than Perl'] You

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 25 May 2011 07:01:07 -0500, John Bokma wrote: if Python is really so much better than Python [Perl] readability wise, why do I have such a hard time dropping Perl and moving on? My guess is that you have an adversarial

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
). I like both languages, I have invested a lot of time in learning Python and I am really not dense. Yet, even though I can program in Python sufficient enough very often I just pick Perl. Now why is that? -- John Bokma j3b Blog: http

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 2:50 AM, John Bokma j...@castleamber.com wrote: Wise words. And I agree. To me Python vs. Perl has nothing to do with being a fanboy (unlike many other posters here). I like both languages, I have invested a lot of time

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 11:52:39 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 3:56 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: To me, a language is a tool. To me, and to a lot of Perl programmers it's not different. The more tools you have competence

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
#Filehandle_method_calls_load_IO::File_on_demand -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http://johnbokma.com/perl/help-in-exchange-for-books.html -- http

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 9:16 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: Yes, I believe that was Perl. And an amusing quote. But most of the point of it comes from the fact that Perl uses punctuation for most

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
that can with a single command comment out a selection (and revert this), like Emacs. -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http://johnbokma.com/perl/help

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
Octavian Rasnita orasn...@gmail.com writes: From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; -- John Bokma

Re: Why did Quora choose Python for its development?

2011-05-22 Thread John Bokma
that dict(). my %hash = @list_of_key_value_pairs; -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http://johnbokma.com/perl/help-in-exchange-for-books.html -- http

Re: Abandoning Python

2011-05-21 Thread John Bokma
prepared to compromise on the last one. Obviously, it should do all that while preserving all the nice features of Python -- surely an easy task. A language I want to give a serious try the coming months is Haskell. -- John Bokma j3b Blog

Re: obviscating python code for distribution

2011-05-18 Thread John Bokma
one must always be prepared that a breach can happen. -- John Bokma j3b Blog: http://johnbokma.com/Perl Consultancy: http://castleamber.com/ Perl for books:http://johnbokma.com/perl/help-in-exchange-for-books.html -- http

Re: Hello Friends

2011-05-06 Thread John Bokma
repeated the spamvertized URL... -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo

Re: vertical ordering of functions

2011-05-03 Thread John Bokma
by Guido van Rossum in URL:http://www.artima.com/weblogs/viewpost.jsp?thread=4829. Thanks Ben, very useful link. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python

Re: Teaching Python

2011-04-19 Thread John Bokma
downloadable for both 2.x and 3.x -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
to switch to Emacs to begin with :-D. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
Bastian Ballmann ba...@chaostal.de writes: Am Sat, 16 Apr 2011 22:22:19 -0500 schrieb John Bokma j...@castleamber.com: Yeah, if you bring it down to open a file, save a file, and move the cursor around, sure you can do that in a day or two (two since you have to get used to the weird key

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
really looking at all those shiny GUI elements when editing? I've turned off the icon bar in Emacs (pointless) and rarely use the menu if ever. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
What I love so much about Emacs is that each feature I've wanted so far is either part of it, or can be installed. Sometimes I have to change how I think about the feature a bit, but so far, so good. -- John Bokma j3b Blog: http

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
with either vim or Emacs is that using the mouse delays things. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
learned. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
to set it up. If you mean to make work optimally for your way of editing, probably true. You can keep fine tuning, adding/testing stuff, etc. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
the trick for me was just switching to Emacs, and read the GNU Emacs Manual thoroughly and making notes. And the next day try what I read the day before. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
rusi rustompm...@gmail.com writes: On Apr 17, 3:19 am, John Bokma j...@castleamber.com wrote: rusi rustompm...@gmail.com writes: On Apr 16, 9:13 pm, Chris Angelico ros...@gmail.com wrote: Based on the comments here, it seems that emacs would have to be the editor-in-chief for programmers

Re: Python IDE/text-editor

2011-04-15 Thread John Bokma
/software/emacs/ or Vim URL:http://www.vim.org/ are excellent general-purpose editors that have strong features for programmers of any popular language or text format. I second Emacs or vim. I currently use Emacs the most, but I think it's good to learn both. -- John Bokma

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread John Bokma
. But if you had any idea what you were talking about, you already knew that. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com

Re: call php function from python

2011-03-31 Thread John Bokma
and the right URL. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread John Bokma
;-) -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with re module

2011-03-22 Thread John Bokma
the ([^$])? [^$] matches: not a $ character You might want [^\n] -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
Title: TinEye, author: http://ideeinc.com/ Search: http://www.tineye.com/ Example: http://www.tineye.com/search/2b3305135fa4c59311ed58b41da5d07f213e4d47/ Notice how it finds modified images. -- John Bokma j3b Blog: http

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
n00m n...@narod.ru writes: On Mar 6, 10:17 pm, n00m n...@narod.ru wrote: On Mar 6, 8:55 pm, John Bokma j...@castleamber.com wrote: n00m n...@narod.ru writes: http://www.nga.gov/search/index.shtm http://deyoung.famsf.org/search-collections etc Seems they all offer search only

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
using for, oh, just over 20 years now, and even then it was not new. You know, before the web thing you're talking about... -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl

Re: Python programming books

2011-02-22 Thread John Bokma
shipping late, shipping a damaged book, or just because they didn't do enough research and got the wrong book. I also like the Python Essential Reference a lot. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http

Re: Creating Long Lists

2011-02-21 Thread John Bokma
as resolving his issue. Try disabling garbage collection. I just read http://bugs.python.org/issue4074 which discusses a patch that has been included 2 years ago. So using a recent Python 2.x also doesn't have this issue? -- John Bokma j3b

Re: sqlite autoincrement of primary key

2010-11-29 Thread John Bokma
tinauser tinau...@libero.it writes: however, if in python i try to execute a script like: cur.execute( ''' INSERT INTO 'foo' VALUES (?,?) ''' ,('NULL','yyy')) ,(None, 'yyy')) Or use VALUES(NULL, ?) as suggested in another post. -- John Bokma

Re: IMAP support

2010-10-03 Thread John Bokma
is so ekhm... nevermind... -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python

Re: Crummy BS Script

2010-10-02 Thread John Bokma
start on a path of Cargo Cult Coding? -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman

Re: toy list processing problem: collect similar terms

2010-09-28 Thread John Bokma
on your site. 1) 2) will keep me from linking to your site, ever. And I am sure I am not alone in this. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python

Re: toy list processing problem: collect similar terms

2010-09-28 Thread John Bokma
Paul Rubin no.em...@nospam.invalid writes: John Bokma j...@castleamber.com writes: Xah Lee xah...@gmail.com writes: ... Can you stop crossposting? John, can you ALSO stop crossposting? Since the issue is on-topic in all groups: no. I did set a follow-up header, which you ignored

How to Deal with Xah Lee Spam/Abuse (was: toy list processing problem: collect similar terms)

2010-09-27 Thread John Bokma
=site%3Axahlee.org%20bokma [3] What's sad is that some of its stuff is actually good/not bad. But tainted: Xah Lee is a spammer and a Usenet abuser. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
%20bokma While I am named in that article be assured that I was not the only one contacting dreamhost (+10 for doing this, btw). Quite some people contacted me via email that they also talked with Dreamhost. Just keep reporting this spammer, and maybe 1and1 will kick it out. -- John Bokma

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: fup set to poster On 2010-09-28, John Bokma j...@castleamber.com wrote: Seebs usenet-nos...@seebs.net writes: On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote: It was livibetter who without any motivation or reasoning posted Python code in CLPM

Re: toy list processing problem: collect similar terms

2010-09-26 Thread John Bokma
a problem with Xah report him with Google Groups and with his hosting provider 11 like I do. Dreamhost kicked him out that way. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance

Re: Down with tinyurl!

2010-09-22 Thread John Bokma
, the RIAA has been breaking the law as well. They do it via hired sneeky companies, but in my book they are still responsible. (dDOS of torrent sites/clients) -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http

Re: Too much code - slicing

2010-09-22 Thread John Bokma
) I probably would use a normal if else. What surprises me is that this is still discussed. It's like argueing about significant whitespace. :-) -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com

Re: Too much code - slicing

2010-09-22 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: I dunno. I like the next if /^$/ idiom, I don't (as a Perl programmer), I prefer: $line =~ /^$/ and next; Or: $line ne '' or next; which I read as: line must not be empty -- John Bokma j3b

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
miss and you've done your homework already, well, at least you get the smug satisfaction of knowing that I was too stupid to understand your question. It makes you a patronizing fuck in my book. And no, that's not a joke. -- John Bokma

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
, and couldn't find it. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
to the entry. But, hey, then they have to get out of the couch and get out of the house. And their moms might start to ask questions... -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
Dennis Lee Bieber wlfr...@ix.netcom.com writes: On Mon, 20 Sep 2010 20:12:01 -0500, John Bokma j...@castleamber.com declaimed the following in gmane.comp.python.general: I never saw the point of the whole X-No-Archive: Yes thing. What happens if I quote such a message? It's archived, right

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: In message 87aanbx5lq@castleamber.com, John Bokma wrote: I never saw the point of the whole X-No-Archive: Yes thing. What happens if I quote such a message? It's archived, right? Where did they come from? Posting fragments

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
for, to get back to them. As an additional note: tinyurl allows one to enter a postfix to use, so instead of /xc4ax7 you can have /something-more-readable. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com

Re: Too much code - slicing

2010-09-20 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: On 2010-09-20, John Bokma j...@castleamber.com wrote: I didn't mean that there are spoilers in the first 70 pages, just that to me the excercise would spoil the book, so, I wouldn't do it. I consider a book like a meal, I wouldn't gobble down food

Re: [OT] Speed-reading

2010-09-20 Thread John Bokma
://wiki.answers.com/Q/What_is_the_total_number_of_pages_in_the_%27Harry_Potter%27_series [2] http://en.wikipedia.org/wiki/Speed_reading#Claims_of_speed_readers -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com

Re: Too much code - slicing

2010-09-20 Thread John Bokma
Terry Reedy tjre...@udel.edu writes: On 09/19/2010 10:32 PM, John Bokma wrote: the spoiler. Do you fast forward movies as well? I sometimes watch movies (or parts thereof) on 1.5x, especially if it has a lot of 'filler' scenes. But only when my wife is not watching, as she hates it. Heh

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
such a message? It's archived, right? -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
Tim Chase python.l...@tim.thechases.com writes: On 09/20/10 20:12, John Bokma wrote: Steven D'Apranost...@remove-this-cybersource.com.au writes: On Mon, 20 Sep 2010 17:25:09 +, Tim Harig wrote: Usernet users also have the right to use the X-No-Archive header field. They do

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
. Yup, exactly. Or people who did a lot of searching but somehow were not able to compile a good query. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python

Re: Too much code - slicing

2010-09-19 Thread John Bokma
but not the books I read for pleasure. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo

Re: Too much code - slicing

2010-09-19 Thread John Bokma
AK andrei@gmail.com writes: On 09/19/2010 10:32 PM, John Bokma wrote: AKandrei@gmail.com writes: On 09/19/2010 07:18 PM, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent

Re: Performance: sets vs dicts.

2010-09-03 Thread John Bokma
Terry Reedy tjre...@udel.edu writes: On 9/1/2010 8:11 PM, John Bokma wrote: [...] Right. And if 'small values of n' include all possible values, then rejecting a particular O(log n) algorithm as 'unacceptable' relative to all O(1) algorithms is pretty absurd. I have little time, but want

Re: Obscure MySQLdb question - duplicating a database handle

2010-09-02 Thread John Bokma
. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance: sets vs dicts.

2010-09-01 Thread John Bokma
of Introduction to Algorithms, 2nd edition. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org

Re: Performance: sets vs dicts.

2010-09-01 Thread John Bokma
Terry Reedy tjre...@udel.edu writes: On 9/1/2010 5:40 PM, John Bokma wrote: [..] Yes, I switched, because 'constant time' is a comprehensible claim that can be refuted and because that is how some will interpret O(1) (see below for proof;-). You make it now sound alsof this interpretation

Re: Performance: sets vs dicts.

2010-09-01 Thread John Bokma
Robert Kern robert.k...@gmail.com writes: On 9/1/10 4:40 PM, John Bokma wrote: Arnaud Delobellearno...@googlemail.com writes: Terry Reedytjre...@udel.edu writes: [...] I don't understand what you're trying to say. Aahz didn't claim that random list element access was constant time, he

Re: controlling the mouse pointer on linux (or as vnc client)

2010-08-29 Thread John Bokma
xautomation xte 'mousemove 200 200' see: http://linux.die.net/man/1/xte -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com

Re: Iterative vs. Recursive coding

2010-08-26 Thread John Bokma
kept on introducing ten new bugs each time they fixed one. and they forgot to sell that as new features, I guess :-D. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
Navkirat Singh navkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. Why? -- John Bokma

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
\x10\r\x0e\x11\x0e\x0b\x0b\x10\x16\x10\x11\x13\x14\x15\x15\x15\x0c\x0f You're mistaken that the content is part of the headers, it's not. The \r\n\r\n separates headers from the content. Why don't you use urllib to save you from all this hassle? -- John Bokma

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread John Bokma
the compressed version: I did :-). I have somewhat followed Forth from a far, far distance since the 80's (including hardware), and did read several messages in the thread, also since it was not clear what Hugh was referring to. -- John Bokma

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
David Kastrup d...@gnu.org writes: John Bokma j...@castleamber.com writes: On the other hand: some people I knew during my studies had no problem at all with introducing countless memory leaks in small programs (and turning off compiler warnings, because it gave so much noise

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
Hugh Aguilar hughaguila...@yahoo.com writes: On Aug 22, 11:12 am, John Bokma j...@castleamber.com wrote: And my experience is that a formal study in CS can't compare to home study unless you're really good and have the time and drive to read formal books written on CS. And my experience

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
on it). -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
. I am sure you know what Paul means. As for patting on the back: you must make a hell of an effort to get that. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
and I don't really care heh, hence all the replies you write, and mentioning it in this post. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl Python Development: http

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread John Bokma
John Bokma j...@castleamber.com writes: At an university which languages you see depend a lot on what your teachers use themselves. A language is just a verhicle to get you from a to b. Addendum: or to illustrate a concept (e.g. functional programming, oop) [..] Like you, you mean? You

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-22 Thread John Bokma
David Kastrup d...@gnu.org writes: John Bokma j...@castleamber.com writes: David Kastrup d...@gnu.org writes: John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who cares about things like the big-O notation for program complexity. Can't people

Re: Iterative vs. Recursive coding

2010-08-22 Thread John Bokma
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 21 Aug 2010 19:09:52 -0500, John Bokma wrote: this means that Python should eliminate / optimize tail recursion. There have been various suggestions to add tail recursion optimization to the language. Two problems

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread John Bokma
themselves and think that reading a book or two equals years of study. Oh, and rest assured, it works both ways: people who did graduate are now and then thinking it's the holy grail and no body can beat it with home study. Both are wrong, by the way. -- John Bokma

Re: Iterative vs. Recursive coding

2010-08-21 Thread John Bokma
John Nagle na...@animats.com writes: On 8/20/2010 1:17 PM, John Bokma wrote: John Naglena...@animats.com writes: Python does not do tail recursion, so using recursion where iteration could do the job is generally a bad idea. Scheme, on the other hand, always does tail recursion where

Re: Iterative vs. Recursive coding

2010-08-20 Thread John Bokma
does tail recursion: def x(n): ... if n == 10: return ... print n ... x(n + 1) ... x(1) 1 2 3 4 5 6 7 8 9 -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl

Re: Long rant about Python in Education

2010-08-12 Thread John Bokma
and be a guide, not thou should not use Windows. Not so remarkable that the rant moves from an extremistic teaching environment to an extremistic world view. From hating everything that's not Linux and idolizing the CLI to hating everything that is different in general. -- John Bokma

Re: Why is python not written in C++ ?

2010-08-03 Thread John Bokma
Carl Banks pavlovevide...@gmail.com writes: On Aug 1, 6:09 pm, John Bokma j...@castleamber.com wrote: Roy Smith r...@panix.com writes: In article 4c55fe82$0$9111$426a3...@news.free.fr,  candide cand...@free.invalid wrote: Python is an object oriented langage (OOL). The Python main

Re: Why is python not written in C++ ?

2010-08-03 Thread John Bokma
, Python, Ruby, ActionScript, GLSL, and others. http://en.wikipedia.org/wiki/LLVM Unladen Swallow is a branch of Python intended to be fully compatible and significantly faster. It uses LLVM's optimization passes and JIT compiler. http://llvm.org/ProjectsWithLLVM/#unladenswallow -- John

Re: Why is python not written in C++ ?

2010-08-03 Thread John Bokma
Michael Torrie torr...@gmail.com writes: On 08/01/2010 07:09 PM, John Bokma wrote: One thing that comes to mind is that it's much easier to distribute C libraries than C++ libraries. In the beginning of C++ there were programs that just converted C++ to C (frontends). At least that is how

Re: Why is python not written in C++ ?

2010-08-03 Thread John Bokma
Carl Banks pavlovevide...@gmail.com writes: On Aug 3, 2:29 am, John Bokma j...@castleamber.com wrote: [..] But they call both the C libraries in the same way. Go look at the original claim, the one that you responded to. It's much easier to distribute C libraries than C++ libraries. Yup

Re: Why is python not written in C++ ?

2010-08-03 Thread John Bokma
Ethan Furman et...@stoneleaf.us writes: John Bokma wrote: Michael Torrie torr...@gmail.com writes: On 08/01/2010 07:09 PM, John Bokma wrote: One thing that comes to mind is that it's much easier to distribute C libraries than C++ libraries. In the beginning of C++ there were programs

Re: Why is python not written in C++ ?

2010-08-01 Thread John Bokma
#History [2] http://en.wikipedia.org/wiki/Python_%28programming_language%29#History http://python-history.blogspot.com/2009/01/brief-timeline-of-python.html -- John Bokma j3b Hacking Hiking in Mexico - http://johnbokma.com/ http

Re: Why is python not written in C++ ?

2010-08-01 Thread John Bokma
the C++ compiler Acorn sold worked. So I don't think your argument was much true back then. -- John Bokma j3b Hacking Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl Python Development -- http

Re: Personal archive tool, looking for suggestions on improving the code

2010-07-27 Thread John Bokma
virtual ones. -- John Bokma j3b Hacking Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Why are String Formatted Queries Considered So Magical? (Spammer analysis)

2010-07-27 Thread John Bokma
(see: http://whois.domaintools.com/63.170.35.94 ) [snip address etc.] Spammers don't care about that. Best course of action, based on my experience, is to contact abuse at googlegroups.com (now and then it actually works), and sprint.net. -- John Bokma

Re: why is this group being spammed?

2010-07-24 Thread John Bokma
by qouting the entire (religious) spam message. Moron. -- John Bokma j3b Hacking Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: why is this group being spammed?

2010-07-19 Thread John Bokma
the posting IP address. Even trolls can be hurt, if enough people report them: http://www.xahlee.org/Periodic_dosage_dir/t2/harassment.html -- John Bokma j3b Hacking Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl

Re: death of newsgroups (Microsoft closing their newsgroups)

2010-07-14 Thread John Bokma
/t2/harassment.html (it had an effect for a while :-D ) -- The John Bokma guy j3b Hacking Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl Python Development -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   >