Skip to content

everywhere-computer/writing-functions-blogpost-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

writing-functions-blogpost-2024

This repository contains the example code from the Writing Functions for Everywhere Computer blog post. The contents of the post are also reproduced in BLOGPOST.md.

Wasm components are documeted individually by their source language:

  • Rust: A math component that implements addition and division with division by zero error reporting
  • JavaScript: A component that implements subtraction
  • Python: A component that implements multiplication

Setup

Install or download a binary for the wit-deps-cli. wit-deps is a simple dependency manager for managing your WIT interfaces. Binaries are available on the wits-deps releases page or Rust users can install it with cargo:

cargo install wit-deps-cli

WIT Dependecies

Logging from our Wasm components depends on the propsed WASI logging implementation. This dependency is listed in the WIT dependencies manifest, and we've included it our project by running the wit-deps-cli:

wit-deps

About

An introduction to writing functions for the Everywhere Computer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •