Nop, just functions
wow all recursions
But better, haskell uses tail recursion
yeah python doesnt use tail recursive optimization to use proper stack trace :p
https://xlinux.nist.gov/dads/HTML/tailRecursion.html#:~:text=(algorithmic%20technique),creating%20a%20new%20stack%20frame.
how fast is haskel btw in comparison to C
At least not yet, hopefully in the future it will have
Haven't compared it really, although haven't used haskell that much
https://stackoverflow.com/questions/13591970/does-python-optimize-tail-recursion maybe a toggle to on/off, but not sure if its a good idea as it might affect optimization of code in whole
That could be an option, too
you meant a toggle right
Like an interpreter option
I heard Python 4's main focus will be on speed improvement, so things like this might actually be implemented in the near future
yes that is way better choice than toggle a separate interpreter with tail recursive optimization and JIT maybe pypy can add this
Yep. I thought i read something about it with the new parser, but can't find it.
Обсуждают сегодня