Skip to content
This repository has been archived by the owner. It is now read-only.

Halting development of pthreads for 7.4 #929

Closed
krakjoe opened this issue Feb 15, 2019 · 1 comment
Closed

Halting development of pthreads for 7.4 #929

krakjoe opened this issue Feb 15, 2019 · 1 comment
Labels

Comments

@krakjoe
Copy link
Owner

@krakjoe krakjoe commented Feb 15, 2019

Hi all,

I'm aware that this is going to annoy some people, so apologies before we begin ...

I do not intend to maintain pthreads anymore, nor encourage it's maintenance: It is, in my opinion, broken by design, and fixing it, is simply not worth it.

The internals world is changing fast and pthreads is not going to be able to fit into that world. It is highly complicated, too difficult to deploy and understand, and slow, necessarily so because of the API it tries to provide. When we get a JIT, we will be in a position where it is much faster to execute your CPU bound code in one normal thread, than distributing that work across many pthreads. There is nothing that can be done to help pthreads while it has the API it has, it's possible that the way pthreads works will actually prohibit the JIT from compiling code. Everything about pthreads is putting it in an untenable position for the future.

I've started work on a new extension that will be compatible with the future: https://github.com/krakjoe/parallel

While it is not compatible with pthreads, and will not be, I view it as the only viable replacement for the versions of PHP to come, and my focus has to be on that.

When 7.4 goes into RC stage near the end of this year, this repository will be archived, and no further releases of pthreads will occur on PECL or from this repository.

Thanks for all the effort that contributors have put into pthreads, you've worked hard and I appreciate that, and I would ask that anyone with a focus on pthreads internals today shifts that focus to the future and parallel.

@krakjoe krakjoe added the wontfix label Feb 15, 2019
@krakjoe krakjoe changed the title Deprecating pthreads for 7.4 Halting development of pthreads for 7.4 Feb 15, 2019
@krakjoe krakjoe pinned this issue Feb 15, 2019
@krakjoe

This comment has been minimized.

Copy link
Owner Author

@krakjoe krakjoe commented Feb 18, 2019

I'm closing this because its not meant to be a discussion, it was meant to be an announcement, and I'm quite sure anyone reading doesn't want to read a lot of nonsense.

@krakjoe krakjoe closed this Feb 18, 2019
Repository owner locked as resolved and limited conversation to collaborators Feb 18, 2019
Repository owner deleted a comment from joeyhub Feb 18, 2019
Repository owner deleted a comment from tpunt Feb 18, 2019
Repository owner deleted a comment from CharlotteDunois Feb 18, 2019
Repository owner deleted a comment from dktapps Feb 18, 2019
Repository owner deleted a comment from beberlei Feb 18, 2019
Repository owner deleted a comment from rthrfrd Feb 18, 2019
Repository owner deleted a comment from dktapps Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.