Comments (2)
Sounds like a job for generators, it would otherwise be relatively difficult (or a lot of effort) to manually add resumption points into the the serializers.
This is similar to nom requiring to parse everything again if not enough data was available (though not as bad there as here), which could be optimized with generators.
from cookie-factory.
my usual approach to async IO is to have buffers between the serializer and the socket, so it's not a very big issue. But it would be nice to have a combinator that can manage some state. I had something like this with the previous design idea based on futures
from cookie-factory.
Related Issues (15)
- GenError doesn't implement std::error::Error
- RFC: make BufferTooSmall error carry the missing space instead of the space the failing combinator needs
- Change SerializeFn to not return input and written length HOT 10
- Module hierarchy like in nom? HOT 6
- Add a way to skip bytes in WriteCounter HOT 6
- Bring back length in GenResult? HOT 8
- Milestone for 0.3? HOT 2
- Build fails on latest nightly due to repeated identifier HOT 2
- GenError not comparible HOT 1
- Publish next release? HOT 2
- Serializing bits. HOT 1
- `back_to_the_buffer` cannot easily be used recursively HOT 1
- gen_many macros and iterators
- gen_le_i32! refuses to accept negative arguments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookie-factory.