News for hackers. Stuff that matters.
Re:Cap’n Proto by jcoffland on Sunday September 11, 2016 @01:26AM (#12472117)
Recently I've started compiling more of my code for Windows using Mingw (or clang). Performance is very good and you can build in Linux for Windows inside a Docker container. You can even build Windows installers using NSIS. I've also tried to do this for OSX but with less success.
Re:Cap’n Proto by kentonv on Sunday September 11, 2016 @03:36PM (#12475193)
Cap'n Proto supports MinGW as a target platform. (It has also supported Cygwin since very early on.) However, Cap'n Proto is a library, so it needs to support whatever compiler the users of that library are using, and for the vast majority of Windows developers that's MSVC.
Re:Cap’n Proto by jcoffland on Monday September 12, 2016 @02:44AM (#12477678)
Right, but you should be able to compile a library with either MinGW or clang from Linux that your users can use with MSVC.
Re:Cap’n Proto by kentonv on Monday September 12, 2016 @03:08AM (#12477765)
Not if it uses C++. MinGW uses the G++ ABI which is totally incompatible with the MSVC ABI.

(Also, a lot of the issues we face affect headers, which need to be compiled into the client projects.)

Re:Cap’n Proto by jcoffland on Wednesday September 14, 2016 @01:26PM (#12499241)
Since the code is so small and in C++ why not make it a header only library?