[Fwd: PyAMF 0.4 released]

0 views
Skip to first unread message

Toni Alatalo

unread,
Jan 19, 2009, 6:24:37 AM1/19/09
to realxtend-a...@googlegroups.com
FYI,

Flash is already used for animations in Rex like i guess you all well know,
and other people have used it in Ogre (and other GEs - there are two
libs that provide Flash to be used in an Ogre)
for game UIs, menus and such so this might be relevant. I guess this
'Action Message Format' is not used, though, but the viewer just embeds
the player and uses some c++ api to command it or so?
http://en.wikipedia.org/wiki/Action_Message_Format

http://pyamf.org/ is support for that for Python.
Py can be interesting as a means for integrating different c-written
things too,
also as written in c (to compile to native code) where necessary:
i mean, py can be also thought of as a set of standard data structures /
interfaces,
like a list, dict, tuple etc, and iterators and continuations etc,
and those originally c struct & function definitions can be ok for
c-written level too,
and kinf of have the added benefit that are the native py things so that
work for py.

So e.g.this Flash integration thing is partly written in C, even though
it is 'just' a Python integration:
"""
- A new C extension to pyamf.util and pyamf.amf3. This is a work in
progress, created using Cython,
and more sections of the library will be moved to C as they are
identified. Thanks to Gerard
Escalante.
"""

Interesting that they use Cython - it is a fork / development of the
early rascal Pyrex, which is a language for writing C Python extensions
in a language (.pyx) that is basically Python, but where you can use C
datatypes too -- Pyrex (or now Cython) generates .c from the .pyx
source, which you then compile like if it was written in C. You get
native code without having to do all mem management etc. yourself, and
can use Python syntax for iterations etc. You can even make classes in
the c level code, and those are just like Python classes - and you can
not only instanciate but subclass them etc. in .py code that uses that
Pyrex/Cython extension as a module.

Soya3d is written in Pyrex, so there we can see an example of that
running a relatively-ok performance game engine (OpenGL, and OpenAL and
SDL) - it has perhaps the most straightforward API that i know (one of
the examples is a cal3d viewer in 3-5 lines or something :) .. it was
originally used to release the game Slune, which is in Debian even
(apt-get install slune; ./slune) .. there are windows installers too,
http://home.gna.org/oomadness/en/slune/index.html . I've written an
Apple tree thing with it last year,
http://www.playsign.net/FirstAndLast/AppleTree - posted to Apple tree -
feed the hungry birds [Toy / open ended. Windows exe uploaded]
<http://forums.tigsource.com/index.php?PHPSESSID=29d4739329bad0ea4792603a68fd53c5&topic=1946.msg46406#msg46406>
(was inspired by that procedural content creation contest, didn't have
hardly any time but reused an old VJ toy tree).

But like seen in PyAMF, Pyrex/Cython can be good for bindings and
integration too (well in a way Soya3d is an opengl, openal and sdl
binding) - i think some networking libs have been wrapped with it, even?
Also in the Blender land one guy wrote an experimental Texture module
for Blender in Pyrex, and it seemed good (people just were not sure of
the maturity of the tool then, and there was no need for rewrite anyway
so the API remained in hand written c).

~Toni

PGP.sig

Toni Alatalo

unread,
Jan 19, 2009, 6:33:17 AM1/19/09
to realxtend-a...@googlegroups.com
Toni Alatalo kirjoitti:

> But like seen in PyAMF, Pyrex/Cython can be good for bindings and
> integration too (well in a way Soya3d is an opengl, openal and sdl
>

eh,

of course PyAMF itself is a networking thing I guess, 'cause the message
format is used for server communications - right? i don't know this AMF
from before. so the talk about embedded modules was a bit off w.r.t
that, the use of this tech is different than the viewer integration
(embedding) - if wonder if the Cython (native code) part there parses
packets etc for the networking .. will look.

> ~Toni
>

sorry for confusing myself :p
the same.

> Aihe:
> PyAMF 0.4 released
> Lähettäjä:
> Thijs Triemstra | Collab <li...@collab.nl>
> Päiväys:
> Sun, 18 Jan 2009 19:16:44 +0000
> Vastaanottaja:
> PyAMF general discussion <us...@pyamf.org>, d...@pyamf.org,
> anno...@pyamf.org, Open Source Flash Mailing List
> <osf...@osflash.org>, python-ann...@python.org,
> flexc...@yahoogroups.com
>
> Vastaanottaja:
> PyAMF general discussion <us...@pyamf.org>, d...@pyamf.org,
> anno...@pyamf.org, Open Source Flash Mailing List
> <osf...@osflash.org>, python-ann...@python.org,
> flexc...@yahoogroups.com
>
>
> The PyAMF team is proud to announce the release of 0.4 final!
>
> PyAMF [1] is a lightweight library that allows Flash and Python
> applications to communicate via Adobe’s
> ActionScript Message Format.
>
> This release fixes over a 100 tickets, see the changelog [2] for the
> complete list of changes. We now
> consider the library to be stable and ready for production! A brief
> overview of the changes:


>
> - A new C extension to pyamf.util and pyamf.amf3. This is a work in
> progress, created using Cython,
> and more sections of the library will be moved to C as they are
> identified. Thanks to Gerard
> Escalante.

> - An adapter for SQLAlchemy 0.4/0.5 is available, allowing object
> graphs to be easily encoded. See
> the wiki for more information. Thanks to Dave Thompson and Michael
> Van Tellingen.
> - Improvements to the Google App Engine adapter to allow datastore
> objects to be easily
> encoded/decoded.
>
> Check out the download page [3], installation instructions [4] or the
> API documentation [5] for more
> information.
>
> Questions? First stop is the mailing list [6] but we also hang out on
> IRC [6].
>
> [1] http://pyamf.org
> [2] http://pyamf.org/browser/pyamf/tags/release-0.4/CHANGES.txt
> [3] http://pyamf.org/wiki/Download
> [4] http://pyamf.org/wiki/Install
> [5] http://api.pyamf.org
> [6] http://pyamf.org/wiki/MailingList
> [7] irc://irc.collab.eu/pyamf
> ------------------------------------------------------------------------
>
> --
> http://mail.python.org/mailman/listinfo/python-announce-list
>
> Support the Python Software Foundation:
> http://www.python.org/psf/donations.html
>

Reply all
Reply to author
Forward
0 new messages