Developers of the programming language mojo have released Mojo SDK 0.7 tools, which allow for local system project compilation. The Mojo SDK includes all the necessary components for developing applications in Mojo, such as the compiler, Runtime, an interactive repl-shell for assembly and program launch, a debugger, and an addition to Visual Studio Code (VS CODE) with code formatting and syntax highlighting capabilities. It also includes a module for integration with Jupyter for assembly and launching Mojo Notebook.
Mojo SDK has now been prepared for the Linux platform. The project’s initial compiler and other developments will be opened to the public once the internal architecture design is completed.
In the new version, the following features have been added:
- Added the dict type, which implements associative arrays for storing key/value pairs.
- Introduced the safe (SAFE) type for working with reference indicators, which can be used as an alternative to ordinary unprotected signs. References include tracking information about the pointer’s lifetime and perform indirect access checks.
- Added functions in the standard library sys.info to obtain information about physical and logical CPUs, as well as access to performance counters.
- The compiler now includes the “-d mojo_enable_assertions” option, which enables debugging inspections to identify various types of errors in the standard library functions. By default, this mode is disabled as it negatively affects performance.
- Mojo Language Server and a plugin for Visual Studio Code now have “Find All References” and “Go to References” capabilities.