simphony-osp icon indicating copy to clipboard operation
simphony-osp copied to clipboard

Not to forget: possible way to provide a C backbone implementation of OSP core session

Open pablo-de-andres opened this issue 4 years ago • 1 comments

In GitLab by @jesper_friis on May 12, 2020, 19:15

DLite might actually be a rather straight forward way to realise this, since it is written in C with SWIG-generated Python bindings.

Mapping a CUDS container (or probably the OSP-core Session class) to and from a DLite Collection should be rather easy to implement. For efficiency reasons, we may want to implement new optimised SWIG bindings for the Collection such that the underlying data structures in C are represented CUDS attributes without unnecessary data conversions.

From the C representation of CUDS, javascript bindings can then be generated with SWIG sharing large parts of the code for the Python bindings.

In addition to performance this would make additional features like code generation, mapping plugins, etc... for free.

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

@ahashibon any comment to this remark from jesper?

urbanmatthias avatar Aug 31 '20 06:08 urbanmatthias