I disagree. Using an actual C compiler to understand C will always be the best 
solution. Whether it is to automatically generate the definitions, or if it is 
to generate a wrapper that can be shared as-is. Futhark already knows about 
calling conventions (and not only `cdecl`, it also supports the other 
conventions that Nim supports) and tags all enums with the size of their 
defined underlying type (all integer sizes supported). I haven't yet done 
anything for `bycopy`, not quite sure where they are required. Futhark also 
supports enhancing the types, as shown in the README, and the module it 
generates can be copied and imported like any other module.

I agree that we should focus on quality wrappers, but Futhark is a tool that 
can aid with that. It also allows you to use libraries for which there are no 
wrappers, something that previously have required a significant amount of work 
and been error prone.

Reply via email to