1 |
Svar: A Tiny C++ Header Brings Unified Interface for Multiple programming Languages ...
|
|
|
|
Abstract:
There are numerous types of programming languages developed in the last decades, and most of them provide interface to call C++ or C for high efficiency implementation. The motivation of Svar is to design an efficient, light-weighted and general middle-ware for multiple languages, meanwhile, brings the dynamism features from script language to C++ in a straightforward way. Firstly, a Svar class with JSON like data structure is designed to hold everything exists in C++, including basic values, functions or user defined classes and objects. Secondly, arguments are auto cast to and from Svar efficiently with compile time pointers, references and shared\_ptr detection. Thirdly, classes and functions are binded with string names to support reflection, this means all functions and classes in a shared library can be exported to a Svar object, which also calls a Svar module. The Svar modules can be accessed by different languages and this paper demonstrates how to import and use a Svar module in Python and Node.js. ...
|
|
Keyword:
FOS Computer and information sciences; Programming Languages cs.PL
|
|
URL: https://arxiv.org/abs/2108.08464 https://dx.doi.org/10.48550/arxiv.2108.08464
|
|
BASE
|
|
Hide details
|
|
2 |
Mandibular molar C-shaped root canals in 5th millennium BC China
|
|
|
|
In: Dentistry Publications (2020)
|
|
BASE
|
|
Show details
|
|
3 |
Dynamic methylome of internal mRNA N(7)-methylguanosine and its regulatory role in translation
|
|
|
|
In: Cell Res (2019)
|
|
BASE
|
|
Show details
|
|
4 |
End-to-End Attention based Text-Dependent Speaker Verification ...
|
|
|
|
BASE
|
|
Show details
|
|
5 |
Effects of Noise on English Listening Comprehension among Chinese College Students with Different Learning Styles
|
|
|
|
BASE
|
|
Show details
|
|
6 |
Task-Based Language Teaching in Online Ab Initio Foreign Language Classrooms
|
|
|
|
BASE
|
|
Show details
|
|
7 |
The Effects of Listeners' Control of Speech Rate on Second Language Comprehension
|
|
|
|
BASE
|
|
Show details
|
|
|
|