News for hackers. Stuff that matters.
Re:WebAssembly: A New Hope by jcelerier on Wednesday August 09, 2017 @02:47PM (#14972366)
> 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.

Re:WebAssembly: A New Hope by greenhouse_gas on Wednesday August 09, 2017 @03:27PM (#14972709)
Because 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.
Re:WebAssembly: A New Hope by jcelerier on Saturday August 12, 2017 @04:38AM (#14997066)
well, 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.