Anyway, the reality is we *don’t* use processes and pipes for important things, *because* they fail roughly like this. You can say “but error codes” all you want, we don’t do this with browsers or ssh or gzip or REPLs (hello, Jupyter) or anything else. Because this hits a wall.https://twitter.com/marcan42/status/996231278276919296 …
-
-
Of course in Rust you'd probably have a non-streaming wrapper that fully buffers and returns a Result and *then* you'd be totally safe (but if someone decides they need streaming and screw up, then yeah, they still get bit).
-
You could try to make the streaming API safer by having a streaming callback take an Option or a Result or something to kind of force errors out through the main path, but I can still see someone borking usage of that. Even Rust won't save you from poor error hygiene.
End of conversation
New conversation -
-
-
You may not get to return streaming data in any safe API. That might just be a weakness in OpenPGP. You might have to chunk like everything else. Isn’t there chunking support in all this complexity?
-
I am really pegging on this streaming API thing, no, you can’t return unauthenticated plaintext without fairly aggressive opt-in. Nothing gets to do that.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.