metacall / core

MetaCall: The ultimate polyglot programming experience.

Home Page:https://metacall.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

METACALL

MetaCall Polyglot Runtime

MetaCall.io | Install | Docs

MetaCall allows calling functions, methods or procedures between multiple programming languages.

sum.py

def sum(a, b):
  return a + b

main.js

const { sum } = require('./sum.py');

sum(3, 4); // 7

shell

metacall main.js

MetaCall is an extensible, embeddable, and interoperable cross-platform polyglot runtime. It supports NodeJS, Vanilla JavaScript, TypeScript, Python, Ruby, C#, Java, WASM, Go, C, C++, Rust, D, Cobol and more.

Install

The easiest way to install MetaCall is the following:

curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh

For more information about other install methodologies and platforms or Docker, check the install documentation.

Examples

You can find a complete list of examples in the documentation. If you are interested in submitting new examples, please contact us in our chats.

About

MetaCall: The ultimate polyglot programming experience.

https://metacall.io

License:Apache License 2.0


Languages

Language:C 30.8%Language:C++ 29.0%Language:CMake 20.3%Language:Rust 7.1%Language:Zig 3.2%Language:Shell 2.1%Language:JavaScript 1.6%Language:Python 1.4%Language:C# 1.0%Language:PowerShell 0.6%Language:Ruby 0.5%Language:Go 0.5%Language:SWIG 0.4%Language:Java 0.4%Language:Dockerfile 0.2%Language:TypeScript 0.2%Language:Crystal 0.2%Language:HTML 0.1%Language:Nim 0.1%Language:Awk 0.1%Language:LLVM 0.0%Language:WebAssembly 0.0%Language:Julia 0.0%Language:CSS 0.0%Language:COBOL 0.0%Language:Lua 0.0%