Re: [go-nuts] Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-28 Thread Andy Balholm
If global ownership inference, with enough flexibility to replace a garbage collector, were practical, I suppose the Rust compiler would have it already. But if you want to prove the Rust developers wrong, go ahead and do it in a transpiler. Andy -- You received this message because you are

Re: [go-nuts] Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-24 Thread Raffaele Sena
go get github.com/raff/walkngo If you use --lang=c it will actually generate c++ code. It's not perfect but it does the bulk of the conversion. Unfortunately working with only the ast has it's limits (and I wrote this before the ssa stuff was available) -- Raffaele > On Mar 24, 2017, at

[go-nuts] Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-24 Thread Brad
Interested in any feedback about the idea of making a Go -> C++ transpiler. Here's the rationale: * Go as a language has lots of awesome things that make it highly productive. Lots of Gophers would love to use Go for more projects but some common issues include: * Trying to convince your