# Mojo

**URL:** https://forum.modular.com/c/mojo/7.md?page=2

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

**Page:** 3

---

## [New page up for our cheat-sheet crowd](https://forum.modular.com/t/new-page-up-for-our-cheat-sheet-crowd/3302)

<div class="topic-metadata">

**Author:** [@erica\_sadun](https://forum.modular.com/u/erica_sadun)\
**Replies:** 0\
**Last updated:** [July 7, 2026, 3:57pm UTC](https://forum.modular.com/t/new-page-up-for-our-cheat-sheet-crowd/3302 "2026-07-07T15:57:39Z")

</div>

Hi all! If you’re the kind of developer who likes keeping a cheat sheet nearby, the Docs team has added a collection of Mojo language reference cards. The first six cover Mojo basics, compile-time, traits, ownership, ty…

---

## [Mojo.nvim v1.0.0](https://forum.modular.com/t/mojo-nvim-v1-0-0/3300)

<div class="topic-metadata">

**Author:** [@Sarctiann](https://forum.modular.com/u/Sarctiann)\
**Replies:** 0\
**Last updated:** [July 7, 2026, 1:58pm UTC](https://forum.modular.com/t/mojo-nvim-v1-0-0/3300 "2026-07-07T13:58:52Z")

</div>

:fire: mojo.nvim v1.0.0 is tagged Tag v1.0.0 — Debugging now works out of the box on both Pixi and uv projects, on macOS and Linux. No manual signing required. What’s new: DAP debug for uv/pip projects (nvim-dap) — by…

---

## [Disabling ASAP destruction within a function](https://forum.modular.com/t/disabling-asap-destruction-within-a-function/3299)

<div class="topic-metadata">

**Author:** [@Ryulord](https://forum.modular.com/u/Ryulord)\
**Replies:** 2\
**Last updated:** [July 6, 2026, 9:01pm UTC](https://forum.modular.com/t/disabling-asap-destruction-within-a-function/3299 "2026-07-06T21:01:28Z")

</div>

I recently opened this issue which was closed as “not planned”. The proposed solution was to model origins as part of the type but this isn’t practical for various reasons. One reason is that many structs in Vulkan have…

---

## [Typed Error Best Practices](https://forum.modular.com/t/typed-error-best-practices/3290)

<div class="topic-metadata">

**Author:** [@moseschmiedel](https://forum.modular.com/u/moseschmiedel)\
**Replies:** 1\
**Last updated:** [July 2, 2026, 2:41am UTC](https://forum.modular.com/t/typed-error-best-practices/3290 "2026-07-02T02:41:22Z")

</div>

Hi, I was wondering what the current best practices when using typed errors in your codebase. I currently use one error type per module which holds an integer to discriminate between variants. I then have implicit conver…

---

## [Mojo Quest: A browser-based game for learning Mojo syntax](https://forum.modular.com/t/mojo-quest-a-browser-based-game-for-learning-mojo-syntax/3288)

<div class="topic-metadata">

**Author:** [@dunnoconnor](https://forum.modular.com/u/dunnoconnor)\
**Replies:** 2\
**Last updated:** [June 30, 2026, 1:24pm UTC](https://forum.modular.com/t/mojo-quest-a-browser-based-game-for-learning-mojo-syntax/3288 "2026-06-30T13:24:31Z")

</div>

Mojo Quest is a browser-based game for learning Mojo syntax by closing engineering tickets for a fictional robotics company. I’ve been working on building resources to help developers get started with Mojo, and I think …

---

## [Which ABI effect should I declare when exporting a function to Python?](https://forum.modular.com/t/which-abi-effect-should-i-declare-when-exporting-a-function-to-python/3279)

<div class="topic-metadata">

**Author:** [@samufi](https://forum.modular.com/u/samufi)\
**Replies:** 1\
**Last updated:** [June 26, 2026, 3:41pm UTC](https://forum.modular.com/t/which-abi-effect-should-i-declare-when-exporting-a-function-to-python/3279 "2026-06-26T15:41:59Z")

</div>

When exporting a function to python as specified in the docs, I get a warning @export def PyInit\_my\_module() -\> PythonObject: ... The warning is \>\> warning: @export requires an explicit 'abi()' effect on the funct…

---

## [Timeline for Windows Support](https://forum.modular.com/t/timeline-for-windows-support/3268)

<div class="topic-metadata">

**Author:** [@armin](https://forum.modular.com/u/armin)\
**Replies:** 1\
**Last updated:** [June 23, 2026, 1:47pm UTC](https://forum.modular.com/t/timeline-for-windows-support/3268 "2026-06-23T13:47:44Z")

</div>

Dear Modular team, First of all, thanks for the fantastic work on Mojo so far! As a maintainer of open-source Python libraries and applications, I am very excited about the possible performance gains through Mojo integ…

---

## [\[Project\] Mojo for Robotics: Porting GPU Navigation Kernels (Jetson / Strix Halo)](https://forum.modular.com/t/project-mojo-for-robotics-porting-gpu-navigation-kernels-jetson-strix-halo/2952)

<div class="topic-metadata">

**Author:** [@haroon](https://forum.modular.com/u/haroon)\
**Replies:** 9\
**Last updated:** [June 19, 2026, 10:45pm UTC](https://forum.modular.com/t/project-mojo-for-robotics-porting-gpu-navigation-kernels-jetson-strix-halo/2952 "2026-06-19T22:45:38Z")

</div>

Hello everyone! Migrating a discussion that started in the Discord over to the forums so we can track progress, and collaborate more easily. Background We are building EMOS (the open-source Embodied OS for Physical AI)…

---

## [Proposal: Allow manually initializing all fields without init](https://forum.modular.com/t/proposal-allow-manually-initializing-all-fields-without-init/3255)

<div class="topic-metadata">

**Author:** [@qja](https://forum.modular.com/u/qja)\
**Replies:** 3\
**Last updated:** [June 19, 2026, 6:27pm UTC](https://forum.modular.com/t/proposal-allow-manually-initializing-all-fields-without-init/3255 "2026-06-19T18:27:59Z")

</div>

‘two\_fields’ used with all fields manually initialized but without calling an ‘init’ method As proven by \_\_mlir\_op.\`lit.ownership.mark\_initialized\`( \_\_get\_mvalue\_as\_litref(two\_fields)) this is an completely artifici…

---

## [Link \`PyInit\` built object against other files](https://forum.modular.com/t/link-pyinit-built-object-against-other-files/3113)

<div class="topic-metadata">

**Author:** [@tedmoore](https://forum.modular.com/u/tedmoore)\
**Replies:** 3\
**Last updated:** [June 19, 2026, 3:46pm UTC](https://forum.modular.com/t/link-pyinit-built-object-against-other-files/3113 "2026-06-19T15:46:02Z")

</div>

Greetings, The example below calls on a lot of other Mojo code that all gets recompiled when any piece of the program changes. (This happens when this PythonObject is “imported” in Python code). Also, the code that it …

---

## [Mojo auto-vectorization for generated DSP code](https://forum.modular.com/t/mojo-auto-vectorization-for-generated-dsp-code/3252)

<div class="topic-metadata">

**Author:** [@manuelfarzini](https://forum.modular.com/u/manuelfarzini)\
**Replies:** 1\
**Last updated:** [June 19, 2026, 2:08am UTC](https://forum.modular.com/t/mojo-auto-vectorization-for-generated-dsp-code/3252 "2026-06-19T02:08:15Z")

</div>

Hi everyone, I am developing a Mojo backend for FAUST, a functional DSL for audio DSP with mature C++ codegen, and studying which Mojo code shapes optimize best. FAUST has scalar and vec modes. vec mode restructures co…

---

## [Why Variable Declaration Matters — And How Mojo Can Become Truly Python-Friendly](https://forum.modular.com/t/why-variable-declaration-matters-and-how-mojo-can-become-truly-python-friendly/3246)

<div class="topic-metadata">

**Author:** [@KilianKlaiber](https://forum.modular.com/u/KilianKlaiber)\
**Replies:** 4\
**Last updated:** [June 17, 2026, 6:32am UTC](https://forum.modular.com/t/why-variable-declaration-matters-and-how-mojo-can-become-truly-python-friendly/3246 "2026-06-17T06:32:41Z")

</div>

Why Variable Declaration Matters Variable declaration is one of the very first things every programmer learns after print("Hello World"). It forms your first and lasting impression of a language. If declaring variables…

---

## [OwnedPointer Copyable?](https://forum.modular.com/t/ownedpointer-copyable/3244)

<div class="topic-metadata">

**Author:** [@qja](https://forum.modular.com/u/qja)\
**Replies:** 4\
**Last updated:** [June 15, 2026, 9:08pm UTC](https://forum.modular.com/t/ownedpointer-copyable/3244 "2026-06-15T21:08:52Z")

</div>

Why is OwnedPointer not Copyable? It doesn’t make sense because it’s impossible to use OwnedPointer with List, which requires Copyable.

---

## [Standard library import warning/error between b1 and b2](https://forum.modular.com/t/standard-library-import-warning-error-between-b1-and-b2/3237)

<div class="topic-metadata">

**Author:** [@darenc](https://forum.modular.com/u/darenc)\
**Replies:** 1\
**Last updated:** [June 12, 2026, 6:10pm UTC](https://forum.modular.com/t/standard-library-import-warning-error-between-b1-and-b2/3237 "2026-06-12T18:10:53Z")

</div>

Please note, I’m very new to Mojo (like, 20 minutes), so I might be doing something obviously wrong. However, given this line: from gpu.host import DeviceContext With 1.0.0b1 I got a very helpful error message: /home…

---

## [Mojo's Ownership Model from the Point of View of a Python Developer](https://forum.modular.com/t/mojos-ownership-model-from-the-point-of-view-of-a-python-developer/3227)

<div class="topic-metadata">

**Author:** [@KilianKlaiber](https://forum.modular.com/u/KilianKlaiber)\
**Replies:** 7\
**Last updated:** [June 11, 2026, 4:40pm UTC](https://forum.modular.com/t/mojos-ownership-model-from-the-point-of-view-of-a-python-developer/3227 "2026-06-11T16:40:45Z")

</div>

The basics of Mojo’s ownership model are excellent, but the details matter. Ownership in Mojo is fundamentally about binding data to variables. There are three primary ways data can be bound: Ownership (the variable t…

---

## [Proposal: Make ':=' the standard declaration operator in Mojo (Go-style)](https://forum.modular.com/t/proposal-make-the-standard-declaration-operator-in-mojo-go-style/3198)

<div class="topic-metadata">

**Author:** [@KilianKlaiber](https://forum.modular.com/u/KilianKlaiber)\
**Replies:** 16\
**Last updated:** [June 9, 2026, 1:51pm UTC](https://forum.modular.com/t/proposal-make-the-standard-declaration-operator-in-mojo-go-style/3198 "2026-06-09T13:51:56Z")

</div>

Hi Mojo team and community, There have been discussions about assignment syntax and whether Mojo should adopt Python’s walrus operator (:=). Some voices have even suggested removing = entirely. I believe there is a muc…

---

## [Block scope vs. function scope of variables](https://forum.modular.com/t/block-scope-vs-function-scope-of-variables/3138)

<div class="topic-metadata">

**Author:** [@KilianKlaiber](https://forum.modular.com/u/KilianKlaiber)\
**Replies:** 19\
**Last updated:** [June 7, 2026, 6:29am UTC](https://forum.modular.com/t/block-scope-vs-function-scope-of-variables/3138 "2026-06-07T06:29:59Z")

</div>

Hello everyone, I’ve been experimenting with Mojo for a few days and have really enjoyed learning the language so far. While exploring variable declarations, I encountered a behavior that surprised me. According to the…

---

## [Neovim MOJO plugin (mojo.nvim)](https://forum.modular.com/t/neovim-mojo-plugin-mojo-nvim/3196)

<div class="topic-metadata">

**Author:** [@Sarctiann](https://forum.modular.com/u/Sarctiann)\
**Replies:** 4\
**Last updated:** [June 7, 2026, 3:51am UTC](https://forum.modular.com/t/neovim-mojo-plugin-mojo-nvim/3196 "2026-06-07T03:51:22Z")

</div>

:fire: mojo.nvim I created a simple configuration some time ago. This time, I improved it with AI to achieve a more automated workflow. This plugin allows us to simply: cd to our Mojo project directory (as we would …

---

## [Reasoning behind immutable parameters to functions versus mutable by default var bindings?](https://forum.modular.com/t/reasoning-behind-immutable-parameters-to-functions-versus-mutable-by-default-var-bindings/3130)

<div class="topic-metadata">

**Author:** [@sashang](https://forum.modular.com/u/sashang)\
**Replies:** 2\
**Last updated:** [June 1, 2026, 4:41pm UTC](https://forum.modular.com/t/reasoning-behind-immutable-parameters-to-functions-versus-mutable-by-default-var-bindings/3130 "2026-06-01T16:41:15Z")

</div>

Hi Just wondering what the reasoning was behind making var bindings mutable, like variables in C, and parameters of functions immutable? Thanks

---

## [Mojo Closures 2026](https://forum.modular.com/t/mojo-closures-2026/3013)

<div class="topic-metadata">

**Author:** [@Steffi](https://forum.modular.com/u/Steffi)\
**Replies:** 18\
**Last updated:** [May 26, 2026, 6:01pm UTC](https://forum.modular.com/t/mojo-closures-2026/3013 "2026-05-26T18:01:29Z")

</div>

Mojo Closures Before this release, Mojo has had several flavors of closures: Legacy capturing\[\_\] closures — @parameter functions passed only as compile-time type parameters, with implicit captures (and @\_\_copy\_capture …

---

## [313t and 314t Python Interop](https://forum.modular.com/t/313t-and-314t-python-interop/3057)

<div class="topic-metadata">

**Author:** [@Synaptic724](https://forum.modular.com/u/Synaptic724)\
**Replies:** 1\
**Last updated:** [May 26, 2026, 4:22pm UTC](https://forum.modular.com/t/313t-and-314t-python-interop/3057 "2026-05-26T16:22:30Z")

</div>

Hey Mojo team, I’m an AI Native python framework developer and I would love to use your language with my frameworks as plugins for my AI Native tooling. I haven’t released my package as of yet but they’ll be coming out …

---

## [Formal proposal for closures](https://forum.modular.com/t/formal-proposal-for-closures/2989)

<div class="topic-metadata">

**Author:** [@monte](https://forum.modular.com/u/monte)\
**Replies:** 2\
**Last updated:** [May 24, 2026, 5:23pm UTC](https://forum.modular.com/t/formal-proposal-for-closures/2989 "2026-05-24T17:23:26Z")

</div>

Good day, everyone. I trust all is well. I would like to ask if we could get a formal proposal drawn up for closures. It seems that there is currently no formal proposal for closures. Please also note the following f…

---

## [@staticmethod error in test but not deployment](https://forum.modular.com/t/staticmethod-error-in-test-but-not-deployment/3100)

<div class="topic-metadata">

**Author:** [@tedmoore](https://forum.modular.com/u/tedmoore)\
**Replies:** 1\
**Last updated:** [May 22, 2026, 6:42pm UTC](https://forum.modular.com/t/staticmethod-error-in-test-but-not-deployment/3100 "2026-05-22T18:42:28Z")

</div>

Greetings, I have struct with a @staticmethod that creates an instance of itself within that @staticmethod. When I run this code it works! Unfortunately, when running a smoke test on this code (mojo build --emit object …

---

## [Design-pattern: linear type-state FILO tree](https://forum.modular.com/t/design-pattern-linear-type-state-filo-tree/3102)

<div class="topic-metadata">

**Author:** [@rd4com](https://forum.modular.com/u/rd4com)\
**Replies:** 0\
**Last updated:** [May 22, 2026, 11:56am UTC](https://forum.modular.com/t/design-pattern-linear-type-state-filo-tree/3102 "2026-05-22T11:56:05Z")

</div>

(Make sure to test this idea if you want to use it, the implementation example is incomplete and untested) Hello :partying\_face: , just have this cool design pattern for an ui i’m working on. This uses linear types, …

---

## [Accelerator-side code and stability](https://forum.modular.com/t/accelerator-side-code-and-stability/3099)

<div class="topic-metadata">

**Author:** [@owenhilyard](https://forum.modular.com/u/owenhilyard)\
**Replies:** 1\
**Last updated:** [May 22, 2026, 1:18am UTC](https://forum.modular.com/t/accelerator-side-code-and-stability/3099 "2026-05-22T01:18:03Z")

</div>

As we approach 1.0, I think it needs to be determined what stdlib code is supported on accelerators and what is not, or at least a framework created for discussing this for a particular stdlib feature. For instance, Lis…

---

## [One question about function pointer](https://forum.modular.com/t/one-question-about-function-pointer/3096)

<div class="topic-metadata">

**Author:** [@RobertD](https://forum.modular.com/u/RobertD)\
**Replies:** 3\
**Last updated:** [May 21, 2026, 8:33pm UTC](https://forum.modular.com/t/one-question-about-function-pointer/3096 "2026-05-21T20:33:49Z")

</div>

Hello, I’m new one on Mojo. How to pass one function pointer(address or name) as a parameter in another function? When I checked doc, only an example to show pass class method as function parameter. How about pure f…

---

## [AI-Driven Software Diversity Could Become a Defining Advantage for Mojo](https://forum.modular.com/t/ai-driven-software-diversity-could-become-a-defining-advantage-for-mojo/3097)

<div class="topic-metadata">

**Author:** [@jbemmel](https://forum.modular.com/u/jbemmel)\
**Replies:** 0\
**Last updated:** [May 20, 2026, 11:56am UTC](https://forum.modular.com/t/ai-driven-software-diversity-could-become-a-defining-advantage-for-mojo/3097 "2026-05-20T11:56:12Z")

</div>

Most infrastructure runs on the same kernels, the same allocators, the same memory layouts. That homogeneity is an enormous gift to attackers. A working exploit doesn’t just compromise one system — it scales. The same ch…

---

## [Mojo as a Python superset](https://forum.modular.com/t/mojo-as-a-python-superset/2490)

<div class="topic-metadata">

**Author:** [@PXshadow](https://forum.modular.com/u/PXshadow)\
**Replies:** 20\
**Last updated:** [May 19, 2026, 11:47pm UTC](https://forum.modular.com/t/mojo-as-a-python-superset/2490 "2026-05-19T23:47:57Z")

</div>

Hello! I’ve been thinking a bit about the Mojo roadmap. In particular working on Mojo becoming a superset of Python at Phase 3. While I understand the pragmatism of focusing on what is already here in the language, and…

---

## [MMMAudio Creative Coding Audio Environment](https://forum.modular.com/t/mmmaudio-creative-coding-audio-environment/2359)

<div class="topic-metadata">

**Author:** [@spluta](https://forum.modular.com/u/spluta)\
**Replies:** 9\
**Last updated:** [May 17, 2026, 3:56pm UTC](https://forum.modular.com/t/mmmaudio-creative-coding-audio-environment/2359 "2026-05-17T15:56:54Z")

</div>

For the past few months I have been working on a creative coding environment leveraging python/Mojo interop. It is called MMMAudio and the repo is found here: MMMAudio - MMM Means Mojo Audio This environment is designe…

---

## [Which Mojo keywords can be used as package names without escaping?](https://forum.modular.com/t/which-mojo-keywords-can-be-used-as-package-names-without-escaping/3088)

<div class="topic-metadata">

**Author:** [@jbemmel](https://forum.modular.com/u/jbemmel)\
**Replies:** 1\
**Last updated:** [May 16, 2026, 7:39pm UTC](https://forum.modular.com/t/which-mojo-keywords-can-be-used-as-package-names-without-escaping/3088 "2026-05-16T19:39:43Z")

</div>

I was trying to understand how Mojo treats package path segments that overlap with language keywords, especially for generated code where package names may come from an external schema. I wrote a small standalone prob…

[Previous page](https://forum.modular.com/c/mojo/7.md?page=1)

[Next page](https://forum.modular.com/c/mojo/7.md?page=3)
