You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding the unsupported functionality, I'm still of the opinion that getting any kind of threading support would be necessary, as it doesn't really seem fair to release ctru-rswith halfbaked dev-only features, like std-threads.
I wasn't sure where else to make an issue but I thought this repo seemed sort of sensible to track progress on the upstream threads proposal and related changes.
It will probably take a little while, but I plan to revisit the original thread proposal with the Rust team and see if we can come to some kind of middle ground that doesn't result in implementing a huge API surface in std just to support our platform.
There are some third party crates for this, which maybe we should consider looking into (perhaps that is enough for our use case if we can make it work?
Do more research on the affinity and priority crates I mentioned above. If it's not hard to add the support we are looking for via those, maybe we can delay the std changes and just rely on them instead
If std still seems like a better option, rewrite the API proposal to be more generic (less 3DS-focused) and address some of the discussion concerns that have come up. I will probably end up mentioning the above crates as prior art in this space too.
Submit the proposal, try to get some final feedback, and implement it.
Add necessary libc APIs to implement new affinity APIs for std
Assuming all the above goes well, adjust ctru-rs examples and features to match the new std API.
Phew! This has been a long time coming so hopefully we can finally put it to rest somewhere.
Also let me know if you think this issue makes more sense to live on ctru-rs and I can transfer, it's kind of broad so I wasn't sure the best place to put it.
Originally posted by @Meziu in rust3ds/ctru-rs#97 (comment)
I wasn't sure where else to make an issue but I thought this repo seemed sort of sensible to track progress on the upstream threads proposal and related changes.
It will probably take a little while, but I plan to revisit the original thread proposal with the Rust team and see if we can come to some kind of middle ground that doesn't result in implementing a huge API surface in
stdjust to support our platform.As a brief summary of what's happened:
std:std::threadsupport for the Nintendo 3DS rust-lang/rust#98514At this point, this is my rough plan:
stdchanges and just rely on them insteadstdstill seems like a better option, rewrite the API proposal to be more generic (less 3DS-focused) and address some of the discussion concerns that have come up. I will probably end up mentioning the above crates as prior art in this space too.libcAPIs to implement new affinity APIs forstdctru-rsexamples and features to match the newstdAPI.Phew! This has been a long time coming so hopefully we can finally put it to rest somewhere.
Also let me know if you think this issue makes more sense to live on
ctru-rsand I can transfer, it's kind of broad so I wasn't sure the best place to put it.