ANN: Pyasm version 0.3

2010-03-28 Thread Grant Olson
Pyasm is a full-featured dynamic assembler written entirely in Python. By dynamic, I mean that it can be used to generate and execute machine code in python at runtime without requiring the generation of object files and linkage. It essentially allow 'inline' assembly in python modu

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread olsongt
[JanC] > The code below makes it possible to write assembler code for different > architectures (in case pyasm ever supports that ;) and also a Python > code version to use when running on a system where no assembler code > can be used. It prints: [Michael] > Another (perhaps

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread Michael Spencer
JanC wrote: [an example of using decorators to control pyasm] Another (perhaps wacky) approach would be to change the assembler source syntax enough to make it legal Python - in particular, this means parenthesizing the arguments - then it can just be stored in-line with other Python source

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread JanC
able. That would 'disable' a programmer's ability to add useful documentation in the comments, but I played a bit further with the decorator idea. The code below makes it possible to write assembler code for different architectures (in case pyasm ever supports that ;) and also a

Re: PyAsm

2005-03-11 Thread olsongt
I haven't checked PyPy out lately. I was under the impression the Pyrex/C backend was still doing static compilation. Guess I'll have to take a look. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyAsm

2005-03-11 Thread Fuzzyman
Won't docstrings be removed in optimised bytecode ? that would stuff things up. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: PyAsm

2005-03-10 Thread Stephen Thorne
On 10 Mar 2005 12:35:36 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey Roger, > > I didn't realize that Stefan replied to the list and sent a private > email reply. There seemed to be a lag in google groups today. I > basically told him that I might be crazy enough to write an assembl

Re: PyAsm

2005-03-10 Thread olsongt
Hey Roger, I didn't realize that Stefan replied to the list and sent a private email reply. There seemed to be a lag in google groups today. I basically told him that I might be crazy enough to write an assembler in python, but I'm not crazy enough to start using those function decorators. I'm

Re: PyAsm

2005-03-10 Thread Roger Binns
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Meaning: Put the assembler into the doc-string of a function. That has several issues. One is that you can't do string operations with it. Say you wanted some %d, %s etc in the string. If you use a documentation gene

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-10 Thread Stefan Behnel
Hi! What about an interface like this: -- @pyasm def hello_world(*some_args): """ !CHARS hello_str 'Hello world!\n\0' !PROC hello_world PYTHON !ARG self !ARG args PUSH hello_str CALL PySys_WriteStdo

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-08 Thread olsongt
lo world script ##### from pyasm import pyasm pyasm(globals(),r""" !CHARS hello_str 'Hello world!\n\0' !PROC hello_world PYTHON !ARG self !ARG args PUSH hello_str CALL PySys_WriteStdout ADD ESP, 0x4 MOV EAX,Py

[ANN] pyasm 0.2 - dynamic x86 assembler for python

2005-03-08 Thread Grant Olson
PyASM by Grant Olson = PyASM is a dynamic x86 assembler for python. By "dynamic", I mean that it can be used to generate inline assembly functions in python at runtime without requiring object file generation or linkage. New in v

[ANN] pyasm 0.1 - x86 assembler for Python

2005-02-28 Thread Grant Olson
pyasm 0.1 - x86 assembler for Python This release is for early adopters only. It is not properly packaged and doesn't have very good documentation. It is however a functional assembler that should be of interest to some people. Current output targets include Windows-style COFF files tha