August 21, 2019
On Wednesday, 21 August 2019 at 17:35:39 UTC, Manu wrote:
> Okay, so what are you saying about the extra LLVM build time?

I mentioned the LLVM CI/build because that would be required for a native Android/iOS LDC package (not sure how much demand there is).
As we don't have any 32-bit ARM CI either (but an AArch64 one), this means that someone needs to build LLVM manually for the prebuilt armhf packages. [And building LLVM with 3 emulated ARMv7 cores on my i5-3550 quad-core takes about 12 hours, just to give you an idea wrt. emulator performance.]

> So, Android target works, but iOS not so much?
> What would you say is outstanding in Android front? Just passing CI?
> Is there druntime work to do? I suspect platform integration is
> scarce?

I don't know because I've never tried to target Android or iOS (not interested at all myself, I mostly just use the browser on my phone). There should be plenty of information in older LDC GitHub PRs/issues, in the Wiki and possibly even this forum. - IIRC, most tests are passing on Android for 32-bit ARM and AArch64 (but don't expect proper C++ ABI compatibility). Generating shared libs (obviously) works, but multiple .so's cannot share a druntime.so (e.g., one GC for all shared D libs), contrary to regular Linux and macOS.

> Does Android x86 work?

I'm not sure whether Joakim tested it, but he did definitely work on adding druntime support for it, and LDC uses the 128-bit quad-precision `real` type.

> I've seen iOS toolchains appear from time to time, I guess the standard build can't emit iOS code though?

No idea (code emission per se shouldn't be that big a deal and probably works today, it's more about druntime - exception handling, TLS, shared libs support etc.). Dan Olson (@smolt) worked on an iOS fork of LDC some time ago, but IIRC, he didn't upstream many of his patches to mainline LDC.
August 21, 2019
On Wednesday, 21 August 2019 at 19:00:57 UTC, kinke wrote:
> I mentioned the LLVM CI/build because that would be required for a native Android/iOS LDC package

Correction: it's also needed for running the DMD tests in the `runnable` subdir as well as similar LDC-specific tests, which require a native LDC build.
August 21, 2019
On Wednesday, 21 August 2019 at 17:35:39 UTC, Manu wrote:
> So, Android target works, but iOS not so much?
> What would you say is outstanding in Android front? Just passing CI?
> Is there druntime work to do? I suspect platform integration is
> scarce?
> Does Android x86 work? This is often used during debugging where I work.

Work that was being done below, the person that was doing the majority of the work left the community iirc.

https://github.com/ldc-developers/ldc/issues/2153

I've been using LDC for Android for a while. So for it works as expected, aside from a few things like va_args not being implemented (which can be fairly easily avoided). Don't really do any binding with C++ though, only C. I think x86 did work, I've never tried it though. Not sure about x86_64 either if that's relevant. I've used it pretty much exclusively with AArch64.



August 22, 2019
losing your read post history.
10 hours agoRe: DMD or LDC on mobile
Gravatar	Posted by kinke
in reply to Manu	
Permalink
Reply
On Wednesday, 21 August 2019 at 17:35:39 UTC, Manu wrote:
> Okay, so what are you saying about the extra LLVM build time?

I mentioned the LLVM CI/build because that would be required for a native Android/iOS LDC package (not sure how much demand there is).
As we don't have any 32-bit ARM CI either (but an AArch64 one), this means that someone needs to build LLVM manually for the prebuilt armhf packages. [And building LLVM with 3 emulated ARMv7 cores on my i5-3550 quad-core takes about 12 hours, just to give you an idea wrt. emulator performance.]

---

I'll pay for Android CI and/or iOS if it's helpful.  Please get in touch via John Colvin / Robert Schadek.

We don't use Android at work but maybe some day we might.  On the other hand even if iOS is done it's not so useful for writing full applications yet.  But the journey of a thousand miles...

It's worth it if we can to keep the termius LDC package build up to date.  Also dlangui seems to have stagnated a bit on Android.  I wonder if it's viable to write a little app that way.  Otherwise I guess something like imgui.


Laeeth
October 19, 2019
On Thursday, 22 August 2019 at 06:03:46 UTC, Laeeth Isharc wrote:
> losing your read post history.
> 10 hours agoRe: DMD or LDC on mobile
> Gravatar	Posted by kinke
> in reply to Manu	
> Permalink
> Reply
> On Wednesday, 21 August 2019 at 17:35:39 UTC, Manu wrote:
>> [...]
>
> [...]

Is any expert can help me to start working on this : https://forum.dlang.org/thread/uqxjehxtplbgvxesfrez@forum.dlang.org
1 2 3 4 5
Next ›   Last »