ON
← Back to feed
Mojo 1: Looks like Python is more rusty
Germany🏛️ Politics7 days ago

Mojo 1: Looks like Python is more rusty

Modular, ein Unternehmen unter der Kontrolle von Qualcomm, hat die stabile Version 1.0 der Programmiersprache Mojo veröffentlicht. Mojo ähnelt Python, ist jedoch schlanker und einheitlicher geworden. Die Sprache nutzt nun eine semantische Versionierung und hat die Typen Pointer und UnsafePointer zu einem einzigen Typ vereinigt. Die wichtigste Änderung betrifft die Funktionsdefinition: Das Schlüsselwort 'fn' wurde entfernt und durch 'def' ersetzt, wodurch strengere Regeln für Funktionen eingeführt wurden. Zudem wurde eine neue Lambda-Syntax eingeführt, die auf Python ähnelt, aber zusätzliche Syntaxanforderungen stellt. Der Compiler wird nun auch ungültige Referenzen erkennen und entsprechende Fehlermeldungen ausgeben. Die Änderungen sind Teil eines größeren Releases, das auch die neueste Version der KI-Plattform MAX enthält.

Modular, a company owned by Qualcomm, has released the stable version 1.0 of its programming language Mojo. The language, which resembles Python in appearance, incorporates features inspired by Rust, making it more efficient and uniform. The update includes improvements such as a unified variable declaration using `var`, streamlined closures, and the merging of previously separate types `Pointer` and `UnsafePointer` into a single type with explicit safety markers through the `unsafe_` prefix. The release coincides with version 26.5 of Modular's proprietary AI platform MAX, both made available in the same GitHub release. MAX uses calendar-based versioning, while Mojo transitions to semantic versioning with this first stable release. For the first time, parts of Mojo’s interfaces are explicitly marked as stable. One of the most significant changes involves function definitions. Previously, Mojo used `def` for Python-like functions and `fn` for stricter checked functions. With version 1, Modular has removed `fn`, replacing it with `def`. This change introduces stricter rules for `def`, requiring explicit exception handling via `raises` if exceptions are to be thrown. The compiler now treats `def` as subject to these stricter rules, meaning code written with `fn` might fail under the new standards unless adapted. A new lambda syntax has also been introduced, described as “Python-style” but requiring parentheses and type annotations. Instead of Python’s `lambda x: x 2`, Mojo uses `lambda (x: Int) -> Int: x 2`. The compiler has also gained enhanced error detection capabilities. It can identify invalid references, particularly in scenarios where memory management could lead to crashes or security vulnerabilities. For example, if a list grows beyond its allocated space and a reference points to the old location, Mojo flags this during compilation rather than runtime. A sample program illustrates this, showing how a reference to a list element becomes invalid after appending new data, leading to a clear error message. Modular aims to address the two-language problem common in AI development, where Python dominates due to its ease of use but lacks performance, often relying on C, C++, or CUDA libraries for computation. Mojo offers static typing, an ownership model without garbage collection, and direct hardware control, positioning it closer to C++ and Rust than Python despite its familiar syntax. Modular uses Mojo as the foundation for MAX and its cloud services. Founded in January 2022 by Chris Lattner, the original developer of LLVM and Swift, and Tim Davis, responsible for TensorFlow, XLA, and TPU at Google, Modular built upon their work on MLIR, which now forms the basis of Mojo. Since July 29, 2026, Modular has been part of Qualcomm, though Mojo, MAX, and the Modular Cloud remain independent products. An example of Mojo code shows its structure: ```python def square(x: Int) -> Int: return x * x def main(): var value = 42 print(square(value)) ``` Type annotations such as `x: Int` and `-> Int` are required to ensure clarity and correctness in the language.

Go to the primary sources (6)

The official sources this coverage is built on. Read them directly to bypass framing.

1 reports

heise online logoheise onlineIndependentCenterFactual 85Objective 907 days ago
Mojo 1: Looks like Python is more rusty

Modular, ein Unternehmen unter der Kontrolle von Qualcomm, hat die stabile Version 1.0 der Programmiersprache Mojo veröffentlicht. Mojo ähnelt Python, ist jedoch schlanker und einheitlicher geworden. Die Sprache nutzt nun eine semantische Versionierung und hat die Typen Pointer und UnsafePointer zu einem einzigen Typ vereinigt. Die wichtigste Änderung betrifft die Funktionsdefinition: Das Schlüsselwort 'fn' wurde entfernt und durch 'def' ersetzt, wodurch strengere Regeln für Funktionen eingeführt wurden. Zudem wurde eine neue Lambda-Syntax eingeführt, die auf Python ähnelt, aber zusätzliche Syntaxanforderungen stellt. Der Compiler wird nun auch ungültige Referenzen erkennen und entsprechende Fehlermeldungen ausgeben. Die Änderungen sind Teil eines größeren Releases, das auch die neueste Version der KI-Plattform MAX enthält.

Bias read (Center): Der Artikel beschreibt technische Entwicklungen und Änderungen in einer Programmiersprache, ohne politische Positionen oder Meinungsäußerungen zu vertreten. Es handelt sich um eine objektive Berichterstattung über Software-Updates und technische Verbesserungen.

Why factuality (85): The article accurately reports on the release of Mojo 1.0, mentioning the unification of variable declarations, closures, and pointer types, aligning with the primary source document. It also correctly notes the removal of 'fn' in favor of 'def', which matches details in the source. However, it omit

Why objectivity (90): The article maintains a neutral tone overall, presenting facts about the language changes without overt bias. It uses technical terms appropriately and avoids emotional language. The mention of 'slimmer and more uniform' could be seen as slightly evaluative, but it remains mostly objective.

How each side covered it

The same event, grouped by the political lean of the outlets covering it.

How each side covered it

Support independent, bias-aware news and unlock the social pulse, community voting, and every other Supporter feature.

Become a Supporter

Covered around the world

The same event as reported in other countries.

Covered around the world

Support independent, bias-aware news and unlock the social pulse, community voting, and every other Supporter feature.

Become a Supporter

Claims check

Key factual claims, and how many sources assert vs dispute each.

Claims check

Support independent, bias-aware news and unlock the social pulse, community voting, and every other Supporter feature.

Become a Supporter

Keep the news honest.

ObjectiveNews is reader-funded and ad-free — we show you the bias instead of hiding it. Support independent journalism for €4/month.

Become a Supporter

Related stories