Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this care about memory at all? In the transpiled code I see structures getting allocated but never deallocated.

That will work for this trivial examples, but not for anything serious.

To properly translate Python to C++ you would have atleast produce a shared_ptr<T> from every T and even that doesn't work with cycles. Rust translation is even more complicated.



It also doesn't even appear to generator initializer lists for the constructor which could lead to some fun behaviors down the road...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: