Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Halting development of pthreads for 7.4 #929

Closed
@krakjoe

Description

@krakjoe

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.

Activity

changed the title [-]Deprecating pthreads for 7.4[/-] [+]Halting development of pthreads for 7.4[/+] on Feb 15, 2019
pinned this issue on Feb 15, 2019
krakjoe

krakjoe commented on Feb 18, 2019

@krakjoe
OwnerAuthor

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.

Repository owner locked as resolved and limited conversation to collaborators on Feb 18, 2019
Repository owner deleted a comment from joeyhub on Feb 18, 2019
Repository owner deleted a comment from tpunt on Feb 18, 2019
Repository owner deleted a comment from on Feb 18, 2019
Repository owner deleted a comment from dktapps on Feb 18, 2019
Repository owner deleted a comment from beberlei on Feb 18, 2019
Repository owner deleted a comment from rthrfrd on Feb 18, 2019
Repository owner deleted a comment from dktapps on Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @krakjoe

        Issue actions

          Halting development of pthreads for 7.4 · Issue #929 · krakjoe/pthreads