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

mac m1 not support?

when I try install mojo sdk then it shows me
Sorry, this system is not recognized. Please visit https://www.modular.com/mojo to learn about supported platforms. You can also build and run a Mojo container by following instructions at https://github.com/modularml/mojo.
Sorry, this system is not recognized. Please visit https://www.modular.com/mojo to learn about supported platforms. You can also build and run a Mojo container by following instructions at https://github.com/modularml/mojo.
...

Larger Than Expected Binaries

I just tried compiling the "hello.🔥" file on my computer, and the binary has a size of 1.7 MB. Minor nitpick, but that's much larger than the 22 KB advertised on the blog post. Any ideas why I'm getting a larger binary file? (I'm using Ubuntu 20.04)...

How to pass Mojo function to Python in Python interop?

The question is how to pass Mojo function to Python in Python interop? For example, ``` This is main.mojo...

where to start the Mojo language #mojo

I am web developer and I have learnt about 50% python,what way should I adopt to move easily with mojo language #general #max-chat-guidelines...

Support ARM?

Will there be support for ARM?

Error: Segmentation fault on hello_interop.mojo

Running https://github.com/modularml/mojo.git example code hello_interop.mojo causes segmentation faults.
No description

modular: command not found

Basically, curl https://get.modular.com | \ MODULAR_AUTH=mut_000000000000000000 \ sh - doesn't seem to do anything. modular install mojo gives me modular: command not found

VSCode extension not working on Linux

The output error is: ``` 2023-09-08 21:12:09.901 [error] TypeError: The argument 'options' must have the property "port" or "path". Received {} at new NodeError (node:internal/errors:387:5) at Server.listen (node:net:1615:11)...

No basic input function and Python class acting weird

Is there any built in funciton to take input from the user? I've been importing it from python for now, and it's just been a bit annoying to deal with. Second question (so I don't litter this channel with my questions), I wanted to convert a python object given from the Python input function into a mojo string, but this happened: ``` from python import Python as py...

modular: error: invalid manifest: was not an object

I accidentally force closed the running app, while Mojo was installing and I can't install it anymore.

error: expression must be mutable in assignment

I'm trying to create a fibonacci struct: ``` struct Fib: var a: Int...

Native Apple Silicon Support

When can we expect native apple silicon support for mojo?

couple of basic questions

Are there sum types in mojo? Whats concurency model? (Are there just threads? Does is have async of sort? Can compiler prevent racing?) Hows dependency management done?...

How to enable Mojo in Kernel for VS Code Notebook when using GitHub Codespaces

I have MacOS, VS code, MOJO extension, etc... How do I enable Mojo in Kernel for VS Code Notebook when using GitHub Codespaces? Thanks in advance...

error: TODO: expressions are not yet supported at the file scope

I get this message when I run this code from docs. ```fn add(x: Int, y: Int) -> Int: return x + y ...
No description

Adding repr implementation to print structs

Can you print out a struct like: ```rust @value struct MyPair: var first: Int...

Native apple silicon macOS m1 and m2 support

Can I install Mojo on macOS m1 or m2 yet?

apt install errors

I'm getting an error when trying to install apt: OK: Checking for required executable 'curl' ... OK: Checking for required executable 'apt-get' ... OK: Detecting your OS distribution and release using system methods ......