Hi Toni,<br><br>I'm not sure what you mean by "evil secret", what is so evil about it?<br><br>I am trying another approach to making the bindings, rather than doing it all by hand, looks like there is a good way to auto generate a complete wrapper for the C API.  Some samples (non-working):<br>
<a href="http://pastebin.com/tDZxvt54">http://pastebin.com/tDZxvt54</a><br><a href="http://pastebin.com/7V69giaM">http://pastebin.com/7V69giaM</a><br><a href="http://pastebin.com/EZLht07S">http://pastebin.com/EZLht07S</a><br>
<br>I've started a new project for the binding generator, here:<br><a href="http://code.google.com/p/rpythonic/">http://code.google.com/p/rpythonic/</a><br><br><br><br><div class="gmail_quote">On Thu, Sep 23, 2010 at 5:01 AM, Toni Alatalo <span dir="ltr"><<a href="mailto:antont@kyperjokki.fi">antont@kyperjokki.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On to, 2010-09-23 at 19:41 +0800, Goat Man wrote:<br>
>  Blender is a large and ever growing program, so where i think RPython<br>
> would be ideal is in gluing all these C components together from the<br>
> top down (from the mainloop downwards).  In this new model the<br>
<br>
</div>making blender.py to be the executable has always been a kind of a half<br>
serious evil secret plan the py folks around blender have had, codenamed<br>
blender 3.0 etc :)<br>
<br>
.. rpython certainly brings an interesting twist, and libblender can<br>
easily be useful for many things .. we are for example using blender as<br>
a server side thing to generate meshes in one app. now just use blender<br>
subprocess to run it in a new process, but using as a lib would of<br>
course be much more straightforward and give better control. that's why<br>
i also started testing making libblender back then long ago.<br>
<div class="im"><br>
>  structure of Blender changes from: C on top with Python underneath,<br>
> to: RPython on top, C in the middle, Python on the bottom.  In the<br>
> long term there could be big speed gains by using RPython and its<br>
> integrated JIT generator, because Blender deals with a lot of runtime<br>
> data and some of this could be constant folded by a JIT.<br>
<br>
</div>right. thanks for the heads-up and keep us posted!<br>
<br>
~Toni<br>
<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</blockquote></div><br>