April 25, 2018
On Sunday, 22 April 2018 at 15:56:49 UTC, kinke wrote:
> * `-link-internally` able to (cross-)link Windows, Linux and macOS binaries.
This is nice to hear, but just to make it clear, what steps do I need to take to for example build a Mac OSX binary on Windows or Linux? Can I just download libs from prebuilt LDC for Mac OSX, put them somewhere in my current LDC installation and it will work?

I'm also waiting so much for LDC to be independent of MS Visual Studio libs, and ship MinGW libs with the installation or something. I thought you had some troubles getting LLVM to work with MinGW libs, is it still true?
April 26, 2018
On Tuesday, 24 April 2018 at 15:53:23 UTC, Joakim wrote:
> On Monday, 23 April 2018 at 09:18:07 UTC, Suliman wrote:
>> What about Webassembly support? Latest LLVM suppport it, so LDC should support also.
>
> We don't support a lot of platforms that llvm supports. It will require someone to work on the port, which hasn't happened. I've said before that I don't think it's worth it, because the web has been declining as a platform:
>
> https://forum.dlang.org/post/unqvdzopebfksnxwhoqn@forum.dlang.org
>

I stumbled over this:
http://blog.qt.io/blog/2018/04/23/beta-qt-webassembly-technology-preview/
https://sdtimes.com/webdev/mozillas-webassembly-studio-enters-beta/

I dont want to argue, just throwing that in ;)
April 26, 2018
On Thursday, 26 April 2018 at 05:34:51 UTC, meppl wrote:
> On Tuesday, 24 April 2018 at 15:53:23 UTC, Joakim wrote:
>> On Monday, 23 April 2018 at 09:18:07 UTC, Suliman wrote:
>>> What about Webassembly support? Latest LLVM suppport it, so LDC should support also.
>>
>> We don't support a lot of platforms that llvm supports. It will require someone to work on the port, which hasn't happened. I've said before that I don't think it's worth it, because the web has been declining as a platform:
>>
>> https://forum.dlang.org/post/unqvdzopebfksnxwhoqn@forum.dlang.org
>>
>
> I stumbled over this:
> http://blog.qt.io/blog/2018/04/23/beta-qt-webassembly-technology-preview/
> https://sdtimes.com/webdev/mozillas-webassembly-studio-enters-beta/
>
> I dont want to argue, just throwing that in ;)

I don't know how those links are relevant. Yes, some projects are supporting WebAssembly, but that doesn't mean the web hasn't been declining, so this port likely isn't worth the effort.

Nobody is stopping anyone from doing the port though: ldc has some support for even more niche platforms like linux/PowerPC, simply because Kai wanted to do it. I'm just warning people who haven't seen those linked numbers that it likely isn't worth it.
April 26, 2018
On Wednesday, 25 April 2018 at 13:36:50 UTC, Rel wrote:

> This is nice to hear, but just to make it clear, what steps do I need to take to for example build a Mac OSX binary on Windows or Linux? Can I just download libs from prebuilt LDC for Mac OSX, put them somewhere in my current LDC installation and it will work?

In theory yes, in practice unfortunately no, see [1]. You would also need the macOS SDK. In short, the LLD linker does not support some magic linker symbols that LDC is dependent on.

I've created a Dockerfile that uses LDC to cross-compile targeting macOS. It does not use the LLD linker. Note, the base Docker image pulls the macOS SDK from a Dropbox account. I've compiled this [3] repositories using that image.

> I'm also waiting so much for LDC to be independent of MS Visual Studio libs, and ship MinGW libs with the installation or something. I thought you had some troubles getting LLVM to work with MinGW libs, is it still true?

Apparently the MinGW libraries are too old. LDC requires the libraries from Visual Studio 2015 (I think) or later.

[1] https://github.com/ldc-developers/ldc/issues/2662
[2] https://github.com/jacob-carlborg/docker-ldc-darwin/blob/master/Dockerfile
[3] https://github.com/jacob-carlborg/d_webkit_test

--
/Jacob Carlborg
April 26, 2018
On 04/26/2018 03:11 AM, Joakim wrote:
> 
> I don't know how those links are relevant. Yes, some projects are supporting WebAssembly, but that doesn't mean the web hasn't been declining, so this port likely isn't worth the effort.
> 
> Nobody is stopping anyone from doing the port though: ldc has some support for even more niche platforms like linux/PowerPC, simply because Kai wanted to do it. I'm just warning people who haven't seen those linked numbers that it likely isn't worth it.

Not disagreeing at all, and not trying to twist anyone's arm, but speaking purely personally, I'd love to see WebAsm/Asm.js support (FWLIW). I'm converting an old Flash-based thing to Unity3D/WebGL right now (still web-based due to factors beyond my control), and (for various reasons) I'd love to sometime build a nice 2D engine in D and use it to move this project to D. Unfortunately, I've checked into GCC and LLVM docs before and GCC/LLVM hacking seems to be beyond me.

I'm not making any particular point there. Just chatting, fwiw.
1 2
Next ›   Last »