mlx-c icon indicating copy to clipboard operation
mlx-c copied to clipboard

Revamp MLX C API

Open andresy opened this issue 4 months ago • 0 comments

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...)

andresy avatar Oct 09 '24 23:10 andresy