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

External call

how external_call work can i call my own function written in c++ or rust by this

Mojo installation got stuck

it gets stuck there and even i tried to modular clean n reinstall still same thing is happening any solutions? im running windows subsystem for linux...
No description

How to use Coroutine

i get some keygen errors what it is
No description

How can I install mojo in codespce on github?

I want to install it in a codespace, but it doesn't work

Multi threading in Mojo

Hi I am new to mojo but I would really like to speed up my pipeline by doing what python can't, multi threading. Could someone show a simple example of multi threading? An example like calling the same function with different parameters at the same time to process data.

Get list or tuple index by value.

'Tuple[StringLiteral, StringLiteral, StringLiteral]' is not subscriptable, it does not implement the __getitem__/__setitem__ methodsmojo. is there any ways to acheive this. also need to convert a mojo list to python list....

support for existing Python c modules?

Can code in mojo call existing Python c modules?

Deployment in a docker container

Hi, is there an alternative to a Modular production deployment besides a docker container?

MLIR : does Mojo run on MLIR?

Hi, would it be proper to say that Mojo run on MLIR? ..on LLVM? ..on ..?

Any examples of algorithm.reduction.argmax usage?

I am writing fast where function, and from description argwhere looks like a good candidate but can't figure out how to use it. For example what is OutputChainPtr? ` @always_inline fn where(self, val: Int8, vec: DTypePointer[DType.int8]): @parameter...

Repl Error

``TEST: mojo repl`... ERROR main() File "/home/jovyan/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 374, in main tester.test(args.test_jupyter) File "/home/jovyan/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 311, in test...

Did the installation fail because I am using ARM Linux?

output of installation commands ```bash debian@debian:~$ sudo apt-get update && sudo apt-get install modular Hit:1 http://deb.debian.org/debian buster InRelease...

Type suffixing?

I was curious if there was a builtin way to define the types of decimal constants. For instance, in Java I can specify the constant as a float by adding an F to the end: ```java float mult = .6F*.91F; float acceleration = 0.16277136F / (mult * mult * mult); ...

Example of ListLiteral -> Saves time for you

example for ListLiteral from python import Python fn main() raises: ...

How are we supposed to run coroutines?

As the entry point (the main function) cannot be async, is there any way to call a coroutine from a syncron context? Here just an easy example code what I'm testing and trying to do: ```py async fn test(): print("test")...

python environments

How can we use python environments in mojo?

Triton Dev Conference today?

Any Mojicians at the Triton Dev Conference today? https://github.com/openai/triton This may be of interest to folks here...
No description

Is there any time line on a JetBrains or PyCharm plugin?

It would be nice to us Mojo.🔥 in my usual ide.

Cannot create a `DTypePointer` from `pointer<scalar<...>>`

how do I cast a pointer (btw, what is this? a MLIR type?) to a Pointer or preferably a DTypePointer? Inspired by this code, ``py out_arr.data = DTypePointer[dtype]( __mlir_op.pop.index_to_pointer[ _type : __mlir_type[!kgen.pointer<scalar<f32>>`]...
No description