Re: Standardizing RPython - it's time.

2010-10-13 Thread Carl Friedrich Bolz
Hi John, John Nagle animats.com> writes: > All attempts to make the dialect defined by CPython significantly > faster have failed. PyPy did not achieve much of a speed > improvement over CPython, and is sometimes slower. This is not true. While PyPy is indeed sometimes slower than CPython

PyPy Europython Sprint Announcement

2009-05-29 Thread Carl Friedrich Bolz
== Birmingham (UK) EuroPython PyPy Sprints 28-29 June/ 3-4 July 2009 == The PyPy team is sprinting at EuroPython again. This year there are `sprint days`_ before (28-29

Re: How "solid" is PyPy?

2008-06-05 Thread Carl Friedrich Bolz
lue what sort of solutions for backward compatibility we will have. Note also that the 1.0 release is sort of oldish already (but no new release has been made). Most people just use SVN head, which is quite stable. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

PyPy Berlin Sprint, 17th - 22nd May 2008

2008-05-04 Thread Carl Friedrich Bolz
= PyPy Berlin Sprint (17-22nd May 2008) = The next PyPy sprint will be in the crashed `c-base space station`_, Berlin, Germany, Earth, Solar System. Thi

ANN: Py-Lib 0.9.1 released

2008-03-30 Thread Carl Friedrich Bolz
tation/API: http://codespeak.net/py/0.9.1/index.html Work on the py lib has been partially funded by the European Union IST programme and by http://merlinux.de within the PyPy project. best, have fun and let us know what you think! holger krekel, Maciej Fijalkowski, Carl Friedrich Bolz, Gui

Re: Is crawling the stack "bad"? Why?

2008-02-26 Thread Carl Friedrich Bolz
formation. >>>> dir(dir) ['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__setstate__', '__str__', '__weakref__', 'func_closure', 'func_code', 'func_defaults', 'func_dict', 'func_doc', 'func_globals', 'func_name'] >>>> dir.func_code >>>> dir.func_name 'dir' Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Current Fastest Python Implementation?

2008-02-20 Thread Carl Friedrich Bolz
s hardly interesting. > However it seems it still has a way to go to be fully operational! > Still looks like the future to me. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-06 Thread Carl Friedrich Bolz
Hi Luis, Luis M. Gonzalez wrote: > Well, lets suppose that being faster than C is the real goal... How about we call it a very long-term dream? > Are you confident that it will be reached? We have ideas how to get there, but it is really rather long-term. There will be a lot of research needed

Re: Why not a Python compiler?

2008-02-06 Thread Carl Friedrich Bolz
et the joke though...). >> > > 'c' is also the speed of light. And since nothing can travel faster than > light... nice theory, but wrong: The PyPy home page uses a capital letter C: http://codespeak.net/pypy/dist/pypy/doc/home.html Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

PyPy-Sprint 12th-19th January Leysin, Switzerland

2007-12-31 Thread Carl Friedrich Bolz
= PyPy Leysin Winter Sprint (12-19th January 2008) = .. image:: http://www.ermina.ch/002.JPG The next PyPy sprint will be in

Re: py.test generative tests behavior unexpected

2007-12-14 Thread Carl Friedrich Bolz
Jim Vickroy wrote: > Hello all, > > I'm a first time user of py.tests. > > My setup is: > * py.test v0.9.0 > * Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit > (Intel)] on win32 > * Microsoft Windows XP Pro (service pack 2) > > The attached file (py-test-generator-trial.py) de

Re: Is a "real" C-Python possible?

2007-12-12 Thread Carl Friedrich Bolz
pecializing JIT compiler. Psyco in particular would not benefit from type hints at all (even if you changed Psyco take them into account) and would give you exactly the same speed as without them. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: finding out the call (and not only the caller)

2007-10-28 Thread Carl Friedrich Bolz
's bytecode, so the example works just fine. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: 128 or 96 bit integer types?

2007-07-29 Thread Carl Friedrich Bolz
ding extremely good big integer arithmetic, so if you have extreme needs, you shouldn't use the builtin longs. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: PyPy 1.0: JIT compilers for free and more

2007-03-29 Thread Carl Friedrich Bolz
Duncan Booth wrote: > Robin Becker <[EMAIL PROTECTED]> wrote: > >> I am hugely encouraged by this >> >> C:\Python\devel\pypy-1.0.0>\python24\python \python\lib\test > \pystone.py >> Pystone(1.1) time for 5 passes = 1.49586 >> This machine benchmarks at 33425.6 pystones/second >> >> C:\Python\d

Re: PyPy 1.0: JIT compilers for free and more

2007-03-28 Thread Carl Friedrich Bolz
ou using a custom class that looks mostly like an int and generate assembly optimized for this situation. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: PyPy 1.0: JIT compilers for free and more

2007-03-28 Thread Carl Friedrich Bolz
y on the module once again? > And are there any chances/intends for PyPy to be included into Python > core? PyPy contains a full Python interpreter (which can include a JIT compiler) and thus replaces the "Python core". PyPy can never really be integrated into CPyth

Re: PyPy 1.0: JIT compilers for free and more

2007-03-28 Thread Carl Friedrich Bolz
Hi Christian! Christian Tismer wrote: > On 28.03.2007, at 10:38, Carl Friedrich Bolz wrote: > >> Brain error on our side: the gc_pypy.dll is the dll of the Boehm >> garbage >> collector, which you would need to compile yourself (which makes >> precompiled bi

Re: PyPy 1.0: JIT compilers for free and more

2007-03-28 Thread Carl Friedrich Bolz
Hi Luis! Luis M. González wrote: > Carl Friedrich Bolz wrote: >> == >> PyPy 1.0: JIT compilers for free and more >> == [snip] > > > Congratulations! Thanks :-) >

PyPy 1.0: JIT compilers for free and more

2007-03-27 Thread Carl Friedrich Bolz
ntributions - and we hope you appreciate PyPy 1.0 as an interesting basis for greater things to come, as much as we do ourselves! have fun, the PyPy release team, Samuele Pedroni, Armin Rigo, Holger Krekel, Michael Hudson, Carl Friedrich Bolz, Antonio Cuni, Anders Chrigstroem, Guido

PyPy 0.99 released

2007-02-17 Thread Carl Friedrich Bolz
e fun, the PyPy team, Samuele Pedroni, Carl Friedrich Bolz, Armin Rigo, Michael Hudson, Maciej Fijalkowski, Anders Chrigstroem, Holger Krekel, Guido Wesdorp and many others: http://codespeak.net/pypy/dist/pypy/doc/contributor.html What is

Re: Py 2.5 on Language Shootout

2007-01-22 Thread Carl Friedrich Bolz
Ramon Diaz-Uriarte wrote: >> In England the corresponding expression is "Counting Angels on a >> Pinhead" >> http://dannyayers.com/2001/misc/angels.htm >> > > Thanks, that is neat. I find the discussion on the sex of the angels, > well, sexier. But we are probably a few hundred years late to

Re: Py 2.5 on Language Shootout

2007-01-20 Thread Carl Friedrich Bolz
C is slow because if you use CINT, a C interpreter ( http://root.cern.ch/root/Cint.html ) to execute it, it is slow. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

PyPy Leysin Winter Sports Sprint (8-14th January 2007)

2006-12-05 Thread Carl Friedrich Bolz
= PyPy Leysin Winter Sports Sprint (8-14th January 2007) = .. image:: http://www.ermina.ch/002.JPG The next PyPy sprint will

Summer of PyPy Call for Proposals

2006-11-08 Thread Carl Friedrich Bolz
any way by this list! Cheers, Carl Friedrich Bolz and the PyPy team -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE that uses an external editor?

2006-10-13 Thread Carl Friedrich Bolz
Are there any IDEs that will actually work with > an external instance of Emacs (either by firing it up or by using a remote > connection program like gnuclient)? I have never actually used it, but this project seems to integrate Vi and other external editors: http://pida.berlios.de/ Cheers

Re: references and buffer()

2006-10-08 Thread Carl Friedrich Bolz
the address, which would keep the object alive. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific computing and data visualization.

2006-10-06 Thread Carl Friedrich Bolz
available to Python. > Take a look at the root manual for examples, it also contains a section > describing the use of PyRoot. I can definitively second that. ROOT is a bit hard to learn but very, very powerful and PyRoot is really a pleasure to work with. Cheers, Carl Friedrich Bolz -- http

Re: There's another Timbot on the loose!

2006-09-29 Thread Carl Friedrich Bolz
Paul Rubin wrote: > http://web.cecs.pdx.edu/~mpj/timbot/index.html How said it's another one? Maybe our timbot grew a body. -- http://mail.python.org/mailman/listinfo/python-list

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread Carl Friedrich Bolz
not). The whole implementation took roughly 100 lines of code, of which 65 are in a separate file not touching anything else, the rest being minimally invasive changes. We also implemented a similar optimization for string slicing (only if the slice has a substantial length and a step of 1). Cheers

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread Carl Friedrich Bolz
Carl Friedrich Bolz wrote: > Robin Becker wrote: >> Larry Hastings wrote: >> __ >>> THE PATCH >>> >>> The core concept: adding two strings together no longer returns a pure >>> "string" object. Instead, it returns a "string c

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread Carl Friedrich Bolz
Robin Becker wrote: > Larry Hastings wrote: > __ >> THE PATCH >> >> The core concept: adding two strings together no longer returns a pure >> "string" object. Instead, it returns a "string concatenation" object >> which holds references to the two strings but does not actually >> concatenate >

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread Carl Friedrich Bolz
Robin Becker wrote: > Larry Hastings wrote: > __ >> THE PATCH >> >> The core concept: adding two strings together no longer returns a pure >> "string" object. Instead, it returns a "string concatenation" object >> which holds references to the two strings but does not actually >> concatenate >

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread Carl Friedrich Bolz
Robin Becker wrote: > Larry Hastings wrote: > __ >> THE PATCH >> >> The core concept: adding two strings together no longer returns a pure >> "string" object. Instead, it returns a "string concatenation" object >> which holds references to the two strings but does not actually >> concatenate >

Re: py.test and HTML output

2006-09-20 Thread Carl Friedrich Bolz
from users and discuss interesting new features. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

PyPy Sprint Announcement, Duesseldorf 30 Oct - 5 Nov

2006-09-18 Thread Carl Friedrich Bolz
listinfo/pypy-sprint .. _`people`: http://codespeak.net/pypy/extradoc/sprintinfo/ddorf2006b/people.html Cheers, Carl Friedrich Bolz & the PyPy team -- http://mail.python.org/mailman/listinfo/python-list

Re: pypy-0.9.0: stackless, new extension compiler

2006-06-26 Thread Carl Friedrich Bolz
arted into the world of PyPy see here: http://codespeak.net/pypy/dist/pypy/doc/getting-started.html Sorry for the fuss and cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to C converter

2006-06-07 Thread Carl Friedrich Bolz
ing it gives you a number of very interesting features: like having the resulting program been enhanced to not use the C stack (for deeply recursive code), using different garbage collection strategies... Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: misleading prefix ++

2006-05-21 Thread Carl Friedrich Bolz
Edward Elliott wrote: > Peter Otten wrote: [snip] > > Now that is absolutely lovely. Looks like it's time to join the ranks of > Perl and C with an Obfuscated Python Contest. ;) > yes, please! and you get special points for programs that seem to do one thing but do something totally entirely

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread Carl Friedrich Bolz
apsed = 0 self.accel = -9.8 velocity = property(lambda self: self.accel * self.elapsed) pos = property(lambda self: self.startpos + self.accel * (self.elapsed ** 2) / 2) rock = FallingRock(100) print rock.accel, rock.velocity, rock.pos # -9.8, 0, 100 rock.elapsed = 1 print rock.accel, rock.velocity, rock.pos # -9.8, -9.8, 95.1 rock.elapsed = 8 print rock.accel, rock.velocity, rock.pos # -9.8, -78.4, -213.6 Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread Carl Friedrich Bolz
>>> t.celsius = -32 >>> t.fahrenheit -25.601 >>> t = Temperature(100) >>> t.fahrenheit 212.0 no metaclass hacking necessary. Works also if you want to allow setting the property. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: This coding style bad practise?

2006-05-03 Thread Carl Friedrich Bolz
Bruno Desthuilliers wrote: > Martin P. Hellwig a écrit : >>I created a class which creates a relative unique id string, now my >>program just works fine and as expected but somehow I get the feeling >>that I misused the __repr__ since I guess people expect to 'execute' a >>function in an instanc

Re: This coding style bad practise?

2006-05-03 Thread Carl Friedrich Bolz
Bruno Desthuilliers wrote: > Martin P. Hellwig a écrit : >>I created a class which creates a relative unique id string, now my >>program just works fine and as expected but somehow I get the feeling >>that I misused the __repr__ since I guess people expect to 'execute' a >>function in an instanc

Re: how relevant is C today?

2006-04-09 Thread Carl Friedrich Bolz
ou don't know what you want to use >>it for, learning it might be a waste of time, as you won't >>know what to look for if you don't have a specific project in >>mind. > > Geeze, when I think of all the things I've "wasted my time" > l

Re: Obtaining the Python Control Flow Graph

2006-04-03 Thread Carl Friedrich Bolz
xact plans are) also look into the type inference part of PyPy: http://codespeak.net/pypy/dist/pypy/doc/translation.html#the-annotation-pass Feel free to also contact the PyPy mailing list (pypy-dev@codespeak.net) if you have PyPy-specific questions. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Next PyPy Sprint: Tokyo 23/4 - 29/4

2006-03-27 Thread Carl Friedrich Bolz
Tokyo PyPy Sprint: 23rd - 29th April 2006 The next PyPy sprint is scheduled to take place 23rd- 29th April 2006 (Sunday-Saturday) in Akihabara, Tokyo, Japan. We will together with FSIJ (Free Software Initiative of Japan) aim to promote

Re: using breakpoints in a normal interactive session

2006-02-23 Thread Carl Friedrich Bolz
ck (most recent call last): > File "", line 1, in ? > NameError: name 'x' is not defined > you can use the standard-library code module for that: instead of magic_breakpoint() just call code.interact(local=locals()). The magic_resume() would be a regular Ctrl-D (or

Re: new wooden door step - fixing and finishing

2006-02-22 Thread Carl Friedrich Bolz
Robert Boyd wrote: > On 2/22/06, Magnus Lycka <[EMAIL PROTECTED]> wrote: > >>jkn wrote: >> >>>Hi all >> >>Hi! >> >> >>>I'm considering having a go at replacing the wooden door step to >>>our back door. The original is loose and rotting. >> >>Aha, like old perl scripts. >> >> >>>I'm sure some o

Re: Python vs. Lisp -- please explain

2006-02-22 Thread Carl Friedrich Bolz
Paul Rubin wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> writes: > >>I talked to Richard Emslie recently and he told me that the PyPy team >>works on a mechanism to create CPython-extension modules written in >>RPython i.e. a statically translateable subset of Python. So even >>without dynamic code

Re: Writing my own typing monitor program for RSI sufferers...

2006-02-22 Thread Carl Friedrich Bolz
y application). Should be fairly easy to turn into a Python extension module to monitor X activity. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: May i customize basic operator (such as 1==3)?

2006-02-22 Thread Carl Friedrich Bolz
def test_fail(): a = 1 b = 2 assert a == b would result in the following failure: def test_fail(): a = 1 b = 2 E assert a == b > assert 1 == 2 This has the drawback that your expressions need to be side-effect free (because they will be

Re: Python vs. Lisp -- please explain

2006-02-21 Thread Carl Friedrich Bolz
gt; There is also the wonderful C interpreter cint: http://root.cern.ch/root/Cint.html so obviously C must be an interpreted language :-) Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Lisp -- please explain

2006-02-20 Thread Carl Friedrich Bolz
Torsten Bronger wrote: > Well, I think that it's fair to say that there are by principle deep > run time differences between CPython and, say, a typical > C++-compiled program. Your definition would not reproduce that. I > think it's also fair to say that these differences should be known > if so

Re: is there a better way?

2006-02-11 Thread Carl Friedrich Bolz
Hi! [EMAIL PROTECTED] wrote: > Problem: > > You have a list of unknown length, such as this: list = > [X,X,X,O,O,O,O]. You want to extract all and only the X's. You know > the X's are all up front and you know that the item after the last X is > an O, or that the list ends with an X. There are

Re: is there a better way?

2006-02-11 Thread Carl Friedrich Bolz
huge, O(N) might be OK, and is, of course, way simpler > to code!-) > The code would look something like this: low = 0 high = len(L) while low < high: mid = (low + high) // 2 if L[mid] == 0: high = mid else: low = mid + 1 list_of_X = L[:low] Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: jump into the interpreter in a script

2006-02-09 Thread Carl Friedrich Bolz
Brian Blais wrote: > I was wondering if there is a way to, within a script, jump into the > interpreter. > What I mean is something like the "keyboard" command in Matlab, where the > script > pauses and you get an interpreter prompt, where you can look at variables, > change > their values, etc.

Re: Most prominent Tkinter applications?

2006-02-05 Thread Carl Friedrich Bolz
ncil/ At least until a while ago it was using Tkinter, the website talks about a port to GTK, though. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Deterministic destruction and RAII idioms in Python

2006-02-05 Thread Carl Friedrich Bolz
s as well, like mark-and-sweep, a copying collector or some sort of sophisticated generational collector. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing complex new syntax

2006-01-17 Thread Carl Friedrich Bolz
[EMAIL PROTECTED] wrote: > Carl Friedrich Bolz wrote: > >>I cannot really say much about how easy it would be to just write a >>preprocessor. However, I think what you are trying to do could be done >>reasonably easy with the PyPy project: >> >>http:

Re: Testing complex new syntax

2006-01-17 Thread Carl Friedrich Bolz
new syntax (especially if the new constructs can be mapped to standard python). Feel free to ask question on the pypy developer mailing list: http://codespeak.net/mailman/listinfo/pypy-dev Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: how do "real" python programmers work?

2006-01-13 Thread Carl Friedrich Bolz
Scott David Daniels wrote: > bblais wrote: > >>How do experienced python programmers usually do it? Is there a >>"usually" about it, or is it up to personal taste? Are there any >>convenient ways of doing these things? > > There are a lot of us who use a test-first process: > Write a unit t

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-10 Thread Carl Friedrich Bolz
quot;I'd even look into PyPy sprint options at Maastricht, so you'd get > extra value for your money" We are always looking for places to do sprints, so if you know any venue where holding such an event is possible we would be glad if you contacted us. Organizing a sprint in your home town is always a possibility to have free accomodation at a sprint :-). Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: testing units in a specific order?

2006-01-09 Thread Carl Friedrich Bolz
to do that since quite some time now (it is even part an issue in our tracker) but we currently don't have the resources to actually do so. Contributions are of course welcome ;-) Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: testing units in a specific order?

2006-01-09 Thread Carl Friedrich Bolz
st you can use a script called utestconvert.py which converts the unittest syntax over to py.test syntax. It can be found in the tool directory of the py-lib. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Carl Friedrich Bolz
he internal representation is surprising). Basically it gives the implementor of a Python interpreter the freedom to choose the internal representation that he deems to be the most fitting. If implementation details leaked outside that wouldn't be possible anymore. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Stackless Python

2006-01-07 Thread Carl Friedrich Bolz
p://stackless.com/spcpaper.htm), but the > index itself always yields a 502 gateway error. I see the same problem. I asked Christian Tismer (author of stackless) to check whether the server has a problem. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling foreign functions from Python? ctypes?

2006-01-07 Thread Carl Friedrich Bolz
(): ... w = Target() ... w = None ... print ref() ... >>> g() Segmentation fault There are dozends of segfaults in Python indeed. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
its input (which is the interpreter), thus giving you a new specializer which can specialize only the interpreter for a later given user program -- a very specialized specializer indeed. This can then be called a just-in-time compiler. (Note that this is not quite how JIT of PyPy will look like

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
e that translated to C and then use this in your pure python code. Actually, one of our current rather wild ideas (which might not be followed) is to be able to even use RPython to write extension modules for CPython. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Hi! Luis M. González wrote: > Thanks Carl for your explanation! > I just have one doubt regarding the way Pypy is supposed to work when > its finished: > > We know that for translating the rpython interpreter to C, the pypy > team developed a tool that relies heavily on static type inference. >

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
o the necessary staticness conditions. This fact could be used nicely: If someone writes, say, a Ruby or Perl interpreter in RPython he will get all the benefits of PyPy for free: different target platforms, different garbage collectors, stacklessness, maybe a JIT (which is still unclear at the moment). Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
as part of the translation process. But this is at the moment still quite unclear, in heavy flux and nowhere near finished yet. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

PyPy Sprint Palma de Mallorca in January 2006

2005-12-21 Thread Carl Friedrich Bolz
Palma de Mallorca PyPy Sprint II: 23rd - 29th January 2006 The next PyPy sprint is scheduled to be in January 2006 in Palma De Mallorca, Balearic Isles, Spain. We'll give newcomer-friendly introductions. Its focus will mainly be on the

Re: Documentation suggestions

2005-12-06 Thread Carl Friedrich Bolz
in an implementation using a different GC :-) Although on the other hand a short poll revealed that the reference manual was not considered to be the most useful source among the PyPy developpers :-) Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Automate webpage refresh

2005-12-01 Thread Carl Friedrich Bolz
ing like: dcop konqueror- konqueror-mainwindow#1 openURL "http://google.net"; this command can easily be executed with os.system. Hope this gave some hints, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: python speed

2005-11-30 Thread Carl Friedrich Bolz
to have an interpreter that supports very deeply recursive algorithms, if that is needed. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: python number handling - tiny encryption algorithm

2005-11-30 Thread Carl Friedrich Bolz
Hi! Kinsley Turner wrote: [snip] > > def teaDecipher(input,key): > y = input[0] > z = input[1] > n = 32 > sum = 0xC6EF3720 > delta=0x9E3779B9 > > while (n > 0): > n -= 1 > z -= (y << 4 ^ y >> 5) + y ^ sum + key[sum>>11 & 3]; > sum -= delta; >

Re: How to enable bash mode at the interative mode?

2005-11-27 Thread Carl Friedrich Bolz
er+arrow%22&rnum=2&hl=en#736fac8c33e84d0c > , it seems that Michael Spalinski suggests of > reinstalling Python. > > Any easier way to achieve this feature? > > Thanks. You are probably missing the readline module. What operating system/python version are you using? Cheers

Re: Profiling with hotshot and wall clock time

2005-11-27 Thread Carl Friedrich Bolz
>> import time >>> def f(): ... time.sleep(1) ... >>> lsprof.profile(f).pprint() CallCountRecursiveTotal(ms) Inline(ms) module:lineno(function) 10999.0380999.0380 <>:1(f) (profiling time.sleep directly does not work, but I gue

Re: is parameter an iterable?

2005-11-15 Thread Carl Friedrich Bolz
something is exceptional (not necessarily wrong) is, well, an exception. Anyway, one way to solve this is the following: def foo(input_val): try: iterator = iter(input_val) except TypeError: # do non-iterable stuff else: for val in iterator:

PyPy sprint announcement: Gothenburg 7th - 11th December 2005

2005-11-15 Thread Carl Friedrich Bolz
Gothenburg PyPy Sprint II: 7th - 11th December 2005 == (NOTE: internal EU-only sprint starts on the 5th!) The next PyPy sprint is scheduled to be in December 2005 in Gothenborg, Sweden. Its main focus is heading towards phase 2, which means JIT

Re: Python obfuscation

2005-11-09 Thread Carl Friedrich Bolz
se that intentionally mixes names and strings that are used for something in the application there are also quite often legitimate use cases for this sort of behaviour. Duck typing is basically based on this. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiples of a number

2005-11-05 Thread Carl Friedrich Bolz
for loop: for x in range(2000): if x % 100 == 0: do_something() Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Release of PyPy 0.8.0

2005-11-03 Thread Carl Friedrich Bolz
http://codespeak.net/pypy/dist/pypy/doc/contact.html have fun, the pypy team, (Armin Rigo, Samuele Pedroni, Holger Krekel, Christian Tismer, Carl Friedrich Bolz, Michael Hudson, and many others: http://codespeak.net/pypy/dist/pypy/doc/contributor.html) PyPy development an

Re: Dealing with Excel

2005-10-18 Thread Carl Friedrich Bolz
u could use the csv module: http://python.org/doc/2.4.2/lib/module-csv.html Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-15 Thread Carl Friedrich Bolz
0], [0, 1]] if n % 2 == 0: r = expo(m, n//2) return mul(r, r) else: return mul(m, expo(m, n - 1)) def fib(n): return expo([[1, 1], [1, 0]], n)[0][0] With this you can calculate really big fibonacci numbers without increasing the recursion depth, even though the exp

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Carl Friedrich Bolz
n looks indeed quite impressive. If you are interested in discussing static translation of subsets of Python a bit or are even interested in getting to know PyPy a bit better feel free to contact us (http://codespeak.net/pypy/dist/pypy/doc/contact.html). Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Carl Friedrich Bolz
Hi Paul! Paul Boddie wrote: > Carl Friedrich Bolz wrote: >>>. there is no reason why the pypy project can't have a .NET architecture >>>instead of the java-like arrangement I assume it has now >>Sorry, I can't really follow you here. In what way does PyPy h

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Carl Friedrich Bolz
l target platforms > to develope a highly optimized > ( llvm -> native code)-compiler > -- assuming also, that there is available > a highly optimized ( c++ -> llvm bytecode )-compiler . there is. look at the LLVM page for details: www.llvm.org Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: infinite loop

2005-09-07 Thread Carl Friedrich Bolz
e: > > raise 'option has to be either 1 or 2' > [snip] One further note: string exceptions are being phased out. It is discouraged to use them. See http://docs.python.org/lib/module-exceptions.html http://www.python.org/peps/pep-0290.html for details. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Carl Friedrich Bolz
time option although it is not really clear yet how that will work in detail :-). Right now you can translate with a GIL or with no thread-support at all. Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Release of PyPy 0.7.0

2005-08-30 Thread Carl Friedrich Bolz
Michael Hudson wrote: [snip >>Obviously therefore anyone seeking to translate their existing code from >>python to an executable directly using pypy would not be doing it for >>performance reasons (again, something I'm aware of watching the >>updates come out and having run svn checkouts at previo

Release of PyPy 0.7.0

2005-08-28 Thread Carl Friedrich Bolz
, the pypy team, of which here is a partial snapshot of mainly involved persons: Armin Rigo, Samuele Pedroni, Holger Krekel, Christian Tismer, Carl Friedrich Bolz, Michael Hudson, Eric van Riet Paap, Richard Emslie, Anders Chrigstroem, Anders Lehmann, Ludovic Aubry

PyPy sprint announcement: Heidelberg 22nd - 29th August 2005

2005-07-30 Thread Carl Friedrich Bolz
nfo/heidelberg-people.html .. _`PyPy sprint mailing list`: http://codespeak.net/mailman/listinfo/pypy-sprint -- Carl Friedrich Bolz & the PyPy-Team -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python for Maemo released!

2005-06-10 Thread Carl Friedrich Bolz
[snip Python port announcement] > No reptiles were harmed in the making of these crafts. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: The need to put "self" in every method

2005-05-31 Thread Carl Friedrich Bolz
John Machin wrote: >>Of course, if you *don't* use 'self', you should expect an angly mob >>with pitchforks and torches outside your castle. >> > > Wouldn't an angly mob be carrying fishing rods? > Well, I thought they would be carrying pitchfolks and tolches. -- http://mail.python.org/mailman

Re: first release of PyPy

2005-05-24 Thread Carl Friedrich Bolz
ionel wrote: > so what could this PyPy do in the future ? .. concretely ... > hope this is not a stupid question > Maybe the description from the homepage says it best: The PyPy project aims at producing a flexible and fast Python implementation. The guiding idea is to translate a Python-level

Re: first release of PyPy

2005-05-24 Thread Carl Friedrich Bolz
Kay Schluehr wrote: >>Speed isn't even the biggest problem when running PyPy on itself. >>PyPy still 'fakes' some objects, e.g. borrows them from the underlying >>Python. > > > Does it mean You create an RPython object that runs on top of CPython, > but is just an RPython facade wrapped around a

Re: first release of PyPy

2005-05-23 Thread Carl Friedrich Bolz
Rocco Moretti wrote: > Alex Stapleton wrote: > >>The question still remains, can it run it's self? ;) >> This allready worked in the past, though it doesn't at the moment. > > > I think they try, every once in a while, to self host. The only problem > at this stage of the game is the ~2000x s

Re: first release of PyPy

2005-05-21 Thread Carl Friedrich Bolz
Hi! Ville Vainio wrote: >>"Torsten" == Torsten Bronger <[EMAIL PROTECTED]> writes: > > > Torsten> What's supposed to be compiled? Only PyPy itself or also > Torsten> the programs it's "interpreting"? > > PyPy is written in python, if it can be compiled then the programs can > be as

  1   2   >