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

Setting up modular home path for vscode

Hi, I'm currently running vscode through wsl (Ubuntu 22.04) and I was able to to the quick hello world using REPL. However, i'd like to use mojo in the vscode IDE. It wants me to set MODULAR_HOME path which I thought I did as MODULAR_HOME="$HOME/.modular, but it's not working. Some help on where I should the path would be useful.:mojo:
No description

repl required

just installed mojo and it seems as if I have to enter mojo repl to enter repl modedespite manual saying you can just type mojo - what am i missing

GUI libraries

Hi, I was wondering if there is any plan or project to bring UIs into Mojo any time in the future.

What do you think about Uniform function calling syntax?

Will this even be possible because of the comp-time parameter arguments in square brackets? I will find it very handy to also have infix function calls for readability of code....

Mojo Versioning System

How is MOJO planning to handle version system or so? The way python does it right now is very messy, you get multiple versions of python installed on the same machine, and then sometimes when you install packages using pip, they go in site-packages of old versions and are not available for newer versions when trying to use them etc. Some information on this would be really helpful...

how to make an ai

ive never made an ai chat bot model work because my pc doesnt have the power to run python models wondering if i can run one on an i7-870 and nvidia geforce gt 710

how to use async in mojo?

```mojo async fn add_three(a: Int, b: Int, c: Int) -> Int: let sum:Int = a + b + c; return sum ...

Will Mojo Metaprogramming support Lisp/Julia Style Macros?

As Paul Graham is describing in http://www.paulgraham.com/avg.html Lisp let you abstract things with macros which can’t still be easily abstracted in current popular languages. If this would be realized in Mojo, we could write less Code and be even more productive.

PyObject support

Currently in my tests, it is very slow to transfer big numpy arrays, like from a camera into a mojo Tensor, will this case have better support in the future?

Can't find libpython

See the photo.🙏🙏🙏
No description

Bug in Typing

When i typing in file mojo (vs-code) left bracket '(' , the text return to the begin of line, without take care to the indentation

Is it possible to create a Discord bot with Mojo?

Not sure of a real use case yet, just curious.

Can I load a mojo file on the REPL session like irb in ruby so I can execute function?

Basically to call the functions in repl shell instead of writing the code

Can Mojo be installed on Linux Mint?

Linux Mint is based on Ubuntu and both are similar. However, is it installable on Mint?

How can I create a Python list to add and remove structs?

I am trying mojo and would like to define a few structs and use a Python like dynamic list. I would like to be able to add and remove structs, iterate over items etc.

How can I transform any Pyobject in form of Numpy array, int etc, into its type in mojo

for example Pyobject of 25 into a int8 or int 64 in mojo or numpy array into a mojo tensor...

Build .exe file Mojo

When I build .exe file and try to execute by ./name, there is an error occur " can't locate pythonlib..." How I can fix it? Of course there is import of Python and PythonObject in the code Mojo....

How does Mojo's compile-time interpreter work?

I've been pretty curious about the Mojo compiler's internal workings for quite a while: how it decides which parameters to pick for autotuning, how it allows programmers to seamlessly program GPUs and stuff (I'm assuming without explicitly needing to mention which accelerator the code should run on). For now I want to know what exactly Mojo's compile time interpreter is. What is the need for it? What use cases does it solve? And how does it work?...