"There are multiple answers to that, depending on the point of view. The most technically accurate is: SPy is an interpreter and a compiler for a statically typed variant of Python, with focus on performance. I think it's very important to be clear and honest since the beginning: SPy is not a "compiler for Python". There are features of the Python language which will never be supported by SPy by design. Don't expect to compile Django or FastAPI with SPy."
"A small corollary is that for now I decided that SPy programs live in *.spy files, to make the distinction between the two worlds very clear. Whilst compiling 100% of Python is not a goal, SPy still aims to have a very tight integration with the existing Python ecosystem. It is possible to import Python libraries from SPy, and SPy modules from Python."
SPy is an interpreter and compiler for a statically typed variant of Python designed for performance. SPy intentionally omits certain dynamic Python features and cannot compile many existing Python frameworks. SPy modules use a .spy file extension to distinguish compatible programs. SPy aims to interoperate with the Python ecosystem by allowing imports of Python libraries from SPy and vice versa. SPy rejects the goal of 100% Python compatibility and emphasizes explicit trade-offs between dynamic flexibility and optimization potential. SPy remains a work-in-progress with many planned designs and features not yet implemented.
Read at Antocuni
Unable to calculate read time
Collection
[
|
...
]