paulkernfeld / contiguous-data-in-rust Goto Github PK
View Code? Open in Web Editor NEWAn opinionated guide that tries to help you choose the best way to store contiguous data in Rust
An opinionated guide that tries to help you choose the best way to store contiguous data in Rust
It's a vec where length, capacity, an extra thing of your choosing and everything in the array all go together on the other side of the pointer: https://docs.rs/header-vec/0.1.0/header_vec/struct.HeaderVec.html it seems to be popular with graph datastructures.
While I was looking for it, I found my way here first, so it might help people if you put up a signpost.
When working with SIMD, for example, memory alignment may matter.
It would be good if this guide also discusses ways to allocate memory for SIMD that is, e.g., aligned to 64-byte boundaries.
I found tinyvec because of your guide, but I'd like to note that the difference isn't just that its elements must implement Default, they must also implement Copy (mutually exclusive with Drop). I was helping someone in Discord who needed a type that could vary in length and be Copied.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.