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

Error while installing Mojo 0.3.1

Error while installing Mojo 0.3.1 modular: error: failed to run python: Executable "$_self.package_path/venv/bin/python" doesn't exist! i used to work with mojo 0.2.0,0.2.~,0.3.0 on my OS(manjaro) but when i tried to upgrade mojo and install 0.3.1 i faced this error...

Will Mojo solve the Expression Problem?

As a software developer I want to apply Solid Design Principles to Mojo. The open closed principle states that software entities should be open for extension but closed for modification. In case of OOP operations are fixed but new types are introduced through vertical extension(inheritance) In functional programming types can be fixed and new operations are introduced through horizontal extension(pattern matching) Depending on the problem domain one over the other can be better for example if a compiler has fixed types and always new operations should be introduced on these types pattern matching might be better....

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