franchesoni
MModular
•Created by franchesoni on 10/23/2024 in #questions
dict containing sets?
I'm having issuesto have a dict whose values are sets
first, Set doesn't implement copyinit so I had to wrap it
but now I get that
rag[current_label]
is a "function that might raise in a context that cannot"
what's the simplest way to build a dict whose values are sets? can I operate on the sets?
here's the code if needed
4 replies
MModular
•Created by franchesoni on 10/17/2024 in #questions
mojo compile is non-deterministic ? (video)
I only call
mojo run main.mojo
again and again, and
- it breaks
- it gives a result
- it gives another result
I can't see where the randomness is coming from, it is certainly not intended6 replies
MModular
•Created by franchesoni on 10/17/2024 in #questions
print breaks code
the following isn't catched by the linter but breaks, what am I doing wrong?
12 replies
MModular
•Created by franchesoni on 10/17/2024 in #questions
List of SIMD bug
The following simple code doesn't work, is this because of memory? I find the documentation is lacking, it only says SIMD are restricted to powers of 2, which I compy with...
77 replies
MModular
•Created by franchesoni on 10/2/2024 in #questions
how to use Buffer?
it seems we're still in the dark regarding arrays. Mojo has efficient implementations of max, sum, etc. over Buffers but creating one is a pain. For instance this code breaks on the print, why?
I have already spent quite a few hours trying to figure out why creating a Buffer is so much trouble. Also, slicing is hard. I have found no good resources on this, kapa tells me there is not enough info in the docs 😦
2 replies
MModular
•Created by franchesoni on 2/19/2024 in #questions
using mojo in python (not python in mojo)
sometimes I need to make only one function really really fast, but I don't want to stop using python because it is so convenient. How do I handle this case?
This goes probably against mojo philosophy because creates a two-world problem (python on top of mojo) but I want it so hard
2 replies