Conversation

This is a future I want to see – an ABI where types are preserved:
Quote Tweet
Fifth: The ABI should include the ability to encode information about types and layouts, not just function names. This should be used at compile/runtime to provide type information. Compilers should be able to import ABI libraries directly, or provide codegen tools to get headers
Show this thread
1
5
Replying to
Yeah, it's pretty similar. I'm guessing this would match a wishlist of a nice RPC thing pretty closely. It's also definitely not a new idea - see some of the things I linked here:
Quote Tweet
Replying to @bitshiftmask
Regarding typed ABIs, have you seen the work on type preserving compilation and linking types? Would be cool to look into this stuff: eg. not sure how up to date this is, but there's interesting stuff here: silc.ccs.neu.edu/projects/ (@aatxe linked me to this ages ago).
But yeah, I don't think it's entirely fair to say that it's a reinvention - and even if it was I'm fine with that! So long as I get it in my compilers and languages! Trying to shoe-horn every FFI thing into the C ABI is really frustrating! 😆
1
Show replies