December 20, 2014
Kai Nacke:

> It's fixed in master branch.

Very good. I have found another little problem in the latest Windows32 of ldc2, if I compile this with ldmd2:


void main() {
    import std.stdio: File;
    import std.conv: to;
    File("data").byLine.front.to!int;
}


I receive:

...ldc2\bin/../lib/libphobos2-ldc.a(curl.obj):(.text[__D3std3net4curl4Curl8shutdownMFZv]+0x3e): undefined reference to `curl_easy_cleanup'
...ldc2\bin/../lib/libphobos2-ldc.a(curl.obj):(.text[__D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv]+0x51): undefined reference to `curl_easy_setopt'
.../MinGW/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: ...ldc2\bin/../lib/libphobos2-ldc.a(curl.obj): bad reloc address 0x51 in section `.text[__D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv]'
collect2.exe: error: ld returned 1 exit status
Error: ...\MinGW\bin\gcc.exe failed with status: 1

Bye,
bearophile
December 29, 2014
> void main() {
>     import std.stdio: File;
>     import std.conv: to;
>     File("data").byLine.front.to!int;
> }

Is this a bug in my code?

December 29, 2014
On Monday, 29 December 2014 at 12:43:12 UTC, bearophile wrote:
>> void main() {
>>    import std.stdio: File;
>>    import std.conv: to;
>>    File("data").byLine.front.to!int;
>> }
>
> Is this a bug in my code?

Try:

void main() {
    import std.stdio: File, byLine;
    import std.conv: to;
    File("data").byLine.front.to!int;
}


Seems its try to use byLine from std.net.curl
December 29, 2014
On Monday, 29 December 2014 at 14:46:25 UTC, Daniel Kozak wrote:
> On Monday, 29 December 2014 at 12:43:12 UTC, bearophile wrote:
>>> void main() {
>>>   import std.stdio: File;
>>>   import std.conv: to;
>>>   File("data").byLine.front.to!int;
>>> }
>>
>> Is this a bug in my code?
>
> Try:
>
> void main() {
>     import std.stdio: File, byLine;
>     import std.conv: to;
>     File("data").byLine.front.to!int;
> }
>
>
> Seems its try to use byLine from std.net.curl

Ok this does not work too, byLine is part of File struct my fault.
April 09, 2015
On Monday, 15 December 2014 at 21:10:20 UTC, John Colvin wrote:
> On Monday, 15 December 2014 at 05:42:45 UTC, Kai Nacke wrote:
>> Hi everyone!
>>
>> On behalf of the LDC team I am proud to announce the LDC 0.15.1 release!
>> It is based on the 2.066.1 front-end and LLVM 3.1-3.5 (OS X: no support for 3.3).
>>
>> This is a really exciting release!
>>
>> Support for the PowerPC architecture has grown. Linux/PPC64 Little Endian is now usable, including garbage collector support. Linux/PPC32 compiles out of the box and can run simple application. There is still lot to do, though.
>>
>> Even more exciting this release comes with the first official development snapshot of a Win64 compiler targetting the MS C Runtime. Thanks to Trass3r and kinke for their active development! Please note that this version requires LLVM 3.6 (current development version).
>>
>> Solaris/x86 is a new supported platform. I added the missing druntime implementation. If you are using Solaris please try and give feedback!
>>
>> Be sure to read the preliminary change log at the GitHub release page which also has the package download links:
>> https://github.com/ldc-developers/ldc/releases/tag/v0.15.1
>>
>> MD5 checksums for the release packages:
>>
>> 7cd280c9d73218360900cb89723f1050 ldc-0.15.1-src.tar.gz
>> 629e974d1dc02e7015cc182a5c724adc ldc2-0.15.1-linux-x86.tar.gz
>> d9d590a943f3af9616cfa793681d9d3d ldc2-0.15.1-linux-x86.tar.xz
>> 0e96c0cf918b0d6eb94e97ba1fc48cdc ldc2-0.15.1-linux-x86_64.tar.gz
>> 72c67a87cd695d0253581e7aa4d1d84d ldc2-0.15.1-linux-x86_64.tar.xz
>> 1f56113d8c5685a6b8ecda84babe0029 ldc2-0.15.1-mingw-x86.7z
>> 94e14555558743afe096c7f1a1d6c152 ldc2-0.15.1-mingw-x86.zip
>> 3aa63a0d6133dc2aadf7f70783814b56 ldc2-0.15.1-osx-x86_64.tar.gz
>> 3c1a1da3ef639f1ee46e0146af73a81d ldc2-0.15.1-osx-x86_64.tar.xz
>> 3ab78287729a5c94f0347433ef98534f ldc2-0.15.1-win64-msvc.zip
>>
>> Regarding the binaries:
>> The Linux binaries are built on Ubuntu 12.04 LTS with gcc 4.8.x and LLVM 3.5. They work on Ubuntu 12.04 LTS (or later) without installing additional software.
>>
>> As always, the Win32/MinGW packages require a recent version of the mingw-w64 toolchain, see http://wiki.dlang.org/Building_LDC_on_MinGW_x86 for details. The package is build with i686-4.9.1-release-posix-dwarf-rt_v3-rev1 downloaded with the mingw installer.
>>
>> The Win64 MSVC version is still considered alpha quality. It is built with VS2013 against a snapshot of LLVM 3.6. Both builds are debug build.
>>
>> Please be sure to report any bugs at
>> https://github.com/ldc-developers/ldc/issues, and feel free to drop by
>> at the digitalmars.D.ldc forums
>> (http://forum.dlang.org/group/digitalmars.D.ldc) for any questions or
>> comments.
>>
>> Thanks to everybody involved in making this happen!
>>
>> Regards,
>> Kai
>
> The homebrew package is now up to date with this. Cheers for all the work.

both `brew install ldc` and `brew install ldc --devel` just install 0.14.0. what do i have to do to geht the 0.15.1 release ?
April 09, 2015
On Thursday, 9 April 2015 at 07:48:32 UTC, extrawurst wrote:
> On Monday, 15 December 2014 at 21:10:20 UTC, John Colvin wrote:
>> On Monday, 15 December 2014 at 05:42:45 UTC, Kai Nacke wrote:
>>> Hi everyone!
>>>
>>> On behalf of the LDC team I am proud to announce the LDC 0.15.1 release!
>>> It is based on the 2.066.1 front-end and LLVM 3.1-3.5 (OS X: no support for 3.3).
>>>
>>> This is a really exciting release!
>>>
>>> Support for the PowerPC architecture has grown. Linux/PPC64 Little Endian is now usable, including garbage collector support. Linux/PPC32 compiles out of the box and can run simple application. There is still lot to do, though.
>>>
>>> Even more exciting this release comes with the first official development snapshot of a Win64 compiler targetting the MS C Runtime. Thanks to Trass3r and kinke for their active development! Please note that this version requires LLVM 3.6 (current development version).
>>>
>>> Solaris/x86 is a new supported platform. I added the missing druntime implementation. If you are using Solaris please try and give feedback!
>>>
>>> Be sure to read the preliminary change log at the GitHub release page which also has the package download links:
>>> https://github.com/ldc-developers/ldc/releases/tag/v0.15.1
>>>
>>> MD5 checksums for the release packages:
>>>
>>> 7cd280c9d73218360900cb89723f1050 ldc-0.15.1-src.tar.gz
>>> 629e974d1dc02e7015cc182a5c724adc ldc2-0.15.1-linux-x86.tar.gz
>>> d9d590a943f3af9616cfa793681d9d3d ldc2-0.15.1-linux-x86.tar.xz
>>> 0e96c0cf918b0d6eb94e97ba1fc48cdc ldc2-0.15.1-linux-x86_64.tar.gz
>>> 72c67a87cd695d0253581e7aa4d1d84d ldc2-0.15.1-linux-x86_64.tar.xz
>>> 1f56113d8c5685a6b8ecda84babe0029 ldc2-0.15.1-mingw-x86.7z
>>> 94e14555558743afe096c7f1a1d6c152 ldc2-0.15.1-mingw-x86.zip
>>> 3aa63a0d6133dc2aadf7f70783814b56 ldc2-0.15.1-osx-x86_64.tar.gz
>>> 3c1a1da3ef639f1ee46e0146af73a81d ldc2-0.15.1-osx-x86_64.tar.xz
>>> 3ab78287729a5c94f0347433ef98534f ldc2-0.15.1-win64-msvc.zip
>>>
>>> Regarding the binaries:
>>> The Linux binaries are built on Ubuntu 12.04 LTS with gcc 4.8.x and LLVM 3.5. They work on Ubuntu 12.04 LTS (or later) without installing additional software.
>>>
>>> As always, the Win32/MinGW packages require a recent version of the mingw-w64 toolchain, see http://wiki.dlang.org/Building_LDC_on_MinGW_x86 for details. The package is build with i686-4.9.1-release-posix-dwarf-rt_v3-rev1 downloaded with the mingw installer.
>>>
>>> The Win64 MSVC version is still considered alpha quality. It is built with VS2013 against a snapshot of LLVM 3.6. Both builds are debug build.
>>>
>>> Please be sure to report any bugs at
>>> https://github.com/ldc-developers/ldc/issues, and feel free to drop by
>>> at the digitalmars.D.ldc forums
>>> (http://forum.dlang.org/group/digitalmars.D.ldc) for any questions or
>>> comments.
>>>
>>> Thanks to everybody involved in making this happen!
>>>
>>> Regards,
>>> Kai
>>
>> The homebrew package is now up to date with this. Cheers for all the work.
>
> both `brew install ldc` and `brew install ldc --devel` just install 0.14.0. what do i have to do to geht the 0.15.1 release ?

ok ignore me, i forgot to `brew update` befor
April 09, 2015
On Thursday, 9 April 2015 at 07:55:47 UTC, extrawurst wrote:
> On Thursday, 9 April 2015 at 07:48:32 UTC, extrawurst wrote:
>> On Monday, 15 December 2014 at 21:10:20 UTC, John Colvin wrote:
>>> On Monday, 15 December 2014 at 05:42:45 UTC, Kai Nacke wrote:
>>>> Hi everyone!
>>>>
>>>> On behalf of the LDC team I am proud to announce the LDC 0.15.1 release!
>>>> It is based on the 2.066.1 front-end and LLVM 3.1-3.5 (OS X: no support for 3.3).
>>>>
>>>> This is a really exciting release!
>>>>
>>>> Support for the PowerPC architecture has grown. Linux/PPC64 Little Endian is now usable, including garbage collector support. Linux/PPC32 compiles out of the box and can run simple application. There is still lot to do, though.
>>>>
>>>> Even more exciting this release comes with the first official development snapshot of a Win64 compiler targetting the MS C Runtime. Thanks to Trass3r and kinke for their active development! Please note that this version requires LLVM 3.6 (current development version).
>>>>
>>>> Solaris/x86 is a new supported platform. I added the missing druntime implementation. If you are using Solaris please try and give feedback!
>>>>
>>>> Be sure to read the preliminary change log at the GitHub release page which also has the package download links:
>>>> https://github.com/ldc-developers/ldc/releases/tag/v0.15.1
>>>>
>>>> MD5 checksums for the release packages:
>>>>
>>>> 7cd280c9d73218360900cb89723f1050 ldc-0.15.1-src.tar.gz
>>>> 629e974d1dc02e7015cc182a5c724adc ldc2-0.15.1-linux-x86.tar.gz
>>>> d9d590a943f3af9616cfa793681d9d3d ldc2-0.15.1-linux-x86.tar.xz
>>>> 0e96c0cf918b0d6eb94e97ba1fc48cdc ldc2-0.15.1-linux-x86_64.tar.gz
>>>> 72c67a87cd695d0253581e7aa4d1d84d ldc2-0.15.1-linux-x86_64.tar.xz
>>>> 1f56113d8c5685a6b8ecda84babe0029 ldc2-0.15.1-mingw-x86.7z
>>>> 94e14555558743afe096c7f1a1d6c152 ldc2-0.15.1-mingw-x86.zip
>>>> 3aa63a0d6133dc2aadf7f70783814b56 ldc2-0.15.1-osx-x86_64.tar.gz
>>>> 3c1a1da3ef639f1ee46e0146af73a81d ldc2-0.15.1-osx-x86_64.tar.xz
>>>> 3ab78287729a5c94f0347433ef98534f ldc2-0.15.1-win64-msvc.zip
>>>>
>>>> Regarding the binaries:
>>>> The Linux binaries are built on Ubuntu 12.04 LTS with gcc 4.8.x and LLVM 3.5. They work on Ubuntu 12.04 LTS (or later) without installing additional software.
>>>>
>>>> As always, the Win32/MinGW packages require a recent version of the mingw-w64 toolchain, see http://wiki.dlang.org/Building_LDC_on_MinGW_x86 for details. The package is build with i686-4.9.1-release-posix-dwarf-rt_v3-rev1 downloaded with the mingw installer.
>>>>
>>>> The Win64 MSVC version is still considered alpha quality. It is built with VS2013 against a snapshot of LLVM 3.6. Both builds are debug build.
>>>>
>>>> Please be sure to report any bugs at
>>>> https://github.com/ldc-developers/ldc/issues, and feel free to drop by
>>>> at the digitalmars.D.ldc forums
>>>> (http://forum.dlang.org/group/digitalmars.D.ldc) for any questions or
>>>> comments.
>>>>
>>>> Thanks to everybody involved in making this happen!
>>>>
>>>> Regards,
>>>> Kai
>>>
>>> The homebrew package is now up to date with this. Cheers for all the work.
>>
>> both `brew install ldc` and `brew install ldc --devel` just install 0.14.0. what do i have to do to geht the 0.15.1 release ?
>
> ok ignore me, i forgot to `brew update` befor

phew, you scared me there!

dmd, dub and dcd are also available through homebrew if you're interested.
April 09, 2015
On Thursday, 9 April 2015 at 08:21:06 UTC, John Colvin wrote:
> On Thursday, 9 April 2015 at 07:55:47 UTC, extrawurst wrote:
>> On Thursday, 9 April 2015 at 07:48:32 UTC, extrawurst wrote:
>>> On Monday, 15 December 2014 at 21:10:20 UTC, John Colvin wrote:
>>>> On Monday, 15 December 2014 at 05:42:45 UTC, Kai Nacke wrote:
>>>>> Hi everyone!
>>>>>
>>>>> On behalf of the LDC team I am proud to announce the LDC 0.15.1 release!
>>>>> It is based on the 2.066.1 front-end and LLVM 3.1-3.5 (OS X: no support for 3.3).
>>>>>
>>>>> This is a really exciting release!
>>>>>
>>>>> Support for the PowerPC architecture has grown. Linux/PPC64 Little Endian is now usable, including garbage collector support. Linux/PPC32 compiles out of the box and can run simple application. There is still lot to do, though.
>>>>>
>>>>> Even more exciting this release comes with the first official development snapshot of a Win64 compiler targetting the MS C Runtime. Thanks to Trass3r and kinke for their active development! Please note that this version requires LLVM 3.6 (current development version).
>>>>>
>>>>> Solaris/x86 is a new supported platform. I added the missing druntime implementation. If you are using Solaris please try and give feedback!
>>>>>
>>>>> Be sure to read the preliminary change log at the GitHub release page which also has the package download links:
>>>>> https://github.com/ldc-developers/ldc/releases/tag/v0.15.1
>>>>>
>>>>> MD5 checksums for the release packages:
>>>>>
>>>>> 7cd280c9d73218360900cb89723f1050 ldc-0.15.1-src.tar.gz
>>>>> 629e974d1dc02e7015cc182a5c724adc ldc2-0.15.1-linux-x86.tar.gz
>>>>> d9d590a943f3af9616cfa793681d9d3d ldc2-0.15.1-linux-x86.tar.xz
>>>>> 0e96c0cf918b0d6eb94e97ba1fc48cdc ldc2-0.15.1-linux-x86_64.tar.gz
>>>>> 72c67a87cd695d0253581e7aa4d1d84d ldc2-0.15.1-linux-x86_64.tar.xz
>>>>> 1f56113d8c5685a6b8ecda84babe0029 ldc2-0.15.1-mingw-x86.7z
>>>>> 94e14555558743afe096c7f1a1d6c152 ldc2-0.15.1-mingw-x86.zip
>>>>> 3aa63a0d6133dc2aadf7f70783814b56 ldc2-0.15.1-osx-x86_64.tar.gz
>>>>> 3c1a1da3ef639f1ee46e0146af73a81d ldc2-0.15.1-osx-x86_64.tar.xz
>>>>> 3ab78287729a5c94f0347433ef98534f ldc2-0.15.1-win64-msvc.zip
>>>>>
>>>>> Regarding the binaries:
>>>>> The Linux binaries are built on Ubuntu 12.04 LTS with gcc 4.8.x and LLVM 3.5. They work on Ubuntu 12.04 LTS (or later) without installing additional software.
>>>>>
>>>>> As always, the Win32/MinGW packages require a recent version of the mingw-w64 toolchain, see http://wiki.dlang.org/Building_LDC_on_MinGW_x86 for details. The package is build with i686-4.9.1-release-posix-dwarf-rt_v3-rev1 downloaded with the mingw installer.
>>>>>
>>>>> The Win64 MSVC version is still considered alpha quality. It is built with VS2013 against a snapshot of LLVM 3.6. Both builds are debug build.
>>>>>
>>>>> Please be sure to report any bugs at
>>>>> https://github.com/ldc-developers/ldc/issues, and feel free to drop by
>>>>> at the digitalmars.D.ldc forums
>>>>> (http://forum.dlang.org/group/digitalmars.D.ldc) for any questions or
>>>>> comments.
>>>>>
>>>>> Thanks to everybody involved in making this happen!
>>>>>
>>>>> Regards,
>>>>> Kai
>>>>
>>>> The homebrew package is now up to date with this. Cheers for all the work.
>>>
>>> both `brew install ldc` and `brew install ldc --devel` just install 0.14.0. what do i have to do to geht the 0.15.1 release ?
>>
>> ok ignore me, i forgot to `brew update` befor
>
> phew, you scared me there!
>
> dmd, dub and dcd are also available through homebrew if you're interested.

sorry for the fuss :P
I do not used brew to install anything D related lately thats why I totally forgot to brew-update.
Anyhow I needed ldc locally due to a very strange regression in ldc 0.15.1 when building a totally simple thin binding for a c-lib: https://github.com/Extrawurst/DerelictImgui

The issue I filed for it is here: https://github.com/ldc-developers/ldc/issues/893

And my change to work around that issue is here: https://github.com/Extrawurst/DerelictImgui/commit/39eac92375d83607a65bdce7b49fd26af1193a9f#diff-a5f2120e8748713379c39d1f8ecb4be7R265

to get that workaround done i needed to have an LDC locally ;)
1 2 3 4 5
Next ›   Last »