I wonder how many PL courses teach details about foreign function interfaces. We definitely didn't go there with the course I taught with @shriramkShriram Krishnamurthi. Maybe it gets covered in some kind of more advanced course, but even then it seems like it's out on the fringes.
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/dabeaz/statuses/114820580150979015 on your instance and quote it. (Note that quoting is not supported in Mastodon.)