# \#docs

**URL:** https://forum.modular.com/tag/docs/7.md

[Latest](https://forum.modular.com/latest.md) · [Categories](https://forum.modular.com/categories.md) · [Tags](https://forum.modular.com/tags.md)

---

## [Implicit copy of read ref? Documentation problem, right?](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075)

<div class="topic-metadata">

**Author:** [@JulianJS](https://forum.modular.com/u/JulianJS)\
**Replies:** 2\
**Last updated:** [May 13, 2026, 3:32pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075 "2026-05-13T15:32:31Z")

</div>

Reading through the docs once again for the 100x time probably I found this: def mutate\_copy(l: List\[Int\]) -\> List\[Int\]: # def creates an implicit copy of the list because it's mutated l.append(5) return l I…

---

## [GPU Programming on Mac](https://forum.modular.com/t/gpu-programming-on-mac/2174)

<div class="topic-metadata">

**Author:** [@a10i](https://forum.modular.com/u/a10i)\
**Replies:** 14\
**Last updated:** [September 21, 2025, 4:01pm UTC](https://forum.modular.com/t/gpu-programming-on-mac/2174 "2025-09-21T16:01:13Z")

</div>

Hello everyone, I am an iOS developer looking to switch fields and interested in, but new to the GPU programming world, and only have access to an Apple silicon MacBook. According to the system requirements for Macs at…

---

## [Quickstart Docs](https://forum.modular.com/t/quickstart-docs/1501)

<div class="topic-metadata">

**Author:** [@valon](https://forum.modular.com/u/valon)\
**Replies:** 7\
**Last updated:** [June 14, 2025, 8:34pm UTC](https://forum.modular.com/t/quickstart-docs/1501 "2025-06-14T20:34:57Z")

</div>

hey there, was going through the docs and noticed that there is an update required. specifically referring to: Quickstart | Modular in the code, there is a missing argument: settings was going to try and submit a pr t…

---

## [GPU Programming Manual](https://forum.modular.com/t/gpu-programming-manual/755)

<div class="topic-metadata">

**Author:** [@jack.clayton](https://forum.modular.com/u/jack.clayton)\
**Replies:** 17\
**Last updated:** [March 26, 2025, 2:55pm UTC](https://forum.modular.com/t/gpu-programming-manual/755 "2025-03-26T14:55:30Z")

</div>

Content: Source Code: Please leave any questions, feedback, or suggestions for the GPU programming manual in this thread.

---

## [Micrograd implementation in mojo](https://forum.modular.com/t/micrograd-implementation-in-mojo/631)

<div class="topic-metadata">

**Author:** [@kraudy](https://forum.modular.com/u/kraudy)\
**Replies:** 1\
**Last updated:** [February 24, 2025, 5:48am UTC](https://forum.modular.com/t/micrograd-implementation-in-mojo/631 "2025-02-24T05:48:51Z")

</div>

This is my simple implementation of Karpathy’s micrograd in mojo. It is an scalar (1 element tensor) autodiff engine intented for learning purpose while being complete and fast. The goal is to see how far this engine ca…

---

## [Resources for learning MAX for non-ML developers](https://forum.modular.com/t/resources-for-learning-max-for-non-ml-developers/606)

<div class="topic-metadata">

**Author:** [@bgreni](https://forum.modular.com/u/bgreni)\
**Replies:** 2\
**Last updated:** [February 22, 2025, 2:39pm UTC](https://forum.modular.com/t/resources-for-learning-max-for-non-ml-developers/606 "2025-02-22T14:39:02Z")

</div>

Given that MAX is likely to attract new people to heterogeneous programming (me, I am people). I think it would helpful to have a collection of resources to help developers with no gpu programming experience get started …

---

## [PyMo - A framework and extension of Mojo](https://forum.modular.com/t/pymo-a-framework-and-extension-of-mojo/456)

<div class="topic-metadata">

**Author:** [@rcmpge](https://forum.modular.com/u/rcmpge)\
**Replies:** 1\
**Last updated:** [February 15, 2025, 4:19am UTC](https://forum.modular.com/t/pymo-a-framework-and-extension-of-mojo/456 "2025-02-15T04:19:19Z")

</div>

Hey y’all (that sounds very Texan), I am building out (when it is completed, I do not know lol) – PyMo. It is a framework in Mojo for AI/ML/DL applications and other domains. I didn’t plan on publishing it yet, but I wan…

---

## [Modo🧯 -- Documentation generator (DocGen) for Mojo🔥](https://forum.modular.com/t/modo-documentation-generator-docgen-for-mojo/471)

<div class="topic-metadata">

**Author:** [@mlange-42](https://forum.modular.com/u/mlange-42)\
**Replies:** 6\
**Last updated:** [February 7, 2025, 10:21pm UTC](https://forum.modular.com/t/modo-documentation-generator-docgen-for-mojo/471 "2025-02-07T22:21:01Z")

</div>

Modo:fire\_extinguisher: is a documentation generator (DocGen) for the Mojo​:fire: programming language. It generates Markdown for static site generators (SSGs) from mojo doc JSON output. This example in the User guide s…

---

## [Magic CLI and Workflows @ the Command Line](https://forum.modular.com/t/magic-cli-and-workflows-the-command-line/360)

<div class="topic-metadata">

**Author:** [@rcmpge](https://forum.modular.com/u/rcmpge)\
**Replies:** 2\
**Last updated:** [December 21, 2024, 3:18am UTC](https://forum.modular.com/t/magic-cli-and-workflows-the-command-line/360 "2024-12-21T03:18:09Z")

</div>

I know there is big discussion about mojo and max for the Modular stack. But I’ve really been interested on workflows from the command line. What are the plans for magic moving into 2025? Is there a resources section on …

---

## [How to apply a vectorized function to a List inplace in Mojo](https://forum.modular.com/t/how-to-apply-a-vectorized-function-to-a-list-inplace-in-mojo/300)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 3\
**Last updated:** [December 16, 2024, 2:40pm UTC](https://forum.modular.com/t/how-to-apply-a-vectorized-function-to-a-list-inplace-in-mojo/300 "2024-12-16T14:40:54Z")

</div>

from memory import Span from sys.info import simdwidthof fn apply\[ D: DType, O: MutableOrigin, //, func: fn\[w: Int\] (SIMD\[D, w\]) -\> SIMD\[D, w\], \](span: Span\[Scalar\[D\], O\]): """Apply the function to the …

---

## [How to uppercase and lowercase ASCII strings using SIMD in Mojo](https://forum.modular.com/t/how-to-uppercase-and-lowercase-ascii-strings-using-simd-in-mojo/301)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 5\
**Last updated:** [December 14, 2024, 8:29pm UTC](https://forum.modular.com/t/how-to-uppercase-and-lowercase-ascii-strings-using-simd-in-mojo/301 "2024-12-14T20:29:11Z")

</div>

from memory import Span from sys.info import simdwidthof fn apply\[ D: DType, O: MutableOrigin, //, func: fn\[w: Int\] (SIMD\[D, w\]) -\> SIMD\[D, w\], \*, where: fn\[w: Int\] (SIMD\[D, w\]) -\> SIMD\[DType.bool, …

---

## [How to check if a scalar value is contained in a List using SIMD](https://forum.modular.com/t/how-to-check-if-a-scalar-value-is-contained-in-a-list-using-simd/299)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 0\
**Last updated:** [December 14, 2024, 1:06am UTC](https://forum.modular.com/t/how-to-check-if-a-scalar-value-is-contained-in-a-list-using-simd/299 "2024-12-14T01:06:26Z")

</div>

from memory import Span from sys.info import simdwidthof fn contains\[ D: DType, // \](span: Span\[Scalar\[D\]\], value: Scalar\[D\]) -\> Bool: """Verify if a given value is present in the Span. Parameters: …

---

## [How to reverse data using SIMD in Mojo](https://forum.modular.com/t/how-to-reverse-data-using-simd-in-mojo/298)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 0\
**Last updated:** [December 14, 2024, 1:00am UTC](https://forum.modular.com/t/how-to-reverse-data-using-simd-in-mojo/298 "2024-12-14T01:00:45Z")

</div>

from memory import Span from sys.info import simdwidthof fn reverse\[D: DType, O: MutableOrigin, //\](span: Span\[Scalar\[D\], O\]): """Reverse the elements of the Span inplace. Parameters: D: The DType of t…

---

## [How to build a generic collection with an Iterator in Mojo](https://forum.modular.com/t/how-to-build-a-generic-collection-with-an-iterator-in-mojo/297)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 0\
**Last updated:** [December 14, 2024, 12:49am UTC](https://forum.modular.com/t/how-to-build-a-generic-collection-with-an-iterator-in-mojo/297 "2024-12-14T00:49:33Z")

</div>

from memory import UnsafePointer, Pointer @value struct \_SomeCollectionIter\[ is\_mutable: Bool, //, T: CollectionElement, collection\_origin: Origin\[is\_mutable\], forward: Bool = True, \]: """Iterator fo…

---

## [How to iterate over a \`List\` using \`SIMD\` in Mojo](https://forum.modular.com/t/how-to-iterate-over-a-list-using-simd-in-mojo/98)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 8\
**Last updated:** [December 9, 2024, 9:30pm UTC](https://forum.modular.com/t/how-to-iterate-over-a-list-using-simd-in-mojo/98 "2024-12-09T21:30:35Z")

</div>

from sys.info import simdwidthof fn main(): values = List\[UInt8\](1, 2, 3, 4, 5, 6, 7, 8, 9, 10) length = len(values) # 10 for element in values: \_ = element # iterates per element ptr = valu…

---

## [How to create/read/write to/from a file in Mojo](https://forum.modular.com/t/how-to-create-read-write-to-from-a-file-in-mojo/96)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 2\
**Last updated:** [December 9, 2024, 9:27pm UTC](https://forum.modular.com/t/how-to-create-read-write-to-from-a-file-in-mojo/96 "2024-12-09T21:27:49Z")

</div>

from os import remove def main(): name = "some\_file.txt" with open(name, "w") as f: f.write("new contents 🔥") with open(name, "r") as f: contents = f.read() print(contents) …

---

## [How to iterate over a compile time \`List\`/\`Tuple\` in Mojo](https://forum.modular.com/t/how-to-iterate-over-a-compile-time-list-tuple-in-mojo/107)

<div class="topic-metadata">

**Author:** [@martinvuyk](https://forum.modular.com/u/martinvuyk)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 7:56pm UTC](https://forum.modular.com/t/how-to-iterate-over-a-compile-time-list-tuple-in-mojo/107 "2024-12-09T19:56:56Z")

</div>

fn main(): alias literals = ("some", "string", "tuple") alias strings = List("some", "string", "list") @parameter for i in range(len(literals)): alias literal = literals.get\[i, StringLiteral\]() …
