logoalt Hacker News

zahlman • today at 2:44 AM • 1 reply • view on HN

I would imagine that the LLM has a much easier time adding correct type annotations to old Python code than it does translating it to C.


Replies

EdwardDiego • today at 4:04 AM

In my experiments with this, maybe, sorta, it'll do some AST stuff then it'll go "dang this shit is dynamic AF" then suggest a static type inference tool, then a runtime type profiler.

Which honestly, is the right approach.