-
Notifications
You must be signed in to change notification settings - Fork 39
Add Languages page with support matrix #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ericgregory
wants to merge
3
commits into
bytecodealliance:main
Choose a base branch
from
ericgregory:language-matrix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| title: "Languages" | ||
| sidebar_position: 2.5 | ||
| --- | ||
| ## Language support for components | ||
|
|
||
| Currently, these languages can be compiled to Wasm components. Some languages have first-party support for Wasm components, while other languages rely on externally maintained tools. | ||
|
|
||
| | Language | Name | WASI Version | Maintained By | Notes | | ||
| | ------------------------- | ------------------------------------------------------------------------------------------------------ | ------------ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | C and C++ | [`wasi-sdk`](https://github.com/WebAssembly/wasi-sdk) | 0.2 + 0.3 | W3C Wasm CG | 0.3 implementation is in progress | | ||
| | C# | [`componentize-dotnet`](https://github.com/bytecodealliance/componentize-dotnet) | 0.2 | Bytecode Alliance | | | ||
| | Go | [`go-modules`](https://github.com/bytecodealliance/go-modules) | 0.2 | Bytecode Alliance | | | ||
| | Java | [GraalVM](https://www.graalvm.org/) | - | Oracle | Planned - [Tracking Issue](https://github.com/oracle/graal/issues/9762), [Roadmap](https://github.com/orgs/oracle/projects/21/views/1), [Presentation](https://youtu.be/uefc2t9AmQI?t=1218) | | ||
| | JavaScript and TypeScript | [`jco`](https://github.com/bytecodealliance/jco) | 0.2 | Bytecode Alliance | | | ||
| | Kotlin | [Kotlin](https://kotlinlang.org/docs/wasm-wasi.html) | 0.2 | JetBrains | Planned - [Tracking Issue](https://youtrack.jetbrains.com/issue/KT-64568) | | ||
| | Python | [`componentize-py`](https://github.com/bytecodealliance/componentize-py) | 0.2 | Bytecode Alliance | | | ||
| | Python | [`cpython`](https://snarky.ca/state-of-wasi-support-for-cpython-march-2024/) | 0.2 | Python | Implementation in progress | | ||
| | Ruby | [`ruby.wasm`](https://github.com/ruby/ruby.wasm) | 0.2 | Ruby | Implementation in progress | | ||
| | Rust | [`wasm32-wasip2`](https://doc.rust-lang.org/rustc/platform-support/wasm32-wasip2.html) compiler target | 0.2 + 0.3 | Rust Project | [0.2 Introduction](https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets/), [0.2 Stabilization](https://blog.rust-lang.org/2024/11/26/wasip2-tier-2/), 0.3 is planned | | ||
| | Swift | [Swift](https://www.swift.org/) | 0.2 | Swift | Planned - [Roadmap Accepted](https://forums.swift.org/t/accepted-vision-a-vision-for-webassembly-support-in-swift/80332) | | ||
|
|
||
| ### Bindings generators | ||
|
|
||
| The bindings generators below provide a way to make Wasm function calls using [interfaces](./interfaces.md) in a given language. | ||
|
|
||
| | From | To | Name | | ||
| | -------------------- | -------------------- | ------------------------------------------------------------------------------------------------- | | ||
| | Wasm Interface Types | C and C++ | [wit-bindgen c](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/c) | | ||
| | Wasm Interface Types | C# | [wit-bindgen csharp](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/csharp) | | ||
| | Wasm Interface Types | JSON Schema | [component2json](https://github.com/microsoft/wassette/tree/main/crates/component2json) | | ||
| | Wasm Interface Types | Markdown | [wit-bindgen markdown](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/markdown) | | ||
| | Wasm Interface Types | Moonbit | [wit-bindgen moonbit](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/moonbit) | | ||
| | Wasm Interface Types | Rust | [wit-bindgen rust](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/guest-rust) | | ||
| | WebIDL | Wasm Interface Types | [webidl2wit](https://github.com/wasi-gfx/webidl2wit) | | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should separate these since cpp has it's own generator