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

2011-09-28 Thread John Bokma
e }ge; 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

Re: Why did Quora choose Python for its development?

2011-05-26 Thread John Bokma
Please desist. You 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://cas

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Steven D'Aprano 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 adv

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Ethan Furman 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

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
with. To people used to the latin alphabet languages using a different script are unreadable. So readability has a lot to do with what one is used 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 movin

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Dennis Lee Bieber 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 Consultancy: h

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico writes: > On Wed, May 25, 2011 at 9:16 AM, John Bokma wrote: >> Chris Angelico 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 of &g

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
n use $OUTPUT_AUTOFLUSH (use English;), or use IO::Handle and use the autoflush method [2]. [2] In Perl 5.14 IO::File is now loaded on demand: http://search.cpan.org/dist/perl/pod/perldelta.pod#Filehandle_method_calls_load_IO::File_on_demand -- John Bokma

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico writes: > On Wed, May 25, 2011 at 3:56 AM, John Bokma wrote: >> Chris Angelico 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 w

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
"D'Arcy J.M. Cain" writes: > On Tue, 24 May 2011 11:52:39 -0500 > John Bokma wrote: >> >> > $d = @a; >> >> >> >> That will give you the number of elements in @a. What you (probably) >> >> mean is %hash = @array; >>

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico writes: > On Wed, May 25, 2011 at 2:50 AM, John Bokma 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 in learning Pytho

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
"D'Arcy J.M. Cain" writes: > On Tue, 24 May 2011 00:17:55 -0500 > John Bokma 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 Pe

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
't actually care that much about these > things. 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 in learning Python and I am really not dense. Yet, even though I can

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
"Octavian Rasnita" writes: > From: "Daniel Kluev" > 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 y

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
e an editor 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.co

Re: Why did Quora choose Python for its development?

2011-05-22 Thread John Bokma
er 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.h

Re: Abandoning Python

2011-05-21 Thread John Bokma
etc.). > * An even larger user base, contributing more and better free and >commercial software. > > I'm prepared to compromise on the last one. Obviously, it should do all > that while preserving all the nice features

Re: obviscating python code for distribution

2011-05-18 Thread John Bokma
o understand that no server is ever secure and hence 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://johnb

Re: Hello Friends

2011-05-06 Thread John Bokma
Since you just 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/python-list

Re: vertical ordering of functions

2011-05-03 Thread John Bokma
escribed by Guido van Rossum in > 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

Re: Teaching Python

2011-04-19 Thread John Bokma
#x27;s an online book, free 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/

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
ng 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/j.j.j.bokma

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
Bastian Ballmann writes: > Am Sat, 16 Apr 2011 22:22:19 -0500 > schrieb John Bokma : > >> 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 "wei

Re: Python IDE/text-editor

2011-04-17 Thread John Bokma
r is going 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/listinfo/python-list

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
rusi writes: > On Apr 17, 3:19 am, John Bokma wrote: >> rusi writes: >> > On Apr 16, 9:13 pm, Chris Angelico wrote: >> >> Based on the comments here, it seems that emacs would have to be the >> >> editor-in-chief for programmers. I currently us

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
times over years, and never worked. What did 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:

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
> It takes forever 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: htt

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
ght. [1] which is part of the Emacs version I am using, I just 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
im 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://mail.pyt

Re: Python IDE/text-editor

2011-04-16 Thread John Bokma
st check it out. - Emmett 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

Re: Python IDE/text-editor

2011-04-15 Thread John Bokma
.org/software/emacs/> or Vim > 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, bu

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread John Bokma
gt; 3. 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:/

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread John Bokma
Chris Angelico writes: > On Fri, Apr 1, 2011 at 8:57 AM, geremy condra wrote: >> I know it's tongue-in-cheek, but please, please, please don't do this. > > It would be more secure to base64 it and then rot13 the output. Rot-13 twice, to make it even more se

Re: call php function from python

2011-03-31 Thread John Bokma
tall, use the post method with the right data 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: Problem with re module

2011-03-22 Thread John Bokma
explain to me why this > match is not behaving as I intend it to, especially the ([^$])? [^$] matches: not a $ character You might want [^\n] -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
#x27;s Usenet, something I've been 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

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
n00m writes: > On Mar 6, 10:17 pm, n00m wrote: >> On Mar 6, 8:55 pm, John Bokma wrote: >> >> >> >> > n00m writes: >> > >http://www.nga.gov/search/index.shtm >> > >http://deyoung.famsf.org/search-collections >> > &g

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
either its title 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 Blo

Re: Python programming books

2011-02-22 Thread John Bokma
In general: some reviewers give bad reviews because of Amazon 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

Re: Creating Long Lists

2011-02-21 Thread John Bokma
was accepted by the poster > 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

Re: sqlite autoincrement of primary key

2010-11-29 Thread John Bokma
tinauser writes: > however, if in python i try to execute a script like: > > cur.execute( > ''' > INSERT INTO 'foo' VALUES (?,?) > ''' > ,('NULL','yyy')) ,(None

Re: IMAP support

2010-10-03 Thread John Bokma
. Nevermind 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-list

Re: Crummy BS Script

2010-10-02 Thread John Bokma
es: >> >> >> >> But where is this saving the imported file and under what name? >> >> >> > Looks like samples.csv: >> >> >> >> f = open('samples.csv', 'w') > How do change where output goes and what its c

Re: toy list processing problem: collect similar terms

2010-09-28 Thread John Bokma
Paul Rubin writes: > John Bokma writes: >> Xah Lee 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 and on top of that redirected the thin

Re: toy list processing problem: collect similar terms

2010-09-28 Thread John Bokma
ld speak for themselves 2) Stop abusing Usenet. Instead focus on writing more good stuff 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: h

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
Seebs writes: fup set to poster > On 2010-09-28, John Bokma wrote: >> Seebs writes: >>> On 2010-09-26, J?rgen Exner wrote: >>>> It was livibetter who without any motivation or reasoning posted Python >>>> code in CLPM. > >>> Not exactly

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
him money. See: http://www.google.com/search?q=site%3Axahlee.org%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

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

2010-09-27 Thread John Bokma
oogle.com/search?q=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/Facebo

Re: toy list processing problem: collect similar terms

2010-09-26 Thread John Bokma
report him with Google Groups and with his hosting provider 1&1 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 Perl & P

Re: Too much code - slicing

2010-09-22 Thread John Bokma
Seebs 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

Re: Too much code - slicing

2010-09-22 Thread John Bokma
eady somewhat complex (or noisy) 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://john

Re: Down with tinyurl!

2010-09-22 Thread John Bokma
amond teeth :-D. Also, 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/

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
Lawrence D'Oliveiro 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 com

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
Dennis Lee Bieber writes: > On Mon, 20 Sep 2010 20:12:01 -0500, John Bokma > 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
to movie theaters all over the world by chaining themselves 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://john

Re: Down with tinyurl!

2010-09-21 Thread John Bokma
ople are ashamed of telling that they have used Google, 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
googled for. If I 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-20 Thread John Bokma
r more of the answers. 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 F

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
Tim Chase writes: > On 09/20/10 20:12, John Bokma wrote: >> Steven D'Aprano 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? Is th

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
hing. What happens if I quote 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/listinfo/python-list

Re: Too much code - slicing

2010-09-20 Thread John Bokma
Terry Reedy 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

Re: [OT] Speed-reading

2010-09-20 Thread John Bokma
.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/j.j.j.bokma Freelance

Re: Too much code - slicing

2010-09-20 Thread John Bokma
Seebs writes: > On 2010-09-20, John Bokma 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, regu

Re: Down with tinyurl!

2010-09-20 Thread John Bokma
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-19 Thread John Bokma
AK writes: > On 09/19/2010 10:32 PM, John Bokma wrote: >> AK 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 >>&g

Re: Too much code - slicing

2010-09-19 Thread John Bokma
od book, and start over again would be quite the spoiler. Do you fast forward movies as well? I do speed read but not the books I read for pleasure. -- John Bokma j3b Blog: http://johnbokma.com/Facebook: http://www.facebook.com/j

Re: Performance: sets vs dicts.

2010-09-03 Thread John Bokma
Terry Reedy 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 l

Re: Obscure MySQLdb question - duplicating a database handle

2010-09-02 Thread John Bokma
e 2 db connections? It might even be better since you can give each one its own user and hence, privileges. -- 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
Robert Kern writes: > On 9/1/10 4:40 PM, John Bokma wrote: >> Arnaud Delobelle writes: >> >>> Terry Reedy writes: [...] >>> I don't understand what you're trying to say. Aahz didn't claim that >>> random list element access was cons

Re: Performance: sets vs dicts.

2010-09-01 Thread John Bokma
Terry Reedy 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

Re: Performance: sets vs dicts.

2010-09-01 Thread John Bokma
I don't understand what you're trying to say. Aahz didn't claim that > random list element access was constant time, he said it was O(1) (and > that it should be part of the Python spec that it is). Uhm, O(1) /is/ constant time, see page 45 of Introduction to Algorithms, 2

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

2010-08-29 Thread John Bokma
ovements. xte? sudo apt-get install 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 & P

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
\x04\x04\x05\n\x07\x07\x06\x08\x0c\n\x0c\x0c\x0b\n\x0b\x0b\r\x0e\x12\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 conten

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
Navkirat Singh 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: Iterative vs. Recursive coding

2010-08-26 Thread John Bokma
state (litteraly *hundreds* of global variables), duplication, > dead code, and enough WTF to supply thedailywtf.com for years - to > make a long story short, the perfect BigBallOfMudd. FWIW, the company > didn't last long neither - they just kept on introducing ten new bugs > each ti

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

2010-08-25 Thread John Bokma
forth. > Here's 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
John Bokma 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 consi

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

2010-08-24 Thread John Bokma
Also note that your post is crossposted to several other groups. > without actually doing any programming themselves. This is why I don't > take c.l.f. very seriously; people attack me all of the time and I > don't really care heh, hence all the replies you write, and men

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

2010-08-24 Thread John Bokma
nds more like magic than technology. 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.face

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

2010-08-24 Thread John Bokma
lk, Eiffel, etc. No compiler(s) handy. And of course questions like: what's wrong with this piece of code and how should it be written. 3) being able to write papers and a thesis (or two) No explanation needed, quite some people have no problem reading the required books,

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

2010-08-24 Thread John Bokma
Hugh Aguilar writes: > On Aug 22, 11:12 am, John Bokma 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 expe

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

2010-08-24 Thread John Bokma
David Kastrup writes: > John Bokma 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: Iterative vs. Recursive coding

2010-08-22 Thread John Bokma
Steven D'Aprano 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-22 Thread John Bokma
David Kastrup writes: > John Bokma writes: > >> David Kastrup writes: >> >>> John Passaniti writes: >>> >>>> Amen! All this academic talk is useless. Who cares about things like >>>> the big-O notation for program complexity. Can

Re: Iterative vs. Recursive coding

2010-08-21 Thread John Bokma
John Nagle writes: > On 8/20/2010 1:17 PM, John Bokma wrote: >> John Nagle 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 d

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

2010-08-21 Thread John Bokma
ut their experience with graduated people often missed the boat 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 an

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

Re: Long rant about Python in Education

2010-08-12 Thread John Bokma
ld. IMO it works best if you let the child discover 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&#x

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

2010-08-03 Thread John Bokma
Ethan Furman writes: > John Bokma wrote: >> Michael Torrie 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.

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

2010-08-03 Thread John Bokma
Carl Banks writes: > On Aug 3, 2:29 am, John Bokma 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." Yu

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

2010-08-03 Thread John Bokma
Michael Torrie 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 &g

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

2010-08-03 Thread John Bokma
de, 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/#unladensw

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

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

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

2010-08-01 Thread John Bokma
re programs that just converted C++ to C (frontends). At least that is how 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://john

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

2010-08-01 Thread John Bokma
ttp://en.wikipedia.org/wiki/C_plus_plus#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 &

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

2010-07-27 Thread John Bokma
nt.net, so you could contact abuse at sprint.net (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 the

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

2010-07-27 Thread John Bokma
tle and tags, and just look > it up whenever you needed to. Ages ago I wrote something like this in Perl, but now I use a local install of MediaWiki to keep notes, interesting links, code snippets, etc. One of the advantages is that I can reach it from each computer connected to my LAN, even virt

Re: why is this group being spammed?

2010-07-24 Thread John Bokma
't reply to spam 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
he 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

Re: death of newsgroups (Microsoft closing their newsgroups)

2010-07-14 Thread John Bokma
t.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   >