-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
rename std/threads to std/typedthreads
#20850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Depends on what the new module is going to be called, and what the relationship between them is going to be. The threads module is a fairly thin wrapper over the system threads, how is this going to change with the new threads? Are people still going to use the old threads module if they want this low-level access? |
|
why is it being changed? |
|
The implementation of |
The new |
|
Developing a new thread module sounds like something that will be a compromise between rushing a poor thread module and delaying v2 - why not leave a new thread module to 2.2? Creating one is not part of v2 goals really. |
Perhaps I was not clear. As I said, there is no plan for a new |
std/threads to std/oldthreadsstd/threads to std/typedthreads
|
I don't think it's a great look for Nim v2 to have soft deprecated our threads module with no alternative.. I find this a very strange decision, especially considering how |
"It will be shipped in 2.2" is an excellent answer to that comment - ie it's perfectly fine, given that nothing was really lost (ie the current threads module is hardly worth bragging about and DIY threading is kind of the norm since none of abstactions work well - the idea with |
|
I was more thinking about the publicity spike that Nim will get a v2 release. It will look like Nim v1 had threading but v2 removed it. I'm just saying that it would look a bit odd, even if the old threading module wasn't anything to write home about. In a perfect world I would of course like Nim v2 to ship with a new and improved story for multithreading, but by the look of things that would delay the launch quite significantly (although maybe it would be more deserving of the v2 name). |
|
I feel that it would be better to deprecate the current "thread" module only when we have a viable replacement. This avoids pressure to release a sub-par alternative because "we need a replacement ASAP". |
|
Let me clear up the situation: The threading primitives moved out of system.nim for |
|
So this module will still be automatically imported when |
Yeah. It is imported by default (without |
|
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
|
so hold on - if this is imported automatically and not meant to be a "user" import, why is it in the |
|
Because it is not imported with |
* rename `std/threads` to `std/oldthreads` * fixes tests * rename to `typedthreads` * changelog
* rename `std/threads` to `std/oldthreads` * fixes tests * rename to `typedthreads` * changelog
Or should it be
typedthreadsorthread_v1? I don't know. Suggestions are appreciated.