FFI Code Is Changing my Perspective On C

136 points CrazyDrowBard

I'm writting a module that interfaces with a C library which I thought would be frustrating but it has actually been going really fun. I'm trying to pin point why but I think it's 3 main things

  1. Very educational learning a lot and brushing off previous experience
  2. Realize potential problems I can fall into because of my rust knowledge
  3. thinking a lot about memory allocation which I sometimes take for granted.

Has anyone ever bad a similar experience?