Coder Social home page Coder Social logo

Comments (20)

jacereda avatar jacereda commented on July 24, 2024 1

@AlexaDeWit would -codecs be a better name since it will also have decoding?

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

Oh crap, this is especially needed as this underlying library is now deprecated.

https://github.com/inexorabletash/text-encoding

In the deriving library I'll want to try and abstract this problem out.... which means back to my old nightmare.

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

What if you restrict it to UTF-8? There's a small polyfill here that could serve as a starting point:

https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

I lack a minimalist isomorphism to do the decode easily available. I don't remember the full history of the work I was doing.

I'm also thinking of working further at erasing the need for a polyfill in the other library, but that is more of a long term goal.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

I kind of agree with the "breakout" library idea actually, as I'm considering improving another library I maintain which has minimal behaviour for base64 encoding, and wrapping these dependencies in a library specifically for working with strings, base64, and arraybuffers collectively.

Did you want to preserve some semblance of the string encoding/decoding for this lib here?

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

No problem on my side, I have only used binary arraybuffers myself.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

If you were to release the stripped down version a la my PR here as another major version, I think I can commit to having a library up by the end of the weekend to provide the now missing functionality, and I could PR your Readme to include a note about what changed and how to resolve the problem.

What do you think?

Important to note I also removed the Show instance as it depended on a node-only inspect.

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

Would merging to a temporary branch suffice? @athanclark will probably change the API as well and 2 major bumps could be a bit strange...

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

Sure, I can always do my next library using a local fork copied into the directory. Make a branch for me to merge into and I'll update the PR.

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

I have created https://github.com/jacereda/purescript-arraybuffer/tree/v9 including your PR.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

Cheers to that. So I assume we expect that @athanclark 's work will also end up here as part of the v9 release?

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

https://github.com/AlexaDeWit/purescript-arraybuffer-encoding This is where the new library will live btw.

from purescript-arraybuffer.

athanclark avatar athanclark commented on July 24, 2024

I'm right in the middle of thoroughly testing my branch - I'll make sure to pull whatever you've changed. I don't have any form of text-encoding integration right now - I ripped out everything, so any upgrades should be smooth, and I haven't touched arraybuffer-types.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

Sounds good. My changes also rip out text-encoding completely, so you may have to resolve conflicts if we did it differently.

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

or text-codecs...

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

I'll give the name some thought. My intent also intends to include working with a wrapped base64 type (still text underneath ofc), but yeah, I'm not fully happy with the name either. If/When I rename though that link will still be valid for a while to find under the new name. Github rename redirects are cozy.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

purescript-arraybuffer-codecs maybe, minus the "text" bit. Is decent.

from purescript-arraybuffer.

AlexaDeWit avatar AlexaDeWit commented on July 24, 2024

https://github.com/AlexaDeWit/purescript-arraybuffer-codecs renamed, I'll die on this hill and all that. <3

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

I think #23 will take a while.

I cherry-picked your changes to master and published v9.0.0. Thanks.

from purescript-arraybuffer.

jacereda avatar jacereda commented on July 24, 2024

The v10 branch has been merged to master, tell me if you have any problem with the new API in your -arraybuffer-codecs.

from purescript-arraybuffer.

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.