3 ms·
> As long as you don't use C or C++ (or you're carful to be multiplatform), all switching is a recompile away. why do you say "as long as you don't use C or C+
by jcelerier 9y ago
> As long as you don't use C or C++ (or you're carful to be multiplatform), all switching is a recompile away.
why do you say "as long as you don't use C or C++" ? these two languages are especially good when it comes to compile a single code base to multiple platforms. Got a 150kloc C++ app that "just compiles" to windows, mac, linux, android, iOS, under x86, x86_64, ARM, and it even worked on PPC macs last time I tried.
- greenhouse_gas 9y agoBecause you have to be careful to be multiplatform. For example, your code can break if you assume an int is 4 bytes when in your target it's 8 (hard coded values for pointer arithmetic), or vice versa.
- jcelerier 9y agowell, I and scores of other programmers must be quite lucky because I don't ever remember having to assume or leverage the fact that int or whatever data type was 4 or 8 bytes.