[Python-Dev] Do you consider Python a 4GL? Why (not)?

2013-06-04 Thread Carlos Nepomuceno
Do you consider Python a 4GL? Why (not)?
  ___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] New FreeBSD 10.0-CURRENT buildbot

2013-06-02 Thread Carlos Nepomuceno

 Date: Sun, 2 Jun 2013 15:12:43 +1000
 From: koobs.free...@gmail.com
 To: python-dev@python.org
 Subject: [Python-Dev] New FreeBSD 10.0-CURRENT buildbot
[...]
 koobs-freebsd10-amd64 (clang is default here)


Does CPython code compiled with clang runs faster than gcc?

Why did you chose clang? Any benchmarks? Any benefits?  
  
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] performance testing recommendations in devguide

2013-05-29 Thread Carlos Nepomuceno

 Date: Wed, 29 May 2013 12:00:44 -0600
 From: ericsnowcurren...@gmail.com
 To: python-dev@python.org
 Subject: [Python-Dev] performance testing recommendations in devguide

 The devguide doesn't have anything on performance testing that I could
 find. We do have a number of relatively useful resources in this
 space though, like pybench and (eventually) speed.python.org. I'd
 like to add a page to the devguide on performance testing, including
 an explanation of our performance goals, how to test for them, and
 what tools are available.

Thanks Eric! I was looking for that kind of place! ;)

 Tools I'm aware of:
 * pybench (relatively limited in real-world usefulness)
 * timeit module (for quick comparisions)
 * benchmarks repo (real-world performance test suite)
 * speed.python.org (would omit for now)

Why PyBench isn't considered reliable[1]?

What do you mean by benchmarks repo? http://hg.python.org/benchmarks ?

 Things to test:
 * speed
 * memory (tools? tests?)

 Critically sensitive performance subjects
 * interpreter start-up time
 * module import overhead
 * attribute lookup overhead (including MRO traversal)
 * function call overhead
 * instance creation overhead
 * dict performance (the underlying namespace type)
 * tuple performance (packing/unpacking, integral container type)
 * string performance

 What would be important to say in the devguide regarding Python
 performance and testing it?

I've just discovered insertion at the end is faster than at the start of a list.
I'd like to see things like that not only in the devguide but also in the docs 
(http://docs.python.org/).
I found it on Dan's presentation[2] but I'm not sure it isn't in the docs 
somewhere.

 What would you add/subtract from the
 above?

Threading performance!

 How important is testing memory performance? How do we avoid
 performance regressions? Thanks!

Testing and making it faster! ;)

Offcourse we need a baseline (benchmarks database) to compare and check 
improvements.

 -eric


[1] pybench - run the standard Python PyBench benchmark suite. This is 
considered
an unreliable, unrepresentative benchmark; do not base decisions
off it. It is included only for completeness.
Source: http://hg.python.org/benchmarks/file/dccd52b95a71/README.txt

[2] 
http://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/Intro%20to%20Python%202010.pdf
  
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] PEP 442 delegate

2013-05-22 Thread Carlos Nepomuceno

 From: krist...@ccpgames.com 
 To: g...@krypto.org; solip...@pitrou.net 
 Date: Wed, 22 May 2013 19:49:31 + 
 CC: python-dev@python.org 
 Subject: Re: [Python-Dev] PEP 442 delegate 
  
  
 Stackless python, already with their own special handling of GC  
 finalization, is excited by this development ☺ 
  
 K 
  

Didn't know about Stackless Python. Is it faster than CPython?

I'm developing an application that takes more than 5000 active threads, 
sometimes up to 10.
Will it benefit from Stackless Python?

Can I use it for WSGI with Apache httpd?
  
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] _PyString_InsertThousandsGrouping()

2013-05-22 Thread Carlos Nepomuceno
Hi guys!

Can someone explain to me where in the CPython 2.7.5 source code is 
_PyString_InsertThousandsGrouping() implemented?

I've found the following declaration in 'Objects/stringobject.c' but it just 
defines _Py_InsertThousandsGrouping() as _PyString_InsertThousandsGrouping():

#define _Py_InsertThousandsGrouping _PyString_InsertThousandsGrouping

I'm looking for the opposite!

I don't even know how that doesn't cause an error! What's the trick?

Besides that I've found a lot of code inside some header files, such as 
'Objects/stringlib/formatter.h'.

Why did you chose that way?

Thanks in advance.

Carlos
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] _PyString_InsertThousandsGrouping()

2013-05-22 Thread Carlos Nepomuceno

 From: eli...@gmail.com 
[...]
 I've found the following declaration in 'Objects/stringobject.c' but it  
 just defines _Py_InsertThousandsGrouping() as  
 _PyString_InsertThousandsGrouping(): 
  
 #define _Py_InsertThousandsGrouping _PyString_InsertThousandsGrouping 
  
 I'm looking for the opposite! 
  
 No, you aren't :-) 
  
 #define _Py_InsertThousandsGrouping _PyString_InsertThousandsGrouping 
 #include stringlib/localeutil.h 
  
 Now look inside stringlib/localeutil.h and think what the  
 pre-processor does with the function definition having the #define  
 above. 
  
 Eli 

lol I can see clearly now! :p

That reminds me of Which came first, the chicken or the egg?

Thank you! Somehow I got intrigued by such use...

Do you know why they've put a lot of source code inside the header files?   
  
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [RELEASED] Python 2.7.5

2013-05-15 Thread Carlos Nepomuceno
Just filed 17992!

http://bugs.python.org/issue17992


 Date: Wed, 15 May 2013 23:51:00 -0500
 Subject: Re: [Python-Dev] [RELEASED] Python 2.7.5
 From: benja...@python.org
 To: carlosnepomuc...@outlook.com
 CC: python-dev@python.org

 2013/5/15 Carlos Nepomuceno carlosnepomuc...@outlook.com:
 test_asynchat still hangs! What it does? Should I care?

 Is there an issue filed for that?



 --
 Regards,
 Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] First post

2013-05-14 Thread Carlos Nepomuceno
Hi guys! This is my first post on this list.

I'd like have your opinion on how to safely implement WSGI on a production 
server.

My benchmarks show no performance differences between our PHP and Python 
environments. I'm using mod_wsgi v3.4 with Apache 2.4.

Is that ok or can it get faster?

Thanks in advance.

Regards,

Carlos
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com