2 ms·
I think part of this can be explained by the way recursion is handled on major platforms. Even something like Python which has some functional leanings is prone
by jrs95 9y ago
I think part of this can be explained by the way recursion is handled on major platforms. Even something like Python which has some functional leanings is prone to stack overflows with deep-ish recursion without hacky workarounds. Once the tools most people are using are more recursion friendly, I think we'll see it become more mainstream. I think JS has TCO now, at least on Node, which is a huge step in that direction.
- ballenf 9y agoSafari is the only browser that has TCO so far. V8 has it listed as a blocking bug: https://bugs.chromium.org/p/v8/issues/detail?id=4698 https://bugs.chromium.org/p/v8/issues/detail?id=4698 Unless I'm reading that wrong, TCO was pulled as even invokable by a harmony flag because it was so broken to be a security risk. I wonder if there are any explanations other than focus or priorities as to why it appears to be harder to implement in Chrome than it was in Safari/webkit. Anyway, since it's not in V8 that means it's not in node right?
- jrs95 9y agoI guess not, that's pretty disappointing. Hopefully we'll get it eventually, though.