(Translated by https://www.hiragana.jp/)
Mojo - 维基百科,自由的百科全书 とべ转到内容ないよう

Mojo

本页使用了标题或全文手工转换
维基百科ひゃっか自由じゆうてき百科ひゃっかぜん
Mojo
設計せっけいしゃかつさと斯·ひしげとくおさめ
じつ作者さくしゃModular公司こうし
发行时间2023ねん,​11個月かげつまえ​(2023
操作そうさけいまたが平臺ひらだい
ぶんけん扩展めい.mojo, .🔥
あみwww.modular.com/mojo
啟發けいはつげん
PythonRust

MojoよしModular公司こうし开发てきいち种基于MLIR编译かまちえいMLIR (software)てき编程语言むねざい人工じんこう智能ちのうとう领域てき软件开发提供ていきょう统一てき编程かまち[1][2][3][4][5][2][6][7]

Mojo语言为Python语言てきちょうしゅう[6][8]也被しょうPython++どう时,它还具有ぐゆうC++てき速度そくどあずかRustてき安全あんぜんせい[9][4][10][11][12][1][13]

Mojo语言于2023ねん5がつ推出,最初さいしょ仅能ざい浏览てきJupyter笔记ほんちゅう使用しよう[2][14],2023ねん9がつおこり开始提供ていきょうLinux本地ほんじ版本はんぽん[15]Modular公司こうし团队还开发了支持しじMojo语言てきVisual Studio Code扩展。[16]

原始げんし设计与开发

[编辑]

2022ねんSwift语言创始じんかつさと斯·ひしげとくGoogleつくえがく习产ひん经理蒂姆·戴维斯(Tim Davis)共同きょうどう创立りょうModular公司こうし[17]2022ねん9がつ,Modular公司こうしざい内部ないぶ发布りょうMojoてきはつはじめ版本はんぽん[18]支持しじMLIR编译かまち提供ていきょうてきだか级编译功のう[2][19]

Mojo语言てき类型けい统是どう包含ほうがんせい态类がた动态类型てき混合こんごうけい统,开发しゃ以为其编うつしてき函数かんすう自由じゆう选择使用しよう高性能こうせいのうせい态类がた

あずかPythonてき对比

[编辑]

Mojo语言むねざいあずかJupyterなま态系统完ぜんけんよう目前もくぜん,其尚做到完全かんぜんあずかPython 3.xみなもとだい码兼ようえいSource-code compatibility,而仅支持しじPython语法てきしゅうざい此基础上,Mojo还支持しじPythonぼつゆうてき高性能こうせいのうてい级编ほど语言てきこうのう,如能使用しよう“fn”关键创建类型编译てき函数かんすうある使用しよう“struct”关键创建优化ないそん使用しようてき[14]Mojo还能どおりCPythonらい调用现有てきPython 3.xだい码。此外,MojoRust引入りょうPythonしょぼつゆうてき借用しゃくよう检查

实例

[编辑]

使用しようMojo语言编写てきHello worldほどじょあずかPythonしょうどう

print('Hello, World!')

参考さんこう文献ぶんけん

[编辑]
  1. ^ 1.0 1.1 Mojo🔥 programming manual. docs.modular.com. Modular. 2023 [2023-09-26]. (原始げんし内容ないようそん于2023-10-22). 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. 
  2. ^ 2.0 2.1 2.2 2.3 Krill, Paul. Mojo language marries Python and MLIR for AI development. InfoWorld. 4 May 2023 [2023-09-27]. (原始げんし内容ないようそん于2023-05-05) えい语). 
  3. ^ Mojo 🔥 — the programming language for all AI developers. www.modular.com. Modular. 2023 [2023-09-26]. (原始げんし内容ないようそん于2023-11-10). Mojo leverages MLIR, which enables Mojo developers to take advantage of vectors, threads, and AI hardware units. 
  4. ^ 4.0 4.1 Hahn, Silke. Jenseits von Python: Mojo baut Brücke zwischen Python und C für Machine Learning. www.heise.de. Heise Medien GmbH & Co. KG. 2023-05-09 [2023-09-26]. (原始げんし内容ないようそん于2023-09-26) とく语). Eine neue Programmiersprache für Machine Learning, eine Art Python++? 
  5. ^ Why Mojo🔥 - A language for next-generation compiler technology. docs.modular.com. Modular. 2023 [2023-09-26]. (原始げんし内容ないようそん于2023-05-05). 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. 
  6. ^ 6.0 6.1 Claburn, Thomas. Modular reveals Mojo, Python superset with C-level speed. The Register. 5 May 2023 [2023-09-27]. (原始げんし内容ないようそん于2023-09-02) えい语). 
  7. ^ Pandey, Mohit. This New Programming Language is Likely to Replace Python. Analytics India Magazine. 3 May 2023 [2023-09-27]. (原始げんし内容ないようそん于2023-05-30). 
  8. ^ Welcome to Mojo 🔥. github.com. Modular. 2023 [2023-09-26]. (原始げんし内容ないようそん于2023-10-25). Mojo is still young, but it is designed to become a superset of Python over time. 
  9. ^ Ramarao, Pramod. Mojo🔥 - It’s finally here!. www.modular.com. Modular. 2023-09-07 [2023-09-26]. (原始げんし内容ないようそん于2023-11-12). Mojo: a high performance 'Python++' language for compute 
  10. ^ Howard, Jeremy. Mojo may be the biggest programming language advance in decades. www.fast.ai. fast.ai. 2023-05-04 [2023-09-26]. (原始げんし内容ないようそん于2023-10-17). Maybe it’s better to say Mojo is Python++ 
  11. ^ May, Eira. Like Python++ for AI developers. stackoverflow.blog. Stack Exchange, Inc. 2023-09-25 [2023-09-26]. (原始げんし内容ないようそん于2023-10-04). 
  12. ^ Saplin, Maxim. Mojo🔥SDK has been released for Linux. dev.to. DEV Community. 2023-09-07 [2023-09-26]. (原始げんし内容ないようそん于2023-10-22). From the creators of LLVM, Clang, and Swift. A better Python, Python++ 
  13. ^ May, Eira. Mojo: The usability of Python with the performance of C. stackoverflow.blog. Stack Exchange, Inc. 2023-09-22 [2023-09-26]. (原始げんし内容ないようそん于2023-10-08). 
  14. ^ 14.0 14.1 Yegulalp, Serdar. A first look at the Mojo language. InfoWorld. 7 June 2023 [2023-09-27]. (原始げんし内容ないようそん于2023-08-18) えい语). 
  15. ^ Deutscher, Maria. Modular makes its AI-optimized Mojo programming language generally available. Silicon Angle. 7 September 2023 [2023-09-11]. (原始げんし内容ないようそん于2023-10-23) えい语). 
  16. ^ Mojo for Visual Studio Code. marketplace.visualstudio.com. Microsoft. [2023-09-26]. (原始げんし内容ないようそん于2023-10-14). 
  17. ^ Claburn, Thomas. Modular finds its Mojo, a Python superset with C-level speed. The Register. 2023-05-05 [2023-08-08]. (原始げんし内容ないようそん于2023-09-02). 
  18. ^ Mojo🔥 changelog. [2023-09-27]. (原始げんし内容ないようそん于2023-11-01). 
  19. ^ Lattner, Chris; Amini, Mehdi; Bondhugula, Uday; Cohen, Albert; Davis, Andy; Pienaar, Jacques; Riddle, River; Shpeisman, Tatiana; Vasilache, Nicolas; Zinenko, Oleksandr. MLIR: A Compiler Infrastructure for the End of Moore's Law. 2020-02-29. arXiv:2002.11054可免费查阅 [cs.PL]. 

外部がいぶ链接

[编辑]