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 intended
3 Replies
Helehex
Helehex2mo ago
must be getting some undefined behavior somewhere, probably accessing uninitialized memory
Ehsan M. Kermani (Modular)
Unfortunately, this is a sign of UB lurking somewhere in your code. Quick glance at your code and you're doing unsafe stuff. Suggest minimize unsafe pointer as much as possible.
franchesoni
franchesoniOP5w ago
thanks guys! @Ehsan M. Kermani what should i use to hold images?
Want results from more Discord servers?
Add your server