4 ms·
Is there a syntactical reason why Julia can be fast but Python can't? Would it be possible to use Python syntax and get the same LLVM performance? (aside from t
by aaren 12y ago
Is there a syntactical reason why Julia can be fast but Python can't? Would it be possible to use Python syntax and get the same LLVM performance? (aside from the difficulty of writing a new interpreter)
Put another way, does Julia sacrifice something relative to Python? Are the objects less flexible?
Could I write Python that compiles to Julia, without losing features?
- johnmyleswhite 12y agoIf you're interested in this topic, you should watch this talk by Steven G. Johnson: https://www.youtube.com/watch?v=jhlVHoeB05A https://www.youtube.com/watch?v=jhlVHoeB05A tl;dr of the talk: Syntax has little to no effect on how a language performs. What distinguishes Julia from Python is that Julia's semantics were designed to be amenable to type inference. The results of type inference allow Julia's compiler to generate very efficient machine code.