www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Release D 2.097.0

reply Martin Nowak <code dawg.eu> writes:
Glad to announce D 2.097.0, ♥ to the 54 contributors.

This release comes with a new `std.sumtype` packcage, support for 
`while (auto n = expression)`, an overhauled formatting package, 
and many more changes.

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

-Martin
Jun 05
next sibling parent evilrat <evilrat666 gmail.com> writes:
On Saturday, 5 June 2021 at 10:19:47 UTC, Martin Nowak wrote:
 Glad to announce D 2.097.0, ♥ to the 54 contributors.

 This release comes with a new `std.sumtype` packcage, support 
 for `while (auto n = expression)`, an overhauled formatting 
 package, and many more changes.

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

 -Martin
Nice release. https://dlang.org/changelog/2.097.0.html#pragma-mangle-aggregate Does this means we will get more STL goodies soon?
Jun 05
prev sibling next sibling parent FeepingCreature <feepingcreature gmail.com> writes:
On Saturday, 5 June 2021 at 10:19:47 UTC, Martin Nowak wrote:
 Glad to announce D 2.097.0, ♥ to the 54 contributors.

 This release comes with a new `std.sumtype` packcage, support 
 for `while (auto n = expression)`, an overhauled formatting 
 package, and many more changes.

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

 -Martin
``` Nullable!int ni = 5.nullable; int i = ni; ``` ``` test.d(5): Error: cannot implicitly convert expression `ni` of type `Nullable!int` to `int` ``` F***ing finally.
Jun 05
prev sibling parent reply evilrat <evilrat666 gmail.com> writes:
On Saturday, 5 June 2021 at 10:19:47 UTC, Martin Nowak wrote:
 Glad to announce D 2.097.0, ♥ to the 54 contributors.

 This release comes with a new `std.sumtype` packcage, support 
 for `while (auto n = expression)`, an overhauled formatting 
 package, and many more changes.

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

 -Martin
Windows installer is broken. I have install target path excluded from Windows Defender anti virus checks, yet after the installation it only contains .bat files, uninstaller.exe, dmd2/windows/lib64 and lib32mscoff, but no bin and sources.
Jun 05
next sibling parent MoonlightSentinel <moonlightsentinel disroot.org> writes:
On Saturday, 5 June 2021 at 13:00:05 UTC, evilrat wrote:
 Windows installer is broken.

 I have install target path excluded from Windows Defender anti 
 virus checks, yet after the installation it only contains .bat 
 files, uninstaller.exe, dmd2/windows/lib64 and lib32mscoff, but 
 no bin and sources.
Weird but it seems to be an issue with your setup. The installer worked perfectly fine on my Win10 installation.
Jun 05
prev sibling parent reply Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Saturday, 5 June 2021 at 13:00:05 UTC, evilrat wrote:
 Windows installer is broken.

 I have install target path excluded from Windows Defender anti 
 virus checks, yet after the installation it only contains .bat 
 files, uninstaller.exe, dmd2/windows/lib64 and lib32mscoff, but 
 no bin and sources.
I am having issues as well, but I don't think the installer is at fault: I see the `C:\D\dmd2` directory get filled as the installer progresses, then files just disappear. It doesn't seem to be consistent though. After failure I tried with `dmd-2.096.1.exe` and the same thing happened, whereas it had installed fine before. I tried `dmd-2.097.0.exe` and this time the whole directory got wiped. I tried again and it installed fine. Windows 10 Pro N version 20H2 build 19042.985. I suspect MS cloud security scan. -- Bastiaan.
Jun 07
parent reply Martin Nowak <code dawg.eu> writes:
On Monday, 7 June 2021 at 08:51:52 UTC, Bastiaan Veelo wrote:
 I am having issues as well, but I don't think the installer is 
 at fault: I see the `C:\D\dmd2` directory get filled as the 
 installer progresses, then files just disappear. It doesn't 
 seem to be consistent though. After failure I tried with 
 `dmd-2.096.1.exe` and the same thing happened, whereas it had 
 installed fine before. I tried `dmd-2.097.0.exe` and this time 
 the whole directory got wiped. I tried again and it installed 
 fine.

 Windows 10 Pro N version 20H2 build 19042.985.

 I suspect MS cloud security scan.

 -- Bastiaan.
Maybe we could recruit someone to replace the dated NSIS installer with a native msi installer. https://issues.dlang.org/show_bug.cgi?id=15375 https://en.wikipedia.org/wiki/List_of_installation_software#Windows Don't have much of a clue about Windows nowadays, maybe there are more suitable alternatives.
Jun 17
next sibling parent Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Friday, 18 June 2021 at 06:14:03 UTC, Martin Nowak wrote:
 Maybe we could recruit someone to replace the dated NSIS 
 installer with a native msi installer.
 https://issues.dlang.org/show_bug.cgi?id=15375
 https://en.wikipedia.org/wiki/List_of_installation_software#Windows

 Don't have much of a clue about Windows nowadays, maybe there 
 are more suitable alternatives.
What would be the most suitable alternative in my eyes is for dub, based on [tool chain requirements](https://dub.pm/package-format-json.html#toolchain-requirements) specified in `dub.json`, to install and select compilers. Cross platform and cross vendor. I know there are compiler version managers, but I think since dub can check versions of packages and install packages, and can check compiler versions, it is only natural that it should also be able to install compilers. Above all, it would be just so convenient. This way a compiler upgrade becomes part of your commit history. You can test (beta) compiler releases in a separate branch, resolve deprecations comfortably, have your CI run all tests, all without interfering with main development. You push the change and all team members upgrade their compilers automatically without even noticing it, and certainly without surprises. And any number of years in the future, when you pick up an old project that has been dormant, it still compiles flawlessly because dub downgrades the compiler automatically. Come to think of it, maybe there should be an additional package category that provides build tools that can be run by dub without `dub run`, such as `dfmt`, `dpp`, `pegged`, and compilers and linters. — Bastiaan.
Jun 18
prev sibling next sibling parent Paulo Pinto <pjmlp progtools.org> writes:
On Friday, 18 June 2021 at 06:14:03 UTC, Martin Nowak wrote:
 On Monday, 7 June 2021 at 08:51:52 UTC, Bastiaan Veelo wrote:
 I am having issues as well, but I don't think the installer is 
 at fault: I see the `C:\D\dmd2` directory get filled as the 
 installer progresses, then files just disappear. It doesn't 
 seem to be consistent though. After failure I tried with 
 `dmd-2.096.1.exe` and the same thing happened, whereas it had 
 installed fine before. I tried `dmd-2.097.0.exe` and this time 
 the whole directory got wiped. I tried again and it installed 
 fine.

 Windows 10 Pro N version 20H2 build 19042.985.

 I suspect MS cloud security scan.

 -- Bastiaan.
Maybe we could recruit someone to replace the dated NSIS installer with a native msi installer. https://issues.dlang.org/show_bug.cgi?id=15375 https://en.wikipedia.org/wiki/List_of_installation_software#Windows Don't have much of a clue about Windows nowadays, maybe there are more suitable alternatives.
Speaking with my Windwos dev hat on, the suitable alternative would be to use MSIX package files, the replacement for MSI files, that date back to Windows 2000. https://docs.microsoft.com/en-us/windows/msix/packaging-tool/tool-overview In what concerns typical Windows development workflows, its use is quite simple for basic use cases, namely add a MSIX project to solution, configure the manifest file and add as dependencies the .NET and C++ projects whose binaries are going to be part of MSIX. With something like D I expect a bit more convoluted process. https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-third-party-installer
Jun 19
prev sibling parent reply pilger <abcd dcba.com> writes:
On Friday, 18 June 2021 at 06:14:03 UTC, Martin Nowak wrote:
 Don't have much of a clue about Windows nowadays, maybe there 
 are more suitable alternatives.
windows is my main development platform and personally i have no need for the installer at all- i just grab the 7z. however i would use the chocolatey package exclusively instead if it would be maintained more timely. https://community.chocolatey.org/packages/dmd i haven't used the new windows package manager by microsoft yet. https://github.com/microsoft/winget-cli
Jun 19
parent reply notna <notna.remove.this ist-einmalig.de> writes:
On Saturday, 19 June 2021 at 13:37:15 UTC, pilger wrote:
 windows is my main development platform and personally i have 
 no need for the installer at all- i just grab the 7z.

 however i would use the chocolatey package exclusively instead 
 if it would be maintained more timely.
Well, you may want to try [scoop](https://scoop.sh/). The so called manifests are updated daily. Once installed, just run ``` scoop install dmd ``` and at anytime ``` scoop update dmd ```
Jun 20
parent reply pilger <abcd dcba.com> writes:
On Sunday, 20 June 2021 at 18:13:56 UTC, notna wrote:
 Well, you may want to try [scoop](https://scoop.sh/). The so 
 called manifests are updated daily.
thanx for making me aware of this. not only is this my favourite way to update dmd/ldc now but i also migrated completely from choco to scoop.
Jun 21
parent notna <notna.remove.this ist-einmalig.de> writes:
On Monday, 21 June 2021 at 15:21:01 UTC, pilger wrote:
 On Sunday, 20 June 2021 at 18:13:56 UTC, notna wrote:
 Well, you may want to try [scoop](https://scoop.sh/). The so 
 called manifests are updated daily.
thanx for making me aware of this. not only is this my favourite way to update dmd/ldc now but i also migrated completely from choco to scoop.
thanks for your feedback && happy to hear. #metoo ;)
Jun 23