rahul garg qldb3ualbertaca note message posted numpydiscussion pythondev sorry multiple posting thought python devs numpy users interested believe list receive email let know also wanted introduce since may ask doubts python numpy internals time time hi student univ alberta masters computing science writing pythontoc compiler one part thesis compiler named spyke made available couple weeks geared towards scientific applications therefore focus mostly needs scientific app developers spyke many performance critical projects often necessary rewrite parts application c however writing c wrappers time consuming spyke offers alternative approach add annotations python code strings strings discarded python interpreter interpreted types spyke compiler convert c example int int def fx return 2x case spyke compiler consider string int int decalration function accepts int parameter returns int spyke generate c function wrapper function idea directly copied plw python language wrapper project python3k arrives much declarations moved function annotations class decorators way development debugging interactively using standard python interpreter need compile c add type annotations places want convert invoke spyke annotated module different pyrex pyrex accept python code spyke code 100 pure python spyke basic support functions classes spyke basic type inference local variables function bodies spyke also partial support homogenous lists dictionaries fixed length tuples one big advantage spyke understands least part numpy numpy arrays treated fundamental types spyke knows c code generate slicingindexing numpy arrays etc help lot scientific applications note spyke handle subset python exceptions iterators generators runtime code generation kind etc handled nested functions added soon definitely add missing features based actually required real world python codes currently spyke understand function leaves python code classes handled special methods currently supported support classes little brittle trying resolve issues bw old new style classes spyke spyke available binary release couple weeks intend make open source months spyke written python java platform independant intend make source open months right undergoing rapid development negligible amounts documentation source code right pretty useless anyone else anyway need help however need bit help couple problems finding hard get pure pythonnumpy testing codes need codes test compiler developing compiler without testsuite kind useless pure python codes need better performance please contact guarantee codes released public without permission might referenced academic publications also make compiler available hopefully 10th april kind unstable currently also need help annotating provided testing codes since probably wont know application b libraries interface cc many codes scipy instance mixed language codes part code written cc spyke knows annotated python codes cc libraries wrapped python modules spyke therefore need know least 2 things mapping c function namestruct etc python ii type information said c function many many ways people interact c code people either write wrappers manually use autogenerated wrappers using swig sip boostpython etc use pyrex cython people use ctypes dont time resources support multitude methods considered trying parse c code implementing wrappers nontrivial put mildly parsing swig generated code another possibility still hard another approach seriously considering support subset ctypes additional restriction instead question ctypes good enough ctypes interface c code pure python however seen many instances people using ctypes c strings type declarations think use decorators instead least function type declarations thanks patiently reading comments inquiries sought rahul _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 032601 0600 pythondev new project spyke pythontoc compiler