Second State
  • What is Second State?
  • Server-side WebAssembly
    • Why?
      • WebAssembly vs native code
    • Getting started
      • VS Codespaces
      • The ssvmup tool
    • Rust functions in Node.js
    • Access system resources
      • WASI
      • The storage interface
      • The inference interface
    • Examples and use cases
      • Encryption and decryption
      • Machine learning
      • Artificial intelligence
    • SSVM Performance
  • Function as a Service
    • Getting started
      • Context
      • Send result to another service
    • Input and output
      • JSON argument
      • Binary argument
      • Multiple arguments
      • Argument from a URL
      • JSON return value
      • Binary return value
      • Redirect return value
    • Stateful execution
  • Related technologies
    • Deno, Rust and WebAssembly
    • A Rusty hello world
    • Rust and WebAssembly
    • WebAssembly in the browser
    • Access JavaScript from Rust
    • How to Learn Rust Without Installing Any Software
    • How to Publish a no-code website in 10 minutes
Powered by GitBook
On this page

Was this helpful?

  1. Server-side WebAssembly

Why?

WebAssembly could improve security and efficiency of web services

PreviousWhat is Second State?NextWebAssembly vs native code

Last updated 4 years ago

Was this helpful?

This page is outdated. Please visit here to check out .

You can bootstrap a WebAssembly virtual machine from your server side application, such as a Node.js app, and then execute high performance and potentially unsafe code inside the virtual machine. The major use cases are web applications that require native performance or must execute user-submitted code.

User submitted code is the cornerstone of cloud native or serverless computing. For SaaS providers, users want to customize their experiences using code, or to create applications for their peers. Examples include Function as a Service, workflow apps, smart contracts, plugins, and extensions. WebAssembly supports multiple programming languages, and can provide a high performance sandbox for user submitted code with little resource consumption.

  • High performance with support for JIT and AOP optimizations.

  • Seamlessly supports server application frameworks, such as NodeJS. You can build high performance NodeJS apps with SSVM.

  • Supports safe access to external resources, such as databases, message queues, and even new AI hardware

  • Allows precise metering of computational resources for serverless apps.

Node.js and Rust developers ! Create high performance Rust + JavaScript hybrid apps on Node.js.

Native code is often used where high performance and efficiency are required. The popular Node.js runtime is written in native C/C++. Native code runs AI inference, big data analytics, image and video processing, and scientific computing. WebAssembly is a light, fast, and cross-platform container. It is a safe and managed alternative to native code. .

provides an open source WebAssembly implementation (Second State Virtual Machine, or ) that is specifically optimized for server side applications. It is

Visit our or follow us on social media [, , and ], and learn how WebAssembly could improve your web applications and services!

get started here
Learn more here
Second State
SSVM
web site
Twitter
LinkedIn
Medium
Why WebAssembly on the server-side