News for hackers. Stuff that matters.
Re:Python can run Mojo now by que-encrypt on Monday June 23, 2025 @01:13AM (#44352627)
My guess is that the slight overhead of interacting with mojo led to this speed discrepancy, and if a higher factorial (that was within the overflow limits etc) was run, this overhead would become negligible (as seen by the second example). Also similar to jax code being slower than numpy code for small operations, but being much faster for larger ones on cpus etc.

There are no comments on this comment yet.