Re: Parallel safe associative array?

2024-05-24 Thread mw via Digitalmars-d-learn

https://code.dlang.org/packages/rust_interop_d

wrapped:

DashMap: is an implementation of a concurrent associative 
array/hashmap in Rust.


Re: How does one attach a manifest file to a D executable on Windows?

2024-05-24 Thread Ferhat Kurtulmuş via Digitalmars-d-learn

On Friday, 24 May 2024 at 21:04:53 UTC, Ferhat Kurtulmuş wrote:

On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote:
I have tried resource compiling, then using `dflags` in dug to 
add the resulting obj file, but I still get the issue of the 
old GUI style.


I did that before, but I don't remember now. Probably you will 
figure that out based on this.


https://gitlab.com/aferust/gtkdappcreator/-/tree/master/win_res?ref_type=heads


I think this is what you need

https://github.com/aferust/doitlater/tree/master/views/res



Re: How does one attach a manifest file to a D executable on Windows?

2024-05-24 Thread Ferhat Kurtulmuş via Digitalmars-d-learn

On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote:
I have tried resource compiling, then using `dflags` in dug to 
add the resulting obj file, but I still get the issue of the 
old GUI style.


I did that before, but I don't remember now. Probably you will 
figure that out based on this.


https://gitlab.com/aferust/gtkdappcreator/-/tree/master/win_res?ref_type=heads


Parallel safe associative array?

2024-05-24 Thread Andy Valencia via Digitalmars-d-learn
I was playing with parallel programming, and experienced 
"undefined behavior" when storing into an Associative Array in 
parallel.  Guarding the assignments with a synchronized barrier 
fixed it, of course.  And obviously loading down your raw AA with 
thread barriers would be foolish.


But this set me searching through the library for a standard 
Associative Array construct which _is_ thread safe?  It didn't 
jump out at me.  I know I can place such a thing within a 
synchronized class, but I was wondering if there's a standard AA 
which has the standard usage but is safe when called in parallel?


Thanks,
Andy