Comments (6)
Thanks for the report.
If you want to enhance the implementation, PRs are welcome. I'm not specially attached to the API either, so if you think something should be some other way we can discuss it.
Also, for other use cases, something like this should be much faster and close to the JS API:
https://github.com/mgmeier/purescript-typedarray
from purescript-arraybuffer.
I think that because this package is technically the mainstream package for arraybuffer / typedarray support, because it's published on pursuit, should definitely be at least fully funcitonal - I have a pretty convenient design in mind that's a little higher level than the package you referenced that uses typeclasses for the create
mechanism. I'll also have a thorough test suite that proves the consistency of the logic too.
from purescript-arraybuffer.
I'm also going to cut the dependency on purescript-text-encoding - encoders and decoders for various implementations should be separate from the actual arraybuffer machinery, plus it's an extra npm dependency for something that could be pure.
from purescript-arraybuffer.
I also think the encoding/decoding should be moved to a separate library. There're lots of use cases where you just want binary data. @AlexaDeWit should probably be aware of this... Alexa, could you move that functionality to another library on top?
from purescript-arraybuffer.
I might have some time this weekend. I'll take a look.
from purescript-arraybuffer.
I agree 100%, and it's already been ripped out. I also want to rip out the Data.ArrayBuffer.Show
module - I don't think there should be any npm packages involved, just pure javascript. I also wanted to make arraybuffer-crypto for basic crypto implementations, and arraybuffer-algorithms as a sandbox for sorting algorithms and other cool stuff
from purescript-arraybuffer.
Related Issues (20)
- 8 bit read/writes should not send an Endianness argument HOT 1
- why do Getter results live in Eff? HOT 4
- why does `fromArray` take an `Array Number` argument instead of `Array Int`? HOT 2
- Expand String Conversion Support To Full Utf-16 Range of Code Points HOT 5
- Transient Purescript-Text-Encoding is overly burdensome. HOT 20
- purescript-quotient HOT 2
- export Typed.part' HOT 6
- typelevel dependency HOT 2
- transfer to purescript-contrib HOT 1
- Don't export Typed.part' HOT 1
- Polyfill is not defined when using `spago bundle-app` HOT 21
- publishing a breaking release as v12.0.0
- Sync issue labels with standard names
- ST instead of Effect? HOT 5
- fromUint8Array, toUint8Array HOT 1
- Reification
- Slice and subArray documentation reversed HOT 1
- BigInt64Array, BigUint64Array
- Mutability of types in Data.ArrayBuffer.ArrayBuffer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purescript-arraybuffer.