Modular

M

Modular

This server is the home of the MAX and Mojo community. Join us to chat about all things Modular!

Join

questions

community-showcase

How will the syntax look when mojo supports GPUs?

I'm wondering when people build operators like matmul will they have to write a function for CPU and a very different function for the GPU? Or will the syntax remain relatively similar, and the same function can be used on both? It will just take advantage of hardware acceleration when it is available.

Fedora

When we can expect a offical support for Fedora ?

A Guide on the Translation from MLIR Syntax to Mojo Syntax

The Mojo documentation states that all MLIR operations and types can be interfaced through Mojo. However, is there a guide to translate the syntaxes of MLIR dialects into Mojo syntaxes so that engineers can take more direct control on how to use MLIR operations within Mojo?...

セットアップ方法について

ここから先が動かないんですがどうすればいいですか?
No description

Understanding vectorisation and parallelisation of tensors

I've made this code which carries onward from the tensors tutorial on youtube, using code from the matrix multiplicaiton tutorial: ```python from random import rand from math import trunc, rsqrt...

argv()

I can't seem to access argv() - any ideas what I'm doing wrong ? I'm running ubuntu/wsl2. from sys import argv let a = argv()...

How do i make a function change the value of a dynamic vector?

thats the question, i want to modify the elements of the dynvector in a function

Is there any known workaround for using external call with non-libc functions?

I know that it's possible with libc, but I haven't figured out a way to use other C libraries.

Failed installing Rockylinux 8.8, missing GLIBC 2.29 and GLIBCXX_3.4.26

Failed installing Rockylinux 8.8, missing GLIBC 2.29 and GLIBCXX_3.4.26

Transition Guide from JAX to Mojo

I currently use JAX, but am interested in experimenting with Mojo. Is there a guide that helps JAX users transition to using Mojo? For example, it would be helpful to see how JAX's vmap/shmap operations could be expressed using Mojo syntax. (I realize that Mojo is still under development, but given the rising popularity of JAX it might not be a bad idea to have some documentation helping people make the switch 🙂 )...

when i run ubunto on windows

```Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e Error: 0x8007019e ?????????? Windows ??? Linux ?? ???? ????????. Press any key to continue......

How does/will Mojo handle final classes?

Unless a class is final, it usually has poor performance. However, Python classes are almost always extendable (final was only added in 3.8 and doesn't enable optimizations in Python, IIRC). How will Mojo handle this, and how will Mojo structs handle similar issues (and subtyping) in later versions?...

HTTPS requests

I want to create a query with Modular. I am still doing it with python. But I don't understand how to do it in Modular

How to implement the following simple comparison function

I would like to implement the following simple function, but I cannot find an alternative for AnyType (interface?) that defines comparison operators. In the following code a __ne__ is needed for ai != bi. It's as if I'm missing a manual. If someone knows how to do this, or knows how to make me cope that is cannot be done... ```fn equal_vector[T: AnyType](a: DynamicVector[T], b: DynamicVector[T]) -> Bool:...

Encountering problem with `modular update mojo`

``bash 0. Program arguments: modular update mojo Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH` to point to it): 0 modular 0x0000558bec7ac6b7 1 modular 0x0000558bec7aa36e...

Opportunity for users to translate Mojo documents

I'm writing to express my admiration for the Mojo programming language, which I have recently discovered and found to be an exceptional tool in the realm of coding. Its simplicity, flexibility, and robustness have greatly impressed me and, I believe, many others in the programming community worldwide. However, I have noticed that the availability of documentation for Mojo is currently limited to English. While this is not an issue for some, it may pose a significant challenge to many potential users whose primary language is not English. This language barrier could potentially prevent many talented developers from exploring and utilizing the remarkable features of Mojo. ...

Failing to run MOJO examples (Benchmark Package run method missing?)

Hi everyone ! i was able to run Modular on my Ubuntu 22 WSL on Windows. Here i am trying to test the MOJO Example codes (especially the jupyter Notebooks) from https://github.com/modularml/mojo.git But in every Notebook, something goes wrong : ...
No description

Encountering problem with the modular install mojo command on windows 10 through ubuntu as shell

As I was setting up mojo on my windows 10 I enounterd problem while runnng the "modular install mojo" command in the shell. I've mentioned the error message below - Failed to initialize Crashpad. Crash reporting will not be available. Cause: crashpad failed to start handler After this I also tried "modular clean" command but seems like that also doesn't work out. If someone has an idea about it please let me know !!...

Creating Syntactic Sugar

Does anyone here knows if it is possible and if yes, then how to create different syntax structures in the language itself like custom keywords or something to alter the syntax structure? I heard it somewhere that something like that is possible however I don't know if that's actually true or even sensible...

Mojo FFI with Dart on smart phone Dart2Mojo

How I can use Mojo like Dart2Rust ffi method? I wanna use at the on smart phone background Mojo and I wanna connect with Dart.