Re:Criticizing Hare language approach for generic data struc...
by pjmlp on Thursday May 05, 2022 @03:41AM
(#31270669)
You can use the same FFI as K&R C, write a couple of Assembly helpers.
[ Parent
| on HN ]
Re:Criticizing Hare language approach for generic data struc...
by eatonphil on Thursday May 05, 2022 @09:47AM
(#31273277)
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/.
Re:Criticizing Hare language approach for generic data struc...
by pjmlp on Thursday May 05, 2022 @10:28AM
(#31273790)
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.
Re:Criticizing Hare language approach for generic data struc...
by eatonphil on Thursday May 05, 2022 @10:30AM
(#31273822)
Gotcha, that is along the same lines as the link I shared.