For your consideration on exposing continuations as API
Pedro Lamarão
pedro.lamarao at prodist.com.br
Wed Nov 11 20:30:36 UTC 2020
[Sorry for reposting: I used the wrong sender last time.]
Hello all!
Thank you very much for your work on this project!
I am aware the current intention is that continuations are not public API.
I am sending this message as a case for exposing continuations as API.
My paid work is mainly about data pipelines.
I have experimented with using continuations to design "continuable"
parsers.
Such things usually require state machines.
Below is a link to one of these experiments, a simple BER parser.
Please don't mind my ressignification of "push" in this context.
https://github.com/pedrolamarao/loom/blob/main/ber/src/main/java/loom
/ber/DerPushParser.java
In my experience, operators like the above are very easy to compose, while
InputStream consumers are not.
I was able to produce this code with a few hours reading "The State of Loom",
javadoc and writing code.
I hope a strong case can be made for exposing continuations to the public
in future releases!
--
*Prodist Technologies*
http://www.prodist.com.br/
*"Securing Critical Systems"*
*+55 11 4380-6585*
More information about the loom-dev
mailing list