Hacker News new | past | comments | ask | show | jobs | submit login

Ahhh oops you're right. Point still stands, though -- I wonder why those languages should have different results?



They're both GC'd languages so the FFI may have some additional work/bookkeeping to do around the native calls, which C or Rust does not.


OP poses a good question and I don't think it's a simple case of GC vs. no GC. In Nim's case it might have something to do with not using the C int types (PR already open to fix this: https://github.com/dyu/ffi-overhead/pull/6)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: