DEV Community

maddie lim ✨
maddie lim ✨

Posted on


WebAssembly Hello World

played around with WebAssembly and wrote a simple hello world module in WebAssembly text format (WAT) using WebAssembly Studio!

  (import "console" "log" (func $print (param i32 i32 )))
  (import "js" "mem" (memory 1))
  (data (i32.const 0) "hello, sparkles")
  (data (i32.const 15) "you are looking cute today :)")
  (func (export "main")
    i32.const 0
    i32.const 15
    call $print
    i32.const 15
    i32.const 29
    call $print
Enter fullscreen mode Exit fullscreen mode


WebAssembly Studio screenshot show hello world code

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.