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

please add support for spacy and fastapi

please add support for spacy and fastapi

GUI related stuffs

I'm wondering if we can use other gui framework like PySide6, PyQt6 since I saw an example in docs using matplotlib, is there any future realease for gui framework easy to integrate with Mojo? any feature like plotting realtime data with pyqtgraph and reach fast fps?

How to add an instance of a struct to a DynamicVector

A total newbie question. Example: struct Item: var name: StringLiteral fn init(inout self):...

__moveinit__ and __del__

When the __del__ method is not implemented, the __moveinit__ method is less likely to be invoked. Why is this the case? Consider the following example code: ```mojo struct Pair: var x: Int...

interoperability for calls from Python to Mojo

As of now, I've only seen examples that demonstrate interoperability from Mojo calling Python. When will Mojo support interoperability for calls from Python to Mojo?

`llvm.add` is interpreted as `llvm.addrspacecast`

./std/primitive.mojo:71:64: error: 'llvm.addrspacecast' op requires a single operand
value: __mlir_op.`llvm.add`[_type: __mlir_type.i32](self.value, rhs.value)
./std/primitive.mojo:71:64: error: 'llvm.addrspacecast' op requires a single operand
value: __mlir_op.`llvm.add`[_type: __mlir_type.i32](self.value, rhs.value)
This feels like it's not working correctly, considering add is documented as something else....

Add documentation for Runtime

In a Mandelbrot notebook, we have seen examples of using Runtime, but as for now there is no documentations about arguments, use cases, etc. Any plans to provide more information? Thank you.

WSL2 - Mojo installation

So, I followed the tutorial, but idk what is causing this is it still installing?, is it bugged?, idk...
No description

Download Mojo

Why do i need to signup to download Mojo? whats the point? everyone can download python by clicking on a single button!

Mojo Install Hanging in Codespaces

I'm trying to install mojo on codespaces and it seems to hang on the 'modular install mojo' command. I did 'modular clean' and then tried again but still hanging. Does installing usually take this long? Been around 20 minutes for both attempts.
No description

cmd args parse

I want to use the argparse package in Python, but it's painful to write a mojo code like ```mojo from python import (Python, PythonObject) ...

when will trait be available

any estimation of the timeline?

unhandled exception

I am getting an exception (unhandled exception caught during execution.An error occurred in Python) while importing Python module into the mojo program. Although the starter program in Mojo GitHub repository works fine and Python module was imported without any issue .

`len` of a `PythonObject`

I have a Python list and I want to get the Len of it, but lenPythonObj always seems to return "2"...

Why the crappy system-breaking script for installation?

I know this has been a theme for years now: instead of providing a tarball and documentation, most "apps" nowadays provide a script that does horrible things on your system unless it's ran in a container... and even then... But I would have expected much better from this. Mojo should be installable as non-root and without using a script and repo setup should be more standard. Yes, there are manual instructions (telling users to use curl as root, which is a big no-no) and putting data (gpg keys) in a location that belongs to the package manager (/usr/share) yet is not tracked by the package manager (that key should be under /run or /etc depending on how long it is kept around,)....

What parts of Mojo may not be open sourced?

Re: "Over time we expect to open-source core parts of Mojo, such as the standard library. ", can I have a sense of what will not be open sourced? Just a few examples, if you don't mind. - Will compilation to certain hardware architectures be closed source(or a paid option). Will there be a license violation if we build open source compilations that are paid options in Modular for e.g. - I'm guessing the Mojo compiler will be close sourced? Can it be used in a non Modular setting commercially? Will there be licensing fees? (I'd like to bias this question to say that I'm excited about Mojo and can't wait to use it. Just wanted to understand the full picture 🙂 )...

Can Mojo be used to write trusted applications (e.g. postgres extension)

Like PL/Rust(https://tcdi.github.io/plrust/trusted-untrusted.html), would Mojo be designed in a way that it can be be run without affecting the environment(e.g. disable file system operations, network calls etc). The main use case is creating an extension like PL/Rust. It may not be a feature now but just wondering if this is in the roadmap

how to use modulus in mojo

i am back with another question how can i use moduls operator in mojo like in python we use 4%2 and output is 0.

Modular Engine status

Hello, I'm a bit confused as to whether the Modular engine is available for use. The documentation says that the engine is not available, but there is documentation for it and there is a download link pointing to the Mojo download. See https://docs.modular.com/engine/python/get-started.html

How do I print UInt8 in hex format?

Was curious if it was possible to print bytes in hexadecimal format, I want to see '0xFF' format in the console. A python equivalent would be print('{:02x}'.format(x)), is this possible in mojo right now?...