projectchrono / chrono

High-performance C++ library for multiphysics and multibody dynamics simulations
http://projectchrono.org
BSD 3-Clause "New" or "Revised" License
2.18k stars 456 forks source link

[Feature] Pure C API #233

Open mantielero opened 4 years ago

mantielero commented 4 years ago

It would be nice providing a C API to enable easy binding to other programming languages.

rserban commented 4 years ago

What target languages do you have in mind?

mantielero commented 4 years ago

I am thinking on Nim. It is fast as C, with a syntax similar to python, but it also provides metaprogramming enabling the creation of Domain Specific Languages (this could make creating models much more easy). And given that it is compiled, you end up with a binary, so deployment is quite easy.

As an example, you can see nim-html-dsl which enables the creation of HTML directly from Nim using a DSL.