arduano / simdeez

easy simd
MIT License
332 stars 25 forks source link

Multithreading traits #45

Closed arduano closed 1 year ago

arduano commented 2 years ago

I was unable to use simdeez in my multithreaded application without adding these.

It does not appear to break simdeez in any way.

arduano commented 1 year ago

My main use case was using the Simd trait as a generic on other structs which must implement Sync.

Basically, I made a SIMD-oriented audio pipeline system where there is a common "sample generator" trait that returns 1 SIMD sample at a time, and the sample generators can be mixed and matched to create the desired pipeline at compile time.

They needed to be Sync, and because they had <S: Simd> Rust expects S to be Sync as well. I could have added <S: Simd + Send + Sync + 'static> on each one but that would be unnecessary when this PR's solution makes sense anyway.

jackmott commented 1 year ago

merging this. @arduano, are you interested in taking over this repository? I don't have time to be a proper maintainer anymore, so if you would like to take over, I can hand it off to you.

arduano commented 1 year ago

@jackmott yeah I'd be happy with that!

arduano commented 1 year ago

Though I'm about to leave somewhere for today, so if I don't respond soon then I'll be back near the end of the day.

arduano commented 1 year ago

@jackmott Hey, just following up, are you still interested in letting me take over?

jackmott commented 1 year ago

Yep, do you currently have any forks of the repo? If so it won't let me transfer owership to you.

arduano commented 1 year ago

Just deleted it

jackmott commented 1 year ago

request should be in

arduano commented 1 year ago

Could you please pass me crates.io ownership too?

arduano commented 1 year ago

@jackmott Hey, just bumping about the above again in case you only get notified by mentions

jackmott commented 1 year ago

@arduano same username there?

arduano commented 1 year ago

yeah

jackmott commented 1 year ago

ok you should have an invite

arduano commented 1 year ago

thank you, I've accepted

jackmott commented 1 year ago

Allright, it is all up to you know, do great things! thanks