SpaceFreaks.gg Minting now View more

Ad

Advertise here

Contact on
Hold just 1,000,000 $SPACES to remove ads
Truebit

Announcing the Truebit WASI SDK for developers

Published on 11/03 2022 19:24

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.


was originally published in Truebit on Medium, where people are continuing the conversation by highlighting and responding to this story.

New articles
Ad

Advertise here

Contact on
Ad

Advertise here

Contact on
Unable to connect to wallet

Please connect using a browser inside your wallet or simply use your computer to connect.

Join AstroSpaces community

To join our platform please enter your email below and we'll send an email with a verification code.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. By signing up you'll also accept the Terms of Use agreement with AstroSpaces.io.

Sign in
Forgot password
WalletConnect
WalletConnect
Scan with WalletConnect to connect
Day or night?

How would you like to experience our platform?

Actions

Asset traits

Trait type Value Rarity score Uniqueness
No rarity rankings available.

We've not yet completed a rarity check for this collection. This may be because the collection is still minting.
If you believe this is a mistake reach out to support on Discord.

Request rarity check