<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Mojo</id>
	<title>Mojo - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Mojo"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Mojo&amp;action=history"/>
	<updated>2026-07-14T12:18:12Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Mojo&amp;diff=4312653&amp;oldid=prev</id>
		<title>imported&gt;Nullizer：​使用DisamAssist清理消歧义链接：Rust（链接至Rust (编程语言); 链接至Rust (编程语言); 链接至Rust (编程语言)）。</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Mojo&amp;diff=4312653&amp;oldid=prev"/>
		<updated>2025-10-26T02:10:51Z</updated>

		<summary type="html">&lt;p&gt;使用&lt;a href=&quot;/index.php?title=User:%E6%9A%81%E6%9C%88%E5%87%9B%E5%A5%88/DisamAssist&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:暁月凛奈/DisamAssist（页面不存在）&quot;&gt;DisamAssist&lt;/a&gt;清理&lt;a href=&quot;https://en.wikipedia.org/wiki/%E6%B6%88%E6%AD%A7%E4%B9%89&quot; class=&quot;extiw&quot; title=&quot;wikipedia:消歧义&quot;&gt;消歧义&lt;/a&gt;链接：&lt;a href=&quot;/wiki/Rust&quot; title=&quot;Rust&quot;&gt;Rust&lt;/a&gt;（链接至&lt;a href=&quot;/wiki/Rust_(%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80)&quot; title=&quot;Rust (编程语言)&quot;&gt;Rust (编程语言)&lt;/a&gt;; 链接至&lt;a href=&quot;/wiki/Rust_(%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80)&quot; title=&quot;Rust (编程语言)&quot;&gt;Rust (编程语言)&lt;/a&gt;; 链接至&lt;a href=&quot;/wiki/Rust_(%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80)&quot; title=&quot;Rust (编程语言)&quot;&gt;Rust (编程语言)&lt;/a&gt;）。&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA|G1=IT}}&lt;br /&gt;
{{Infobox programming language&lt;br /&gt;
| name = Mojo&lt;br /&gt;
| logo = &lt;br /&gt;
| logo size = &lt;br /&gt;
| logo alt = &lt;br /&gt;
| logo caption = &lt;br /&gt;
| paradigm = [[编程范型|多范型]]：[[指令式编程|指令式]]（为主），[[函数式编程|函数式]]、[[泛型编程|泛型]]&lt;br /&gt;
| family = [[Python]]&lt;br /&gt;
| designer = [[克里斯·拉特納]]&lt;br /&gt;
| developer = Modular公司&lt;br /&gt;
| typing = {{cslist|&lt;br /&gt;
  {{en-link|子结构类型|Substructural type system|仿射}}|&lt;br /&gt;
  [[类型推论|推论]]|&lt;br /&gt;
  [[名義型別系統|名义]]|&lt;br /&gt;
  [[鸭子类型|鸭子]]|&lt;br /&gt;
  [[静态类型|静态]]|&lt;br /&gt;
  [[动态类型|动态]]|&lt;br /&gt;
  [[強弱型別|强类型]]|&lt;br /&gt;
}}&lt;br /&gt;
| implementations = &lt;br /&gt;
| dialects = &lt;br /&gt;
| influenced = &lt;br /&gt;
| operating system = [[跨平臺]]&lt;br /&gt;
| license = [[专有软件|专有]]&lt;br /&gt;
| year = {{start date and age|2023}}&lt;br /&gt;
| influenced by = [[Python]]、[[Cython]]、[[C语言|C]]、[[C++]]、[[Rust (编程语言)|Rust]]、[[Swift]]、[[Zig]]&lt;br /&gt;
| file ext = {{Mono|.🔥}}（火焰[[emoji]]/U+1F525）、{{Mono|.mojo}}&lt;br /&gt;
| website = {{URL|https://www.modular.com/mojo}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mojo&amp;#039;&amp;#039;&amp;#039;是由Modular公司开发的一种基于{{le|MLIR编译器框架|MLIR (software)}}的[[编程语言]]，旨在为[[人工智能]]等领域的软件开发提供统一的编程框架。&amp;lt;ref name=&amp;quot;MojoProgrammingManual_(2023)&amp;quot;&amp;gt;{{Cite web|date=2023|title=Mojo🔥 programming manual|url=https://docs.modular.com/mojo/programming-manual.html|access-date=2023-09-26|website=docs.modular.com|publisher=Modular|quote=Mojo is a programming language that is as easy to use as Python but with the performance of C++ and Rust. Furthermore, Mojo provides the ability to leverage the entire Python library ecosystem.|archive-date=2023-10-22|archive-url=https://web.archive.org/web/20231022204031/https://docs.modular.com/mojo/programming-manual.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;InfoWorld&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;Modular-Mojo_(2023)&amp;quot;&amp;gt;{{Cite web|date=2023|title=Mojo 🔥 — the programming language for all AI developers|url=https://www.modular.com/mojo|access-date=2023-09-26|website=www.modular.com|publisher=Modular|quote=Mojo leverages MLIR, which enables Mojo developers to take advantage of vectors, threads, and AI hardware units.|archive-date=2023-11-10|archive-url=https://web.archive.org/web/20231110145934/https://www.modular.com/mojo|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;HahnS_(2023)&amp;quot;&amp;gt;{{Cite web|last=Hahn|first=Silke|date=2023-05-09|title=Jenseits von Python: Mojo baut Brücke zwischen Python und C für Machine Learning|url=https://www.heise.de/news/Jenseits-von-Python-Mojo-baut-Bruecke-zwischen-Python-und-C-fuer-Machine-Learning-8991057.html|access-date=2023-09-26|website=www.heise.de|publisher=Heise Medien GmbH &amp;amp; Co. KG|language=de|quote=Eine neue Programmiersprache für Machine Learning, eine Art Python++?|archive-date=2023-09-26|archive-url=https://web.archive.org/web/20230926112936/https://www.heise.de/news/Jenseits-von-Python-Mojo-baut-Bruecke-zwischen-Python-und-C-fuer-Machine-Learning-8991057.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Modular-WhyMojo_(2023)&amp;quot;&amp;gt;{{Cite web|date=2023|title=Why Mojo🔥 - A language for next-generation compiler technology|url=https://docs.modular.com/mojo/why-mojo.html|access-date=2023-09-26|website=docs.modular.com|publisher=Modular|quote=While many other projects now use MLIR, Mojo is the first major language designed expressly for MLIR, which makes Mojo uniquely powerful when writing systems-level code for AI workloads.|archive-date=2023-05-05|archive-url=https://web.archive.org/web/20230505083518/https://docs.modular.com/mojo/why-mojo.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;InfoWorld&amp;quot;&amp;gt;{{Cite web|last=Krill|first=Paul|date=4 May 2023|title=Mojo language marries Python and MLIR for AI development|url=https://www.infoworld.com/article/3695588/mojo-language-marries-python-and-mlir-for-ai-development.html|website=InfoWorld|language=en|access-date=2023-09-27|archive-date=2023-05-05|archive-url=https://web.archive.org/web/20230505064554/https://www.infoworld.com/article/3695588/mojo-language-marries-python-and-mlir-for-ai-development.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;ClaburnT_(2023)&amp;quot;&amp;gt;{{Cite news|author=Claburn|first=Thomas|title=Modular reveals Mojo, Python superset with C-level speed|url=https://www.theregister.com/2023/05/05/modular_struts_its_mojo_a/|work=The Register|date=5 May 2023|language=en|accessdate=2023-09-27|archive-date=2023-09-02|archive-url=https://web.archive.org/web/20230902115548/https://www.theregister.com/2023/05/05/modular_struts_its_mojo_a/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite news|author=Pandey|first=Mohit|title=This New Programming Language is Likely to Replace Python|url=https://analyticsindiamag.com/this-new-programming-language-is-likely-to-replace-python/|work=Analytics India Magazine|date=3 May 2023|accessdate=2023-09-27|archive-date=2023-05-30|archive-url=https://web.archive.org/web/20230530143914/https://analyticsindiamag.com/this-new-programming-language-is-likely-to-replace-python/|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mojo语言为[[Python|Python语言]]的[[超集]]&amp;lt;ref name=&amp;quot;ClaburnT_(2023)&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;GitHub-Modular_(2023)&amp;quot;&amp;gt;{{Cite web|date=2023|title=Welcome to Mojo 🔥|url=https://github.com/modularml/mojo|access-date=2023-09-26|website=github.com|publisher=Modular|quote=Mojo is still young, but it is designed to become a superset of Python over time.|archive-date=2023-10-25|archive-url=https://web.archive.org/web/20231025133324/http://github.com/modularml/mojo|dead-url=no}}&amp;lt;/ref&amp;gt;，故也被称为&amp;#039;&amp;#039;&amp;#039;Python++&amp;#039;&amp;#039;&amp;#039; 。同时，它还具有[[C++]]的速度与[[Rust (编程语言)|Rust]]的安全性。&amp;lt;ref name=&amp;quot;PramodR_(2023)&amp;quot;&amp;gt;{{Cite web|last=Ramarao|first=Pramod|date=2023-09-07|title=Mojo🔥 - It’s finally here!|url=https://www.modular.com/blog/mojo-its-finally-here|access-date=2023-09-26|website=www.modular.com|publisher=Modular|quote=Mojo: a high performance &amp;#039;Python++&amp;#039; language for compute|archive-date=2023-11-12|archive-url=https://web.archive.org/web/20231112102035/https://www.modular.com/blog/mojo-its-finally-here|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;HahnS_(2023)&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;HowardJ_(2023)&amp;quot;&amp;gt;{{Cite web|last=Howard|first=Jeremy|date=2023-05-04|title=Mojo may be the biggest programming language advance in decades|url=https://www.fast.ai/posts/2023-05-03-mojo-launch.html|access-date=2023-09-26|website=www.fast.ai|publisher=fast.ai|quote=Maybe it’s better to say Mojo is Python++|archive-date=2023-10-17|archive-url=https://web.archive.org/web/20231017013234/https://www.fast.ai/posts/2023-05-03-mojo-launch.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;MayE_(2023b)&amp;quot;&amp;gt;{{Cite web|last=May|first=Eira|date=2023-09-25|title=Like Python++ for AI developers|url=https://stackoverflow.blog/2023/09/25/like-python-for-ai-developers/|access-date=2023-09-26|website=stackoverflow.blog|publisher=Stack Exchange, Inc.|archive-date=2023-10-04|archive-url=https://web.archive.org/web/20231004095425/https://stackoverflow.blog/2023/09/25/like-python-for-ai-developers/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;SaplinM_(2023)&amp;quot;&amp;gt;{{Cite web|last=Saplin|first=Maxim|date=2023-09-07|title=Mojo🔥SDK has been released for Linux|url=https://dev.to/maximsaplin/mojosdk-has-been-released-for-linux-2phh|access-date=2023-09-26|website=dev.to|publisher=DEV Community|quote=From the creators of LLVM, Clang, and Swift. A better Python, Python++|archive-date=2023-10-22|archive-url=https://web.archive.org/web/20231022110118/https://dev.to/maximsaplin/mojosdk-has-been-released-for-linux-2phh|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;MojoProgrammingManual_(2023)&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;MayE_(2023a)&amp;quot;&amp;gt;{{Cite web|last=May|first=Eira|date=2023-09-22|title=Mojo: The usability of Python with the performance of C|url=https://stackoverflow.blog/2023/09/21/mojo-the-usability-of-python-with-the-performance-of-c/|access-date=2023-09-26|website=stackoverflow.blog|publisher=Stack Exchange, Inc.|archive-date=2023-10-08|archive-url=https://web.archive.org/web/20231008114405/https://stackoverflow.blog/2023/09/21/mojo-the-usability-of-python-with-the-performance-of-c/|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mojo语言于2023年5月推出，最初仅能在浏览器的[[Jupyter|Jupyter笔记本]]中使用&amp;lt;ref name=&amp;quot;InfoWorld&amp;quot; /&amp;gt;&amp;lt;ref name=IWFirst&amp;gt;{{cite news |last1=Yegulalp |first1=Serdar |title=A first look at the Mojo language |url=https://www.infoworld.com/article/3697739/a-first-look-at-the-mojo-language.html |work=InfoWorld |date=7 June 2023 |language=en |accessdate=2023-09-27 |archive-date=2023-08-18 |archive-url=https://web.archive.org/web/20230818112306/https://www.infoworld.com/article/3697739/a-first-look-at-the-mojo-language.html |dead-url=no }}&amp;lt;/ref&amp;gt;，2023年9月起开始提供Linux本地版本。&amp;lt;ref&amp;gt;{{Cite news|author=Deutscher|first=Maria|title=Modular makes its AI-optimized Mojo programming language generally available|url=https://siliconangle.com/2023/09/07/modular-makes-ai-optimized-mojo-programming-language-generally-available/|work=Silicon Angle|date=7 September 2023|accessdate=2023-09-11|language=en|archive-date=2023-10-23|archive-url=https://web.archive.org/web/20231023164206/https://siliconangle.com/2023/09/07/modular-makes-ai-optimized-mojo-programming-language-generally-available/|dead-url=no}}&amp;lt;/ref&amp;gt;Modular公司团队还开发了支持Mojo语言的[[Visual Studio Code]]扩展。&amp;lt;ref name=&amp;quot;MSVSCODE_(2023)&amp;quot;&amp;gt;{{Cite web|title=Mojo for Visual Studio Code|url=https://marketplace.visualstudio.com/items?itemName=modular-mojotools.vscode-mojo|access-date=2023-09-26|website=marketplace.visualstudio.com|publisher=Microsoft|archive-date=2023-10-14|archive-url=https://web.archive.org/web/20231014091240/https://marketplace.visualstudio.com/items?itemName=modular-mojotools.vscode-mojo|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 原始设计与开发 ==&lt;br /&gt;
2022年，[[Swift语言]]创始人[[克里斯·拉特納|克里斯·拉特纳]]和[[Google]]机器学习产品经理蒂姆·戴维斯（Tim Davis）共同创立了Modular公司。&amp;lt;ref name=&amp;quot;claburn2023&amp;quot;&amp;gt;{{Cite web|last=Claburn|first=Thomas|date=2023-05-05|title=Modular finds its Mojo, a Python superset with C-level speed|url=https://www.theregister.com/2023/05/05/modular_struts_its_mojo_a/|access-date=2023-08-08|website=The Register|archive-date=2023-09-02|archive-url=https://web.archive.org/web/20230902115548/https://www.theregister.com/2023/05/05/modular_struts_its_mojo_a/|dead-url=no}}&amp;lt;/ref&amp;gt;2022年9月，Modular公司在内部发布了Mojo的初始版本&amp;lt;ref&amp;gt;{{Cite web|title=Mojo🔥 changelog|url=https://docs.modular.com/mojo/changelog.html#september-2022|access-date=2023-09-27|archive-date=2023-11-01|archive-url=https://web.archive.org/web/20231101013126/https://docs.modular.com/mojo/changelog.html#september-2022|dead-url=no}}&amp;lt;/ref&amp;gt;，支持MLIR编译器框架提供的高级编译功能。&amp;lt;ref name=&amp;quot;InfoWorld&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{cite arXiv |last1=Lattner |first1=Chris |last2=Amini |first2=Mehdi |last3=Bondhugula |first3=Uday |last4=Cohen |first4=Albert |last5=Davis |first5=Andy |last6=Pienaar |first6=Jacques |last7=Riddle |first7=River |last8=Shpeisman |first8=Tatiana |last9=Vasilache |first9=Nicolas |last10=Zinenko |first10=Oleksandr |date=2020-02-29 |title=MLIR: A Compiler Infrastructure for the End of Moore&amp;#039;s Law |class=cs.PL |eprint=2002.11054}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mojo语言的类型系统是同时包含静态类型和动态类型的混合系统，开发者可以为其编写的函数自由选择是否使用高性能静态类型。&lt;br /&gt;
&lt;br /&gt;
== 与Python的对比 ==&lt;br /&gt;
Mojo语言旨在与[[Jupyter]]生态系统完全兼容。目前，其尚未做到完全与Python 3.x{{le|源代码兼容|Source-code compatibility}}，而仅支持Python语法的子集。在此基础上，Mojo还支持Python没有的高性能低级编程语言的功能，如能使用“fn”关键字创建[[類型系統|类型化]]、[[編譯語言|可编译]]的[[子程序|函数]]，或使用“struct”关键字创建可优化内存使用的[[类 (计算机科学)|类]]。&amp;lt;ref name=&amp;quot;IWFirst&amp;quot; /&amp;gt;Mojo还能通过[[CPython]]来调用现有的Python 3.x代码。此外，Mojo借鉴[[Rust (编程语言)|Rust]]引入了Python所没有的借用检查器。&lt;br /&gt;
&lt;br /&gt;
== 实例 ==&lt;br /&gt;
使用Mojo语言编写的[[Hello world]]程序与Python相同：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
print(&amp;#039;Hello, World!&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 参考文献 ==&lt;br /&gt;
{{Reflist|30em}}&lt;br /&gt;
&lt;br /&gt;
== 外部链接 ==&lt;br /&gt;
* {{Official website|https://www.modular.com/mojo}}&lt;br /&gt;
* [https://docs.modular.com/mojo/programming-manual.html Mojo编程手册] {{Wayback|url=https://docs.modular.com/mojo/programming-manual.html |date=20231022204031 }}&lt;br /&gt;
* {{GitHub|modularml/mojo}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:面向文本编程语言]]&lt;br /&gt;
[[Category:程序设计语言]]&lt;br /&gt;
[[Category:跨平台軟體]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Nullizer</name></author>
	</entry>
</feed>