How to Write Functions Invokable from Any Programming Language

apibindinglanguages

I'd like to find a way to write an API that can be accessed from any other programming language via language bindings (or some other framework). Is it possible to do this? If so, which programming language would be the most suitable for writing a "cross-language" API? My goal is to create a single set of functions that I can access from any programming language that I'm working with, so that I won't need to manually re-write the entire API in each language.

Best Answer

You have a few options:

  1. Create an HTTP interface, almost everything can talk HTTP so that will get you a lot of languages.

  2. Create something that can be linked into a language runtime, this will be rather time consuming as you will need to find a way to connect it to many different languages.

Related Topic