www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Release D 2.101.0

reply Iain Buclaw <ibuclaw gdcproject.org> writes:
Glad to announce D 2.101.0, ♥ to the 63 contributors.

This release comes with shortened method syntax enabled by 
default, new bit-field support added as a preview feature, a new 
`std.typecons.SafeRefCounted` type that can be used in ` safe`, 
numerous improvements to dub (including colorized output), and 
many more.

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

-Iain
on behalf of the Dlang Core Team
Nov 15 2022
next sibling parent M.M. <matus email.cz> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
fantastic! thank you everyone that contributed or otherwise involved.
Nov 15 2022
prev sibling next sibling parent Mathias LANG <geod24 gmail.com> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.

 This release comes with shortened method syntax enabled by 
 default, new bit-field support added as a preview feature, a 
 new `std.typecons.SafeRefCounted` type that can be used in 
 ` safe`, numerous improvements to dub (including colorized 
 output), and many more.

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

 -Iain
 on behalf of the Dlang Core Team
Thanks a lot for getting this through the finish line! Release management is an essential part of our ecosystem and a thankless job. And thanks a lot to Martin Nowak for his many years of stewardship and the much improved process he pioneered.
Nov 15 2022
prev sibling next sibling parent reply zjh <fqbqrr 163.com> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
 ...
Thank you very much, but can we have commands like `'dmd update'` to update dmd directly?
Nov 15 2022
parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
On 11/15/22 7:41 PM, zjh wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
 ...
Thank you very much, but can we have commands like `'dmd update'` to update dmd directly?
https://github.com/jacob-carlborg/dvm `dvm install 2.101.0` -Steve
Nov 15 2022
parent reply zjh <fqbqrr 163.com> writes:
On Wednesday, 16 November 2022 at 00:44:24 UTC, Steven 
Schveighoffer wrote:

 `dvm install 2.101.0`

 -Steve
I think it would be better to have an official `dmd update`.
Nov 15 2022
parent zjh <fqbqrr 163.com> writes:
On Wednesday, 16 November 2022 at 00:57:20 UTC, zjh wrote:

 I think it would be better to have an official `dmd update`.
The 101.0 version has been `released` last time.
Nov 15 2022
prev sibling next sibling parent reply torhu <torhu yahoo.com> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
Nov 15 2022
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 16/11/2022 2:13 PM, torhu wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
Yeah, you'll want to use dustmite. Hopefully the project isn't too big.
Nov 15 2022
parent reply torhu <torhu yahoo.com> writes:
On Wednesday, 16 November 2022 at 01:21:12 UTC, rikki cattermole 
wrote:
 Yeah, you'll want to use dustmite. Hopefully the project isn't 
 too big.
I haven't figured out how to use DustMite, but the error goes away when I compile one file at a time, for some reason.
Nov 27 2022
parent SHOO <zan77137 nifty.com> writes:
On Sunday, 27 November 2022 at 19:09:16 UTC, torhu wrote:
 On Wednesday, 16 November 2022 at 01:21:12 UTC, rikki 
 cattermole wrote:
 Yeah, you'll want to use dustmite. Hopefully the project isn't 
 too big.
I haven't figured out how to use DustMite, but the error goes away when I compile one file at a time, for some reason.
Have you analyzed the phenomenon that failed with exit code -1073741795? I also found a project with the same problem, it's called Phobos... Here is a the last few lines of the detailed log (debug build and `-v` option enabled) with building Phobos: ``` ... ... ... function std.datetime.timezone.PosixTimeZone.utcToTZ function std.datetime.timezone.PosixTimeZone.tzToUTC function std.datetime.timezone.PosixTimeZone.getTimeZone symbol 000001F8F0EFE160 '__context' Sclass = SCbprel Ssymnum = 4 Sfl = FLbprel Sseg = 0 Soffset = xffffffffffffffec Sweight = 0 Sflags = x20004 Sxtrnnum = 0 Stype = 000001F8F0D2B5F0 Sl = 0000000000000000 Sr = 0000000000000000 Tty=mTYvolatile|TYint Tmangle=1 Tflags=x0 Tcount=1 Tsize=4 Tnext=0000000000000000 Assertion failed: 0, file src\dmd\backend\inliner.d, line 404 -1073740791 ``` In this example, the error code seems to have changed, perhaps due to a debug build.
Dec 03 2022
prev sibling parent reply Les De Ridder <dlang lesderid.net> writes:
On Wednesday, 16 November 2022 at 01:13:29 UTC, torhu wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
This seems to still be broken in 2.101.1 and is breaking my CI: <https://github.com/lesderid/keynavish/actions/runs/3789010705/jobs/6442404036>.
Dec 27 2022
next sibling parent reply Max Haughton <maxhaton gmail.com> writes:
On Tuesday, 27 December 2022 at 17:59:11 UTC, Les De Ridder wrote:
 On Wednesday, 16 November 2022 at 01:13:29 UTC, torhu wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw 
 wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
This seems to still be broken in 2.101.1 and is breaking my CI: <https://github.com/lesderid/keynavish/actions/runs/3789010705/jobs/6442404036>.
I'm happy to do some debugging if you can get us a reduced test case. If you need help getting a reduction do ask (e.g. for help with dustmite)
Dec 27 2022
parent reply Les De Ridder <dlang lesderid.net> writes:
On Tuesday, 27 December 2022 at 18:04:56 UTC, Max Haughton wrote:
 On Tuesday, 27 December 2022 at 17:59:11 UTC, Les De Ridder 
 wrote:
 On Wednesday, 16 November 2022 at 01:13:29 UTC, torhu wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw 
 wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
This seems to still be broken in 2.101.1 and is breaking my CI: <https://github.com/lesderid/keynavish/actions/runs/3789010705/jobs/6442404036>.
I'm happy to do some debugging if you can get us a reduced test case. If you need help getting a reduction do ask (e.g. for help with dustmite)
I've been able to reduce it to this: `void f() { import std.file : exists; exists(""); }` (or `void f() { import std; exists(""); }`) Create two files (`a.d` and `b.d`) with this code. Build with: `dmd.exe -m32 -inline -O a.d b.d` Removing any of the flags allows the compilation to proceed.
Dec 27 2022
parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Tuesday, 27 December 2022 at 19:22:41 UTC, Les De Ridder wrote:
 I've been able to reduce it to this:

 `void f() { import std.file : exists; exists(""); }`

 (or `void f() { import std; exists(""); }`)

 Create two files (`a.d` and `b.d`) with this code.

 Build with: `dmd.exe -m32 -inline -O a.d b.d`

 Removing any of the flags allows the compilation to proceed.
1. Raise a bug report 2. Use digger to bisect dmd and locate which change introduced it.
Dec 27 2022
parent Les De Ridder <dlang lesderid.net> writes:
On Wednesday, 28 December 2022 at 01:42:35 UTC, Iain Buclaw wrote:
 On Tuesday, 27 December 2022 at 19:22:41 UTC, Les De Ridder 
 wrote:
 I've been able to reduce it to this:

 `void f() { import std.file : exists; exists(""); }`

 (or `void f() { import std; exists(""); }`)

 Create two files (`a.d` and `b.d`) with this code.

 Build with: `dmd.exe -m32 -inline -O a.d b.d`

 Removing any of the flags allows the compilation to proceed.
1. Raise a bug report 2. Use digger to bisect dmd and locate which change introduced it.
Looks like it was already reported and fixed on `stable`: <https://issues.dlang.org/show_bug.cgi?id=23499>. Apologies for the noise.
Dec 27 2022
prev sibling parent torhu <torhu yahoo.com> writes:
On Tuesday, 27 December 2022 at 17:59:11 UTC, Les De Ridder wrote:
 On Wednesday, 16 November 2022 at 01:13:29 UTC, torhu wrote:
 On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw 
 wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.
For some reason my project build fails with this version, but only the x86 release build. Only tried it on Windows. This is the error, I'll post a bug report if I can narrow it down more: Error C:\prog\dmd\windows\bin\dmd.exe failed with exit code -1073741795.
This seems to still be broken in 2.101.1 and is breaking my CI: <https://github.com/lesderid/keynavish/actions/runs/3789010705/jobs/6442404036>.
I see the same thing, only the release build, and only x86, fails.
Dec 27 2022
prev sibling next sibling parent reply jmh530 <john.michael.hall gmail.com> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 Glad to announce D 2.101.0, ♥ to the 63 contributors.

 This release comes with shortened method syntax enabled by 
 default, new bit-field support added as a preview feature, a 
 new `std.typecons.SafeRefCounted` type that can be used in 
 ` safe`, numerous improvements to dub (including colorized 
 output), and many more.

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

 -Iain
 on behalf of the Dlang Core Team
Thanks again, but it doesn't look like the changelog is picking up everything. Granted, I'm not sure exactly when the deadline is, but I see a whole bunch of PRs merged from Walter on ImportC on the Github repo, but only one ImportC item listed in the changelog under DMD compiler fixes (and that looks like this is actually a druntime PR). The one after that seems to be a phobos bug fix.
Nov 16 2022
parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Wednesday, 16 November 2022 at 20:51:19 UTC, jmh530 wrote:
 Thanks again, but it doesn't look like the changelog is picking 
 up everything.
It really would help if you provide some bugzilla urls or PRs that you think should have been picked up.
 Granted, I'm not sure exactly when the deadline is, but I see a 
 whole bunch of PRs merged from Walter on ImportC on the Github 
 repo, but only one ImportC item listed in the changelog under 
 DMD compiler fixes (and that looks like this is actually a 
 druntime PR). The one after that seems to be a phobos bug fix.
Freeze was on 11th October.
Nov 16 2022
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 17 November 2022 at 00:25:19 UTC, Iain Buclaw wrote:
 On Wednesday, 16 November 2022 at 20:51:19 UTC, jmh530 wrote:
 Thanks again, but it doesn't look like the changelog is 
 picking up everything.
It really would help if you provide some bugzilla urls or PRs that you think should have been picked up. [snip]
I'm not sure what the typically gets picked up, but I had done the search at the link below: https://github.com/dlang/dmd/pulls?q=is%3Apr+is%3Amerged+ImportC+ and it didn't look like any of the recent bug fixes were listed on the changelog (I only see 23123 and 23340). So for instance: https://github.com/dlang/dmd/pull/14528 https://github.com/dlang/dmd/pull/14509 https://github.com/dlang/dmd/pull/14508 https://github.com/dlang/dmd/pull/14490 https://github.com/dlang/dmd/pull/14485 https://github.com/dlang/dmd/pull/14481 https://github.com/dlang/dmd/pull/14480
Nov 16 2022
parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Thursday, 17 November 2022 at 02:35:14 UTC, jmh530 wrote:
 I'm not sure what the typically gets picked up, but I had done 
 the search at the link below:
 https://github.com/dlang/dmd/pulls?q=is%3Apr+is%3Amerged+ImportC+
 and it didn't look like any of the recent bug fixes were listed 
 on the changelog (I only see 23123 and 23340).

 So for instance:
 https://github.com/dlang/dmd/pull/14528
 https://github.com/dlang/dmd/pull/14509
 https://github.com/dlang/dmd/pull/14508
 https://github.com/dlang/dmd/pull/14490
 https://github.com/dlang/dmd/pull/14485
 https://github.com/dlang/dmd/pull/14481
 https://github.com/dlang/dmd/pull/14480
I've just ran `rdmd -version=Contributors_Lib changed v2.100.2..v2.101.0` with my [hacked version of tools/changed.d](https://forum.dlang.org/post/jhmjyccxjxfrnboeaz s forum.dlang.org), and all of a sudden I get "209 fixed Bugzilla issues" from "72 contributors". My faith in git log retrieving correct information has plummeted. :-) I'll push the fixed generated list into dlang.org, thankfully we'll never have to deal with this again (unless - queue dramatic three-beat sting - phobos is merged into dmd/druntime too).
Nov 16 2022
parent jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 17 November 2022 at 07:13:38 UTC, Iain Buclaw wrote:
 [snip]
 I've just ran `rdmd -version=Contributors_Lib changed 
 v2.100.2..v2.101.0` with my [hacked version of 
 tools/changed.d](https://forum.dlang.org/post/jhmjyccxjxfrnboeaz
s forum.dlang.org), and all of a sudden I get "209 fixed Bugzilla issues" from
"72 contributors".  My faith in git log retrieving correct information has
plummeted. :-)

 I'll push the fixed generated list into dlang.org, thankfully 
 we'll never have to deal with this again (unless - queue 
 dramatic three-beat sting - phobos is merged into dmd/druntime 
 too).
Great, thanks!
Nov 17 2022
prev sibling next sibling parent surlymoor <surlymoor cock.li> writes:
On Tuesday, 15 November 2022 at 20:54:03 UTC, Iain Buclaw wrote:
 a new `std.typecons.SafeRefCounted` type that can be used in 
 ` safe`
Nice! Thank you, dukc. Excited to see dirEntries finally be safe with dip1000. God speed to the ones who figuring out the safe inference issue with borrow.
Nov 16 2022
prev sibling parent reply zoujiaqing <zoujiaqing gmail.com> writes:
Thank you!!!

When will it support Apple M1 processors?

My macbook has been unable to use D for months.
Dec 03 2022
next sibling parent max haughton <maxhaton gmail.com> writes:
On Saturday, 3 December 2022 at 19:17:59 UTC, zoujiaqing wrote:
 Thank you!!!

 When will it support Apple M1 processors?

 My macbook has been unable to use D for months.
LDC (and maybe even GCC) both work
Dec 03 2022
prev sibling next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 12/3/22 2:17 PM, zoujiaqing wrote:
 Thank you!!!
 
 When will it support Apple M1 processors?
 
 My macbook has been unable to use D for months.
I can use dmd and ldc on my M1. rosetta works great, and ldc supports arm. I have not tried gdc. -Steve
Dec 03 2022
prev sibling parent Guillaume Piolat <first.last spam.org> writes:
On Saturday, 3 December 2022 at 19:17:59 UTC, zoujiaqing wrote:
 Thank you!!!

 When will it support Apple M1 processors?

 My macbook has been unable to use D for months.
We've been shipping to M1 users for the last 2 years.
Dec 05 2022