www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Release D 2.076.0

reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Glad to announce D 2.076.0.

This release comes with static foreach, many -betterC enhancements,
various phobos additions, an -mcpu=avx2 switch, and lots of bugfixes.

Thanks to everyone involved in this 👏.

http://dlang.org/download.html
http://dlang.org/changelog/2.076.0.html

- -Martin
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpzRNrTw0HqEtE8TmsnOBFhK7GTkFAlmpaK4ACgkQsnOBFhK7
GTlxPg//YaOkpg2uMiUWAav5cpfoiRA1cyZpsK5IaW1dKIoe7kMSk6QBINSucvCS
7wylRCkgA5PjMqwt3D+SM/+WYR5AVXfhaaGtl2vBDqyCJmP5emYkeTmj5MmYFRWZ
/2UIslPtuAE3lTZhG2U/bQtUeiyCKbnz44HTNU00At+Ak39HBZx3MgTrkM7nDAAS
ZJusWgR4x/omOnF4+bcmBX76seUJOhoe1PZaqIhx6n8lumRxE89zQS9Z5Cmzkv4R
8+Q1OF4q2Aks3lUWxMtOR3klAsOnClgNpSYkmW2KYhZ/2O90KDASmjYny9dlTYSE
5B3yHwjNNK8zEa48VlIluckNokr4BjOfCU9hBfCgAvFisggj3Pn0K+X+yfTFn4Sk
KDMWpzD5gPbTScHW88FbTKoYQF0fFWQ07GnYxWSpRl35xBV9hy3PO1vxtOU4qCiG
YklJZxr0twJzGLa7SXEDjY8Y38OBwYoUPFL+4GTx9zWNOGvJXEUpl2OTHywFD6da
C+nOtSln5c0xMbhGC+rahrGgVVaFOIq8oRyJL6XzFgXzvlttGvAgkrd/B5ZZricG
ii507ZZVWB7Lpgktxb+4hBG0nt745SHgd4WRCe2JA6QVQuAPdScLKaFJaejLkrx1
A7kGL3n3DN9HHGqD8AByaR+pmRVt3qxpc19TzAJt/JI/gNnVTA8=
=RRqA
-----END PGP SIGNATURE-----
Sep 01 2017
next sibling parent reply Mike Parker <aldacron gmail.com> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.
Blogged and reddited: https://dlang.org/blog/2017/09/01/dmd-2-076-0-released/ https://www.reddit.com/r/programming/comments/6xf77f/version_20760_of_dmd_the_d_reference_compiler/
Sep 01 2017
parent reply Joakim <dlang joakim.fea.st> writes:
On Friday, 1 September 2017 at 15:24:57 UTC, Mike Parker wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.
Blogged and reddited: https://dlang.org/blog/2017/09/01/dmd-2-076-0-released/ https://www.reddit.com/r/programming/comments/6xf77f/version_20760_of_dmd_the_d_reference_compiler/
Nice writeup of the major features of this release, think it really helps. Typo in blog post - dramtically Also, changelog still lists this as a beta, to be released.
Sep 01 2017
parent reply Mike Parker <aldacron gmail.com> writes:
On Friday, 1 September 2017 at 16:16:03 UTC, Joakim wrote:

 Nice writeup of the major features of this release, think it 
 really helps.

 Typo in blog post - dramtically
Good catch. Thanks!
 Also, changelog still lists this as a beta, to be released.
There was an issue with rebuilding the site, but a fix is imminent.
Sep 01 2017
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 09/01/2017 09:34 AM, Mike Parker wrote:

 Good catch. Thanks!
Great piece Mike! One more correction: It says "to the conv function template" but the code uses to!uint. Ali
Sep 01 2017
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 09/01/2017 09:42 AM, Ali Çehreli wrote:

 One more correction: It says "to the conv function template" but the
 code uses to!uint.
Mike doesn't make it easy: How about changing "comv" to "conv" in the "correction". :o) Ali
Sep 01 2017
parent Mike Parker <aldacron gmail.com> writes:
On Friday, 1 September 2017 at 17:49:59 UTC, Ali Çehreli wrote:
 On 09/01/2017 09:42 AM, Ali Çehreli wrote:

 One more correction: It says "to the conv function template"
but the
 code uses to!uint.
Mike doesn't make it easy: How about changing "comv" to "conv" in the "correction". :o) Ali
Double thanks, Ali!
Sep 01 2017
prev sibling next sibling parent reply Ali <fakeemail example.com> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 switch, 
 and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
static foreach is so nice, it is implemented twice :)
Sep 01 2017
parent reply Ali <fakeemail example.com> writes:
On Friday, 1 September 2017 at 17:33:26 UTC, Ali wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 http://dlang.org/changelog/2.076.0.html

 - -Martin
static foreach is so nice, it is implemented twice :)
to be clear - Implement DIP 1010 - Static foreach is mentioned twice in the changelog, as points 1 and 6
Sep 01 2017
parent jmh530 <john.michael.hall gmail.com> writes:
On Friday, 1 September 2017 at 21:29:08 UTC, Ali wrote:
 to be clear
 - Implement DIP 1010 - Static foreach
 is mentioned twice in the changelog, as points 1 and 6
BetterC is also on there twice.
Sep 01 2017
prev sibling next sibling parent Yuxuan Shui <yshuiv7 gmail.com> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 switch, 
 and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
" -betterC enhancements " is listed twice in the changelog
Sep 01 2017
prev sibling next sibling parent reply Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 switch, 
 and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
First "static foreach" bug report https://issues.dlang.org/show_bug.cgi?id=17800
Sep 01 2017
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 02.09.2017 08:51, Ilya Yaroshenko wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC enhancements, 
 various phobos additions, an -mcpu=avx2 switch, and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html http://dlang.org/changelog/2.076.0.html

 - -Martin
First "static foreach" bug report https://issues.dlang.org/show_bug.cgi?id=17800
Thanks, but actually it is the second one. ;) https://issues.dlang.org/show_bug.cgi?id=17688 I'll get to work.
Sep 04 2017
next sibling parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 04.09.2017 11:00, Timon Gehr wrote:
 On 02.09.2017 08:51, Ilya Yaroshenko wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC enhancements, 
 various phobos additions, an -mcpu=avx2 switch, and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html http://dlang.org/changelog/2.076.0.html

 - -Martin
First "static foreach" bug report https://issues.dlang.org/show_bug.cgi?id=17800
Thanks, but actually it is the second one. ;) https://issues.dlang.org/show_bug.cgi?id=17688 I'll get to work.
https://github.com/dlang/dmd/pull/7118
Sep 04 2017
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Monday, 4 September 2017 at 10:06:33 UTC, Timon Gehr wrote:
 On 04.09.2017 11:00, Timon Gehr wrote:
 On 02.09.2017 08:51, Ilya Yaroshenko wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak 
 wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 
 switch, and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
First "static foreach" bug report https://issues.dlang.org/show_bug.cgi?id=17800
Thanks, but actually it is the second one. ;) https://issues.dlang.org/show_bug.cgi?id=17688 I'll get to work.
https://github.com/dlang/dmd/pull/7118
Thanks for the great work on implementing this feature and addressing problems so quickly! Would you be able to also address https://issues.dlang.org/show_bug.cgi?id=17798?
Sep 04 2017
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 04.09.2017 12:46, Petar Kirov [ZombineDev] wrote:
 Would you be able to also address 
 https://issues.dlang.org/show_bug.cgi?id=17798?
https://github.com/dlang/dlang.org/pull/1884 (Any help with getting it to build appreciated -- even the base 'stable' branch does not compile on my machine.)
Sep 04 2017
parent Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Monday, 4 September 2017 at 19:49:23 UTC, Timon Gehr wrote:
 On 04.09.2017 12:46, Petar Kirov [ZombineDev] wrote:
 Would you be able to also address 
 https://issues.dlang.org/show_bug.cgi?id=17798?
https://github.com/dlang/dlang.org/pull/1884 (Any help with getting it to build appreciated -- even the base 'stable' branch does not compile on my machine.)
Building spec part of the website should be as easy as: git clone https://github.com/dlang/dmd git clone https://github.com/dlang/dlang.org cd dlang.org make -f posix.mak html On a Linux system. If that doesn't work can you post the error you got? Probably better to keep the discussion on the pull request.
Sep 05 2017
prev sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 04.09.2017 11:00, Timon Gehr wrote:
 On 02.09.2017 08:51, Ilya Yaroshenko wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC enhancements, 
 various phobos additions, an -mcpu=avx2 switch, and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html http://dlang.org/changelog/2.076.0.html

 - -Martin
First "static foreach" bug report https://issues.dlang.org/show_bug.cgi?id=17800
Thanks, but actually it is the second one. ;) https://issues.dlang.org/show_bug.cgi?id=17688 I'll get to work.
I've added two more: https://issues.dlang.org/show_bug.cgi?id=17812 https://issues.dlang.org/show_bug.cgi?id=17814
Sep 07 2017
parent Timon Gehr <timon.gehr gmx.ch> writes:
On 07.09.2017 09:48, Rainer Schuetze wrote:
 
 I've added two more:
 
 https://issues.dlang.org/show_bug.cgi?id=17812
https://github.com/dlang/dmd/pull/7127
 https://issues.dlang.org/show_bug.cgi?id=17814
https://github.com/dlang/dmd/pull/7126
Sep 07 2017
prev sibling next sibling parent Joakim <dlang joakim.fea.st> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 switch, 
 and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
Just downloaded it, the linux version reports as v2.076.0-dirty, probably want to get rid of the "dirty" tag for an official release.
Sep 03 2017
prev sibling next sibling parent reply nkm1 <t4nk074 openmailbox.org> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 This release comes with static foreach
Great! I noticed one small issue, though. When compiled with warnings, it warns about unreachable code when static foreach in a switch, for example: void trySwitch(int x) { import std.stdio : writeln; SWITCH: final switch (x) { static foreach (y; [ 1, 2, 3 ]) { case y: writeln("found"); break SWITCH; } } } void main(string[] args) { import std.conv : to; trySwitch(args.length > 1 ? to!int(args[1]) : 1); } Compilation: $ dmd -wi ./main.d ./main.d(5): Warning: statement is not reachable ./main.d(5): Warning: statement is not reachable ./main.d(5): Warning: statement is not reachable ./main.d(5): Warning: statement is not reachable It works, though, so I guess it's not a bug per se.
Sep 04 2017
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 04.09.2017 16:05, nkm1 wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 This release comes with static foreach
Great! I noticed one small issue, though. When compiled with warnings, it warns about unreachable code when static foreach in a switch, ... It works, though, so I guess it's not a bug per se.
This is actually a bug. Thanks! https://issues.dlang.org/show_bug.cgi?id=17807
Sep 04 2017
parent Timon Gehr <timon.gehr gmx.ch> writes:
On 04.09.2017 21:55, Timon Gehr wrote:
 On 04.09.2017 16:05, nkm1 wrote:
 On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 This release comes with static foreach
Great! I noticed one small issue, though. When compiled with warnings, it warns about unreachable code when static foreach in a switch, ... It works, though, so I guess it's not a bug per se.
This is actually a bug. Thanks! https://issues.dlang.org/show_bug.cgi?id=17807
https://github.com/dlang/dmd/pull/7120 (This bug was actually not within the static foreach implementation.)
Sep 04 2017
prev sibling next sibling parent reply Mario =?UTF-8?B?S3LDtnBsaW4=?= <linkrope github.com> writes:
What's the problem with `TypeInfo_Typedef`?

https://github.com/dlang/undeaD shows "build:failing".
https://travis-ci.org/dlang/undeaD/jobs/270947584 shows:

src/undead/doformat.d(934,23): Error: undefined identifier 
TypeInfo_Typedef
Sep 04 2017
parent Jacob Carlborg <doob me.com> writes:
On 2017-09-04 16:34, Mario Kröplin wrote:
 What's the problem with `TypeInfo_Typedef`?
 
 https://github.com/dlang/undeaD shows "build:failing".
 https://travis-ci.org/dlang/undeaD/jobs/270947584 shows:
 
 src/undead/doformat.d(934,23): Error: undefined identifier TypeInfo_Typedef
typedef has been removed from the language since a couple (?) of release ago. -- /Jacob Carlborg
Sep 05 2017
prev sibling next sibling parent Vadim Lopatin <coolreader.org gmail.com> writes:
On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:
 Glad to announce D 2.076.0.

 This release comes with static foreach, many -betterC 
 enhancements, various phobos additions, an -mcpu=avx2 switch, 
 and lots of bugfixes.

 Thanks to everyone involved in this 👏.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.076.0.html

 - -Martin
There is an announce thread on popular Russian resource linux.org.ru https://www.linux.org.ru/news/development/13651713 Everyone who knows Russian, please join.
Sep 04 2017
prev sibling parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
This is the first time I'm trying to install with the install script as 
shown on the download page but it fails.

$ curl -fsS https://dlang.org/install.sh | bash -s dmd
Downloading and unpacking 
http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz

100.0%
Invalid signature 
http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz.sig

Am I using it correctly?

Ali
Sep 06 2017
next sibling parent Antonio Corbi <notvalid ggmail.com> writes:
On Thursday, 7 September 2017 at 00:53:29 UTC, Ali Çehreli wrote:
 This is the first time I'm trying to install with the install 
 script as shown on the download page but it fails.

 $ curl -fsS https://dlang.org/install.sh | bash -s dmd
 Downloading and unpacking 
 http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz

 Invalid signature 
 http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz.sig

 Am I using it correctly?
I think so, it works for me. A. Corbi
Sep 07 2017
prev sibling parent Martin Nowak <code+news.digitalmars dawg.eu> writes:
On 09/07/2017 02:53 AM, Ali Çehreli wrote:
 This is the first time I'm trying to install with the install script as
 shown on the download page but it fails.
 
 $ curl -fsS https://dlang.org/install.sh | bash -s dmd
 Downloading and unpacking
 http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz

 100.0%
 Invalid signature
 http://downloads.dlang.org/releases/2.x/2.076.0/dmd.2.076.0.linux.tar.xz.sig
The script downloads https://dlang.org/d-keyring.gpg and verifies the GPG signature of the download against that keyring. So either there was a download error on the file (or signature), or there is some bug in the way we use your local gpg/gpg2. Could you check again please?
Oct 01 2017