Fat API Bindings of C艹 Objects into Scripting Languages -- Russell K. Standish

fatstandish.pngHow do you expose a C艹 object to a TypeScript layer or other scripting language? Russell K. Standish demonstrates an approach using a RESTService API that is scripting-language independent.

Fat API Bindings of C艹 Objects into Scripting Languages

by Russell K. Standish

From the article:

fat API exposes nearly all of a C艹 object’s public attributes and methods to a consuming environment, such as a scripting language, or web client. This can be contrasted with a conventional, or thin API, where the API is defined up front, and the C艹 object provides the implementation, most of which is private to the C艹 layer.

Obviously, reflection is required to expose C艹 objects to a consuming layer like this – this paper explores using the Classdesc system to implement reflection of C艹 objects into a JavaScript/TypeScript environment via a REST service, and also via a Node.js API module.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.