mirror of
https://github.com/ratfactor/ziglings
synced 2024-09-20 17:03:19 +02:00
Compare commits
No commits in common. "1e9124b333310b982236d86e2928bbd44f93634e" and "67a8356a34badbfcbfbb56f61d015d5f4758c1d5" have entirely different histories.
1e9124b333
...
67a8356a34
@ -84,7 +84,7 @@ pub fn main() void {
|
||||
// use a marble scoop, spoon magnet, and feather tongs to grab
|
||||
// each type of object.
|
||||
//
|
||||
// Now, would you rather use the magic bag:
|
||||
// Now, would you rather the magic bag:
|
||||
//
|
||||
// A. Grouped the items in clusters so you have to pick up one
|
||||
// marble, then one spoon, then one feather?
|
||||
@ -95,7 +95,7 @@ pub fn main() void {
|
||||
// marbles at once, then all the spoons, then all of the
|
||||
// feathers?
|
||||
//
|
||||
// If this metaphor is working, hopefully, it's clear that the 'B'
|
||||
// If this metaphor is working, hopefully it's clear that the 'B'
|
||||
// option would be much more efficient.
|
||||
//
|
||||
// Well, it probably comes as little surprise that storing and
|
||||
@ -120,7 +120,3 @@ pub fn main() void {
|
||||
// three arrays of one data type each, like those in the exercise
|
||||
// above (SoA).
|
||||
//
|
||||
// For a more practical application of "data-oriented design"
|
||||
// watch the following talk from Andrew Kelley, the creator of Zig:
|
||||
// https://vimeo.com/649009599
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user