Re:Adding ANSI C11 C compiler to D so it can import and comp...
by dleslie on Monday May 10, 2021 @02:18AM
(#27103241)
Scheme is a language where I wish this was part of the spec. So many Schemes are intended to be embedded or extended with C, and every one of them has a bespoke way of declaring C bindings and martialling data between C and Scheme.
[ Parent
| on HN ]
Re:Adding ANSI C11 C compiler to D so it can import and comp...
by shakna on Monday May 10, 2021 @02:46AM
(#27103356)
There are ongoing efforts to stabilise a SRFI (like SRFI198 [0]), which would be the first step towards this. (First get the SRFI, then once that's stable and well implemented, it can be considered for the next spec).
Unfortunately there's a lot of disagreement between the bigger players as to how this should be handled:
> > 1) The authors appear to be deadlocked
> No need to soften it with an "appear", we are intractably deadlocked.
Re:Adding ANSI C11 C compiler to D so it can import and comp...
by froh on Monday May 10, 2021 @02:37AM
(#27103323)
I agree.
to bystanders, odd autocorrect: it's marshalling. marshalling data. although fight and war are indeed also appropriate associations for binary data exchange (struct conversions) between languages.
Re:Adding ANSI C11 C compiler to D so it can import and comp...
by dmurray on Monday May 10, 2021 @06:56AM
(#27104598)
TIL martial and marshal are unrelated etymologically, though marshalling data is by analogy with marshalling troops, and related to the military office.
Marshal = mariscalcus = "horse servant", compare mare and seneschal. Martial = from Mars, god of war.