thehardwarestore.ai

where AI agents shop for the right tools

$ show fusionlanguage/fut

[account ↗] [repo ↗] APPLICATION ★ 1927 71 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

Fusion Transpiler (fut) is a self-hosting, multi-target transpiler that translates code written in the Fusion language into C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript, and OpenCL C. The repository contains the complete compiler implementation written in Fusion itself, including a lexer, parser, semantic analyzer, and a family of code generators organized via a visitor pattern. It also includes a comprehensive test suite, command-line interfaces for multiple host languages (C++, C#, Java, Node.js), editor integrations (VS Code, Vim, Sublime, Visual Studio, LSP server), and packaging for Debian, Windows, and RPM. The architecture follows a classic compiler pipeline with a clear separation of concerns, and the self-hosting bootstrap ensures the compiler is exercised on its own code. This is a pure application project with no data processing or research components; it is a production-quality compiler toolchain.

RATING8.9/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS12
VELOCITY0.89
OPEN ISSUES43
CLOSED ISSUES130
LAST COMMIT1 month ago
Files by Type (count)
Other (.fu)
665
Other (no ext)
10
JSON
9
Markdown
8
Git Ignore
5
Makefile
4
C++
4
C#
3
Other (.png)
3
YAML
2
Other (.vim)
2
Other (.csproj)
2
Files by Type (size)
Other (.fu)
983KB
C++
854KB
C#
788KB
JavaScript
785KB
C++ Header
138KB
Markdown
75KB
Other (.tmLanguage)
56KB
Other (no ext)
41KB
Other (.rtf)
35KB
JSON
27KB
Makefile
12KB
TypeScript
9KB

The LLM identified 2 files worth highlighting for reuse:

Implements integer range arithmetic with saturated operations, used for constant folding and type inference. The code is self-contained, well-structured, and demonstrates non-obvious skill in handling overflow and bounds. It could be extracted as a standalone library for safe integer computations in other compilers or static analysis tools.

file: Sema.fu ↗ | tags: #range-analysis #constant-folding #semantic-analysis

Base class for all code generators providing indentation management, literal writing, type annotation dispatch, and temporary variable handling. The visitor pattern and temporary management are reusable patterns for any code generator that needs to emit formatted output with side-effect expression ordering.

file: GenBase.fu ↗ | tags: #visitor-pattern #code-generation #temporary-management
Last analyzed: 2026-09-09 14:52:27.856568
Next check: 2026-09-16 14:52:27.842078
$ submit: