It’s at https://github.com/rsc/c2go <https://github.com/rsc/c2go>. It might be 
a good starting place, but there is one significant difference in approach from 
what Eric is proposing. Russ incorporated all of the manual cleanup into the 
tool (or config files) as special cases, rather than leaving it as manual 
cleanup.

Andy

> On Jan 3, 2019, at 3:14 PM, Valentin Vidic <valentin.vi...@carnet.hr> wrote:
> 
> On Thu, Jan 03, 2019 at 02:46:39PM -0800, Eric Raymond wrote:
>> On the other hand, I believe graceful, comment-preserving C to idiomatic-Go 
>> transpilation is almost possible.  By 'almost' I mean that the tool would 
>> pass through a small enough percentage of untranslated residuals for 
>> corrections to be around a 5% job for a human expert. 
>> 
>> I've had a lot of incentive to think about this because my concerns center 
>> around vast masses of C infrastructure code in critical network services 
>> like NTP, DNS, etc.  The security and reliability consequences of unsafe 
>> code in that swamp are serious and it needs to be drained.  Transpilation 
>> to golang is, I think, the first realistic hope we've  had of doing that 
>> without a prohibitively high labor input. 
>> 
>> By possible I do not mean easy.  I've scoped the job and done a design 
>> sketch. I think my qualifications for writing such a transpiler are 
>> exceptionally good, but it would nevertheless take me a minimum of two 
>> years of hard work to get there.   I have put put some feelers for 
>> funding;  if I get to choose my next major project after NTPsec, this would 
>> be it.
> 
> Golang compiler was converted from C to Go in some version, but I don't know
> if the tool used there is available somewhere.
> 
> -- 
> Valentin
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com 
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to