-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add support for event loop and basic network listeners, and a general-purpose memory allocator #791
Conversation
In your general purpose allocator, the part where it actually needs to do the syscall to allocate memory is unimplemented. I have a suggested solution! This allocator can accept another allocator upon initialization, which it uses to make the underlying raw_alloc allocations. Then the user of this API can pass in a DirectAllocator, which always calls the system API to allocate/free directly. You can see this pattern in std/special/build_runner.zig. |
This is quite a lot of exciting stuff. Can you break this into a series of smaller, independently unit-tested, easier-to-review pull requests? |
Closing this PR, and I will reopen a number of smaller independent ones as suggested. |
@bscheinman @andrewrk What is the latest on this? |
Here's something I've got some work in a branch too. More work planned after Pointer Reform (see #770) is done. |
@andrewrk cool -- there is a lot of work that has been put into this PR. Would it be better to directly hack on Is there a google hang-out or something that we can join to work on hacking together? Sorry to ask here! Thanks! |
Everything this PR does exists in std.event using coroutines. I have yet to document that language feature though. The general purpose allocator in this PR was never finished.
I know @tiehuis likes to build out separate repositories before submitting a pull request to zig. You're welcome to make pull requests directly against std. I would recommend first filing an issue with a proposal explaining the use case that you're trying to solve and how you propose going about solving it - that way if it's something already planned or related to something already planned we can figure out the best way to go about it.
The
No worries. Hope to see you around |
No description provided.