I thought I would post a small tutorial on using translate.py to compile
pypy RPython scripts
This tutorial is about how to compile python standalone executables using
RPYTHON. RPython is a restricted subset of of python RPython (Restricted
Python) is statically typed
What will we cover in this tutorial is setting up an environment for
building src code in RPython
First you will need to download PyPy and MinGW
(the pypy translator is only available in the source of PyPy we will need
…
[View More]translate.py later to compile the executable. So get the latest source
using Mercurial)
Download Mercurial here *http://mercurial.selenic.com* and install it.
Using Mercurial run this command from your cmd prompt
*hg clone* *https://bitbucket.org/pypy/pypy*
Now you will have PyPy downloaded. I just moved it to the directory C:\pypy
for easy reference. Next we will add an Environment Variable to the
directory containing translate.py it should be in
C:\pypy\pypy\translator\goal\ the file translate.py will be in this goal
directory
Now you will need to install MinGW
*
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/m…
*
Installing the C++ compiler and the MSYS tools also
Add the bin directory of MinGW to your path as well as \msys\1.0\bin; So if
you installed MinGW to to C:\MinGW it would be C:\MinGW\bin and
C:\MinGW\msys\1.0\bin;
You will need to use MinGW to compile a dll before we can start. This is so
we can use CTYPES as well MinGW will be our compiler for RPython
Now download the libffi source *http://sourceware.org/libffi/* once again
this will allow for CTYPES in PyPy and MingW
cd to the libffi source directory (you just downloaded) extract it and type
*
sh ./configure
make*
this will create a dll in .libs in the directory where you extracted the
libffi srcs. The dll will be called:
*libffi-5.dll
*
Next add this to a folder on your C drive and add it to your Environment
Variable/Path
Now you should be able to compile source using
*translate.py --cc=mingw32 --output test.exe test.py
*
Obviously changing directories to where your script is. This was really
only to be a reference for me.
I wrote this originally as a reference for myself last year but I imagine
some one can use it *cheers
Andrew
[View Less]
Hi Folks:
I understand that the STM module is still in its infancy. And subject to change at a moment's notice. I enjoy reading the transactional memory related blog posts. Over the weekend, I have been looking at the stm and transactionModule and the C++ based rstm. I haven't written an C++ based programme yet but that will change soon. If the stm library progresses a bit more, I would like to try writing Python versions of some of the STAMP examples.
Until then, I am trying …
[View More]understand the relationship between stm and rstm. It does not seem that stm is simply a wrapper for rstm (a lot of work went into stm!). There are things in rstm that I see such as the ability to configure parameters, set policies and to get diagnostics (i.e., number of aborts). Are there plans to do this with the stm module?
Cheers,
Andrew
[View Less]
Hi,
Apology first as this took me a while to post here, I was launching a
new site. As per fijal's request I am posting a logotype here for
consideration.
SVG - https://www.flatmaterooms.co.uk/ultranet/snakey-v3.2-shadow.svg
ZIP archive - https://www.flatmaterooms.co.uk/ultranet/snakey.zip
(Comes with 3-color for plotter and shadowed for print and web use,
Adobe Illustrator and Inkscape compatible SVG and PDF)
More context - https://www.flatmaterooms.co.uk/ultranet/google.html…
[View More]Regarding font-choices, the current one could be used but I am also a
big fan of downgrading to plain Arial Black, which could be used in
the same position or justified to the width of the logotype below the
graphic with appropriate white-space and grid position e.g. half the
height of text.
All vectors are a hand drawn interpretation and artwork hereby
declared CC share-alike licensed just as the current logo, although I
would like the profit from merchandise using the graphics such as
t-shirts or mugs to go towards pypy development.
Kind regards,
Frank
http://www.flatmaterooms.co.uk
[View Less]