Skip to content
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

Documentation on concurrency. #2

Open
stewartmatheson opened this issue Nov 27, 2018 · 4 comments
Open

Documentation on concurrency. #2

stewartmatheson opened this issue Nov 27, 2018 · 4 comments
Labels
feedback wanted More community feedback wanted
Milestone

Comments

@stewartmatheson
Copy link

Would it be possible to update the project's readme to include information around how concurrency will be implemented? The readme mentions it however does not go in to any detail. Will concurrency be implemented at the language level as it is in golang creating a php superset or is the intention to make it an extension and override something like the pthread?

@MagicalTux
Copy link
Owner

This is still being considered and feedback on this is welcome.

Adding keywords to the language makes things easier to see, but can/will result in incompatibilities with existing PHP code happening to use the same names for other purposes.

Creating a separate extension allows the usage of PHP classes to expose concurrency and limits risks of creating incompatibilities with existing code.

It would also be possible via php.ini to have some things automatically fork in the background (for example generators).

Either way, at this point I believe more feedback from potential users is needed before deciding on a direction.

@MagicalTux MagicalTux added the question Further information is requested label Nov 27, 2018
@MagicalTux MagicalTux added this to the v0.1 stable milestone Nov 27, 2018
@MagicalTux MagicalTux added feedback wanted More community feedback wanted and removed question Further information is requested labels Nov 27, 2018
@marcelloh
Copy link

It would be nice if the php language stays as pure as it is now. An extension seems the best way, I think.

@0x85dotdev
Copy link

I second @marcelloh. Extension anything that goes beyond the current PHP spec.

@marcelloh
Copy link

Did you see this btw:
https://github.com/syyongx/php2go.
Could be helpfull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted More community feedback wanted
Projects
None yet
Development

No branches or pull requests

4 participants