www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - D/Objective-C in LDC?

reply Jacob Carlborg <doob me.com> writes:
Is there an interest in adding support for Objective-C [1][2] in LDC 
without the support being implemented in DMD? The reason why I'm asking 
is because the pull request [2] I've created for DMD is pretty much 
stalled because of Walter. I have no idea when or if Walter will accept 
the pull request and after three major refactorings it feels quite 
hopeless. I would really like to get this feature in to D.

[1] http://wiki.dlang.org/DIP43
[2] https://github.com/D-Programming-Language/dmd/pull/4321

-- 
/Jacob Carlborg
Jun 21 2015
next sibling parent reply David Nadlinger via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
On 06/21/2015 09:19 PM, Jacob Carlborg via digitalmars-d-ldc wrote:
 Is there an interest in adding support for Objective-C [1][2] in LDC
 without the support being implemented in DMD?
Unfortunately, the prospects are not looking too good here either. We are currently trying to get the point where we just use the upstream frontend verbatim, which is especially important given that DDMD is at the doorsteps. - David
Jun 21 2015
next sibling parent "David Nadlinger" <code klickverbot.at> writes:
On Sunday, 21 June 2015 at 20:36:06 UTC, David Nadlinger wrote:
 Unfortunately, the prospects are not looking too good here 
 either. We are currently trying to get the point where we just 
 use the upstream frontend verbatim, which is especially 
 important given that DDMD is at the doorsteps.
I should add that this is my personal opinion about what makes most sense for LDC right now, and not some kind of official project position. - David
Jun 21 2015
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 21/06/15 22:35, David Nadlinger via digitalmars-d-ldc wrote:

 Unfortunately, the prospects are not looking too good here either. We
 are currently trying to get the point where we just use the upstream
 frontend verbatim, which is especially important given that DDMD is at
 the doorsteps.
I understand, that makes sense. -- /Jacob Carlborg
Jun 22 2015
prev sibling parent reply Dan Olson <gorox comcast.net> writes:
Jacob Carlborg <doob me.com> writes:

 Is there an interest in adding support for Objective-C [1][2] in LDC
 without the support being implemented in DMD? The reason why I'm
 asking is because the pull request [2] I've created for DMD is pretty
 much stalled because of Walter. I have no idea when or if Walter will
 accept the pull request and after three major refactorings it feels
 quite hopeless. I would really like to get this feature in to D.

 [1] http://wiki.dlang.org/DIP43
 [2] https://github.com/D-Programming-Language/dmd/pull/4321
Jacob, how about merging it with LDC for iOS? As you know, Objective-C is very much needed on that platform. https://github.com/smolt/ldc-iphone-dev https://github.com/smolt/ldc Your OS X experience would add much. -- Dan
Jun 22 2015
parent reply Jacob Carlborg <doob me.com> writes:
On 22/06/15 09:56, Dan Olson wrote:

 Jacob, how about merging it with LDC for iOS? As you know, Objective-C
 is very much needed on that platform.
Ideally I would like to get this in to DMD, because then it "automatically" gets added to LDC and GDC. The next best thing would be to add it to LDC. But adding it to a fork of LDC would be like adding it to a fork of a fork. It's just so much overhead in keeping the code up to date with upstream in a fork. Also, the code I have is only for x86-64. I'm not sure how much different the ARM 32 and 64bit code would be. -- /Jacob Carlborg
Jun 22 2015
parent reply Dan Olson <gorox comcast.net> writes:
Jacob Carlborg <doob me.com> writes:

 On 22/06/15 09:56, Dan Olson wrote:

 Jacob, how about merging it with LDC for iOS? As you know, Objective-C
 is very much needed on that platform.
Ideally I would like to get this in to DMD, because then it "automatically" gets added to LDC and GDC. The next best thing would be to add it to LDC. But adding it to a fork of LDC would be like adding it to a fork of a fork. It's just so much overhead in keeping the code up to date with upstream in a fork.
Sure, I understand. Is branch d-objc2 the most up-to-date? Is it based on 2.066 or 2.067?
Jun 22 2015
parent reply Jacob Carlborg <doob me.com> writes:
On 22/06/15 15:03, Dan Olson wrote:

 Sure, I understand.  Is branch d-objc2 the most up-to-date?  Is it based
 on 2.066 or 2.067?
I think [1] is the branch most up to date that is complete. [2] would be the branch that is most up to date but only contains support for instance methods. This is also the branch that the open pull request is made from [3]. [1] https://github.com/jacob-carlborg/dmd/commits/d-objc [2] https://github.com/jacob-carlborg/dmd/commits/dobjc_instance_methods [3] https://github.com/D-Programming-Language/dmd/pull/4321 -- /Jacob Carlborg
Jun 22 2015
parent reply Dan Olson <gorox comcast.net> writes:
Jacob Carlborg <doob me.com> writes:

 On 22/06/15 15:03, Dan Olson wrote:

 Sure, I understand.  Is branch d-objc2 the most up-to-date?  Is it based
 on 2.066 or 2.067?
I think [1] is the branch most up to date that is complete. [2] would be the branch that is most up to date but only contains support for instance methods. This is also the branch that the open pull request is made from [3]. [1] https://github.com/jacob-carlborg/dmd/commits/d-objc [2] https://github.com/jacob-carlborg/dmd/commits/dobjc_instance_methods [3] https://github.com/D-Programming-Language/dmd/pull/4321
My iOS TODO list is burning down to the point where I could merge ObjC with iOS in the not to distant future, if that is ok.
Jul 09 2015
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2015-07-09 10:04, Dan Olson wrote:

 My iOS TODO list is burning down to the point where I could merge ObjC
 with iOS in the not to distant future, if that is ok.
Walter enabled auto merge of the pull request [1] just a couple of hours ago. For some reason the Phobos unit tests are failing and I think something need to be update for the magicport target. I'll work on that tonight. [1] https://github.com/D-Programming-Language/dmd/pull/4321 -- /Jacob Carlborg
Jul 09 2015
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
On 10/07/2015 2:53 a.m., Jacob Carlborg wrote:
 On 2015-07-09 10:04, Dan Olson wrote:

 My iOS TODO list is burning down to the point where I could merge ObjC
 with iOS in the not to distant future, if that is ok.
Walter enabled auto merge of the pull request [1] just a couple of hours ago. For some reason the Phobos unit tests are failing and I think something need to be update for the magicport target. I'll work on that tonight. [1] https://github.com/D-Programming-Language/dmd/pull/4321
OMG we are actually getting obj-c support :o *dreams of porting Devisualization.Window OSX support to D* Okay I have nothing else to add.
Jul 09 2015
prev sibling next sibling parent "Paolo Invernizzi" <paolo.invernizzi no.address> writes:
On Thursday, 9 July 2015 at 14:53:03 UTC, Jacob Carlborg wrote:
 On 2015-07-09 10:04, Dan Olson wrote:

 My iOS TODO list is burning down to the point where I could 
 merge ObjC
 with iOS in the not to distant future, if that is ok.
Walter enabled auto merge of the pull request [1] just a couple of hours ago. For some reason the Phobos unit tests are failing and I think something need to be update for the magicport target. I'll work on that tonight. [1] https://github.com/D-Programming-Language/dmd/pull/4321
O My God! ;-P --- Paolo
Jul 09 2015
prev sibling parent Dan Olson <gorox comcast.net> writes:
Jacob Carlborg <doob me.com> writes:

 On 2015-07-09 10:04, Dan Olson wrote:

 My iOS TODO list is burning down to the point where I could merge ObjC
 with iOS in the not to distant future, if that is ok.
Walter enabled auto merge of the pull request [1] just a couple of hours ago. For some reason the Phobos unit tests are failing and I think something need to be update for the magicport target. I'll work on that tonight. [1] https://github.com/D-Programming-Language/dmd/pull/4321
:-)
Jul 09 2015
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2015-07-09 10:04, Dan Olson wrote:

 My iOS TODO list is burning down to the point where I could merge ObjC
 with iOS in the not to distant future, if that is ok.
You're free to merge whatever you like :) -- /Jacob Carlborg
Jul 09 2015