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

Excited about the Mojo language! Are there any plans for JetBrains IDE support?

I was wondering if anyone knows if there are any plans to integrate Mojo with JetBrains IDEs like IntelliJ IDEA or PyCharm? It would be amazing to have all the great features and tools of JetBrains IDEs combined with the awesomeness of Mojo. I've found the post here: https://github.com/modularml/mojo/discussions/87 and you have same mindset as me - feel free to vote for this feature...

buffer function is no longer available for String ?

I see some old examples of String(“mojo”).buffer, but doesn’t look like it works now. Can anyone please help me point me on how to get the byte array that can handle Unicode bytes too

SIMD produces weird results without print statement at the end

The code below produces weird results: ```python from algorithm import vectorize from tensor import Tensor...

Swapping pointers would cause memory problems ?

Hello, does this code would cause problems please? the motivation is to not allocate another pointer of the same size and not do a copy ```python var fd = open("stories15M.bin","r") var data = fd.read()...

Are there any plans for native NDArray <-> Tensor interop support?

I was wondering if there were plans to have a native NDArray <-> Tensor interop support? Unless I missed something obvious, there is nothing out of the box that would make conversion between the two objects a simple function call.

Independent Developers

Well Mojo be free For independent developers to integrate into their project? Have you thought about flutter plugins?

Why Mac first, Windows second?

Isnt Windows alot more popular?

What kind of tools do people use to profile Mojo binaries?

I tried using "perf" but I had no luck displaying the symbols, I only see exadecimal values. Did someone make a tutorial somewhere? I'd be interested 🙂

error: Unable to locate a suitable libpython when running Mojo executable

There's no libpython.so file with .so extension on macOS, how to set MOJO_PYTHON_LIBRARY then?

Does owned make the variable copy on write?

Does the owned specifier make the copy copy on write? fn set_fire(owned text: String) -> String: text += "🔥" return text...

Mojo debug support in VSCode

I see Mojo has support for debug directive in the REPL, but is it supported in the VSCode plugin yet?

I get this error when installing Mojo on Mac:

Failed to initialize Crashpad. Crash reporting will not be available. Cause: while creating crashpad database: Operation not supported modular: error: /home/codespace/.modular could not be created: Operation not supported...

Docker Container Issues

I've been trying to build a docker container for a while and I'm not sure what I'm doing wrong. No matter what I do I get something like this on the install mojo command. Any ideas? ```=> ERROR [ 5/10] RUN modular install mojo 0.2s...

unable to locate module 'list'

I have my project structured as follows main.🔥 utils/ imports.🔥...
No description

Create a CSR

I can create CSR in Go as below, is there something similar in Mojo ```go package main import (...

Problem installiing mojo on mac:

I keep getting this error message. I tried modular clean && modular auth (mykey) but even after that I still get the error. It says error with SSL peer certificate or SSH remote key.
No description

Module pymatmul not found

@aespeiuk can you try changing hello_interop.mojo to this and running it: ``` from python.python import Python ...

Is it possible to use MLIR dialects?

Hi, I am trying to use MLIR dialects in mojo (other than index), I get unregistered dialect error. Is it possible to register other dialects? Also, is it possible to see generated MLIR? ```...

Does Mojo support CUDA?

How is performance compared to NVIDIA implementations?

Non-trivial parameter are not matched

What is the expected behaviour while matching parameters. Should they be structurally equal, or is some rewriting on their AST expected? For example, the following code gives the error on the return of doubleCube.
cannot implicitly convert 'SIMD[T, __lshift__(1, __add__(__sub__(N, 1), 1))]' value to 'SIMD[T, __lshift__(1, N)]' in return value
cannot implicitly convert 'SIMD[T, __lshift__(1, __add__(__sub__(N, 1), 1))]' value to 'SIMD[T, __lshift__(1, N)]' in return value
because 1<<((N-1)+1) is not considered equal to 1<<N which suggests threre is no rewriting of parameters. ...