Re: [pypy-dev] works in python2.4, fails in pypy

2008-08-26 Thread Simon Burton
On Mon, 25 Aug 2008 23:29:03 +0200 Ondrej Certik [EMAIL PROTECTED] wrote: Cython is not perfect, but one can get C level speed now. They plan to allow a pure python syntax, so that the same code actually also runs in Python. What do you mean here ? Cython already allows pure python syntax.

Re: [pypy-dev] numpy and pypy : info required

2008-07-31 Thread Simon Burton
On Sun, 27 Jul 2008 18:11:15 -0600 rahul garg [EMAIL PROTECTED] wrote: Hi. I am writing a compiler called unPython (http://code.google.com/p/unpython) a very young and immature compiler for compiling Python to C. I am presenting the compiler at SciPy conference and need to write a paper

Re: [pypy-dev] video recordings S3

2008-05-26 Thread Simon Burton
On Fri, 23 May 2008 12:18:12 +0200 Carl Friedrich Bolz [EMAIL PROTECTED] wrote: Hi all, seems that the video recordings of S3 are available: http://www.swa.hpi.uni-potsdam.de/s3/program/ Does this work for anyone ? Simon. ___

Re: [pypy-dev] real-time gc ?

2008-02-21 Thread Simon Burton
On Mon, 4 Feb 2008 11:58:12 +0100 Armin Rigo [EMAIL PROTECTED] wrote: Hi Simon, On Tue, Jan 29, 2008 at 09:06:22AM -0800, Simon Burton wrote: I've taken some statistics on how the boehm gc performs with our current application, it has terrible worst case performance, often stopping

[pypy-dev] real-time gc ?

2008-01-29 Thread Simon Burton
I've taken some statistics on how the boehm gc performs with our current application, it has terrible worst case performance, often stopping for hundreds of mS at a time. I tried calling GC_enable_incremental() but that seems to cause the code to explode. I don't have any idea how to obtain

Re: [pypy-dev] [pypy-svn] r47040 - pypy/dist/pypy/doc

2007-10-04 Thread Simon Burton
On Thu, 4 Oct 2007 09:11:08 +0200 Carl Friedrich Bolz [EMAIL PROTECTED] wrote: Hi Simon, 2007/10/3, Simon Burton [EMAIL PROTECTED]: ... I just use a function from rctypes to find a library, i think rffi has such a function now.. Then it should be possible to use the function that rffi

Re: [pypy-dev] [pypy-svn] r47040 - pypy/dist/pypy/doc

2007-10-03 Thread Simon Burton
On Wed, 03 Oct 2007 17:55:12 +0200 Christian Tismer [EMAIL PROTECTED] wrote: Hi friends, to what extent has this been discussed? Maciek and I had a chat on pypy-irc about it: we did not seem to agree entirely. Also, this ctypes-up-front approach was my original suggestion (perhaps badly

Re: [pypy-dev] [pypy-svn] r47040 - pypy/dist/pypy/doc

2007-10-03 Thread Simon Burton
On Wed, 3 Oct 2007 18:56:36 +0200 Carl Friedrich Bolz [EMAIL PROTECTED] wrote: to which nobody replied about the RCTypes issue. Note that I think it is fine to discuss the issue even now. But it is very strange in my opinion to say now that it was never discussed. No, I'm not talking

Re: [pypy-dev] [pypy-svn] r47040 - pypy/dist/pypy/doc

2007-10-02 Thread Simon Burton
Well, I still want to defend this approach... The idea is: * ctypes is the API for interfacing with external objects * genrffi constructs rffi objects by introspecting the ctypes objects It has nothing to do with rctypes (although it uses ctypes_platform to find the libraries). I would at least

[pypy-dev] transactional memory

2007-09-19 Thread Simon Burton
Someone on pypy irc posted a link to a talk by Simon Peyton-Jones on transactional memory: http://oscon.blip.tv/file/317758/ it's worth checking out. Also, i noticed on the llvm list someone has added support for TM: http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010365.html Simon.

Re: [pypy-dev] about breaking RPython, RCTypes

2007-09-19 Thread Simon Burton
On Wed, 20 Jun 2007 12:23:06 +0200 Martijn Faassen [EMAIL PROTECTED] wrote: ... I happen to be interested in use case a) though. It is quite exciting to me that we could have a faster template language interpreter What is this interpreter you refer to here ? Simon.

Re: [pypy-dev] pypy-dev@codespeak.net

2007-09-19 Thread Simon Burton
On Sun, 19 Aug 2007 12:33:09 +0200 Armin Rigo [EMAIL PROTECTED] wrote: Hi all, Those that follow IRC already know it, but it's worth being announced a bit more widely: I've been working on a form of sandboxing for RPython programs, which now seems to work for the whole of PyPy. It's

Re: [pypy-dev] rffi strict typing

2007-08-23 Thread Simon Burton
On Wed, 22 Aug 2007 15:23:40 -0700 Simon Burton [EMAIL PROTECTED] wrote: Following some hints from Samuele, I am trying to wrap such functions in another function that does some casting. Here is the latest: def softwrapper(funcptr, arg_tps): unrolling_arg_tps = unrolling_iterable

Re: [pypy-dev] rffi strict typing

2007-08-23 Thread Simon Burton
On Thu, 23 Aug 2007 19:13:26 +0200 Maciek Fijalkowski [EMAIL PROTECTED] wrote: You need to create the structure which you push by hand. As well as array argument. I stuck a test in test_rffi but didn't want to commit it. It works fine. (attached) Simon. import py from

Re: [pypy-dev] rffi strict typing

2007-08-22 Thread Simon Burton
On Fri, 20 Jul 2007 14:52:54 +0200 Armin Rigo [EMAIL PROTECTED] wrote: Hi Simon, On Thu, Jul 19, 2007 at 06:31:17PM -0700, Simon Burton wrote: The lltype's are very strict about types. Indeed, it seems worthwhile to loosen this restriction at least for the purpose of calling external

[pypy-dev] buffer class and ll2ctypes problem

2007-08-21 Thread Simon Burton
I've been working with Richard on a new (rpython) buffer class. See attached for two approaches. The richbuf seems much clearer, but i'm not sure how to get other types out of it (like long long or short), or do byte swapping. I don't understand this much, can someone point the right direction

Re: [pypy-dev] rffi feature request

2007-08-08 Thread Simon Burton
On Tue, 07 Aug 2007 14:15:48 +0200 Maciek Fijalkowski [EMAIL PROTECTED] wrote: Simon Burton wrote: On Fri, 3 Aug 2007 12:14:13 -0700 Simon Burton [EMAIL PROTECTED] wrote: I would like to expose some functions as external symbols when i build a .so def foo(i, j): return i

Re: [pypy-dev] rffi feature request

2007-08-04 Thread Simon Burton
On Fri, 3 Aug 2007 12:14:13 -0700 Simon Burton [EMAIL PROTECTED] wrote: I would like to expose some functions as external symbols when i build a .so def foo(i, j): return i+j foo._expose_ = [rffi.INT, rffi.INT] It seems like this could also enable a plugin system for rpython

[pypy-dev] rffi feature request

2007-08-03 Thread Simon Burton
I would like to expose some functions as external symbols when i build a .so def foo(i, j): return i+j foo._expose_ = [rffi.INT, rffi.INT] This is basically so I can write cpython extension modules in rpython. (and manually doing ref counting (etc.) on the cpython objects.) Simon.

[pypy-dev] rffi strict typing

2007-07-19 Thread Simon Burton
The lltype's are very strict about types. If I declare an llexternal that takes a Float arg, I cannot call it with an int arg. Well maybe that's not so bad. But in rlib.rsdl there are functions that take Unsigned, and these don't work even if called with a non-negative constant int... Can we

Re: [pypy-dev] ep 2007 talks

2007-06-28 Thread Simon Burton
On Thu, 28 Jun 2007 11:03:34 +0200 Maciek Fijalkowski [EMAIL PROTECTED] wrote: Do you think is enough or you was thinking about a deeper introduction? I would extremely enjoy it, hence you give us some reason why we're talking about this at all :) There are a bit of orthogonal issues

Re: [pypy-dev] Work plan for PyPy

2007-06-27 Thread Simon Burton
Do you think we could extend rffi to be able to expose function calls to outside callers, so that eg. we can make nifty cpython extension modules ? (i think this is number 3 in my list) Simon. On Sat, 16 Jun 2007 13:03:16 +0200 Maciek Fijalkowski [EMAIL PROTECTED] wrote: Simon Burton wrote

[pypy-dev] ep 2007 talks

2007-06-26 Thread Simon Burton
I'd like to synchronize with Maciek and Antonio with regards talking about rpython at EP this year. My talk comes right after your rpython talk - i think we can perhaps share the burden (joy?) of talking about rpython a bit. Simon. ___

Re: [pypy-dev] Work plan for PyPy

2007-06-15 Thread Simon Burton
On Thu, 14 Jun 2007 18:45:54 +0200 Armin Rigo [EMAIL PROTECTED] wrote: Any comments or objections? Are there people that already make heavy use of rctypes, or the extension compiler? Indeed. Mainly rctypes. As well as an ever expanding use of libc, we recently have interfaced to libSDL

Re: [pypy-dev] Motivation for re-implementing R (GNU S) in PyPy (perhaps?)

2007-04-24 Thread Simon Burton
On Tue, 24 Apr 2007 13:48:26 +1000 Maurice Ling [EMAIL PROTECTED] wrote: This could be a nice idea - make R codes run on Numpy + Python. My line of thought is that since there is an implementation of Numpy (I do not know how complete it is) in PyPy already (pypy/rpython/numpy), In terms

Re: [pypy-dev] Who's developing language interpreters in PyPy

2007-04-24 Thread Simon Burton
On Tue, 24 Apr 2007 10:58:19 +0200 Carl Friedrich Bolz [EMAIL PROTECTED] wrote: Robert Schmitt wrote: What about a C/C++ interpreter/compiler, there would be some real benefit if people could transpile C code to python. To be honest, I don't see how a C-to-Python-compiler a) relates to

Re: [pypy-dev] Who's developing language interpreters in PyPy

2007-04-23 Thread Simon Burton
On Mon, 23 Apr 2007 15:13:36 -0400 Terry Reedy [EMAIL PROTECTED] wrote: | Naturally PyPy wouldn't be able to use its magical optimization abilities on those bits Many to most of 'those bits' have been heavily optimized already, which is why to use them. Terry Jan Reedy Yes, but how

Re: [pypy-dev] Releasing the GIL in CPython extensions?

2007-04-05 Thread Simon Burton
On Thu, 5 Apr 2007 16:03:25 -0400 Gary Robinson [EMAIL PROTECTED] wrote: Hello, In PyPy's facilities for writing a CPython extension, would it be conceivable to have an option to release the CPython GIL when the extension is entered and grab it back upon exit? It's easy enough to call

Re: [pypy-dev] special methods

2007-03-29 Thread Simon Burton
On Thu, 29 Mar 2007 18:00:47 +0200 Armin Rigo [EMAIL PROTECTED] wrote: Hi Simon, On Mon, Mar 26, 2007 at 02:30:15PM -0700, Simon Burton wrote: The attached script is an attempt to get __str__ to work in rpython. After annotation, it looks for str(someinstance), rewriting the block

Re: [pypy-dev] special methods

2007-03-28 Thread Simon Burton
On Wed, 28 Mar 2007 19:54:35 +0200 Christian Tismer [EMAIL PROTECTED] wrote: This looks good, congrats! I had a different approach in mind which would work without explicitly adding a pass to the annotator, no idea which idea is more practical. What I wanted to do is a tiny patch to

[pypy-dev] special methods

2007-03-26 Thread Simon Burton
The attached script is an attempt to get __str__ to work in rpython. After annotation, it looks for str(someinstance), rewriting the block to call __str__. Then the modified blocks are fed back into the annotator. It seems to work. (And now i know a lot more about the internals of the

Re: [pypy-dev] Does/will pypy support cpython's c extension modules?

2007-01-23 Thread Simon Burton
Not likely. Simon. On Tue, 23 Jan 2007 15:29:00 -0500 Neal Becker [EMAIL PROTECTED] wrote: Subject says it all. Will I be able to use my existing c (c++ actually) modules? ___ pypy-dev@codespeak.net

Re: [pypy-dev] Newcommer in pypy, numpy user

2006-12-20 Thread Simon Burton
On Wed, 20 Dec 2006 11:50:37 +0900 David Cournapeau [EMAIL PROTECTED] wrote: So for example, if a and b are numpy arrays, a python expression b *= a would be translated in C by something like for(i = 0; i b.size; ++i) {b[i] *= a[i];} ? Yes, but numpy already does this. The ultimate goal

[pypy-dev] llvm backend

2006-05-23 Thread Simon Burton
, line 16, in ? from pypy.annotation.listdef import ListDef, MOST_GENERAL_LISTDEF ImportError: cannot import name ListDef ? Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com

[pypy-dev] sprint at europython ?

2006-05-09 Thread Simon Burton
Hi, I'm hoping to come to europython this year; one of the main attractions will be the pypy sprint. Have the dates for this been decided ? cheers, Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com

[pypy-dev] python llvm

2005-10-27 Thread Simon Burton
are absolutely obsessed with speed.) I just found out that the python AST branch has been merged, so i'll be investigating this aswell. bye for now, Simon. [1] https://lineal.developer.nicta.com.au/lineal -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249