I'm currently trying to compile a python project (5files @ total 1200 lines of code) with shedskin. I tried shedskin Version 0.9.3 and 0.9.2 both result in the same errors. This is the first error I encounter:
Moreover, I after running shedskin (i.e. before typing "make") I receive many warnings - all related to dynamic types:
However, shedskin seems to work flawlessly with the provided examples since I can compile and execute them without any errors. Do you have an idea where to look for the error or what the error is related to? Thank you. |
Moreover, I after running shedskin (i.e. before typing "make") I receive many warnings - all related to dynamic types:
*WARNING* mmain.py: expression has dynamic (sub)type: {float, int, list}
However, shedskin seems to work flawlessly with the provided examples since I can compile and execute them without any errors.
Do you have an idea where to look for the error or what the error is related to?
so I finally got the most compute-intensive loop running in parallel.
Here are some comments:
1) Would it be possible to generate a Makefile which generates .o files, such that one don't have to recompile the whole project if only one file gets changed?
2) Would it be possible to remove the if(s==0) condition (which checks the step of the loop) from FAST_FOR? Maybe by passing some option to shedskin.
3) Would it be possible to remove the check if(s>=0) from FAST_FOR? I believe this is something which can be checked when shedskin converts the python code to C++.
4) I realized that python lists translate to std::list. Is it possible to translate a list of floats to an contiguous float* array in C++?
Moreover, here are some timings (func1 + func2 = total):
Pure python: (872.88 + 100.1) sec
PyPy: (29.74 + 12.9) sec
Shedskin(23.9 + 2.25) sec
Shedskin@12Threads: (2.8 + 3.1) sec (((please note: I've only parallelized the first part)))