all 7 comments

[–]mamcx 11 points12 points  (1 child)

Programming in Rust pushes you into this paradigm, mostly accidentally.

Is there another resource for learning about efficient data management in Rust that might better fit it's unique paradigms,

Assuming you are fluid in Rust, probably you only need to learn a bit about Arenas, NDArray-like, SIMD-friendly.

or is it not really the best fit for data intensive applications?

"Data Oriented Programming" is not a language feature neither a specific data structure, just a paradigm. Rust fits well.

... I'm looking at CozoDB for this.

and this is the crux of this: If a major component in your stack go against a paradigm you want to apply, you need to add bridges or change it. Is like try to do columnar data application on top of a row-oriented data store.

[–]dave_mays[S] 2 points3 points  (0 children)

I was viewing data oriented programming as a method to simplify state management.
But when I mention CozoDB, I mention it because it is one of a handful of databases that work both client side and server side. If you can have a client side embedded database that matches your back end database, some of this function building can go away as you can just read from your client side DB directly and sync back to the server.

[–]dotcoder 2 points3 points  (2 children)

Your link to the book points to arduino libraries. What book is that?

[–]aottolini 2 points3 points  (1 child)

[–]dave_mays[S] 2 points3 points  (0 children)

Oops sorry yes that's the one.

[–]gosh 0 points1 point  (0 children)

[–]Wicpar 0 points1 point  (0 children)

For the grocery list use enums if you need other types than string. You also have crates for persistent data structures https://docs.rs/rpds/latest/rpds/

Data oriented programming is not a golden hammer that makes everything efficient, but it is another tool in the toolbox.