{"id":69821,"date":"2019-08-29T04:19:40","date_gmt":"2019-08-29T11:19:40","guid":{"rendered":"http:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/"},"modified":"2019-08-29T04:19:40","modified_gmt":"2019-08-29T11:19:40","slug":"beyond-the-browser-getting-started-with-serverless-webassembly","status":"publish","type":"post","link":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/","title":{"rendered":"Beyond The Browser: Getting Started With Serverless WebAssembly"},"content":{"rendered":"<link rel=\"canonical\" href=\"https:\/\/www.smashingmagazine.com\/2019\/08\/beyond-browser-serverless-webassembly\/\"><title>Beyond The Browser: Getting Started With Serverless WebAssembly<\/title><\/p>\n<article>\n<header>\n<h1>Beyond The Browser: Getting Started With Serverless WebAssembly<\/h1>\n<address>Robert Aboukhalil<\/address>\n<p>                  <time datetime=\"2019-08-28T13:30:59+02:00\">2019-08-28T13:30:59+02:00<\/time><time datetime=\"2019-08-29T11:05:08+00:00\">2019-08-29T11:05:08+00:00<\/time><\/header>\n<p>Now that WebAssembly is supported by all major browsers and <a href=\"https:\/\/caniuse.com\/#search=webassembly\">more than 85% of users worldwide<\/a>, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs in the browser. It\u2019s also a compilation target, which means you can compile existing programs written in languages such as C, C++, and Rust into WebAssembly, and run those programs in the browser. So far, WebAssembly has been used to port all sorts of applications to the web, including <a href=\"http:\/\/blogs.autodesk.com\/autocad\/autocad-web-app-google-io-2018\/\">desktop applications<\/a>, <a href=\"http:\/\/www.jqkungfu.com\/\">command-line tools<\/a>, <a href=\"http:\/\/continuation-labs.com\/d3wasm\/\">games<\/a> and <a href=\"https:\/\/hacks.mozilla.org\/2019\/03\/iodide-an-experimental-tool-for-scientific-communicatiodide-for-scientific-communication-exploration-on-the-web\/\">data science tools<\/a>.<\/p>\n<p><strong>Note:<\/strong> <em>For an in-depth case study of how WebAssembly can be used inside the browser to speed up web applications, check out my <a href=\"https:\/\/www.smashingmagazine.com\/2019\/04\/webassembly-speed-web-app\/\">previous article<\/a>.<\/em><\/p>\n<h3>WebAssembly Outside The Web?<\/h3>\n<p>Although most WebAssembly applications today are browser-centric, WebAssembly itself wasn\u2019t originally designed just for the web, but really for any sandboxed environment. In fact, there\u2019s recently been a lot of interest in exploring how WebAssembly could be useful <em>outside<\/em> the browser, as a general approach for running binaries on any OS or computer architecture, so long as there is a WebAssembly runtime that supports that system. In this article, we\u2019ll look at how WebAssembly can be run outside the browser, in a serverless\/Function-as-a-Service (FaaS) fashion.<\/p>\n<div data-component=\"FeaturePanel\" data-audience=\"non-subscriber\" data-remove=\"true\"><\/div>\n<h3>WebAssembly For Serverless Applications<\/h3>\n<p>In a nutshell, serverless functions are a computing model where you hand your code to a cloud provider, and let them execute and manage scaling that code for you. For example, you can ask for your serverless function to be executed anytime you call an API endpoint, or to be driven by events, such as when a file is uploaded to your cloud bucket. While the term \u201cserverless\u201d may seem like a misnomer since servers are clearly involved somewhere along the way, it is serverless from our point of view since we don\u2019t need to worry about how to manage, deploy or scale those servers.<\/p>\n<p>Although these functions are usually written in languages like Python and JavaScript (Node.js), there are a number of reasons you might choose to use WebAssembly instead:<\/p>\n<ol>\n<li><strong>Faster Initialization Times<\/strong><br \/>Serverless providers that support WebAssembly (including <a href=\"https:\/\/blog.cloudflare.com\/webassembly-on-cloudflare-workers\/\">Cloudflare<\/a> and <a href=\"https:\/\/www.fastly.com\/blog\/announcing-lucet-fastly-native-webassembly-compiler-runtime\">Fastly<\/a> report that they can launch functions at least an order of magnitude faster than most cloud providers can with other languages. They achieve this by running tens of thousands of WebAssembly modules in the same process, which is possible because the sandboxed nature of WebAssembly makes for a more efficient way of obtaining the isolation that containers are traditionally used for.<\/li>\n<li><strong>No Rewrites Needed<\/strong><br \/>One of the main appeals of WebAssembly in the browser is the ability to port existing code to the web without having to rewrite everything to JavaScript. This benefit still holds true in the serverless use case because cloud providers limit which languages you can write your serverless functions in. Typically, they will support Python, Node.js, and maybe a few others, but certainly not C, C++, or Rust. By supporting WebAssembly, serverless providers can indirectly support a lot more languages.<\/li>\n<li><strong>More Lightweight<\/strong><br \/>When running WebAssembly in the browser, we\u2019re relying on the end user\u2019s computer to perform our computations. If those computations are too intensive, our users won\u2019t be happy when their computer fan starts whirring. Running WebAssembly outside the browser gives us the speed and portability benefits of WebAssembly, while also keeping our application lightweight. On top of that, since we\u2019re running our WebAssembly code in a more predictable environment, we can potentially perform more intensive computations.<\/li>\n<\/ol>\n<div><\/div>\n<h3>A Concrete Example<\/h3>\n<p>In my <a href=\"https:\/\/www.smashingmagazine.com\/2019\/04\/webassembly-speed-web-app\/\">previous article<\/a> here on Smashing Magazine, we discussed how we sped up a web application by replacing slow JavaScript calculations with C code compiled to WebAssembly. The web app in question was <a href=\"https:\/\/github.com\/robertaboukhalil\/fastq.bio\">fastq.bio<\/a>, a tool for previewing the quality of DNA sequencing data.<\/p>\n<p>As a concrete example, let\u2019s rewrite fastq.bio as an application that makes use of serverless WebAssembly instead of running the WebAssembly inside the browser. For this article, we\u2019ll use <a href=\"https:\/\/www.cloudflare.com\/products\/cloudflare-workers\/\">Cloudflare Workers<\/a>, a serverless provider that supports WebAssembly and is built on top of the V8 browser engine. Another cloud provider, Fastly, is working on a similar offering, but based on their <a href=\"https:\/\/www.fastly.com\/blog\/announcing-lucet-fastly-native-webassembly-compiler-runtime\">Lucet runtime<\/a>.<\/p>\n<p>First, let\u2019s write some Rust code to analyze the data quality of DNA sequencing data. For convenience, we can leverage the <a href=\"https:\/\/github.com\/rust-bio\/rust-bio\">Rust-Bio<\/a> bioinformatics library to handle parsing the input data, and the <a href=\"https:\/\/github.com\/rustwasm\/wasm-bindgen\">wasm-bindgen<\/a> library to help us compile our Rust code to WebAssembly.<\/p>\n<p>Here\u2019s a snippet of the code that reads in DNA sequencing data and outputs a JSON with a summary of quality metrics:<\/p>\n<pre><code>\/\/ Import packages\nextern crate wasm_bindgen;\nuse bio::seq_analysis::gc;\nuse bio::io::fastq;\n...\n\n\/\/ This \"wasm_bindgen\" tag lets us denote the functions\n\/\/ we want to expose in our WebAssembly module\n#[wasm_bindgen]\npub fn fastq_metrics(seq: String) -> String\n{\n    ...\n\n    \/\/ Loop through lines in the file\n    let reader = fastq::Reader::new(seq.as_bytes());\n    for result in reader.records() {\n        let record = result.unwrap();\n        let sequence = record.seq();\n\n        \/\/ Calculate simple statistics on each record\n        n_reads += 1.0;\n        let read_length = sequence.len();\n        let read_gc = gc::gc_content(sequence);\n\n        \/\/ We want to draw histograms of these values\n        \/\/ so we store their values for later plotting\n        hist_gc.push(read_gc * 100.0);\n        hist_len.push(read_length);\n\n        ...\n    }\n\n    \/\/ Return statistics as a JSON blob\n    json!({\n        \"n\": n_reads,\n        \"hist\": {\n            \"gc\": hist_gc,\n            \"len\": hist_len\n        },\n        ...\n    }).to_string()\n}<\/code><\/pre>\n<p>We then used Cloudflare\u2019s <a href=\"https:\/\/github.com\/cloudflare\/wrangler\">wrangler<\/a> command-line tool to do the heavy lifting of compiling to WebAssembly and deploying to the cloud. Once done, we are given an API endpoint that takes sequencing data as input and returns a JSON with data quality metrics. We can now integrate that API into our application.<\/p>\n<p>Here\u2019s a GIF of the application in action:<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif?w=800\"   alt=\"GIF of our application making parallel calls to a serverless WebAssembly function, and updating plots with the data it returns.\"><\/a><figcaption>Instead of running the analysis directly in the browser, the serverless version of our application makes several POST requests in parallel to our serverless function (see right sidebar), and updates the plots each time it returns more data. (<a href=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif\">Large preview<\/a>)<\/figcaption><\/figure>\n<p>The full code is available on <a href=\"https:\/\/github.com\/robertaboukhalil\/fastq.bio-serverless\/\">GitHub<\/a> (open-source).<\/p>\n<h3>Putting It All In Context<\/h3>\n<p>To put the serverless WebAssembly approach in context, let\u2019s consider four main ways in which we can build data processing web applications (i.e. web apps where we perform analysis on data provided by the user):<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/2-webassembly.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/2-webassembly.png?w=900\" sizes=\"100vw\" alt=\"This figure shows four ways we can structure data processing in a web app: on the server (without WebAssembly), in the browser using JavaScript, in the browser using WebAssembly, and serverless WebAssembly.\"><\/a><figcaption>\n      Four different architectural choices that we can take for apps that process data. (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/60d175fb-c5fd-40d2-94da-e2d872378c39\/2-webassembly.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>As shown above, the data processing can be done in several places:<\/p>\n<ol>\n<li><strong>Server-Side<\/strong><br \/>\nThis is the approach taken by most web applications, where API calls made in the front-end launch data processing on the back-end.<\/li>\n<li><strong>Client-Side JavaScript<\/strong><br \/>\nIn this approach, the data processing code is written in JavaScript and runs in the browser. The downside is that your performance will take a hit, and if your original code wasn\u2019t in JavaScript, you\u2019ll need to rewrite it from scratch!<\/li>\n<li><strong>Client-Side WebAssembly<\/strong><br \/>\nThis involves compiling data analysis code to WebAssembly and running it in the browser. If the analysis code was written in languages like C, C++ or Rust (as is often the case in my field of genomics), this obviates the need to rewrite complex algorithms in JavaScript. It also provides the potential for speeding up our application (e.g. as discussed in a <a href=\"https:\/\/www.smashingmagazine.com\/2019\/04\/webassembly-speed-web-app\/\">previous article<\/a>).<\/li>\n<li><strong>Serverless WebAssembly<\/strong><br \/>\nThis involves running the compiled WebAssembly on the cloud, using a FaaS kind of model (e.g. this article).<\/li>\n<\/ol>\n<p>So why would you choose the serverless approach over the others? For one thing, compared to the first approach, it has the benefits that come with using WebAssembly, especially the ability to port existing code without having to rewrite it to JavaScript. Compared to the third approach, serverless WebAssembly also means our app is more lightweight since we don\u2019t use the user\u2019s resources for number crunching. In particular, if the computations are fairly involved or if the data is already in the cloud, this approach makes more sense.<\/p>\n<p>On the other hand, however, the app now needs to make network connections, so the application will likely be slower. Furthermore, depending on the scale of the computation and whether it is amenable to be broken down into smaller analysis pieces, this approach might not be suitable due to limitations imposed by serverless cloud providers on runtime, CPU, and RAM utilization.<\/p>\n<div><\/div>\n<h3>Conclusion<\/h3>\n<p>As we saw, it is now possible to run WebAssembly code in a serverless fashion and reap the benefits of both WebAssembly (portability and speed) and those of function-as-a-service architectures (auto-scaling and per-per-use pricing). Certain types of applications \u2014 such as data analysis and image processing, to name a few \u2014 can greatly benefit from such an approach. Though the runtime suffers because of the additional round-trips to the network, this approach does allow us to process more data at a time and not put a drain on users\u2019 resources.<\/p>\n<div>\n  <img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/logo-red-21.png?w=900\" alt=\"Smashing Editorial\"><span>(rb, dm, yk, il)<\/span>\n<\/div>\n<\/article>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Beyond The Browser: Getting Started With Serverless WebAssembly Beyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00 Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language&#8230;<a class=\"moretag\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/\"> Read the full article&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":69822,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[371],"tags":[],"class_list":["post-69821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-user-experience"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Guest Contribution\"\/>\n\t<meta name=\"keywords\" content=\"user experience\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies\" \/>\n\t\t<meta property=\"og:description\" content=\"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-08-29T11:19:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-08-29T11:19:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#article\",\"name\":\"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies\",\"headline\":\"Beyond The Browser: Getting Started With Serverless WebAssembly\",\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1-webassembly.gif?fit=1288%2C725&ssl=1\",\"width\":1288,\"height\":725},\"datePublished\":\"2019-08-29T04:19:40-07:00\",\"dateModified\":\"2019-08-29T04:19:40-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#webpage\"},\"articleSection\":\"User Experience\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"position\":2,\"name\":\"User Experience\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#listItem\",\"name\":\"Beyond The Browser: Getting Started With Serverless WebAssembly\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#listItem\",\"position\":3,\"name\":\"Beyond The Browser: Getting Started With Serverless WebAssembly\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/\",\"name\":\"Guest Contribution\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Guest Contribution\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#webpage\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/\",\"name\":\"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies\",\"description\":\"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\\u2019t heard, WebAssembly is a new low-level language that runs\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1-webassembly.gif?fit=1288%2C725&ssl=1\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#mainImage\",\"width\":1288,\"height\":725},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/08\\\/beyond-the-browser-getting-started-with-serverless-webassembly\\\/#mainImage\"},\"datePublished\":\"2019-08-29T04:19:40-07:00\",\"dateModified\":\"2019-08-29T04:19:40-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies","description":"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs","canonical_url":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/","robots":"max-image-preview:large","keywords":"user experience","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#article","name":"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies","headline":"Beyond The Browser: Getting Started With Serverless WebAssembly","author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif?fit=1288%2C725&ssl=1","width":1288,"height":725},"datePublished":"2019-08-29T04:19:40-07:00","dateModified":"2019-08-29T04:19:40-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#webpage"},"isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#webpage"},"articleSection":"User Experience"},{"@type":"BreadcrumbList","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.taterboy.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","position":2,"name":"User Experience","item":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#listItem","name":"Beyond The Browser: Getting Started With Serverless WebAssembly"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#listItem","position":3,"name":"Beyond The Browser: Getting Started With Serverless WebAssembly","previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}}]},{"@type":"Organization","@id":"https:\/\/www.taterboy.com\/blog\/#organization","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","url":"https:\/\/www.taterboy.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author","url":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/","name":"Guest Contribution","image":{"@type":"ImageObject","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Guest Contribution"}},{"@type":"WebPage","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#webpage","url":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/","name":"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies","description":"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#breadcrumblist"},"author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"creator":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif?fit=1288%2C725&ssl=1","@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#mainImage","width":1288,"height":725},"primaryImageOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/#mainImage"},"datePublished":"2019-08-29T04:19:40-07:00","dateModified":"2019-08-29T04:19:40-07:00"},{"@type":"WebSite","@id":"https:\/\/www.taterboy.com\/blog\/#website","url":"https:\/\/www.taterboy.com\/blog\/","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","og:type":"article","og:title":"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies","og:description":"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs","og:url":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/","article:published_time":"2019-08-29T11:19:40+00:00","article:modified_time":"2019-08-29T11:19:40+00:00","twitter:card":"summary","twitter:title":"Beyond The Browser: Getting Started With Serverless WebAssembly | Design for Immersive Technologies","twitter:description":"Beyond The Browser: Getting Started With Serverless WebAssemblyBeyond The Browser: Getting Started With Serverless WebAssembly Robert Aboukhalil 2019-08-28T13:30:59+02:002019-08-29T11:05:08+00:00Now that WebAssembly is supported by all major browsers and more than 85% of users worldwide, JavaScript is no longer the only browser language in town. If you haven\u2019t heard, WebAssembly is a new low-level language that runs"},"aioseo_meta_data":{"post_id":"69821","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-02-07 18:08:42","updated":"2026-09-01 22:46:05","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/\" title=\"User Experience\">User Experience<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBeyond The Browser: Getting Started With Serverless WebAssembly\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.taterboy.com\/blog"},{"label":"User Experience","link":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/"},{"label":"Beyond The Browser: Getting Started With Serverless WebAssembly","link":"https:\/\/www.taterboy.com\/blog\/2019\/08\/beyond-the-browser-getting-started-with-serverless-webassembly\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8wzr5-ia9","jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/08\/1-webassembly.gif?fit=1288%2C725&ssl=1","_links":{"self":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/69821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/comments?post=69821"}],"version-history":[{"count":0,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/69821\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media\/69822"}],"wp:attachment":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media?parent=69821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/categories?post=69821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/tags?post=69821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}