summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-08-17 20:42:42 +0200
committerGitHub <noreply@github.com>2023-08-17 20:42:42 +0200
commit741704cc6f7ad8f4c78460154b4ced3c64e0ddd0 (patch)
tree7873e162a78decdecfb9abd51bdec524df9aa786
parent92a4f3acf88db860a170df67b4b93caab41928b3 (diff)
parent11a120521d3716c7b5833ada4de1c20ad25fbe85 (diff)
Merge pull request #352 from kai-tub/main-1
Add link to DoD talk in 101_for5.zig #348
-rw-r--r--exercises/101_for5.zig8
1 files changed, 6 insertions, 2 deletions
diff --git a/exercises/101_for5.zig b/exercises/101_for5.zig
index 234cc4f..200e71d 100644
--- a/exercises/101_for5.zig
+++ b/exercises/101_for5.zig
@@ -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 the magic bag:
+// Now, would you rather use 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,3 +120,7 @@ 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
+//