Re: LDC for iOS

2018-06-20 Thread makedgreatagain via Digitalmars-d-announce

On Friday, 27 February 2015 at 11:11:36 UTC, Chris wrote:

On Thursday, 26 February 2015 at 18:35:00 UTC, Dan Olson wrote:
I think this all is in good enough shape that someone else 
should give

it a try.

https://github.com/smolt/ldc-iphone-dev

This is an LDC development sandbox for iPhone iOS.

It glues together various pieces needed to build an LDC cross 
compiler
targeting iPhoneOS.  It also includes a few samples to show 
how to get
started. The compiler and libraries are in good enough shape 
to pass the
druntime/phobos unittests with a few minor test failures (see 
project
README.md).  This means someone could, if so inclined, build 
their D

library and use it in an iOS App.

Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

There are no prebuild binaries, so you have to do it yourself.
 Nobody
has reported yet on trying to build beside me, so there may be 
potholes.


Enjoy,
Dan


Thank you very much! Although I cannot test it right now 
(working mainly on Linux), I will soon give it a go, because 
we've been asked several times whether one of our apps will be 
available on the iPhone/iPad one day.


This is very important work and, again, I thank you for your 
efforts.


Hi Dan Olson,

This is very great work but the ldc version is too old.   I try 
patch it into last ldc master branch get a lot error(thanks 
Joakim for a lot help).


Can you help to check what need to be modify to made it buildable 
?  (It require modify some file like abi-ios* to work).





Re: LDC for iOS prebuilt binaries

2015-07-10 Thread Elvis Zhou via Digitalmars-d-announce

On Friday, 10 July 2015 at 05:38:47 UTC, Dan Olson wrote:
Manu via Digitalmars-d-announce 
digitalmars-d-announce@puremagic.com writes:

[...]


[...]


http://www.itoolchain.com/
or
iPhone toolchain on cygwin


Re: LDC for iOS prebuilt binaries

2015-07-10 Thread Dan Olson via Digitalmars-d-announce
Jack Stouffer j...@jackstouffer.com writes:

 Does this have any way to call the iOS Obj-C libraries for UI
 rendering and the like? Or is that a separate project?

It is a separate project and is gradually getting pulled into DMD:

http://forum.dlang.org/post/mnm1sf$kp8$1...@digitalmars.com

For now, you can write UI part in Objective-C and rest as D.  From D you
could call any of the C-based graphics APIs (e.g. CGContextFillRect) but
you'd have to write declarations - or try out Dstep:

https://github.com/jacob-carlborg/dstep

Another approach is using a framework with D bindings like Allegro5.

http://forum.dlang.org/post/m2sicg48ff@comcast.net

This looked promising but I have not pursed beyond that post.
-- 
Dan


LDC for iOS prebuilt binaries

2015-07-10 Thread Jack Stouffer via Digitalmars-d-announce

On Thursday, 9 July 2015 at 06:32:28 UTC, Dan Olson wrote:
Only 32-bit devices currently; arm64 work starts next month 
when I acquire an iPhone 6.


The download should have everything needed to run on an OS X 
build host in the same fashion as LDC downloads.


Great work. D will get a huge boost in popularity if it can work 
on mobile devices.


Does this have any way to call the iOS Obj-C libraries for UI 
rendering and the like? Or is that a separate project?


Re: LDC for iOS prebuilt binaries

2015-07-10 Thread Joakim via Digitalmars-d-announce

On Friday, 10 July 2015 at 20:38:16 UTC, Rishub Nagpal wrote:

On Thursday, 9 July 2015 at 06:32:28 UTC, Dan Olson wrote:
I've made a set of binaries and universal libs for the LDC iOS 
cross-compiler.  It is based on LDC 0.15.1 (2.066) and LLVM 
3.5.1.


https://github.com/smolt/ldc-iphone-dev/releases/tag/ios-0.15.1-150708

Only 32-bit devices currently; arm64 work starts next month 
when I acquire an iPhone 6.


The download should have everything needed to run on an OS X 
build host in the same fashion as LDC downloads.  But I may 
have missed something. Feedback appreciated.


Good Work! I'd like to help get D to work on android, but I do 
not know much about llvm and arm compilers to be of much help. 
Last I heard there was an issue with exception handling and 
TLS, is that still so?


That's funny, because I was just thinking about putting my 
Android patches for ldc online and trying to get more people to 
chip in on working through the remaining tests to be fixed for 
Android/ARM.


I got TLS working a month and a half ago 
(http://forum.dlang.org/post/imkgasjuvbbasyghd...@forum.dlang.org) and exception-handling seems to be working since this fix I ferreted out last week (http://forum.dlang.org/post/qsfaussopqwwjuljd...@forum.dlang.org).  Now it's just codegen issues, with about half of phobos modules' tests failing somewhere, though many of those modules only have a handful of tests that fail.  For example, only three unit test blocks fail in std.stdio and one in std.path.  Common causes appear to be problems with ranges and functions from std.random.


I'm going through each module and commenting out failing tests 
and checking backtraces, a time-consuming process that's got me 
thinking about hacking the test runner, so that failing tests in 
one unit test block won't stop other test blocks from the same 
module from running, as is the case now.


If you or anybody else is interested in chipping in, reply in the 
Android thread (first link above) and I'll put some patches and 
build info online.  Unfortunately, to really fix any of these 
issues, you'll probably have to know something about ARM 
assembly, LLVM IR, and be comfortable stepping through the binary 
with gdb but without debug info, although simply triaging the 
tests to figure out what works and what doesn't could probably be 
done by almost anyone.


Re: LDC for iOS prebuilt binaries

2015-07-10 Thread Rishub Nagpal via Digitalmars-d-announce

On Thursday, 9 July 2015 at 06:32:28 UTC, Dan Olson wrote:
I've made a set of binaries and universal libs for the LDC iOS 
cross-compiler.  It is based on LDC 0.15.1 (2.066) and LLVM 
3.5.1.


https://github.com/smolt/ldc-iphone-dev/releases/tag/ios-0.15.1-150708

Only 32-bit devices currently; arm64 work starts next month 
when I acquire an iPhone 6.


The download should have everything needed to run on an OS X 
build host in the same fashion as LDC downloads.  But I may 
have missed something. Feedback appreciated.


Good Work! I'd like to help get D to work on android, but I do 
not know much about llvm and arm compilers to be of much help. 
Last I heard there was an issue with exception handling and TLS, 
is that still so?


anyway, good job!


Re: LDC for iOS prebuilt binaries

2015-07-09 Thread Manu via Digitalmars-d-announce
Possible to make cross compilers for other hosts?
Who uses a mac? ;)

On 9 July 2015 at 16:32, Dan Olson via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:
 I've made a set of binaries and universal libs for the LDC iOS
 cross-compiler.  It is based on LDC 0.15.1 (2.066) and LLVM 3.5.1.

 https://github.com/smolt/ldc-iphone-dev/releases/tag/ios-0.15.1-150708

 Only 32-bit devices currently; arm64 work starts next month when I
 acquire an iPhone 6.

 The download should have everything needed to run on an OS X build host
 in the same fashion as LDC downloads.  But I may have missed something.
 Feedback appreciated.
 --
 Dan


Re: LDC for iOS prebuilt binaries

2015-07-09 Thread Dan Olson via Digitalmars-d-announce
Manu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com writes:

 Possible to make cross compilers for other hosts?
 Who uses a mac? ;)

Hi Manu - I wish I knew the answer.  I assume you are thinking Windows.
I just looked at some stackoverflow answers, specifically at Xamarin.iOS
for Windows, and all seem to require a Mac at somepoint in the iOS dev
process.

Just thinking now as I type:
- druntime, and phobos as built should be fine, since they are already
   cross compiled for iOS/arm
- ldc could be built as an iOS cross compiler on Windows with a little
   work
- that leaves: cross linker (I think Apple open sources it), and app
   tools to create, sign, and download apps.  Maybe someone in the
   field knows a solution.

http://developer.xamarin.com/guides/ios/getting_started/installation/windows/

http://stackoverflow.com/questions/22358/how-can-i-develop-for-iphone-using-a-windows-development-machine

-- 
Dan



LDC for iOS prebuilt binaries

2015-07-09 Thread Dan Olson via Digitalmars-d-announce
I've made a set of binaries and universal libs for the LDC iOS
cross-compiler.  It is based on LDC 0.15.1 (2.066) and LLVM 3.5.1.

https://github.com/smolt/ldc-iphone-dev/releases/tag/ios-0.15.1-150708

Only 32-bit devices currently; arm64 work starts next month when I
acquire an iPhone 6.

The download should have everything needed to run on an OS X build host
in the same fashion as LDC downloads.  But I may have missed something.
Feedback appreciated.
-- 
Dan


Re: LDC for iOS

2015-02-27 Thread Chris via Digitalmars-d-announce

On Thursday, 26 February 2015 at 18:35:00 UTC, Dan Olson wrote:
I think this all is in good enough shape that someone else 
should give

it a try.

https://github.com/smolt/ldc-iphone-dev

This is an LDC development sandbox for iPhone iOS.

It glues together various pieces needed to build an LDC cross 
compiler
targeting iPhoneOS.  It also includes a few samples to show how 
to get
started. The compiler and libraries are in good enough shape to 
pass the
druntime/phobos unittests with a few minor test failures (see 
project
README.md).  This means someone could, if so inclined, build 
their D

library and use it in an iOS App.

Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

There are no prebuild binaries, so you have to do it yourself.  
Nobody
has reported yet on trying to build beside me, so there may be 
potholes.


Enjoy,
Dan


Thank you very much! Although I cannot test it right now (working 
mainly on Linux), I will soon give it a go, because we've been 
asked several times whether one of our apps will be available on 
the iPhone/iPad one day.


This is very important work and, again, I thank you for your 
efforts.


Re: LDC for iOS

2015-02-26 Thread Dan Olson via Digitalmars-d-announce
On Thursday, 26 February 2015 at 19:26:07 UTC, Jacob Carlborg 
wrote:
I could successfully compile the compiler and compile Hello 
World without any problems. I did not try running it on an a 
device.


Thanks Jacob!



Re: LDC for iOS

2015-02-26 Thread Jacob Carlborg via Digitalmars-d-announce

On 2015-02-26 19:34, Dan Olson wrote:

I think this all is in good enough shape that someone else should give
it a try.


Awesome work. I could successfully compile the compiler and compile 
Hello World without any problems. I did not try running it on an a device.


--
/Jacob Carlborg


LDC for iOS

2015-02-26 Thread Dan Olson via Digitalmars-d-announce
I think this all is in good enough shape that someone else should give
it a try.

https://github.com/smolt/ldc-iphone-dev

This is an LDC development sandbox for iPhone iOS.

It glues together various pieces needed to build an LDC cross compiler
targeting iPhoneOS.  It also includes a few samples to show how to get
started. The compiler and libraries are in good enough shape to pass the
druntime/phobos unittests with a few minor test failures (see project
README.md).  This means someone could, if so inclined, build their D
library and use it in an iOS App.

Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

There are no prebuild binaries, so you have to do it yourself.  Nobody
has reported yet on trying to build beside me, so there may be potholes.

Enjoy,
Dan