Fusion 编程语言
Fusion Programming Language

原始链接: https://fusion-lang.org/

Fusion 在 GitHub 上关注我 Fusion 是一种编程语言,旨在为 C、C++、C#、D、Java、JavaScript、Python、Swift、TypeScript 和 OpenCL C 实现可复用的组件(库),且所有代码均来自同一个代码库。 一个“Hello, world”库: ``` public class HelloFu { public static string GetMessage() { return "Hello, world!"; } } ``` 可以通过以下命令将其转换为上述所有语言: `fut -o hello.c,cpp,cs,d,java,js,py,swift,ts,cl hello.fu` 转换后的代码轻量(无需虚拟机、模拟器或外部依赖)、易于阅读,并能完美适配目标语言,包括符合其命名规范和文档注释。 请在浏览器中体验 Fusion Playground。如需进一步说明,请参阅“入门指南”。

Hacker News 最新 | 往期 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Fusion 编程语言 (fusion-lang.org) 3 点,由 efrecon 发布于 1 小时前 | 隐藏 | 往期 | 收藏 | 2 条评论 | 帮助 efrecon 1 小时前 | 下一条 [–] Fusion 是一种编程语言,旨在通过单一代码库为 C、C++、C#、D、Java、JavaScript、Python、Swift、TypeScript 和 OpenCL C 实现可重用组件(库)。 回复 hav0c 1 小时前 | 上一条 [–] 让我想起了 https://xkcd.com/927/ 回复 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文
Fusion Fork me on GitHub

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.

Fusion transpiles to C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL

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.

联系我们 contact @ memedata.com