Coder Social home page Coder Social logo

Comments (2)

mjambon avatar mjambon commented on July 17, 2024

It's a matter of performance (how to write say 4 bytes to a channel but perform only one bound check internally?), and also reusability (can't use channels for writing to string or to an arbitrary buffer).

Did you take a look at Bi_outbuf.create_channel_writer and Bi_inbuf.from_channel?

from biniou.

UnixJunkie avatar UnixJunkie commented on July 17, 2024

Bi_outbuf.create_channel_writer

Yes, I saw the make_room function can write to an output channel.

Wouldn't it be possible to use a functor to have the read/write_untagged_* functions
either work with a biniou in/out_buffer or an in/out channel?

I still think the read/write_untagged_* functions are useful even outside of biniou's context.
Pervasives from stdlib provides output_binary_int and input_binary_int but nothing
for floats for example.

from biniou.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.