4 ms·
Well it's the same problem isn't it? Programming languages and their libraries come with their idiomatic conventions of API design, calling conventions, data s
by niftich 10y ago
Well it's the same problem isn't it?
Programming languages and their libraries come with their idiomatic conventions of API design, calling conventions, data structures, etc, which tend to translate awkwardly to a "foreign" programming language.
The solution is usually one of two choices: pick a lowest-common-denominator programming language and implement everything in it such that all higher-level wrappers are only cosmetic shims; or, make a DSL that has clear and defined mapping to language-specific constructs and conventions in each programming language.
The former is the coder's solution, the latter is the designer's solution.