News for hackers. Stuff that matters.
Re:Linus Torvalds on Why ARM Won't Win the Server Space by AnimalMuppet on Friday February 22, 2019 @12:33PM (#19227185)
I'm with Linus on this one.

I had the pleasure (?) of working on a C/C++ codebase that compiled on Windows and ten different flavors of Unix. It was all "portable", but all over the place there was stuff like

  #if defined AIX || defined OSF1
  short var;
  #else
  int var;
  #endif
And to get it right, you had to compile it on all the platforms and fix all the errors (and preferably all the warnings).

Yeah, cross platform is never as simple as same platform.

Re:Linus Torvalds on Why ARM Won't Win the Server Space by wahern on Friday February 22, 2019 @09:25PM (#19231189)
How many years ago was that? POSIX compliance has come a long way and most of the proprietary vendors (the ones with all the corner cases) are gone. These days not only do platforms like AIX and Solaris have much fewer corner cases, they're even adopting Linux and GNU extensions wholesale. Anyhow, most people can ignore these altogether. Portability between Linux and the BSDs is much easier. macOS is the biggest outlier in terms of corner cases yet in many ways the best supported thanks to the popularity of Homebrew.

C++ is a different matter, but C++ portability is a headache even if you stay on Linux. Likewise, trying to maintain OS-level portability of monolithic codebases between Windows and Unix is a fools errand, which is why Windows Subsystem for Linux (WSL) is likely to only get better.

Re:Linus Torvalds on Why ARM Won't Win the Server Space by AnimalMuppet on Friday February 22, 2019 @11:50PM (#19231697)
How long ago? 15 years - and it was at least a decade-old code base. But I had to take some new code that was something like Windows-and-Sun-only, and port it to run on all of the other architectures.
Re:Linus Torvalds on Why ARM Won't Win the Server Space by DerekL on Friday February 22, 2019 @08:37PM (#19230994)
Yes, cross-platform development is more work, but that example you gave is the wrong way to do it. It's better to abstract the differences using typedefs, functions, macros, etc., and keep the platform switches in a few isolated places in the code.
Re:Linus Torvalds on Why ARM Won't Win the Server Space by musicale on Friday February 22, 2019 @02:57PM (#19228581)
Single platform cross-development (e.g. iOS) is a lot easier.