3 ms·
> Right. However, this is a comparison versus Python and the GIL, which can’t do that at all. Single process python does not take advantage of a multicore arch
by leecarraher 3y ago
> Right. However, this is a comparison versus Python and the GIL, which can’t do that at all.
Single process python does not take advantage of a multicore architecture but neither would single process mojo. Embarrassingly parallel operations like mandlebrot can trivially be written with multiprocessing (https://github.com/DipanshuSehjal/Mandelbrot-set/blob/master/mandelbrot.py https://github.com/DipanshuSehjal/Mandelbrot-set/blob/master...), or joblib to run in parallel in otherwise vanilla python. It would be trivial to implement this in jax and run on a gpu or tpu, but i wouldn't say that jax is the reason for the speed up.
- ElectronCharge 3y ago> Single process python does not take advantage of a multicore architecture but neither would single process mojo. That is exactly not the case. The Mandelbrot demo IS a single process, multi-threaded, SIMD-enabled Mojo program that uses 88 processor cores.