News for hackers. Stuff that matters.
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.
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.

[0] https://srfi.schemers.org/srfi-198/srfi-198.html

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.

https://en.wiktionary.org/wiki/marshal

Re:Adding ANSI C11 C compiler to D so it can import and comp... by froh on Monday May 10, 2021 @09:52AM (#27105973)
TIL: marshalling == ceremonial arrangement and management of a gathering

these CS gals of olde really had a hand for naming :-)

Re:Adding ANSI C11 C compiler to D so it can import and comp... by watersb on Monday May 10, 2021 @04:29AM (#27103853)
I often court martial my data.

Not mocking the spelling of the previous post; it's a strange term anyway and in this instance either spelling works.