Re: Beta 2.104.0
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 And it is. Just tried the workaround proposed (export MACOSX_DEPLOYMENT_TARGET=11) and it resolved the issue. Thank you. -- anonymouse
Re: Beta 2.104.0
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
Re: Beta 2.104.0
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.
Re: Beta 2.104.0
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
Re: Beta 2.104.0
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 types Tiny 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.
Re: Beta 2.104.0
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: 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] 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.
Re: Beta 2.104.0
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. -- anonymouse Ignore that... Just saw your comment regard editing app.d
Re: Beta 2.104.0
On Wednesday, 10 May 2023 at 03:57:59 UTC, anonymouse wrote: 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. scot 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. -- anonymouse Also it might be a macOS specific issue since the original problems I faced didn't materialize on my Debian 11 VM.
Re: Beta 2.104.0
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. scot 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. -- anonymouse
Re: Beta 2.104.0
anonymouse via Digitalmars-d-announce wrote: 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. ``` I ran into the same issue in the bug you
Re: Beta 2.104.0
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: 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. 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. ```
Re: Beta 2.104.0
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. ```
Re: Beta 2.104.0
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: 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(); ``` The keyword here in the changelog is: **would**; that is to say, the compiler previously rejected basic types, but now they are accepted. 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. 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.
Re: Beta 2.104.0
On Tuesday, 2 May 2023 at 08:47:35 UTC, Iain Buclaw wrote: .. Thank you for your reply. I understand it.
Re: Beta 2.104.0
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: 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(); ``` The keyword here in the changelog is: **would**; that is to say, the compiler previously rejected basic types, but now they are accepted. 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.
Re: Beta 2.104.0
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(); ```
Beta 2.104.0
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