Closed GoogleCodeExporter closed 8 years ago
thanks for the suggestion! I've considered outputting cython declarations
before, though not because of library support directly, but because cython
compiled code integrates better with other python implementations. for example,
it would completely take away the need to convert builtin objects to/from
shedskin. it would also remove quite a bit of code from shedskin (the whole of
lib?!). I guess in general, it seems good to have a separation between type
inferencers/profilers and the actual compilation system.
I don't think fully automatic integration with arbitrary libraries will work
very well, though. we don't know in advance which parts will be compatible or
analyzed easily, and scalability will suffer from having to analyze huge swaths
of code. a more realistic approach might be to only require a manual type model
(as in lib/*.py). that could still be a big improvement, since a type model is
usually very easy to make, compared to implementing things.
I'm slightly worried about how performance would suffer versus C++, since in
the C++ version everything is exactly known to the C++ compiler, whereas in
cython, I don't think it can understand everything as well with just a few
manual declarations.
I probably won't work on this, in any case. I like the idea though, and it
might be a very useful and interesting project for some other developer. I'd be
happy to assist of course.
Original comment by mark.duf...@gmail.com
on 23 Apr 2011 at 9:10
Original comment by mark.duf...@gmail.com
on 23 Apr 2011 at 9:11
Original comment by mark.duf...@gmail.com
on 25 Jun 2011 at 8:13
Original comment by mark.duf...@gmail.com
on 16 Jul 2011 at 9:54
Original issue reported on code.google.com by
fah...@recreclabs.com
on 19 Apr 2011 at 11:43