Re: core.simd and dynamic arrays

2025-01-27 Thread John C. via Digitalmars-d-learn
On Monday, 27 January 2025 at 15:55:17 UTC, Guillaume Piolat wrote: You may use intel-intrinsics who: 1. guarantees float8 is there 2. have aligned malloc _mm_malloc I have heard about intel-intrinsics and it's really good idea to use it in my code, but I wanted to try some SIMD operations wit

Re: core.simd and dynamic arrays

2025-01-27 Thread Johan via Digitalmars-d-learn
On Monday, 27 January 2025 at 05:53:09 UTC, John C. wrote: On Sunday, 26 January 2025 at 16:43:19 UTC, Johan wrote: The `align(32)` applies to the slice `a`, not the contents of `a` (where `a` points to). Thank you, seems that it is reason for that errors. I remember that dynamic array can be

Re: Start-up speed overhead of `dub run dscanner`

2025-01-27 Thread Mathias Lang via Digitalmars-d-learn
On Monday, 27 January 2025 at 17:04:39 UTC, Anonymouse wrote: Simplified: ``` $ time ( for f in source/**/*.d; do dub run dscanner --nodeps --vquiet -- -S --skipTests $f; done ) 7,87s user 3,33s system 99% cpu 11,304 total $ time ( for f in source/**/*.d; do /usr/bin/dscanner -S --skipTests

Start-up speed overhead of `dub run dscanner`

2025-01-27 Thread Anonymouse via Digitalmars-d-learn
I want to call dscanner 73 times in succession, because I can't pass it a source directory to recursively scan without it failing an assert parsing one of the files. ([dscanner #931](https://github.com/dlang-community/D-Scanner/issues/931)) I want to do it in a CI build/test script, so I thoug

Re: core.simd and dynamic arrays

2025-01-27 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 27 January 2025 at 05:57:18 UTC, John C. wrote: On Monday, 27 January 2025 at 05:53:09 UTC, John C. wrote: Print out the pointer to `a[0]` to verify what the actual alignment is. If we look to output above, first line addresses are aligned to 32 bytes Except address with B(1011)