News for hackers. Stuff that matters.
Re:Linus Torvalds on Garbage Collection (2002) by rayiner on Friday April 22, 2011 @10:55PM (#2476133)
This sort of analysis does not come easily. Say you have:

    def bar():
        return some_constructor()

    def foo():
        b = bar()
Here the decrement is in bar() and the increment is in foo(). You have no way to elide the operation without doing inter-procedural analysis, which is hard.
Re:Linus Torvalds on Garbage Collection (2002) by ori_b on Saturday April 23, 2011 @02:18PM (#2477254)
You don't need to catch all the cases to see a big improvement. Just the most common ones.
Re:Linus Torvalds on Garbage Collection (2002) by rayiner on Sunday April 24, 2011 @02:54AM (#2478423)
The problem is in a language like Python, where everything is broken up into little functions, you're not going to catch the most common uses without doing inter-procedural analysis.