Skip to content

Commit

Permalink
docs: explain that modules can be developed using TinyGo, Rust, or Zig
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <ron@hybridgroup.com>
  • Loading branch information
deadprogram committed Apr 7, 2024
1 parent 990fbb5 commit eaaeef2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ Mechanoid is a framework for WebAssembly applications on embedded systems and Io

Mechanoid is an open source framework for building and running WebAssembly applications on small embedded systems and tiny IoT devices. It is intended to make it easier to create applications that are secure and extendable, and take advantage of all of the latest developments in both WebAssembly and embedded development.

Mechanoid includes a command line interface tool that helps you create, test, and run applications on either simulators or actual hardware, in part thanks to being written using [Go](https://go.dev/) and [TinyGo](https://tinygo.org/).
Mechanoid includes a command line interface tool that helps you create, test, and run applications on either simulators or actual hardware.

## Why would you want to do this?
You can write WASM modules for Mechanoid using any language that can compile to WebAssembly, including [TinyGo](https://tinygo.org/), [Rust](https://www.rust-lang.org/), and [Zig](https://ziglang.org/).

Mechanoid itself is written using [Go](https://go.dev/) and [TinyGo](https://tinygo.org/).

## Why run WebAssembly on embedded device?

- Devices that are extensible. Think app stores, downloadable add-ons, or end-user programmability.
- Environment is sandboxed, so bricking the device is less likely.
Expand Down Expand Up @@ -74,8 +78,6 @@ mecha new module -template=ping ping
This is the Go code for the `ping.wasm` module. It exports a `ping` function, that calls a function `pong` that has been imported from the host application.

```go
//go:build tinygo
package main
//go:wasmimport hosted pong
Expand Down

0 comments on commit eaaeef2

Please sign in to comment.