anderslanglands wrote: Sukrim wrote:
Python + Psyco or even an interpreter for your own language written in Python + "compiled" via PyPy should be fast enough for most cases I guess... and you could always use C in Python as well if you need it.
This gets quite offtopic btw...
You do not
want to use Python as a shading language
For dynamic compilation to native code from C you can use llvm: http://llvm.org/
There are C++ meta compilers available too. http://citeseer.ist.psu.edu/chiba95metaobject.html
. As far as llvm is concerned I dont think it makes C++ dynamic language. U can get ur compiled C++ compiler. But if u want to implement dynamic features in C++ it is a different case. But for simple use a separate compiler for shader can be created. LLVM can be used for that. The LLVM assemble is quite impressive. Sometime back I created a dialect of Lua with it just for fun.
. Well when we are talking about dynamic language what about using lua
??? I loved the tables of lua...Lua can be embedded too and its light weight. May be we can give a try. With some help may be I can give it a try. I am currently using LLVM to create a Font engine scripting for TTF.