DFEs can now be taught to speak almost any language.
MaxSkins generates Appache Thrift wrappers for SLiC interfaces (basic static, advanced static and dynamic) for various programming languages. MaxSkins enable easy and seamless access to the DFEs from C++, Java, Python, Ruby, Erlang, Perl, Haskell, C#, Cocoa and Delphi.
- MaxCompiler
- Apache Thrift (instructions on how to install Apache Thrift: https://thrift.apache.org/docs/install)
./setup.py install
It is recomended to use Docker image with all pre-installed dependencies. Find more about Docker at https://www.docker.com.
- Maxcompiler 201x.x installer '.tar.gz' (must be copied to the root dir of the project)
docker build -t maxskins .
docker run -ti --rm maxskins /bin/bash
docker run --cap-add NET_ADMIN --device=/dev/net/tun -ti --rm maxskins /bin/bash
docker run -ti --rm -v <path_of_host_dir>:<path_of_docker_dir> maxskins /bin/bash
Find more about volumes at https://docs.docker.com/userguide/dockervolumes.
Usage:
maxskins [--cpp | --C++] [--py | --Python] [--java | --Java]
[--rb | --Ruby] [--hs | --Haskell] [--csharp | --C#]
[--go | --Go] [--erl | --Erlang] [--perl | --Perl]
[--cocoa | --Cocoa] [--delphi | --Delphi]
<maxfile> [-d <output_directory>]
maxskins -h | --help
maxskins -v | --version
Options:
--cocoa --Cocoa Cocoa wrapper
--cpp --C++ C++ wrapper
--csharp --C# C# wrapper
--delphi --Delphi Delphi wrapper
--erl --Erlang Erlang wrapper
--go --Go Go wrapper
--hs --Haskell Haskell wrapper
--java --Java Java wrapper
--perl --Perl Perl wrapper
--py --Python Python wrapper
--rb --Ruby Ruby wrapper
-d <output_directory> Output directory [default: .]
-h --help Show this message
-v --version Show MaxSkins version
The examples for the maxskins utility usage are located in the examples directory. For each example there is a README.md file. All .max files are pre-compiled with the MaxCompiler v2014.2.
Script h2thrift generates Appache Thrift wrappers for any C header file thus allowing the use of functions implemented in C in various programming languages.
It generates a Appache Thrift IDL file and a C++ server implementation from the given header file. The IDL file can then be used to generate Appache Thrift wrappers for various programming languages:
thrift -r --gen <language> <generated_IDL_file>
Now all you need is to run a server and connect your program with it using Appache Thrift.
Find more about Appache Thrift at https://thrift.apache.org/
Usage:
h2thrift [-I <dir>...] <header_file> [-d <output_directory>]
h2thrift -h | --help
h2thrift -v | --version
Options:
-I <dir> Add the directory dir
to the list of directories
to be searched for header files.
-d <output_directory> Output directory [default: .]
-h --help Show this message
-v --version Show h2thrift version