Giter Site home page Giter Site logo

Comments (8)

dcodeIO avatar dcodeIO commented on September 27, 2024

The decision to use DataView instead of Int8Array results from allowing the use of polyfills for older browsers, as the bracket notation cannot be emulated. This is of course some sort of trade-off and I hope that DataView will get some love from browser manufacturers sooner or later.

from bytebuffer.js.

englercj avatar englercj commented on September 27, 2024

Just a followup on this, I have a project whos other requirements put me into a position where I know typed arrays will exist, meaning there is nothing wrong with using them instead of DataViews (and performance is important).

I see there is a ByteBufferTA.js in the source, but I don't see it in the dist folder. How can I choose to use that flavor of ByteBuffer for browsers instead of AB which uses DataViews?

from bytebuffer.js.

dcodeIO avatar dcodeIO commented on September 27, 2024

I started working on ByteBufferTA a while ago for this exact purpose, but it isn't finished yet.

from bytebuffer.js.

dcodeIO avatar dcodeIO commented on September 27, 2024

Just completed ByteBufferTA I believe. There will probably still be some bugs or edge cases, but if you'd like to give it a try: https://github.com/dcodeIO/ByteBuffer.js/tree/master/dist/experimental

from bytebuffer.js.

dcodeIO avatar dcodeIO commented on September 27, 2024

Just checked: Also passes the ProtoBuf.js test suite.

from bytebuffer.js.

dcodeIO avatar dcodeIO commented on September 27, 2024

Going to make ByteBufferTA the new ByteBufferAB from 4.0.0 on. The previous ByteBufferAB has been renamed to ByteBufferAB_DataView. See: https://github.com/dcodeIO/ByteBuffer.js/tree/master/dist

from bytebuffer.js.

englercj avatar englercj commented on September 27, 2024

Awesome! Thanks for this @dcodeIO, really appreciate you being so responsive to issues.

from bytebuffer.js.

englercj avatar englercj commented on September 27, 2024

As of v4 this can be closed. Thanks for all the hard work @dcodeIO!

from bytebuffer.js.

Related Issues (20)

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.