December 19, 2023

Modverse #14

Introduction

We released some fixes and improvements before the holiday season with modular 0.3.1 and mojo 0.6.1. The download size and speed when installing Mojo is far improved. Mojo has been updated to make the @value decorator more valuable, it will now conform to the Movable and Copyable traits, so that you don't need to implement those yourself to allow your type to be used with a DynamicVector.

The stdlib team has started building towards making the language more familiar to Python devs. To align with Python, utils.vector has moved to collections.vector, ready for other data collection types. A Hashable trait has also been added, along with toupper() and tolower() methods on String which matches Python's API.

The Mojo team is considering implicit conformance for traits. For example, you'll be able to just implement __str__() on a struct to make it printable, as Python devs expect. We believe we have a path forward for this, while retaining good error messages when a type doesn't conform, and fitting into other design goals of the language. It will be a novel approach, avoiding complexity traps that other languages have fallen into. We'll reveal more as we make progress, stay tuned for updates.

Modular will be away on break next week, happy holidays!

Official Content 🔥

Press 📰

Community 📡

Sign up for our newsletter, Modverse

Get all our latest news, announcements and updates delivered directly to your inbox. Unsubscribe at anytime.

Thank you for your submission.

Your report has been received and is being reviewed by the Sales team. A member from our team will reach out to you shortly.

Thank you,

Modular Sales Team

Jack Clayton

AI Developer Advocate

Jack started his career optimizing autonomous truck software for leading mining companies, including BHP and Caterpillar. Most recently he was designing computer vision software, putting AI inference pipelines into production for IDVerse. He is enormously passionate about the developer community, having been a Rust, Go, Python and C++ developer for over a decade. Jack enjoys making complicated topics simple and fun to learn, and he’s dedicated to teaching the world about Mojo 🔥.