Thank you for visiting the Agora of Flancia!

This Agora is in active development. Please report bugs and send feedback!

Settings

Browse Agora as

If you notice any strangeness, try clearing your local storage or reach out for support at agora@flancia.org.

Joining this Agora

For now, some work is required 😇

With your digital garden

Please review this Agora's base contract to verify you are in agreement, then send email to signup@anagora.org with the following information:

  • The URL of a Git repository containing your digital garden, wiki or blog; or of the content you would like to contribute.
  • Your desired username (you can check for existing users here).
Please also reach out if you are interested in joining but need clarification or assistance. We are working on making this process less manual and more user friendly and inclusive :) Thank you for your patience!

From social media or chat

You can contribute:
  • From the Fediverse by following and interacting with @agora@botsin.space.
  • From Bluesky by following and interacting with anagora.bsky.social.
  • From Matrix by adding @anagora:matrix.org to a room.
You search for 'an-introduction-to-data-oriented-design-with-rust' on the Internet x
🔍 Web results by GoogleBingDDGMarginaliaYouTubeMapsYouTube Music BlueskyFediverseX ⬈
Some providers may not allow embedding. If a tab appears empty, you can use the link in the header to open the search in a new tab. x
🤖 AI generations by MistralGeminiChatGPT ⬈Claude ⬈
This is an Agora Assistant trying to help you navigate generated by the provider above. x
Loading Wikimedia Commons...

Loading Wikimedia content...


This you find in the Agora of Flancia x
📚 Node an introduction to data oriented design with rust exact match
Nodes contain individual contributions whose filenames match your search. x

An introduction to Data Oriented Design with Rust

source : An introduction to Data Oriented Design with Rust - Statistically Insignificant

tags : Rust

Notes

Data-oriented design is a programming paradigm whereby the layout of data structures is strongly considered for performance reasons.

In a object-oriented approach, the code for a player might look like this:

pub struct Player {
    name: String,
    health: f64,
    location: (f64, f64),
    velocity: (f64, f64),
    acceleration: (f64, f64),
}

whereas in DOD, it would look like this:

pub struct DOPlayers {
    names: Vec<String>,
    health: Vec<f64>,
    locations: Vec<(f64, f64)>,
    velocities: Vec<(f64, f64)>,
    acceleration: Vec<(f64, f64)>,
}

This would increase performance dramatically because we’re better using the CPU cache. The article has some good statistics on this.

⥱ Context for an introduction to data oriented design with rust
💬 Stoas for an-introduction-to-data-oriented-design-with-rust
Stoas are shared spaces where interested people can meet and collaborate. x
Hypothes.is x
Agora Meditation x
Ambient Music x

Now playing...