Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use the same FFI as K&R C, write a couple of Assembly helpers.


Any links to help me understand what you mean about the K&R C FFI? (Not easy to google for)

Possibly related, building against foreign objects and manually setting up the FFI call: https://words.filippo.io/rustgo/.


Easy, K&R C was rather limited, inline Assembly wasn't yet a common extension, rather you would use the external assembler, and link both object files together.

What was good for C while it was gaining adoption, surely is good enough for Go.


Gotcha, that is along the same lines as the link I shared.





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

Search: