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

Network Module

I didn't see networking in the roadmap. Is there a plan to build a mojo core module to interface with networking? Or is the C/C++ interop the vision to enable distributed mojo computing?

Can i compile to windows? if so how?

ik i can use -march to set the architecture but after that im lost

Support for Python requests?

Is the Python requests package supported natively? If so how do I import it and use it?

code editor on android

Is there code editor on android which supports mojo style?

Is there something similar to the ctypes library so that Python can use Mojo just like with C++?

I want to make an application using the 'flet' library, and with it, I want to perform complex calculations using Mojo. How can I make my .py file take into account a .mojo file and execute a complex calculation so that my .py file can then receive it?

Naive BigInt implementation - how to improve?

I decided to start off my Mojo journey with some fibonacci. I wanted to handle arbitrary sized integers, so implemented a BigInt class. besides the naive algorithm used - any suggestions for better syntax / use of Mojo types? ``` from utils.vector import DynamicVector...

Why doesn't fn() coerce to fn() capturing

This works thanks to the signatures being different: ```rs fn first(self, where: fn(T) -> Bool) -> Optional[T]: for item in self: if where(item): return item...

Is there a way to create lists of Strings yet?

I'm working on an implementation of Apache Arrow and it looks like we can't make lists of memory only types. Screenshot shows the full code but a minimal example is here: ``` var string_list = DynamicVectorString ...
No description

Installing the Mojo SDK fails

I'm trying to install the Mojo SDK on a Linux server running Debian 12. I have successfully installed the modular package. When running modular install mojo, it seems that the installer is trying to install a pip-install a site-wide python-package(!?), as I'm getting this error: ...

keyword arguments are not supported yet

how do I fix this? I'm trying to execute a function working in the background while also running the main function
No description

Is there an equivalent of PYTHONPATH? I would like to separate my test directory

I would like to setup my folder structure like this: ``` . ├── LICENSE ├── src...

in-place Relu operation on a matrix struct in memory

What would be the optimal portable way to code in mojo the Relu operation on a matrix struct sitting in memory (eg the struct you use in your matmul example), noting that tpu and gpu and cpu may or may not have relu arithmetic blocks on-chip

Hi all. I'm trying to create telegram bot with mojo (just for fan), but get an Error

That's my code `from python import Python def main(): let telebot = Python.import_module("telebot") let bot = telebot.TeleBot('TOKEN')...

kwargs

I'm trying to use a Python function that needs kwargs how do you deal with them?

error: externally-managed-environment

after running "modular install mojo" this is the error message i get × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to...

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...