fusionlanguage / fut

Fusion programming language. Transpiling to C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C.

Home Page:https://fusion-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis CI GitHub Actions codecov

Fusion Programming Language

Fusion is a programming language designed for implementing reusable components (libraries) for C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C, all from single codebase.

A "Hello, world" library:

public class HelloFu
{
    public static string GetMessage()
    {
        return "Hello, world!";
    }
}

can be translated to all the listed languages with:

fut -o hello.c,cpp,cs,d,java,js,py,swift,ts,cl hello.fu

The translated code is lightweight (no virtual machine, emulation nor dependencies), human-readable and fits well with the target language, including naming conventions and documentation comments.

Check out Fusion Playground in your browser.

For further instructions, see Getting Started.

About

Fusion programming language. Transpiling to C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C.

https://fusion-lang.org

License:GNU General Public License v3.0


Languages

Language:C++ 37.5%Language:C# 30.6%Language:JavaScript 30.4%Language:Makefile 0.5%Language:TypeScript 0.4%Language:Java 0.4%Language:Vim Script 0.2%Language:Perl 0.0%