awesome-wasm-langs

awesome-wasm-langs

WebAssembly多语言编译支持汇总

这个项目汇总了可编译到WebAssembly或在WebAssembly中运行虚拟机的编程语言。涵盖范围包括C、C++、Rust等成熟语言,AssemblyScript、Go等稳定语言,以及一些实验性语言。项目全面展示了WebAssembly语言生态,为开发者选择合适的WebAssembly开发语言提供参考。

WebAssembly编程语言编译浏览器性能Github开源项目

Awesome WebAssembly Languages Awesome

WebAssembly, or wasm for short, is a low-level bytecode format that runs in the browser just like JavaScript. It is designed to be faster to parse than JavaScript, as well as faster to execute which makes it a suitable compilation target for new and existing languages.

This repo contains a list of languages that currently compile to or have their VMs in WebAssembly(wasm) :octocat:

Contents


<a name="dotnet"></a>.Net <sup>top⇈</sup>

.NET Framework is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library named Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages.

  • Mono - an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. For a real-work example, see this repository which contains the Windows 10 calculator. The application is built using standard C++ 11 and C++/CX, with a calculation engine that dates back from 1995. Made by possible with mono via Uno Platform.
  • Blazor - a web UI framework using C#/Razor and HTML, running client-side via WebAssembly. Source is maintained on ASP.Net Core repo.
  • Bolero - Bolero brings Blazor to F# developers with an easy to use Model-View-Update architecture, HTML combinators, hot reloaded templates, type-safe endpoints, advanced routing and remoting capabilities, and more.
  • NativeAOT-LLVM - an experimental fork of the CoreCLR .NET runtime that compiles .NET applications into single-file executables, with the primary target being WASM

<a name="ada"></a>Ada <sup>top⇈</sup>

Ada is a structured, statically typed, imperative, and object-oriented high-level programming language, inspired by Pascal and other languages. It has built-in language support for design by contract (DbC), extremely strong typing, explicit concurrency, tasks, synchronous message passing, protected objects, and non-determinism. Ada improves code safety and maintainability by using the compiler to find errors in favor of runtime errors.

  • adawebpack - GNAT-LLVM compiler for WebAssembly target, GNAT Run Time Library and AdaWebPack bindings for Web API.
  • adagl - Multiplatform Ada/OpenGL bindings (ported to native/OpenGL, A2JS/WebGL and WASM/WebGL).
  • adawebui - GUI based on adawebpack.\

<a name="assemblyscript"></a>AssemblyScript <sup>top⇈</sup>

AssemblyScript is a new compiler targeting WebAssembly while utilizing TypeScript's syntax and node's vibrant ecosystem. Instead of requiring complex toolchains to set up, you can simply npm install it - or run it in a browser.


<a name="astro"></a>Astro <sup>top⇈</sup>

Astro is a fun safe language for rapid prototyping and high performance applications.

  • Astro - main repository. Unmaintained

<a name="ballerina"></a>Ballerina <sup>top⇈</sup>

Ballerina is an open-source programming language for the cloud that makes it easier to use, combine, and create network services. The WebAssembly compiler is implemented for the native Ballerina compiler nBallerina.


<a name="basic"></a>BASIC <sup>top⇈</sup>

BASIC (acronym for "Beginners' All-purpose Symbolic Instruction Code") is an early general-purpose and high-level programming language. It's still one of the simplest and easy to learn languages.

  • basic_rs - a BASIC Interpreter/Compiler for the Original Dartmouth Version written in Rust. Also provides basic2wasm tool which compiles BASIC to WebAssembly using binaryen.
  • basicwasm - a GWBasic interpreter compiled to WASM with a Web UI.
  • EndBASIC - BASIC environment with a REPL, a web interface, a graphical console, and RPi support written in Rust. You can try it out here.
  • gobasic - a BASIC interpreter written in Golang.

<a name="brainfuck"></a>Brainfuck <sup>top⇈</sup>

Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism. The language consists of only eight simple commands and an instruction pointer. While it is fully Turing-complete, it is not intended for practical use, but to challenge and amuse programmers.

  • BrainfuckWebassembly - a simple Brainfuck-to-wasm compiler in one function.
  • Brainfuck2Wasm - a Brainfuck-to-wasm compiler and playground.
  • BrainfuckRsWasm - a Brainfuck interpreter written in Rust and compiled to WebAssembly.
  • bfwasm - A non-optimizing Brainf_ck to WebAssembly compiler with WASI support.

<a name="c"></a>C <sup>top⇈</sup>

C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs,[6] and used to re-implement the Unix operating system.

  • Emscripten - an LLVM-to-JavaScript/Webassembly compiler. It takes LLVM bitcode - which can be generated from C/C++, using llvm-gcc (DragonEgg) or clang, or any other language that can be converted into LLVM - and compiles that into JavaScript or wasm.
  • Cheerp - an open-source, enterprise-grade C/C++ compiler for Web applications. Cheerp can compile virtually any C/C++ code to WebAssembly and/or JavaScript.

<a name="csharp"></a>C# <sup>top⇈</sup>

C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. Its development team is led by Anders Hejlsberg. WebAssembly support is achieved through Blazor.


<a name="cpp"></a>C++ <sup>top⇈</sup>

C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. It was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights. The development of the language was started in 1979 by Bjarne Stroustrup as a "C with Classes".

  • See C.

<a name="c4wa"></a>c4wa <sup>top⇈</sup>

C4wa ("C for Web Assembly") is a subset of Standard C specifically targeted for simple and efficient Web Assembly compilation. Generated WASM files include no overhead, out of the box compatible with any Web Assembly runtime, support import of variable-argument functions (such as printf). There is also an option to create well-formatted and readable WAT files.

  • c4wa - main repository.

<a name="clean"></a>Clean <sup>top⇈</sup>

Clean is a general purpose, state-of-the-art, pure and lazy functional programming language designed for making real-world applications. Some of its most notable language features are uniqueness typing, dynamic typing, and generic functions.

  • ABC interpreter - interpreter for Clean's intermediate language ABC, with a WebAssembly version.
  • iTasks - integration of the above ABC interpreter with browser applications.

<a name="co"></a>Co <sup>top⇈</sup>

A programming language similar to Go and TypeScript.

  • Co - main repository

<a name="cobol"></a>COBOL <sup>top⇈</sup>

COBOL is a compiled English-like programming language designed for business use. It is imperative, procedural, and object-oriented. COBOL is primarily used in business, finance, and administrative systems.


<a name="crystal"></a>Crystal <sup>top⇈</sup>

Crystal is a programming language with the following goals:

  • Have a syntax similar to Ruby (but compatibility with it is not a goal)
  • Statically type-checked but without having to specify the type of variables or method arguments.
  • Be able to call C code by writing bindings to it in Crystal.
  • Have compile-time evaluation and generation of code, to avoid boilerplate code.
  • Compile to efficient native code.
  • Crystal - main repository
  • POC PR - PR adding initial support for WebAssembly

<a name="cyber"></a>Cyber <sup>top⇈</sup>

Fast, efficient, and concurrent scripting. Dynamic and gradual types; Concurrency with fibers; Multithreaded; Memory safe; FFI and Embeddable.

  • Cyber - project repository

<a name="d"></a>D <sup>top⇈</sup>

D is a general-purpose programming language with static typing, systems-level access, and C-like syntax.

  • LDC - LLVM-based D compiler, which can generate WASM since version 1.11.0.

<a name="dart"></a>Dart <sup>top⇈</sup>

An approachable, portable, and productive language for high-quality apps on any platform

  • sdk - The Dart SDK, including the VM, dart2js, core libraries, and more.
  • language - Design of the Dart language
  • Use via Flutter - How to compile Dart to WebAssembly for a Flutter Web application

<a name="eclair"></a>Eclair <sup>top⇈</sup>

Eclair is a minimal, fast Datalog implementation that compiles to LLVM IR and WASM.

  • eclair-lang - The Eclair compiler, which can compile Eclair code to LLVM IR and WASM.

<a name="eel"></a>Eel <sup>top⇈</sup>

Eel is a small language used for, among other things, writing visualizer "presets" for Milkdrop, the music visualization program which came with Winamp.

  • eel-wasm - Compiles Milkdrop flavored Eel to Wasm in the browser. Intended to become a component of Butterchurn, a WebGL implementation of the Milkdrop Visualizer.

<a name="elixir"></a>Elixir <sup>top⇈</sup>

Elixir is a dynamic, functional language designed for building scalable and maintainable applications. Elixir builds on top of Erlang and shares the same abstractions for building distributed,

编辑推荐精选

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具使用教程AI营销产品酷表ChatExcelAI智能客服
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

热门AI工具生产力协作转型TraeAI IDE
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

数据安全AI助手热门AI工具AI辅助写作AI论文工具论文写作智能生成大纲
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

热门AI工具AI办公办公工具智能排版AI生成PPT博思AIPPT海量精品模板AI创作
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

下拉加载更多