vix.ing · top · new · best · stats · spec

Fat API bindings of C++ objects into scripting languages

2024/03/22 by Russell K. Standish, Standish, Russell K.
Computer Science · #68-04 #D.3.4 #Distributed and Parallel Computing Systems #Embedded Systems Design Techniques #FOS: Computer and information sciences #Parallel Computing and Optimization Techniques #Programming Languages (cs.PL)

paper · pdf · doi:10.48550/arxiv.2403.14940

openalex publication_date 2024/03/22 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

A 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 RESTservice, and also via a Node.js API module.

Related