Pun
Pun
MModular
Created by name on 1/25/2025 in #questions
Does Mojo have a null safety feature like Dart?
But I see compile time handling of optional isn't implemented. For instance Rust does force the programmer to handle optionals
13 replies
MModular
Created by name on 1/25/2025 in #questions
Does Mojo have a null safety feature like Dart?
The compiler handles it by the fact null doesn't exist
13 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
It exist in lots of places, usually unknown it is called object
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
They were bits
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
Nope, because they were always a type
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
Then at runtime you can try casting those bits into types and see what happens
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
Thus making it an "unknown" type
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
In theory a pointer can point to bits you don't know how to interpret
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
It's just bits though
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
In typed languages unknowns is just an integer, or byte, or any other direct bit representation
93 replies
MModular
Created by Ivo Balbaert on 12/17/2024 in #questions
Is there a way in Mojo to know the type of a variable/object ?
There's no such thing as an unknown type
93 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
this can also happen when you try to run it
13 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
and it still doesn't work reliably!!!!!!!
13 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
no need to magic install python or ipykernal separately
13 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
ok even
magic init hello-world --format mojoproject
magic init hello-world --format mojoproject
is enough. Key is to have a mojo .ipynb in the directory, and also launch vscode from magic shell at least once
13 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
No description
13 replies
MModular
Created by Pun on 11/23/2024 in #questions
Getting jupyter lab to run mojo on Apple Silicon
magic init hello-mojo;
cd hello-mojo;
magic add max;
magic init hello-mojo;
cd hello-mojo;
magic add max;
this seems to work, Jupyter extension just detects it. I still seem to be struggling with older projects
13 replies
MModular
Created by Pun on 11/21/2024 in #questions
Exploring the legal limits of MAX
Now the messaging in most places gives off a feeling like you may get the rug swept from under you, while mentioning that it's never going to happen. The procedures should be cleared up, if they even exist that is
15 replies
MModular
Created by Pun on 11/21/2024 in #questions
Exploring the legal limits of MAX
I feel the issue isn't that one may require to pay to use MAX, but that it's not clear how it works. Paying for software is not a novel concept, and I think it should be reflected in the messaging
15 replies
MModular
Created by Pun on 11/21/2024 in #questions
Exploring the legal limits of MAX
I have no issues with it, that channel seems to have higher restrictions
15 replies