On Wednesday, 10 May 2017 at 12:52:34 UTC, JN wrote:
Interesting thread I got from Reddit, someone made a game for
PC and mobiles fully in Rust.
https://michaelfairley.com/blog/i-made-a-game-in-rust/
"Last week, I released A Snake’s Tale on iOS, Android, Windows,
Mac, and Linux.".
I wonder, would it be possible for D in the current state to
achieve the same? I imagine iOS isn't possible yet and Android
is just getting there?
iOS is possible, though that cross-compiler hasn't been updated
in a year:
https://github.com/smolt/ldc-iphone-dev/releases
Cross-compiling for Android has been available for awhile, and I
got JNI working late last year:
https://github.com/joakim-noah/android/releases
That game programmer mentions wanting more control over
optimizing methods in Rust. Funnily enough, I've been messing
with pragma(inline, true) just today to track down a bug related
to inlining, and Johan added an attribute called optStrategy to
ldc last summer, which lets you selectively turn on or off
optimizations for a method:
https://github.com/ldc-developers/ldc/pull/1637
Radu used it when debugging ldc on an ARMv5 microcontroller
recently. Not available standardized across D compilers
obviously, but could be some day.