Looking for Benchmarklets to improve pyvm

  • Thread starter stelios xanthakis
  • Start date
S

stelios xanthakis

Hi.

pyvm is a program that can run python 2.4 bytecode and most
of the times produce the expected output. See

http://students.ceid.upatras.gr/~sxanth/

I'm collecting small testlets to benchmark it, discover bottlenecks
and improve it. They should be small and not use any crazy modules.
Only [sys, os, itertools, thread, threading, math, random] for now.

Basically, stuff that has appeared in c.l.py will be great
(like xah lee's "partition list be equivalence", etc)

Send!

Stelios
 
C

coffeebug

Hi Stelios,
Newbie here ("new" to the language and scripting in general).
I'm trying to figure out what you mean by bytecode. Do you mean
a virtual python environment that can be hosted by any anonymous
operating system? For example, you want to run Python programs on
BEOS so you crank up its version of PYVM and load a Python source code
and run it?

Or do you mean you want Python that's been compiled down to something
like p-code on my machine, then you receive the p-code that you can
expect to run?

Is pyvm your own work?

Has anyone computed the digits of pi (3.14159265) in Python?
That might be a good application for string processing.
Jim in Indiana USA
 
S

stelios xanthakis

coffeebug said:
Newbie here ("new" to the language and scripting in general).
I'm trying to figure out what you mean by bytecode. Do you mean
a virtual python environment that can be hosted by any anonymous
operating system? For example, you want to run Python programs on
BEOS so you crank up its version of PYVM and load a Python source code
and run it?

The pyc files. See module 'compile' and module 'dis'.


Stelios
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top