[Week 8]: Add simple development.md; Tidy Crates
#9
lvyuemeng
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
PR
development.mdto put a introduction to the project.PR
ipcpart is needed to be further designed, thus the confliction isn't solved here.Reflection
In asynchronous runtime, one has to create a copy of instance to appease lifetime check and
async move {}closure, we need to separate theArc<T>of instance in intra-threads, andrcofHeaderinter-process. Which the former is to copy itself into the different part threads part if necessary, becauseShmBox<T,A>will concede the lifetime of itself to the allocator, in multi-threads case, one have to deal with it, or to useArc<A> as A, which elide it.The bottleneck is basically the queue part,
lfqueueis efficient, but the api design of mine is bad, to adapt multiple backend, also increase the generic parameters input, which is also needed further discussion.ShmBoxis the basic ipc transfer instance, which only retainsSliceorSizedpart, the pros is that it maintains the type semantics, cons is the api is actually highly relevant toBox, experimental features.Design Thought
SQE/CQEto elideShmBoxinUringSepc.DriverandAllocator, leaving the main part ofShmBackend.Submitter + AllocHandleto allocate and send thing seamlessly.To maximally reduce the configuration part and establish a simpler, readable api.
Beta Was this translation helpful? Give feedback.
All reactions