mlx-c
mlx-c copied to clipboard
Revamp MLX C API
This introduces the new API of MLX C
- Less overheads on objects (no vtable, no refcount)
- Return values are handled via (pointer) arguments
- Better error management: C++ exceptions are now mostly captured, status is returned as an int value for most ops
- Feels more like C: a number of C++ object wrapper disappeared (tuples, variants...)