Maga D. Zandaqo

Results 29 comments of Maga D. Zandaqo

I'm curious, is anyone looking into a loader for Node.js native addons? This would allow a fast/simple bundler for Node.js , a replacement for [ncc](https://github.com/vercel/ncc), for example, that relies on...

Hi! That's an interesting use case, and one well-suited for view structures I believe. > I already got the gist of BitArrays by themselves, but I'm really struggling to understand...

Hi, @vinerz, I have added some brief [explanation](https://github.com/zandaqo/structurae#extending-view-types) and an [example](https://github.com/zandaqo/structurae/tree/master/examples/bit-array-view) of creating a custom view type using BitArray. It's a bit crude, but I reason the code might be...

Sure. View objects of fixed size are just raw buffers where data is laid out sequentially without any padding, pointers etc. For example, the following schema: ```js { $id: "Pet",...

That's an interesting question. The binary or *view structures can encode any structured data one can describe, say, with JSONSchema. I use them as a simpler, js specific alternative to...

Yes, indeed, making benchmarks more accessible and useful would be nice, and I hope to get around it somewhere down the line. Though, I doubt the usefulness of just putting...

@eranimo Sure, most all structures using buffers extend _interfaces_ such as TypedArrays or DataView, and as far as I know, you can use those with SharedArrayBuffers same as ArrayBuffers, you'll...

That's true, MapView is a special case here for now: it lacks the ability to write into an existing buffer and MapView.from creates a new one every time. For this...

In the latest version (3.2.0) I've added support for nesting MapViews and now MapViews can be written within existing ArrayBuffers. That is, we can use SharedArrayBuffers with MapViews the same...

> Thanks, that does seem to work. What about ArrayView? The same principle, just use the max amount of items as an argument to get the required length: ```javascript const...