Re: iphone + D, getting closer!

2012-11-12 Thread Jacob Carlborg
On 2012-11-13 00:45, Iain Buclaw wrote: Doesn't Apple forbid any language except Objective-C ? Or is that a misguided fallacy of mine? (Objective D, anyone? :-) We actually do need Objective-D if we're going to run D on iOS. Fortunately we already have something, although it's not finished a

Re: iphone + D, getting closer!

2012-11-12 Thread Dan Olson
Iain Buclaw writes: > > Doesn't Apple forbid any language except Objective-C ? Or is that a > misguided fallacy of mine? (Objective D, anyone? :-) I think it once was so, but no longer. http://stackoverflow.com/questions/3949995/what-programming-languages-can-one-use-to-develop-iphone-ipod-touc

Re: iphone + D, getting closer!

2012-11-12 Thread Bernard Helyer
On Monday, 12 November 2012 at 23:45:37 UTC, Iain Buclaw wrote: (Objective D, anyone? :-) Too far man. D:

Re: iphone + D, getting closer!

2012-11-12 Thread Iain Buclaw
On 12 November 2012 01:38, Dan Olson wrote: > Ok, D is not there yet, but I managed to build a crippled gcc-4.8 (with > D) targeting arm-apple-darwin and I can compile simple C functions to .o > files and link them into an iphone app. And run it on my iphone. The D > and C++ compilers built, but

Re: iphone + D, getting closer!

2012-11-12 Thread Jacob Carlborg
On 2012-11-12 16:28, Dan Olson wrote: D for the iphone simulator worked without changes to gcc-4.8 src since it targets i686 darwin fine. To get it to work it was more of finding the right config recipe. I did have to use my druntme changes for osx. For the simulator, I built an i686-apple-dar

Re: iphone + D, getting closer!

2012-11-12 Thread Dan Olson
Dan Olson writes: > Johannes Pfau writes: >> >> _Dmodule_ref? >> You can just declare it as extern(C) __gshared void* _Dmodule_ref; (But >> IIRC you have to compile with -nophoboslib to make it work) >> It's used by the runtime/compiler to setup the ModuleInfos but you >> don't have to initializ

Re: iphone + D, getting closer!

2012-11-12 Thread Dan Olson
Johannes Pfau writes: > > _Dmodule_ref? > You can just declare it as extern(C) __gshared void* _Dmodule_ref; (But > IIRC you have to compile with -nophoboslib to make it work) > It's used by the runtime/compiler to setup the ModuleInfos but you > don't have to initialize it, it just needs to be de

Re: iphone + D, getting closer!

2012-11-12 Thread Dan Olson
Jacob Carlborg writes: > > Cool, I'm really looking forward to this. How did it go with the simulator? D for the iphone simulator worked without changes to gcc-4.8 src since it targets i686 darwin fine. To get it to work it was more of finding the right config recipe. I did have to use my drunt

Re: iphone + D, getting closer!

2012-11-12 Thread Timo Sintonen
On Monday, 12 November 2012 at 08:31:32 UTC, Johannes Pfau wrote: Am Sun, 11 Nov 2012 17:38:08 -0800 schrieb Dan Olson : Even a simple D module with just a extern(C) function depends on something in druntime, so I have to get part of that to build first. _Dmodule_ref? You can just decla

Re: iphone + D, getting closer!

2012-11-12 Thread Johannes Pfau
Am Sun, 11 Nov 2012 17:38:08 -0800 schrieb Dan Olson : > Ok, D is not there yet, but I managed to build a crippled gcc-4.8 > (with D) targeting arm-apple-darwin and I can compile simple C > functions to .o files and link them into an iphone app. And run it > on my iphone. The D and C++ compilers