Mojo 1.0 正式发布
Mojo 1.0

原始链接: https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here

Mojo 编程语言正式发布 1.0 版本,标志着它已成为开发者稳定且可用于生产环境的基础。自 2023 年首次亮相以来,Mojo 已演进为一种高性能、通用的编程语言,并得到了庞大贡献者社区的支持。 1.0 版本专注于一致性、可预测性和长期稳定性。通过简化语言本身——统一变量声明、精简词汇表并整合闭包——Modular 为开发者建立了一个可靠的基石,使他们能够构建大型项目,而无需担心频繁的重大变更。26.5 版本的主要更新包括改进了内存安全诊断、引入了 Python 风格的 lambda 语法,以及更稳定的 LSP 服务器,从而提升了编辑器集成体验。 尽管 1.0 是一个重要的里程碑,但这并非该语言演进的终点。未来的工作将聚焦于异步编程、模式匹配,并计划在 2026 年前完成编译器和工具链的持续开源。在 Mojo 更新的同时,26.5 版本还对 MAX 平台进行了增强,包括简化安装流程以及扩大对新 AI 模型系列的支持。Mojo 1.0 为系统编程提供了一个连贯且专业的环境,为生态系统的长期增长奠定了基础。

Mojo 1.0 的发布在 Hacker News 上引发了褒贬不一的反响。尽管一些用户对其致力于为 Python 开发者提供媲美 C++ 性能的目标感到好奇,但社区总体情绪仍持怀疑态度。 争议的核心在于其编译器目前仍未开源;Modular 公司表示计划在 2026 年将其开源。许多开发者表示不愿意采用一门专有语言,并指出 Rust 或 Nim 等替代方案已经占据了这一领域,且 Python 生态中的各类库正不断弥合性能差距。 此外,一些评论者质疑在 AI 辅助编程时代学习一门新语言的必要性,他们更倾向于使用大型语言模型(LLM)已经非常精通的成熟语言。另一些人则批评 Mojo 与专有的 MAX 平台深度绑定,并要求提供更多针对 PyTorch 和 Triton 等现有技术的透明性能基准测试。总体而言,尽管部分人对该项目的方法持乐观态度,但许多人仍未被说服,表示在编译器完全开源之前,不会考虑将其用于正式开发。
相关文章

原文

Today, the Mojo language officially reaches 1.0: a milestone the language has been building toward since its first release in 2023. Mojo has grown into a general-purpose language with a vibrant developer community writing their own libraries, tools, and applications on top of it. With Mojo 1.0, developers can now build for the long-term on a stable, production-ready language foundation.

Mojo 1.0: A stable foundation for ecosystem growth

Modular has rapidly evolved the Mojo language through extensive internal use. But that pace of progress has come with a tradeoff: frequent changes have made it difficult for the community to maintain long-term projects.

As we stated when we first announced the path to Mojo 1.0, its primary goal is to provide a stable foundation developers can build on. We are making that commitment today because Mojo is ready: it is no longer just a language we are developing; it is a language we rely on every day in production as the foundation of our commercial infrastructure, MAX and Modular Cloud.

Importantly, Mojo 1.0 does not mark the end of the language’s evolution, but it is an important milestone on a longer journey. During the 1.x timeframe, changes should primarily be additive, giving developers confidence that the language will not continually shift beneath them. Breaking changes may still be made, but will be managed with care, following the standards of how mature languages (e.g. C++) evolve over time.

Yet, this milestone belongs just as much to our incredible community as it does to us. Since we open-sourced the standard library, nearly 200 contributors have landed more than 1,100 pull requests, changing over 200,000 lines of code, and more than a thousand others have filed issues that shaped the language. To every developer who filed an issue, opened a pull request, wrote a language proposal, or built a package: thank you for being the architects of this language alongside us.

Mojo improvements in 26.5

Much of this release is focused on completing the work required for Mojo 1.0 – a throughline across our last several releases as we’ve worked to make the language more consistent, predictable, and approachable.

Where Mojo offered multiple ways to express the same idea, we’ve converged on one. Variables are now consistently declared with var, closures have been unified, there is a single Pointer type, and a number of renamings have made the Mojo lexicon more precise and consistent.

This release completes that final round of language simplification and cleanup, giving Mojo 1.0 the stable, coherent foundation we want developers to be able to build on for years to come.

Beyond this foundational work, Mojo 1.0 also includes several new features and improvements since the last beta release:

  • Mojo now supports Python-style “lambda” syntax for inline closures.
  • The Mojo LSP server is far more stable and reliable, greatly improving your everyday experience with VS Code and other editors.
  • The Mojo AI Skills are now “1.0 ready”, covering new project creation, GPU programming, porting from other languages, etc.
  • Mojo now diagnoses memory safety problems involving reference invalidation, e.g. noticing when List.append invalidates a reference into the list.
  • “where” clauses are more consistently used across the standard library, and allow a descriptive message to make failures more actionable.

These are only a few of the highlights. See the full Mojo changelog on mojolang.org for the complete list of changes.

Where Mojo goes from here

Mojo 1.0 is a major milestone, but there’s so much more we are planning for the language. Mojo has already established itself as a powerful language for writing high-performance code across modern CPUs, GPUs, and accelerators. The next phase of its evolution is to broaden that foundation and make Mojo a truly great general-purpose systems programming language.

That means continuing to invest in the core language and developer experience, with major capabilities ahead including a robust asynchronous programming model, pattern matching and unions, and much more. You can see what we are working toward in the Mojo roadmap.

Finally, we will continue to progressively open-source more of the Mojo language, as well as components in MAX that we have built with it. Our commitment remains unchanged – we will open source the Mojo compiler and toolchain in 2026.

MAX enhancements in 26.5

While Mojo 1.0 is the highlight of this release, 26.5 brings improvements to MAX, too.

Installing MAX is now easier: use max[“serve”] and max[“benchmark”] (max-serve and max-benchmark with conda) to install only the dependencies you need, or max[“all”] to install everything. The modular package will be retired in 26.6.

MAX also adds support for two new model families: GLM-5.2 and Nemotron-H, both hybrid Mamba-2 models. And Kimi 2.5 now works with Module V3, our streamlined model-authoring path.

Last, our collection of open source agent skills is a great way to get started with this release. We've used these skills internally to speed up full model lifecycle bring-up, and they've picked up 7.2K+ downloads through skills.sh.

For the full list of updates, see the MAX changelog.

Get started with 26.5 and Mojo 1.0

Install or upgrade to get started in minutes:

bash
uv pip install --upgrade mojo

uv pip install max[all]

1.0 is just the beginning, and we’ll share more on our plans for Mojo, MAX, and open source at ModCon on August 18th in San Francisco. Tune in virtually via the livestream or join the in-person waitlist.

联系我们 contact @ memedata.com