digitalmars.D.announce - Beta 2.104.0
- Iain Buclaw (16/16) May 01 2023 Glad to announce the first beta for the 2.104.0 release, ♥ to the
- zjh (11/13) May 01 2023 [104](https://dlang.org/changelog/2.104.0.html)
- Iain Buclaw (7/24) May 02 2023 The keyword here in the changelog is: **would**; that is to say,
- anonymouse (92/94) May 09 2023 A couple days ago I ran into an issue that was solved by
- anonymouse (15/21) May 09 2023 Note: The same does not happen with LDC
- thinkunix (52/167) May 09 2023 I ran into the same issue in the bug you referenced,
- anonymouse (5/9) May 09 2023 I think that worked for you because although you have set mirstat
- anonymouse (3/14) May 09 2023 Also it might be a macOS specific issue since the original
- anonymouse (2/6) May 09 2023 Ignore that... Just saw your comment regard editing app.d
- jmh530 (5/13) May 10 2023 Does it matter if instead of importing mir-stat you use
- anonymouse (8/10) May 10 2023 Actually, it happens even when you don't import anything. As for
- Steven Schveighoffer (3/3) May 10 2023 This reminds me of an LDC bug fixed recently. I bet DMD suffers from a
- max haughton (4/8) May 10 2023 `MACOSX_DEPLOYMENT_TARGET` fixed it for me recently when I was
- anonymouse (5/9) May 10 2023 And it is. Just tried the workaround proposed (export
- FeepingCreature (10/13) May 10 2023 Tiny note of warning: `Rebindable` supports all types that it did
Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors. This release comes with 11 major changes, including: - In the compiler, User Defined Attributes now parse template arguments. - In the standard library, `std.typecons.Rebindable` now supports all types - In dub, new properties `cSourcePaths` and `cImportPaths` have been added to pass C sources and add additional search paths for C headers to the compiler. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.104.0.html As usual please report any bugs at https://issues.dlang.org -Iain on behalf of the Dlang Core Team
May 01 2023
On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.[104](https://dlang.org/changelog/2.104.0.html) ```d alias Tint = int; Tint void f(); ``` Here says not to use basic types as attributes, but the following example give it another basic type? ```d int void f(); ```
May 01 2023
On Tuesday, 2 May 2023 at 03:08:00 UTC, zjh wrote:On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:The keyword here in the changelog is: **would**; that is to say, the compiler previously rejected basic types, but now they are accepted.Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.[104](https://dlang.org/changelog/2.104.0.html) ```d alias Tint = int; Tint void f(); ``` Here says not to use basic types as attributes, but the following example give it another basic type? ```d int void f(); ```It was already allowed to put types in UDAs, but the parser would reject basic types written directly, requiring the use of an alias.I'll have a think about how that entry could be rephrased to avoid confusion, though you are welcome to raise your own pull request to clarify the wording.
May 02 2023
On Tuesday, 2 May 2023 at 08:47:35 UTC, Iain Buclaw wrote:..Thank you for your reply. I understand it.
May 02 2023
On Tuesday, 2 May 2023 at 08:47:35 UTC, Iain Buclaw wrote:On Tuesday, 2 May 2023 at 03:08:00 UTC, zjh wrote:That's a half baked change, it would have been better to go a bit further: previously ```d alias Tint = int; Tint void f(); ``` now ```d int void f(); ``` nice. But previously ```d alias Tint = int; Tint(1) void f(); ``` now ```d int(1) void f(); // Not Good ``` that's unfortunately still an error.On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:The keyword here in the changelog is: **would**; that is to say, the compiler previously rejected basic types, but now they are accepted.Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.[104](https://dlang.org/changelog/2.104.0.html) ```d alias Tint = int; Tint void f(); ``` Here says not to use basic types as attributes, but the following example give it another basic type? ```d int void f(); ```It was already allowed to put types in UDAs, but the parser would reject basic types written directly, requiring the use of an alias.I'll have a think about how that entry could be rephrased to avoid confusion, though you are welcome to raise your own pull request to clarify the wording.
May 02 2023
On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.A couple days ago I ran into an issue that was solved by https://issues.dlang.org/show_bug.cgi?id=23846 so I upgraded to this beta. I just initialized a dub project to try to use ```mir.stat``` ```D import std.stdio; import mir.stat; void main() { writeln("Edit source/app.d to start your project."); } ``` and ran into the following linker errors: ``` (dmd-2.104.0-beta.1)confuzzled confuzzleds-MBP stat % dub Starting Performing "debug" build using /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd for x86_64. Up-to-date mir-core 1.5.5: target for configuration [library] is up to date. Up-to-date mir-algorithm 3.20.2: target for configuration [default] is up to date. Up-to-date mir-stat 0.1.6: target for configuration [library] is up to date. Building stat ~master: building configuration [application] Linking stat ld: warning: alignment (1) of atom 'anon' is too small and may result in unaligned pointers [SNIP same ld error repeated 1697 times] ld: warning: alignment (1) of atom 'anon' is too small and may result in unaligned pointers ld: warning: pointer not aligned at address 0x10006C2A1 ('anon' + 673 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C2BE ('anon' + 702 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C3A1 ('anon' + 929 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C3E9 ('anon' + 1001 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C43F ('anon' + 1087 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C47A ('anon' + 1146 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C496 ('anon' + 1174 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C4D2 ('anon' + 1234 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C6FD ('anon' + 122 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(lifetime_fd_8f7.o)) ld: warning: pointer not aligned at address 0x10006C8A3 ('anon' + 127 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(hash_114_3c9.o)) ld: warning: pointer not aligned at address 0x10006C93B ('anon' + 127 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(hash_125_58c.o)) ld: warning: pointer not aligned at address 0x10006CAB9 ('anon' + 139 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(comparison_186_3bd.o)) ld: warning: pointer not aligned at address 0x10006CB56 ('anon' + 129 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(string_187_36f.o)) ld: warning: pointer not aligned at address 0x10006CC9D ('anon' + 142 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(concatenation_219_e62.o)) ld: warning: pointer not aligned at address 0x10006CD67 ('anon' + 137 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(capacity_21a_11f9.o)) ld: warning: pointer not aligned at address 0x10006CE0F ('anon' + 142 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(concatenation_21b_1145.o)) ld: warning: pointer not aligned at address 0x10006CFE2 ('anon' + 151 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(atomic_2d0_104b.o)) ld: warning: pointer not aligned at address 0x10006D191 ('anon' + 127 from ../../.dub/cache/mir-core/1.5.5/build/library-debug-6QbncWne9XfURo0c-rzF0g/libmir-core.a(hash_30_76c.o)) ld: unaligned pointer(s) for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 Error /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd failed with exit code 1. ```
May 09 2023
On Wednesday, 10 May 2023 at 02:48:02 UTC, anonymouse wrote:On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:Note: The same does not happen with LDC ``` (ldc-1.32.1)confuzzled confuzzleds-MBP stat % dub Starting Performing "debug" build using /Users/confuzzled/dlang/ldc-1.32.1/bin/ldc2 for x86_64. Building mir-core 1.5.5: building configuration [library] Building mir-algorithm 3.20.2: building configuration [default] Building mir-stat 0.1.6: building configuration [library] Building stat ~master: building configuration [application] Linking stat Running stat Edit source/app.d to start your project. ```Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.A couple days ago I ran into an issue that was solved by https://issues.dlang.org/show_bug.cgi?id=23846 so I upgraded to this beta.
May 09 2023
anonymouse via Digitalmars-d-announce wrote:On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:I ran into the same issue in the bug you referenced, "...number `0x0.8p-126f` is not representable as a `float`" trying to build phobos on an older Linux x86_64 system after dmd-2.102.2 was released. After I saw your email yesterday about the bug, I upgraded to dmd-2.104.0-beta.1 and phobos built. Thanks for you post! While I don't have an answer to your current problem, I can say that I just ran this test build on my system that had the problem and it worked: $ dub --version DUB version 1.31.1, built on Feb 17 2023 $ dmd --version DMD64 D Compiler v2.104.0-beta.1 Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved written by Walter Bright $ mkdir mirstat $ cd mirstat $ dub add mir-stat Adding dependency mir-stat ~>0.1.6 $ cat dub.json { "authors": [ "thinkunix" ], "copyright": "Copyright © 2023, jenkins", "dependencies": { "mir-stat": "~>0.1.6" }, "description": "A minimal D application.", "license": "proprietary", "name": "mirstat" } $ dub Starting Performing "debug" build using /usr/bin/dmd for x86_64. Up-to-date mir-core 1.5.5: target for configuration [library] is up to date. Up-to-date mir-algorithm 3.20.2: target for configuration [default] is up to date. Up-to-date mir-stat 0.1.6: target for configuration [library] is up to date. Building mirstat ~master: building configuration [application] Linking mirstat Finished To force a rebuild of up-to-date targets, run again with --force Running mirstat Edit source/app.d to start your project. Not sure if that helps, but it shows this works with dmd-2.104.0-beta.1 at least on Linux x86_64. scotGlad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.A couple days ago I ran into an issue that was solved by https://issues.dlang.org/show_bug.cgi?id=23846 so I upgraded to this beta. I just initialized a dub project to try to use ```mir.stat``` ```D import std.stdio; import mir.stat; void main() { writeln("Edit source/app.d to start your project."); } ``` and ran into the following linker errors: ``` (dmd-2.104.0-beta.1)confuzzled confuzzleds-MBP stat % dub Starting Performing "debug" build using /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd for x86_64. Up-to-date mir-core 1.5.5: target for configuration [library] is up to date. Up-to-date mir-algorithm 3.20.2: target for configuration [default] is up to date. Up-to-date mir-stat 0.1.6: target for configuration [library] is up to date. Building stat ~master: building configuration [application] Linking stat ld: warning: alignment (1) of atom 'anon' is too small and may result in unaligned pointers [SNIP same ld error repeated 1697 times] ld: warning: alignment (1) of atom 'anon' is too small and may result in unaligned pointers ld: warning: pointer not aligned at address 0x10006C2A1 ('anon' + 673 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C2BE ('anon' + 702 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C3A1 ('anon' + 929 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C3E9 ('anon' + 1001 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C43F ('anon' + 1087 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C47A ('anon' + 1146 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C496 ('anon' + 1174 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C4D2 ('anon' + 1234 from /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2j dPTUfJ52drA/stat.o) ld: warning: pointer not aligned at address 0x10006C6FD ('anon' + 122 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a lifetime_fd_8f7.o)) ld: warning: pointer not aligned at address 0x10006C8A3 ('anon' + 127 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorith .a(hash_114_3c9.o)) ld: warning: pointer not aligned at address 0x10006C93B ('anon' + 127 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorith .a(hash_125_58c.o)) ld: warning: pointer not aligned at address 0x10006CAB9 ('anon' + 139 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(co parison_186_3bd.o)) ld: warning: pointer not aligned at address 0x10006CB56 ('anon' + 129 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm. (string_187_36f.o)) ld: warning: pointer not aligned at address 0x10006CC9D ('anon' + 142 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(conca enation_219_e62.o)) ld: warning: pointer not aligned at address 0x10006CD67 ('anon' + 137 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(c pacity_21a_11f9.o)) ld: warning: pointer not aligned at address 0x10006CE0F ('anon' + 142 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(concat nation_21b_1145.o)) ld: warning: pointer not aligned at address 0x10006CFE2 ('anon' + 151 from ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a atomic_2d0_104b.o)) ld: warning: pointer not aligned at address 0x10006D191 ('anon' + 127 from ../../.dub/cache/mir-core/1.5.5/build/library-debug-6QbncWne9XfURo0c-rzF0g/libmir-co e.a(hash_30_76c.o)) ld: unaligned pointer(s) for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 Error /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd failed with exit code 1. ```
May 09 2023
On Wednesday, 10 May 2023 at 03:31:05 UTC, thinkunix wrote:Not sure if that helps, but it shows this works with dmd-2.104.0-beta.1 at least on Linux x86_64. scotI think that worked for you because although you have set mirstat as a dependency, you are not actually linking against it. Try `import mir.stat;` into app.d and rebuild. -- anonymouse
May 09 2023
On Wednesday, 10 May 2023 at 03:57:59 UTC, anonymouse wrote:On Wednesday, 10 May 2023 at 03:31:05 UTC, thinkunix wrote:Also it might be a macOS specific issue since the original problems I faced didn't materialize on my Debian 11 VM.Not sure if that helps, but it shows this works with dmd-2.104.0-beta.1 at least on Linux x86_64. scotI think that worked for you because although you have set mirstat as a dependency, you are not actually linking against it. Try `import mir.stat;` into app.d and rebuild. -- anonymouse
May 09 2023
On Wednesday, 10 May 2023 at 03:57:59 UTC, anonymouse wrote:I think that worked for you because although you have set mirstat as a dependency, you are not actually linking against it. Try `import mir.stat;` into app.d and rebuild. -- anonymouseIgnore that... Just saw your comment regard editing app.d
May 09 2023
On Wednesday, 10 May 2023 at 02:48:02 UTC, anonymouse wrote:On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:Does it matter if instead of importing mir-stat you use mir-algorithm or std.math? mir-stat also doesn't include mac os as part of the test suite (mir-algorithm does). PRs are welcome.Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 contributors.A couple days ago I ran into an issue that was solved by https://issues.dlang.org/show_bug.cgi?id=23846 so I upgraded to this beta. I just initialized a dub project to try to use ```mir.stat``` [snip]
May 10 2023
On Wednesday, 10 May 2023 at 10:22:23 UTC, jmh530 wrote:mir-stat also doesn't include mac os as part of the test suite (mir-algorithm does). PRs are welcome.Actually, it happens even when you don't import anything. As for PRs, I would if I could. Although I've been around the community for a while, I'm definitely the most unskilled member here. Just got ticked off at myself over the weekend and picked up my first stats book ever with the intent to build a solid foundation and gain the skills necessary to help out. --anonymouse
May 10 2023
This reminds me of an LDC bug fixed recently. I bet DMD suffers from a similar problem: https://github.com/ldc-developers/ldc/issues/3864 -Steve
May 10 2023
On Wednesday, 10 May 2023 at 12:34:00 UTC, Steven Schveighoffer wrote:This reminds me of an LDC bug fixed recently. I bet DMD suffers from a similar problem: https://github.com/ldc-developers/ldc/issues/3864 -Steve`MACOSX_DEPLOYMENT_TARGET` fixed it for me recently when I was getting the "not aligned" problems with rosetta dmd on macos.
May 10 2023
On Wednesday, 10 May 2023 at 12:34:00 UTC, Steven Schveighoffer wrote:This reminds me of an LDC bug fixed recently. I bet DMD suffers from a similar problem: https://github.com/ldc-developers/ldc/issues/3864 -SteveAnd it is. Just tried the workaround proposed (export MACOSX_DEPLOYMENT_TARGET=11) and it resolved the issue. Thank you. -- anonymouse
May 10 2023
On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:This release comes with 11 major changes, including: - In the standard library, `std.typecons.Rebindable` now supports all typesTiny note of warning: `Rebindable` supports all types that it did not previously support, including structs. However, the previous `Rebindable` had a special logic where if you passed it an _array_, it would simply alias itself to `Unqual!ElementType[]`. So you cannot rely that if you write `Rebindable!T foo;`, that you can then do `foo.get`. I'm trying to fix that, but it's a bit controversial. My main argument is that ~nobody used to use it anyway, so we may as well fix it now as it's actually becoming useful.
May 10 2023