vmois
MModular
•Created by vmois on 3/29/2024 in #questions
When do you plan to open-source "algorithms" module?
At this moment, "algorithms" module is not available yet in the open-sourced code (source). Do you have an approximate plan when it will be open-sourced? For example, being able to extend sort to work with strings would be an amazing thing. Thank you.
1 replies
MModular
•Created by vmois on 12/30/2023 in #questions
Owned convention does not destroy variable after transferring ownership
Hello everybody! I am working on a project that has a small exercises to learn Mojo. Currently, I am working on value ownership section and was playing with a code below.
The issue I have is that this code compiles but to my understanding of owned and ownership operator it shouldn't.
If you take equivalent code for string, it has an error "a is not initialized":
For equivalent integer code:
It throws no error, and value of x is 1.
Can someone please explain if this behaviour is correct or am I missing something? Thank you.
5 replies
MModular
•Created by vmois on 10/22/2023 in #questions
SIMD produces weird results without print statement at the end
The code below produces weird results:
For example:
If I uncomment last print statement, suddenly results are correct:
Can someone please explain this behaviour? Am I doing something wrong with SIMD?
24 replies
MModular
•Created by vmois on 9/12/2023 in #questions
Add documentation for Runtime
In a Mandelbrot notebook, we have seen examples of using Runtime, but as for now there is no documentations about arguments, use cases, etc. Any plans to provide more information? Thank you.
2 replies