Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #50304 > unrolled thread

Stack Overflow moderator “animuson”

Started byMats Peterson <matsp999@aim.com>
First post2013-07-10 07:55 +0000
Last post2013-07-19 20:47 -0400
Articles 20 on this page of 67 — 24 participants

Back to article view | Back to comp.lang.python


Contents

  Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 07:55 +0000
    Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 18:26 +1000
      Re: Stack Overflow moderator “animuson” Steven D'Aprano <steve@pearwood.info> - 2013-07-10 08:37 +0000
        Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:33 +0000
          Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 18:50 +1000
            Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:46 +0000
              Re: Stack Overflow moderator “animuson” Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-10 03:12 -0600
                Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 09:13 +0000
              Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 10:52 +0100
              Re: Stack Overflow moderator “animuson” Robert Kern <robert.kern@gmail.com> - 2013-07-10 12:08 +0100
              Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 12:15 +0100
              Re: Stack Overflow moderator “animuson” Skip Montanaro <skip@pobox.com> - 2013-07-10 06:52 -0500
              Re: Stack Overflow moder ator “animuson” Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-10 15:01 +0000
                Re: Stack Overflow moder ator “animuson” CM <cmpython@gmail.com> - 2013-07-11 00:36 -0700
            Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:50 +0000
              Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 19:10 +1000
      Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:32 +0000
        Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 18:46 +1000
          Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:43 +0000
            Re: Stack Overflow moderator “animuson” Michael Torrie <torriem@gmail.com> - 2013-07-10 22:20 -0600
        Re: Stack Overflow moderator “animuson” Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-10 03:00 -0600
      Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 08:42 +0000
        Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 19:02 +1000
          Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 09:01 +0000
            Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 19:39 +1000
              Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 12:22 +0000
                Re: Stack Overflow moderator “animuson” Michael Torrie <torriem@gmail.com> - 2013-07-10 22:26 -0600
        Re: Stack Overflow moderator “animuson” Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-10 03:06 -0600
          Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 09:03 +0000
            Re: Stack Overflow moderator “animuson” Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-07-10 13:14 +0200
              Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 12:01 +0000
                Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 13:13 +0100
            Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 12:19 +0100
            Re: StackOverflowmoderator “animuson” Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-10 16:03 +0000
    Re: Stack Overflow moderator “animuson” Steven D'Aprano <steve@pearwood.info> - 2013-07-10 09:00 +0000
      Re: Stack Overflow moderator “animuson” Steve Simmons <square.steve@gmail.com> - 2013-07-10 12:18 +0100
      Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 12:13 +0000
        Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-10 22:22 +1000
        Re: Stack Overflow moderator “animuson” Skip Montanaro <skip@pobox.com> - 2013-07-10 07:35 -0500
        Re: Stack Overflow moderator “animuson” Paul Scott <pscott209@gmail.com> - 2013-07-10 14:27 +0200
        Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 13:39 +0100
        Re: Stack Overflow moderator “animuson” Skip Montanaro <skip@pobox.com> - 2013-07-10 08:12 -0500
        Re: Stack Overflow moderator “animuson” memilanuk <memilanuk@gmail.com> - 2013-07-10 07:34 -0700
        Re: Stack Overflow moderator “animuson” alex23 <wuwei23@gmail.com> - 2013-07-11 12:04 +1000
      Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 16:54 +0100
        Re: Stack Overflow moderator “animuson” Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-10 17:15 +0000
          Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 18:53 +0100
            Re: Stack Overflow moderator “animuson” Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-10 23:28 +0000
      Re: Stack Overflow moderator “animuson” Ethan Furman <ethan@stoneleaf.us> - 2013-07-10 09:18 -0700
      Re: Stack Overflow moderator “animuson” Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-10 12:32 -0400
      Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 18:55 +0100
      Re: Stack Overflow moderator “animuson” Antoine Pitrou <solipsis@pitrou.net> - 2013-07-18 08:54 +0000
      Re: Stack Overflow moderator “animuson” wxjmfauth@gmail.com - 2013-07-19 11:54 -0700
        Re: Stack Overflow moderator “animuson” Chris Angelico <rosuav@gmail.com> - 2013-07-20 08:35 +1000
        Re: Stack Overflow moderator “animuson” Dave Angel <davea@davea.name> - 2013-07-19 19:14 -0400
        Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-20 11:27 +0100
    Re: Stack Overflow moderator “animuson” Joshua Landau <joshua@landau.ws> - 2013-07-10 12:12 +0100
      Re: Stack Overflow moderator “animuson” Mats Peterson <matsp999@aim.com> - 2013-07-10 12:06 +0000
        Re: Stack Overflow moderator “animuson” Benedict Verheyen <benedict.verheyen@gmail.com> - 2013-07-10 13:53 +0000
          Re: Stack Overflow moderator “animuson” alex23 <wuwei23@gmail.com> - 2013-07-11 12:08 +1000
        Re: Stack Overflow moderator “animuson” Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-10 10:02 -0600
        Re: Stack Overflow bans Mats Peterson (was Re: Stack Overflow moderator “animuson”) Michael Torrie <torriem@gmail.com> - 2013-07-10 22:38 -0600
    Re: Stack Overflow moderator “animuson” Benedict Verheyen <benedict.verheyen@gmail.com> - 2013-07-10 11:56 +0000
    Re: Stack Overflow  bans Mats Peterson (was Re: ....) Terry Reedy <tjreedy@udel.edu> - 2013-07-10 14:52 -0400
    Re: Stack Overflow moderator “animuson” Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-07-11 11:36 +0200
    Re: Stack Overflow moderator “animuson” Jake Angulo <jake.angulo@gmail.com> - 2013-07-19 17:33 +1000
    Re: Stack Overflow moderator “animuson” Kevin Walzer <kw@codebykevin.com> - 2013-07-19 20:47 -0400

Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →


#50323

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-07-10 03:00 -0600
Message-ID<mailman.4494.1373446897.3114.python-list@python.org>
In reply to#50310
On Wed, Jul 10, 2013 at 2:32 AM, Mats Peterson <matsp999@aim.com> wrote:
> Chris Angelico <rosuav@gmail.com> wrote:
>> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>>> want to face the truth. He has deleted all my postings regarding Python
>>> regular expression matching being extremely slow compared to Perl.
>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>
>> And this matters... how? What are we supposed to do about it? We are
>> not the Python Secret Underground, which emphatically does not exist.
>>
>> ChrisA
>
> You aren’t supposed to do squat about it. I just wanted to mention it
> to the Python evangelists, who need to see the light.

It's well known that regular expressions are slow.  I wouldn't know
how they compare to Perl, which I don't use.

[toc] | [prev] | [next] | [standalone]


#50314

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 08:42 +0000
Message-ID<krj6pv$obo$3@dont-email.me>
In reply to#50308
Chris Angelico <rosuav@gmail.com> wrote:
> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>> want to face the truth. He has deleted all my postings regarding Python
>> regular expression matching being extremely slow compared to Perl.
>> Additionally my account has been suspended for 7 days. Such a dickwad.
>
> And this matters... how? What are we supposed to do about it? We are
> not the Python Secret Underground, which emphatically does not exist.
>
> ChrisA

I fear you don’t even know what a regular expression is. Then this of
course won’t affect you whatsoever.

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50324

FromChris Angelico <rosuav@gmail.com>
Date2013-07-10 19:02 +1000
Message-ID<mailman.4495.1373446976.3114.python-list@python.org>
In reply to#50314
On Wed, Jul 10, 2013 at 6:42 PM, Mats Peterson <matsp999@aim.com> wrote:
> Chris Angelico <rosuav@gmail.com> wrote:
>> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>>> want to face the truth. He has deleted all my postings regarding Python
>>> regular expression matching being extremely slow compared to Perl.
>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>
>> And this matters... how? What are we supposed to do about it? We are
>> not the Python Secret Underground, which emphatically does not exist.
>>
>> ChrisA
>
> I fear you don’t even know what a regular expression is. Then this of
> course won’t affect you whatsoever.

I know what regular expressions are. I've used them in Perl, PHP,
JavaScript, Python, C++, Pike, and numerous text editors (which may
have been backed by one of the above languages, or may have been
something else). Doesn't change the fact that I have no idea what the
significance is of your post.

ChrisA

[toc] | [prev] | [next] | [standalone]


#50325

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 09:01 +0000
Message-ID<krj7sj$obo$7@dont-email.me>
In reply to#50324
Chris Angelico <rosuav@gmail.com> wrote:
> On Wed, Jul 10, 2013 at 6:42 PM, Mats Peterson <matsp999@aim.com> wrote:
>> Chris Angelico <rosuav@gmail.com> wrote:
>>> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>>>> want to face the truth. He has deleted all my postings regarding Python
>>>> regular expression matching being extremely slow compared to Perl.
>>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>>
>>> And this matters... how? What are we supposed to do about it? We are
>>> not the Python Secret Underground, which emphatically does not exist.
>>>
>>> ChrisA
>>
>> I fear you don’t even know what a regular expression is. Then this of
>> course won’t affect you whatsoever.
>
> I know what regular expressions are. I've used them in Perl, PHP,
> JavaScript, Python, C++, Pike, and numerous text editors (which may
> have been backed by one of the above languages, or may have been
> something else). Doesn't change the fact that I have no idea what the
> significance is of your post.
>
> ChrisA

You do? And you haven't noticed the inferior performance of regular
expressions in Python compared to Perl? Then you obviously haven't
used them a lot.

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50330

FromChris Angelico <rosuav@gmail.com>
Date2013-07-10 19:39 +1000
Message-ID<mailman.4498.1373449148.3114.python-list@python.org>
In reply to#50325
On Wed, Jul 10, 2013 at 7:01 PM, Mats Peterson <matsp999@aim.com> wrote:
> Chris Angelico <rosuav@gmail.com> wrote:
>> I know what regular expressions are. I've used them in Perl, PHP,
>> JavaScript, Python, C++, Pike, and numerous text editors (which may
>> have been backed by one of the above languages, or may have been
>> something else). Doesn't change the fact that I have no idea what the
>> significance is of your post.
>>
>> ChrisA
>
> You do? And you haven't noticed the inferior performance of regular
> expressions in Python compared to Perl? Then you obviously haven't
> used them a lot.

That would be correct. Why have I not used them all that much? Because
Python has way better ways of doing many things. Regexps are
notoriously hard to debug, largely because a nonmatching regex can't
give much information about _where_ it failed to match, and when I
parse strings, it's more often with (s)scanf notation instead - stuff
like this (Pike example as Python doesn't, afaik, have scanf support):

> data="Hello, world! I am number 42.";
> sscanf(data,"Hello, %s! I am number %d.",foo,x);
(3) Result: 2
> foo;
(4) Result: "world"
> x;
(5) Result: 42

Or a more complicated example:

sscanf(Stdio.File("/proc/meminfo")->read(),"%{%s: %d%*s\n%}",array data);
mapping meminfo=(mapping)data;

That builds up a mapping (Pike terminology for what Python calls a
dict) with the important information out of /proc/meminfo, something
like this:

([
  "MemTotal": 2026144,
  "MemFree": 627652,
  "Buffers": 183572,
  "Cached": 380724,
  ..... etc etc
])

So, no. I haven't figured out that Perl's regular expressions
outperform Python's or Pike's or SciTE's, because I simply don't need
them all that much. With sscanf, I can at least get a partial match,
which tells me where to look for the problem.

ChrisA

[toc] | [prev] | [next] | [standalone]


#50351

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 12:22 +0000
Message-ID<krjjlj$i2g$4@dont-email.me>
In reply to#50330
Chris Angelico <rosuav@gmail.com> wrote:
> On Wed, Jul 10, 2013 at 7:01 PM, Mats Peterson <matsp999@aim.com> wrote:
>> Chris Angelico <rosuav@gmail.com> wrote:
>>> I know what regular expressions are. I've used them in Perl, PHP,
>>> JavaScript, Python, C++, Pike, and numerous text editors (which may
>>> have been backed by one of the above languages, or may have been
>>> something else). Doesn't change the fact that I have no idea what the
>>> significance is of your post.
>>>
>>> ChrisA
>>
>> You do? And you haven't noticed the inferior performance of regular
>> expressions in Python compared to Perl? Then you obviously haven't
>> used them a lot.
>
> That would be correct. Why have I not used them all that much? Because
> Python has way better ways of doing many things. Regexps are
> notoriously hard to debug, largely because a nonmatching regex can't
> give much information about _where_ it failed to match, and when I
> parse strings, it's more often with (s)scanf notation instead - stuff
> like this (Pike example as Python doesn't, afaik, have scanf support):
>
>> data="Hello, world! I am number 42.";
>> sscanf(data,"Hello, %s! I am number %d.",foo,x);
> (3) Result: 2
>> foo;
> (4) Result: "world"
>> x;
> (5) Result: 42
>
> Or a more complicated example:
>
> sscanf(Stdio.File("/proc/meminfo")->read(),"%{%s: %d%*s\n%}",array data);
> mapping meminfo=(mapping)data;
>
> That builds up a mapping (Pike terminology for what Python calls a
> dict) with the important information out of /proc/meminfo, something
> like this:
>
> ([
>   "MemTotal": 2026144,
>   "MemFree": 627652,
>   "Buffers": 183572,
>   "Cached": 380724,
>   ..... etc etc
> ])
>
> So, no. I haven't figured out that Perl's regular expressions
> outperform Python's or Pike's or SciTE's, because I simply don't need
> them all that much. With sscanf, I can at least get a partial match,
> which tells me where to look for the problem.
>
> ChrisA

You're showing by these examples what regular expressions mean to you.

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50411

FromMichael Torrie <torriem@gmail.com>
Date2013-07-10 22:26 -0600
Message-ID<mailman.4563.1373516776.3114.python-list@python.org>
In reply to#50351
On 07/10/2013 06:22 AM, Mats Peterson wrote:
> You're showing by these examples what regular expressions mean to you.

Chris is showing no such thing.  And you are simply trolling.  What do
you want us to do, fall down and worship you and admit that Python is a
horrible language and we should all use Perl?  What is your point?  Are
you looking for an admission of Python's slowness compared to Perl?  If
so, then yes it's slower.  For what I need it for, it does not matter.
Maybe you could write a better regex engine for python. Then we'd have
the best of both worlds.

[toc] | [prev] | [next] | [standalone]


#50326

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-07-10 03:06 -0600
Message-ID<mailman.4496.1373447242.3114.python-list@python.org>
In reply to#50314
On Wed, Jul 10, 2013 at 2:42 AM, Mats Peterson <matsp999@aim.com> wrote:
> Chris Angelico <rosuav@gmail.com> wrote:
>> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>>> want to face the truth. He has deleted all my postings regarding Python
>>> regular expression matching being extremely slow compared to Perl.
>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>
>> And this matters... how? What are we supposed to do about it? We are
>> not the Python Secret Underground, which emphatically does not exist.
>>
>> ChrisA
>
> I fear you don’t even know what a regular expression is. Then this of
> course won’t affect you whatsoever.

Troll.  A quick search of my Gmail archives turns up 18 threads in
which Chris has used the phrase "regular expression".

[toc] | [prev] | [next] | [standalone]


#50327

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 09:03 +0000
Message-ID<krj80s$obo$8@dont-email.me>
In reply to#50326
Ian Kelly <ian.g.kelly@gmail.com> wrote:
> On Wed, Jul 10, 2013 at 2:42 AM, Mats Peterson <matsp999@aim.com> wrote:
>> Chris Angelico <rosuav@gmail.com> wrote:
>>> On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson <matsp999@aim.com> wrote:
>>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>>>> want to face the truth. He has deleted all my postings regarding Python
>>>> regular expression matching being extremely slow compared to Perl.
>>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>>
>>> And this matters... how? What are we supposed to do about it? We are
>>> not the Python Secret Underground, which emphatically does not exist.
>>>
>>> ChrisA
>>
>> I fear you don’t even know what a regular expression is. Then this of
>> course won’t affect you whatsoever.
>
> Troll.  A quick search of my Gmail archives turns up 18 threads in
> which Chris has used the phrase "regular expression".

Not a troll. It's just hard to convince Python users that their beloved
language would have inferior regular expression performance to Perl.

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50339

FromAntoon Pardon <antoon.pardon@rece.vub.ac.be>
Date2013-07-10 13:14 +0200
Message-ID<mailman.4507.1373454889.3114.python-list@python.org>
In reply to#50327
Op 10-07-13 11:03, Mats Peterson schreef:
> Not a troll. It's just hard to convince Python users that their beloved
> language would have inferior regular expression performance to Perl.

All right, you have convinced me. Now what? Why should I care?

-- 
Antoon Pardon

[toc] | [prev] | [next] | [standalone]


#50344

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 12:01 +0000
Message-ID<krjiev$i2g$1@dont-email.me>
In reply to#50339
Antoon Pardon <antoon.pardon@rece.vub.ac.be> wrote:
> Op 10-07-13 11:03, Mats Peterson schreef:
>> Not a troll. It's just hard to convince Python users that their beloved
>> language would have inferior regular expression performance to Perl.
>
> All right, you have convinced me. Now what? Why should I care?
>

Right. Why should you. And who cares about you?

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50346

FromJoshua Landau <joshua@landau.ws>
Date2013-07-10 13:13 +0100
Message-ID<mailman.4512.1373458469.3114.python-list@python.org>
In reply to#50344
On 10 July 2013 13:01, Mats Peterson <matsp999@aim.com> wrote:
> Antoon Pardon <antoon.pardon@rece.vub.ac.be> wrote:
>> Op 10-07-13 11:03, Mats Peterson schreef:
>>> Not a troll. It's just hard to convince Python users that their beloved
>>> language would have inferior regular expression performance to Perl.
>>
>> All right, you have convinced me. Now what? Why should I care?
>>
>
> Right. Why should you. And who cares about you?

Not the Python Se

[toc] | [prev] | [next] | [standalone]


#50350

FromJoshua Landau <joshua@landau.ws>
Date2013-07-10 12:19 +0100
Message-ID<mailman.4515.1373459245.3114.python-list@python.org>
In reply to#50327
On 10 July 2013 12:14, Antoon Pardon <antoon.pardon@rece.vub.ac.be> wrote:
> Op 10-07-13 11:03, Mats Peterson schreef:
>> Not a troll. It's just hard to convince Python users that their beloved
>> language would have inferior regular expression performance to Perl.
>
> All right, you have convinced me. Now what? Why should I care?

Isn't it obvious? Regex-based macros!

[toc] | [prev] | [next] | [standalone]


#50371 — Re: StackOverflowmoderator “animuson”

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-07-10 16:03 +0000
SubjectRe: StackOverflowmoderator “animuson”
Message-ID<51dd85c6$0$9505$c3e8da3$5496439d@news.astraweb.com>
In reply to#50327
On Wed, 10 Jul 2013 09:03:24 +0000, Mats Peterson wrote:

> Not a troll. It's just hard to convince Python users that their beloved
> language would have inferior regular expression performance to Perl.

I can't speak for others, but I've known for many years that Python's 
regex implementation was slower than Perl's. So what? Do you have a patch?


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#50321

FromSteven D'Aprano <steve@pearwood.info>
Date2013-07-10 09:00 +0000
Message-ID<51dd22a6$0$11094$c3e8da3@news.astraweb.com>
In reply to#50304
On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote:

> A moderator who calls himself “animuson” on Stack Overflow doesn’t want
> to face the truth. He has deleted all my postings regarding Python
> regular expression matching being extremely slow compared to Perl.

That's by design. We don't want to make the same mistake as Perl, where 
every problem is solved by a regular expression:

http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers/

so we deliberately make regexes as slow as possible so that programmers 
will look for a better way to solve their problem. If you check the 
source code for the re engine, you'll find that for certain regexes, it 
busy-waits for anything up to 30 seconds at a time, deliberately wasting 
cycles.

The same with Unicode. We hate French people, you see, and so in an 
effort to drive everyone back to ASCII-only text, Python 3.3 introduces 
some memory optimizations that ensures that Unicode strings work 
correctly and are up to four times smaller than they used to be. You 
should get together with jmfauth, who has discovered our dastardly plot 
and keeps posting benchmarks showing how on carefully contrived micro-
benchmarks using a beta version of Python 3.3, non-ASCII string 
operations can be marginally slower than in 3.2.


> Additionally my account has been suspended for 7 days. Such a dickwad.

I cannot imagine why he would have done that.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#50341

FromSteve Simmons <square.steve@gmail.com>
Date2013-07-10 12:18 +0100
Message-ID<mailman.4509.1373455133.3114.python-list@python.org>
In reply to#50321

[Multipart message — attachments visible in raw view] — view raw

Steven D'Aprano <steve@pearwood.info> wrote:

>On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote:
>
>> A moderator who calls himself “animuson” on Stack Overflow doesn’t
>want
>> to face the truth. He has deleted all my postings regarding Python
>> regular expression matching being extremely slow compared to Perl.
>
>That's by design. We don't want to make the same mistake as Perl, where
>
>every problem is solved by a regular expression:
>
>http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers/
>
>so we deliberately make regexes as slow as possible so that programmers
>
>will look for a better way to solve their problem. If you check the 
>source code for the re engine, you'll find that for certain regexes, it
>
>busy-waits for anything up to 30 seconds at a time, deliberately
>wasting 
>cycles.
>
>The same with Unicode. We hate French people, you see, and so in an 
>effort to drive everyone back to ASCII-only text, Python 3.3 introduces
>
>some memory optimizations that ensures that Unicode strings work 
>correctly and are up to four times smaller than they used to be. You 
>should get together with jmfauth, who has discovered our dastardly plot
>
>and keeps posting benchmarks showing how on carefully contrived micro-
>benchmarks using a beta version of Python 3.3, non-ASCII string 
>operations can be marginally slower than in 3.2.
>
>
>> Additionally my account has been suspended for 7 days. Such a
>dickwad.
>
>I cannot imagine why he would have done that.
>
>
>-- 
>Steven
>-- 
>http://mail.python.org/mailman/listinfo/python-list

:-)  Thank you.

Sent from a Galaxy far far away

[toc] | [prev] | [next] | [standalone]


#50347

FromMats Peterson <matsp999@aim.com>
Date2013-07-10 12:13 +0000
Message-ID<krjj4q$i2g$3@dont-email.me>
In reply to#50321
Steven D'Aprano <steve@pearwood.info> wrote:
> On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote:
>
>> A moderator who calls himself “animuson” on Stack Overflow doesn’t want
>> to face the truth. He has deleted all my postings regarding Python
>> regular expression matching being extremely slow compared to Perl.
>
> That's by design. We don't want to make the same mistake as Perl, where 
> every problem is solved by a regular expression:
>
> http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers/
>
> so we deliberately make regexes as slow as possible so that programmers 
> will look for a better way to solve their problem. If you check the 
> source code for the re engine, you'll find that for certain regexes, it 
> busy-waits for anything up to 30 seconds at a time, deliberately wasting 
> cycles.
>
> The same with Unicode. We hate French people, you see, and so in an 
> effort to drive everyone back to ASCII-only text, Python 3.3 introduces 
> some memory optimizations that ensures that Unicode strings work 
> correctly and are up to four times smaller than they used to be. You 
> should get together with jmfauth, who has discovered our dastardly plot 
> and keeps posting benchmarks showing how on carefully contrived micro-
> benchmarks using a beta version of Python 3.3, non-ASCII string 
> operations can be marginally slower than in 3.2.
>
>
>> Additionally my account has been suspended for 7 days. Such a dickwad.
>
> I cannot imagine why he would have done that.
>
>

You're obviously trying hard to be funny. It fails miserably.

Mats

-- 
Mats Peterson
http://alicja.homelinux.com/~mats/

[toc] | [prev] | [next] | [standalone]


#50348

FromChris Angelico <rosuav@gmail.com>
Date2013-07-10 22:22 +1000
Message-ID<mailman.4513.1373458973.3114.python-list@python.org>
In reply to#50347
On Wed, Jul 10, 2013 at 10:13 PM, Mats Peterson <matsp999@aim.com> wrote:
> Steven D'Aprano <steve@pearwood.info> wrote:
>> On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote:
>>
>>> A moderator who calls himself “animuson” on Stack Overflow doesn’t want
>>> to face the truth. He has deleted all my postings regarding Python
>>> regular expression matching being extremely slow compared to Perl.
>>
>> That's by design. We don't want to make the same mistake as Perl, where
>> every problem is solved by a regular expression:
>>
>> http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers/
>>
>> so we deliberately make regexes as slow as possible so that programmers
>> will look for a better way to solve their problem. If you check the
>> source code for the re engine, you'll find that for certain regexes, it
>> busy-waits for anything up to 30 seconds at a time, deliberately wasting
>> cycles.
>>
>> The same with Unicode. We hate French people, you see, and so in an
>> effort to drive everyone back to ASCII-only text, Python 3.3 introduces
>> some memory optimizations that ensures that Unicode strings work
>> correctly and are up to four times smaller than they used to be. You
>> should get together with jmfauth, who has discovered our dastardly plot
>> and keeps posting benchmarks showing how on carefully contrived micro-
>> benchmarks using a beta version of Python 3.3, non-ASCII string
>> operations can be marginally slower than in 3.2.
>>
>>
>>> Additionally my account has been suspended for 7 days. Such a dickwad.
>>
>> I cannot imagine why he would have done that.
>>
>>
>
> You're obviously trying hard to be funny. It fails miserably.

Either that or it's funny only to other Australians.

ChrisA

[toc] | [prev] | [next] | [standalone]


#50352

FromSkip Montanaro <skip@pobox.com>
Date2013-07-10 07:35 -0500
Message-ID<mailman.4516.1373459720.3114.python-list@python.org>
In reply to#50347
> Either that or it's funny only to other Australians.

Or the Dutch.

S

[toc] | [prev] | [next] | [standalone]


#50353

FromPaul Scott <pscott209@gmail.com>
Date2013-07-10 14:27 +0200
Message-ID<mailman.4518.1373460851.3114.python-list@python.org>
In reply to#50347
On 10/07/2013 14:22, Chris Angelico wrote:
> Either that or it's funny only to other Australians. ChrisA 

As a South African, I found it funny too, but then again, we often get 
confused.

[toc] | [prev] | [next] | [standalone]


Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →

Back to top | Article view | comp.lang.python


csiph-web