Thread overview
Platform support?
Mar 27, 2017
JN
Mar 27, 2017
Guillaume Piolat
Mar 27, 2017
Joakim
Mar 27, 2017
Seb
Oct 18, 2019
bobeff
Oct 18, 2019
welkam
Oct 18, 2019
Gregor Mückl
March 27, 2017
I'm curious about something. What platforms exactly are supported by D? It's hard to find concrete data, and if anything it's all hidden in forum posts.

Obviously Windows, Linux and macOS have good support. But what about mobiles? Android, iOS? Is it more like:

- not supported at all
- hello world works
- most stuff works and you can interface with native OS APIs (Android NDK libraries etc.) ?

How about Emscripten/WebAssembly?
March 27, 2017
On Monday, 27 March 2017 at 09:47:52 UTC, JN wrote:
> I'm curious about something. What platforms exactly are supported by D? It's hard to find concrete data, and if anything it's all hidden in forum posts.
>
> Obviously Windows, Linux and macOS have good support. But what about mobiles? Android, iOS? Is it more like:
>
> - not supported at all
> - hello world works
> - most stuff works and you can interface with native OS APIs (Android NDK libraries etc.) ?
>
> How about Emscripten/WebAssembly?

What I have gathered from empirical experience on the desktop:

- dmd and ldc-1.0.0
  * Windows XP or later (officially: Vista or later)
  * OSX 10.7 or later

- ldc-1.1.0 or later
  * not sure about Windows XP anymore
  * not sure about OSX 10.7 anymore

- linux
  * for x86-64 architecture, work in major distributions without issue
March 27, 2017
On Monday, 27 March 2017 at 09:47:52 UTC, JN wrote:
> I'm curious about something. What platforms exactly are supported by D? It's hard to find concrete data, and if anything it's all hidden in forum posts.

The wiki and download page are the best places to look:

http://wiki.dlang.org/Compilers
http://dlang.org/download

> Obviously Windows, Linux and macOS have good support. But what about mobiles? Android, iOS? Is it more like:
>
> - not supported at all
> - hello world works
> - most stuff works and you can interface with native OS APIs (Android NDK libraries etc.) ?

Pretty much everything works on Android, including calling native and Java APIs, the latter through JNI.  Similar on iOS, but the long in the works Obj-C bridge may have stalled.

> How about Emscripten/WebAssembly?

Unsupported, nobody has been interested enough to try it, AFAIK.
March 27, 2017
On Monday, 27 March 2017 at 11:58:50 UTC, Joakim wrote:
>> How about Emscripten/WebAssembly?
>
> Unsupported, nobody has been interested enough to try it, AFAIK.

Not entirely true, simple games written in D already run on the web - though IIRC without druntime:

https://forum.dlang.org/post/rxlnopwmyjwolqiddhhu@forum.dlang.org
October 18, 2019
On Monday, 27 March 2017 at 11:58:50 UTC, Joakim wrote:
> The wiki and download page are the best places to look:
>
> http://wiki.dlang.org/Compilers
> http://dlang.org/download

What about video game consoles support? Is it possible to use it on the latest and previous generations consoles? I know that Remedy has been using it as a scripting language for their games, which run on Xbox One, but is it possible to use it on Xbox 360, PS3, PS4, Wii, Wii U, Nintendo Switch, different handheld devices like PSP and so on?
October 18, 2019
On Friday, 18 October 2019 at 10:49:42 UTC, bobeff wrote:
> On Monday, 27 March 2017 at 11:58:50 UTC, Joakim wrote:
>> The wiki and download page are the best places to look:
>>
>> http://wiki.dlang.org/Compilers
>> http://dlang.org/download
>
> What about video game consoles support? Is it possible to use it on the latest and previous generations consoles? I know that Remedy has been using it as a scripting language for their games, which run on Xbox One, but is it possible to use it on Xbox 360, PS3, PS4, Wii, Wii U, Nintendo Switch, different handheld devices like PSP and so on?

The problem with platforms you listed is that they require to sign NDA before you can develope for them and you cant share the code.
October 18, 2019
On Friday, 18 October 2019 at 10:49:42 UTC, bobeff wrote:
> On Monday, 27 March 2017 at 11:58:50 UTC, Joakim wrote:
>> The wiki and download page are the best places to look:
>>
>> http://wiki.dlang.org/Compilers
>> http://dlang.org/download
>
> What about video game consoles support? Is it possible to use it on the latest and previous generations consoles? I know that Remedy has been using it as a scripting language for their games, which run on Xbox One, but is it possible to use it on Xbox 360, PS3, PS4, Wii, Wii U, Nintendo Switch, different handheld devices like PSP and so on?

I'm merely guessing, but I'd say that supporting PS4 shouldn't be too hard because it's also an x86 based platform and the OS is a fork of FreeBSD 9. The other consoles are harder to support because they are PowerPC- or ARM-based with operating systems that are further removed from what the D toolchains currently support. A considerable amount of tinkering would certainly be involved. And the console devkit NDAs will typically prevent you from sharing any such work with outside communities.