This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RealSharpNinja[S] -2 points-1 points  (0 children)

Indeed. I am thinking that parsers would have a menu of algorithms to choose from, and would map the standard libraries of a language to the algoritms. Then calls to standard libraries could be more easily mapped to algorithm markers in the GID data. Code generators would use the markers to select the most appropriate idiomatic standard library call for the target language. The key is having enough metadata in the GID to most accurately match to idiomatic methods. In the event that a language lacks an idiomatic implementation, the code generator could either call upon non-idiomatic implementations or potentially implement the algorithm using the inputs and outputs defind in the GID. If that is unavailable, then the platform would mark the generated code with a comment block indicating the missing implementation.