News for hackers. Stuff that matters.
Re:The ups of downs of porting 50k lines of C++ to Go by p0nce on Saturday March 07, 2015 @06:06AM (#9161577)
> we had for instance a library for interacting with a particular service that was generated from an XML schema, making the code perfectly type-safe, with different functions for each datatype. In many languages that allow compile-time metaprogramming, like C++ and D, IO cannot be performed at compile time, so such schema-driven code generation would not be possible.

Actually this would be possible in D since you can read files at compile-time with the "import(filename)" syntax. Then you can use compile-time parser generators to parse it.

Re:The ups of downs of porting 50k lines of C++ to Go by logicchains on Saturday March 07, 2015 @06:10AM (#9161583)
I didn't realise that was possible; I've updated the post to reflect that.
Re:The ups of downs of porting 50k lines of C++ to Go by p0nce on Saturday March 07, 2015 @12:15PM (#9162351)
Avoiding code generation is a stated goal of the language. Too bad the hype train swings in random directions.
Re:The ups of downs of porting 50k lines of C++ to Go by logicchains on Sunday March 08, 2015 @01:13AM (#9164765)
For what it's worth I'd personally have preferred to use D, but politically it wasn't an option.