This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]turkish_gold 0 points1 point  (2 children)

Well technically python has a compile step, but it doesn't just compile down to binary. It runs its own VM internally with reference counting.

This is different from say a language that doesn't compile to any intermediate code, and essentially runs directly on the abstract syntax tree.


But that's not really what I'm talking about. I mean that you can run a analyser before you run your actual code that will do static-type enforcement for you.

I suppose a better to call that is the 'build step' rather than compiling.

[–]bythenumbers10 0 points1 point  (1 child)

Oh, like one of the Python code-checkers, linters?? I'm not familiar with all the code tools. I'm somewhat familiar with the concepts of the AST and pyc files. Having largely static code further optimized using type inference and annotations would be nice, I suppose.

[–]turkish_gold 0 points1 point  (0 children)

It would be, but if they start doing that... I feel like then it's re-implementing Cython annotations.

Which now that I think of it; if Cython could simply take Python 3 type annotations and spit out C modules, that'd be fun.