Our use-case:

We connect our elm application to a NATS server through a websocket [1]

The protocol is text-based but the payload can be binary. We would like
to switch to protobuf to encode our payloads but cannot do that because
of the elm client. So we stick to json for now.

So the need is to be able to encode/decode data structures to a binary
websocket connection.


[1] https://github.com/orus-io/elm-nats

Le 19/07/2017 à 04:34, Martin Bailey a écrit :
> What kind of interaction with binary data would you require for your
> projects?
> 
> -Blob : black box to store and pass opaque data around (anything that
> isn't a valid Unicode string)
> -Byte array : equivalent to char/string for arbitrary bytes
> -Bit stream : more flexible mechanism to implement binary protocols or
> binary coding
> 
> Byte array would remove the need for blobs and would also allow building
> a clean bitstream library in pure Elm. It needs to be designed properly
> for binary data to be reliable and fun to work with, but that would
> probably be the best abstraction. Haskell calls theirs Data.ByteString.
> 
> On Tuesday, July 18, 2017 at 3:10:33 AM UTC-4, Zachary Kessin wrote:
> 
>     I would really like to have a way to do file uploads in Elm, I
>     needed that at a project a while back
> 
>     Zach
>     ᐧ
> 
>     On Wed, Jul 12, 2017 at 8:18 PM, Coury Ditch <[email protected]
>     <javascript:>> wrote:
> 
>         Here are a couple relevant repos so far - they are mostly barren
>         at the moment, as we're trying to solve some hard API problems
>         before we put too much code down.
> 
>         https://github.com/cmditch/elm-web3
>         <https://github.com/cmditch/elm-web3>
>         https://github.com/cmditch/elm-truffle-webpack
>         <https://github.com/cmditch/elm-truffle-webpack>
> 
> 
>         On Sunday, July 9, 2017 at 9:49:46 AM UTC-6, Berry Groenendijk
>         wrote:
> 
>             Coury,
> 
>             I am very interested in an Elm version of web3.js. For
>             exactly the reason you mentioned. Where can I follow the
>             progress on this project?
> 
>             Berry
> 
>             Op zaterdag 8 juli 2017 21:30:53 UTC+2 schreef Coury Ditch:
> 
>                 Our use case: Pure elm library for cryptographic functions. 
> 
>                 We are creating a pure Elm web3.js equivalent. We think
>                 Ethereum developers and the blockchain developer
>                 community at large would benefit from the strong
>                 guarantees of using Elm.
> 
>                 Thanks
> 
>                 On Monday, January 11, 2016 at 5:32:43 PM UTC-7, Evan wrote:
> 
>                     I have been drafting Blob and ArrayBuffer APIs, but
>                     I wasn't sure who needed them.
> 
>                     What is your particular use case?
> 
>                     On Mon, Jan 11, 2016 at 4:55 AM, John Watson
>                     <[email protected]> wrote:
> 
>                         Can anyone tell me what the plans are for
>                         supporting binary data in elm?  I'm thinking of
>                         a Byte (and some sort of Byte Array) type and
>                         also implementing Blob in HTTP responses. 
> 
>                         -- 
>                         You received this message because you are
>                         subscribed to the Google Groups "Elm Discuss" group.
>                         To unsubscribe from this group and stop
>                         receiving emails from it, send an email to
>                         [email protected].
>                         For more options, visit
>                         https://groups.google.com/d/optout
>                         <https://groups.google.com/d/optout>.
> 
> 
>         -- 
>         You received this message because you are subscribed to the
>         Google Groups "Elm Discuss" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to [email protected] <javascript:>.
>         For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
> 
> 
> 
> 
>     -- 
>     Zach Kessin
>     Teaching Web Developers to test code to find more bugs in less time
>     Skype: zachkessin
>     +972 54 234 3956 / +44 203 734 9790 / +1 617 778 7213
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.

-- 
Christophe de Vienne

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to