Hacker News new | ask | show | jobs
by LAC-Tech 892 days ago
strace is language agnostic.

Any program that interacts with the OS - interacting with files, allocating memory, etc - will have to make system calls. Whether it's in C, Rust, Zig, Haskell, APL or Prolog.

1 comments

I want to note that this is also true for “managed” languages like Java and Python.

However, because these languages have a far heavier runtime than the “systems” languages, it is usually possible to trace them at the runtime level rather than the syscall level, and doing that will typically give a better experience.