Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
Add diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Apr 13, 2021
1 parent a74d15b commit 10ede2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ However, some system features like obtaining the current time are essential to r

This document explores a new set of essential `system.*` instructions.

## Motivation

Code reuse on and off the Web is desirable for the long-term success of the broader WebAssembly ecosystem, even though different environments may impose different requirements on system APIs. Some system APIs are common among the Web and Non-Web, however, so providing these in a portable way makes individual components reusable across ecosystems, e.g. without having to recompile and link statically or having to utilize a polyfill.

<p align="center">
<img src="./code-reuse.svg" alt="Code reuse" />
</p>

## Instructions

* `system.time_local` obtains the current local time in milliseconds since Unix epoch.
Expand Down
3 changes: 3 additions & 0 deletions code-reuse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10ede2b

Please sign in to comment.