gryznar
gryznar
MModular
Created by gryznar on 9/5/2024 in #questions
Can Mojo support hot reload in debugging session?
Just curiosity. Is this possible to replace code on the fly?
5 replies
MModular
Created by gryznar on 4/5/2024 in #questions
Changelog for Mojo compiler
As getting what's new from stdlib is quite easy (it is enough to look at commits to nightly), the same for nightly compiler is not trivial. Is it possible to post changelog somewhere?
3 replies
MModular
Created by gryznar on 3/3/2024 in #questions
2 modules to handle paths
Why do we need both pathlib and os.path? I am aware that Python has that, but why not to simplify things and have just one module named path with object orientend path handling?
9 replies
MModular
Created by gryznar on 3/1/2024 in #questions
struct allocation
I am just curious.. Where the struct is allocated? On a stack (like in C++ without new) or on the heap?
4 replies
MModular
Created by gryznar on 2/7/2024 in #questions
pattern matching as switch - case
Is it possible to implement upcomming pattern matching more like switch-case in C rather than like in Python in which it is powerful syntax sugar for if-else? My question araises, becase switch-case is much more performant in non-trivial examples and it will be really nice to use it instead of if-else and have improvements in performance because of that
18 replies
MModular
Created by gryznar on 1/25/2024 in #questions
SDK without modular
Is it going to happen in the nearest future to be able to simply download archieve / executable without need of modular CLI?
1 replies
MModular
Created by gryznar on 1/24/2024 in #questions
Copy-and-Patch compilation in Mojo
Python is going to implement copy-and-patch compilation in 3.13 (https://fredrikbk.com/publications/copy-and-patch.pdf). It seems to be faster and aims to greatly reduce startup time over LLVM -O0. What is Mojo approach to that? Could it be applied somehow or benefits using that are not as high?
18 replies
MModular
Created by gryznar on 1/20/2024 in #questions
Rewrite Mojo in Mojo
If Mojo will mature, would it be posible / reasonable to rewrite parts of its compiler (or whole compiler) in Mojo? It could lead to greater possibilities and maintainability in long term
9 replies
MModular
Created by gryznar on 1/19/2024 in #questions
Modverse this week?
@Jack Clayton Is Modverse 18th going to be released this week?
5 replies
MModular
Created by gryznar on 1/16/2024 in #questions
Handle errors like in Rust
I am aware, that Mojo internally is passing result as tuple containing OK variant and error variant. Due to lack of enums / pattern matching etc. this is not exposed to the user and try except is required. If the needed components will be added, is Mojo going to have monad error handling (like in Rust) or always there will be a need to use try except block?
1 replies
MModular
Created by gryznar on 1/3/2024 in #questions
Safe pointers
Currently Mojo has no checks related to out of bounds for pointers. Is it going to change in the future?
6 replies
MModular
Created by gryznar on 12/3/2023 in #questions
Error handling like in Rust
Is Mojo going to have error handling like in Rust? With OK an Error Result exposed to the user? Or will it have more traditional way to handle errors, like in Python?
11 replies
MModular
Created by gryznar on 10/23/2023 in #questions
scope of iteration variable
fn main():
var i: Int
for i in range(3):
...
fn main():
var i: Int
for i in range(3):
...
In current state of Mojo, variable i is visible only inside the loop, which means that i outside the loop is another i. Is this only temporary solution or there are greater pros to keep this?
3 replies