Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fusionlanguage/fut

Fusion programming language. Transpiling to C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C.
https://github.com/fusionlanguage/fut

language programming-language transpiler

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Travis CI](https://app.travis-ci.com/fusionlanguage/fut.svg?branch=master)](https://app.travis-ci.com/fusionlanguage/fut)
[![GitHub Actions](https://github.com/fusionlanguage/fut/actions/workflows/test.yml/badge.svg)](https://github.com/fusionlanguage/fut/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/fusionlanguage/fut/branch/master/graph/badge.svg?token=M7UX4WJKI3)](https://codecov.io/gh/fusionlanguage/fut)

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:

```csharp
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](https://fusion-lang.org) in your browser.

For further instructions, see [Getting Started](doc/getting-started.md).