Fat API bindings of C++ objects into scripting languages

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autor principal: Standish, Russell K.
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909146417201152
author Standish, Russell K.
author_facet Standish, Russell K.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_14940
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Fat API bindings of C++ objects into scripting languages
Standish, Russell K.
Programming Languages
68-04
D.3.4
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.
title Fat API bindings of C++ objects into scripting languages
topic Programming Languages
68-04
D.3.4
url https://arxiv.org/abs/2403.14940