Mojo 1.2 adds pattern matching and improves GPU support
Mojo 1.2 is out with match and case statements for pattern matching, including comptime match, if case and while case. More than 20 standard math functions now run on GPUs, and compiling the nn package dropped from 98 to 61 seconds.
- match and case support literals, tuples, structures and conditional guards
- Over 20 math functions, including atan() and log10(), now run on GPUs
- Compiling the nn package fell from 98 to 61 seconds, nearly 38% faster
- On Linux, jemalloc speeds up large GPU kernel builds by 10–13%
Read next
Software