HomeCoinsTrueBit (TRUEBIT)Announcing the Truebit WASI SDK for developers | by Truebit Protocol |...

Announcing the Truebit WASI SDK for developers | by Truebit Protocol | Truebit | Nov, 2022

- Advertisement -


Truebit X WASI

WASI support for Truebit tasks is now available here.

Whereas WebAssembly is a virtual instruction set architecture, WASI is a systems interface for WebAssembly. Using WASI, developers can add a standard filesystem interface to WebAssembly execution independent from its runtime. The portable nature of WebAssembly allows developers to easily deploy WASI-based applications across MacOS, Windows, Linux, web browsers, and containers.

Truebit’s original WebAssembly compiler utilized Emscripten, a platform designed for porting C/C++ projects to web browsers. Our new WASI SDK integration updates the deprecated Emscripten stack and improves filesystem ergonomics.

Here’s an example of how to compile a Truebit task using WASI.

Compile a c++ task using WASI

wasic++ chess.cpp -fno-exceptions -o chess.wasm

Compile a c task using WASI
Step 1: wasicc -fno-execptions -c reverse_alphabet.c
Step 2: wasic++ reverse_alphabet.o -o reverse_alphabet.wasm

The complete examples are in github:
Chess
Reverse_alphabet

What’s next?

To start you can pull the Docker from Dockerhub or clone the github repo that is now public for your convenience. Additionally, the Truebit Getting Started Guide can be found on our website here.

We’re excited to see how our community leverages the new WASI SDK! As always, you can find us our Gitter and follow us on Twitter to stay up to date or DM us with any feedback or questions.





Source link

- Advertisement -
Mr Bitcointe
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
462FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,580FollowersFollow
2,230SubscribersSubscribe

Most Popular

bitcoin
Bitcoin (BTC) $ 17,121.64
ethereum
Ethereum (ETH) $ 1,281.52
tether
Tether (USDT) $ 1.00
bitcoin-cash
Bitcoin Cash (BCH) $ 110.66
litecoin
Litecoin (LTC) $ 77.00
eos
EOS (EOS) $ 0.9373
okb
OKB (OKB) $ 21.61
tezos
Tezos (XTZ) $ 1.01
leo-token
LEO Token (LEO) $ 3.87
cardano
Cardano (ADA) $ 0.317792
monero
Monero (XMR) $ 142.32
stellar
Stellar (XLM) $ 0.088894
chainlink
Chainlink (LINK) $ 7.55
huobi-token
Huobi (HT) $ 6.68
tron
TRON (TRX) $ 0.054768
usd-coin
USD Coin (USDC) $ 1.01
dash
Dash (DASH) $ 45.06
neo
NEO (NEO) $ 6.89
iota
IOTA (MIOTA) $ 0.21374
nem
NEM (XEM) $ 0.033242
zcash
Zcash (ZEC) $ 45.10
maker
Maker (MKR) $ 653.66
paxos-standard
Pax Dollar (USDP) $ 1.00
ethereum-classic
Ethereum Classic (ETC) $ 20.08
vechain
VeChain (VET) $ 0.019168
true-usd
TrueUSD (TUSD) $ 1.00
kucoin-shares
KuCoin (KCS) $ 6.68
waves
Waves (WAVES) $ 2.36