4 ms·
Whats the story with D portability ? Can it compile to iOS Android and WASM without a lot of issues ? C and C++ can compile to anything - thats a major use cas
by rubber_duck 7y ago
Whats the story with D portability ? Can it compile to iOS Android and WASM without a lot of issues ?
C and C++ can compile to anything - thats a major use case for me
- earenndil 7y agoD does technically run on all three of those platforms (ios, android, wasm). Of the three, android is probably the most mature. Wasm is not very usable, because wasm itself doesn't yet have a garbage collector, so the d runtime is not ported. For iOS, there is a fork of GDC (GCC-based compiler) which is supposed to run, but there isn't very much interest in it. If you put in the work, you could likely get all three to work, but there's nothing OOTB yet.
- mhh__ 7y agoD uses the same backends, so in principle it's similar coverage to C++ (gdc targets loads and loads of architectures, for example) however druntime hasn't been ported to many. WASMV is completely doable but there's no C environment( at all) so you have to do it all yourself