-
Notifications
You must be signed in to change notification settings - Fork 597
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
Decide on Bytes #25
Comments
I think I have a nice solution for this, described the basic idea here, but need to do some fiddling with it to settle on an API. What I'd like to do is actually just subclass So // 'natural' buffering of this process
trait Process[F[_],+O] {
def available: Process[F,Seq[O]] = this match {
case Halt(e) => Halt(e)
case Emit(h,t) => emit(h) ++ t.available
...
} Downstream can then pattern match on the |
Hmm, seems nice, so essentially we just wrap the Seq over buffer :-) Cool P. On Oct 11, 2013, at 6:59 PM, pchiusano notifications@github.com wrote:
|
@pchiusano I just though a bit about this and not sure if I have fully understood the idea. I mean how you want to check whether someone is holding the weak reference? Whent the |
…-3.1.0 Update cats-effect, cats-effect-kernel, ... to 3.1.0
Current implementation of Bytes is somehow second class citizen in the library.
We shall probably extend it or decide on alternative approach that will not require allocation of arrays on every read request.
I think the contract shall be either :
Full
orEmpty
state. In Full state it will allow only operations that write content to some input to be performed, in Empty it will allow only singleread
from some output to be performedBoth scenarios will have some effective append and seek operations on them inspired for example by akka.ByteString : http://doc.akka.io/api/akka/2.0/akka/util/ByteString.html
What are your thoughts? We need efficient byte streaming for scalaz-stream-mongo, and other scalaz-stream goodies....
Thanks,
P.
The text was updated successfully, but these errors were encountered: