News for hackers. Stuff that matters.
Re:Rusthon – A Pythonic language that compiles to Rust and C++ by Matthias247 on Monday December 22, 2014 @06:01AM (#8782675)
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.

Re:Rusthon – A Pythonic language that compiles to Rust and C++ by agentultra on Monday December 22, 2014 @10:33AM (#8783410)
It also doesn't even appear to generator initializer lists for the constructor which could lead to some fun behaviors down the road...