Zaplib

Languages and libraries

rust webassembly runtime library

SHOW HN2022

175points
41comments
#344of 2,570 in 2022
Top 14%of 2022 by points

How HN took it

CuriousMostly questions and neutral comments

7 positive, 19 neutral or asking, 2 mixed, 7 critical, out of 35 comments about the project. Thread score -0.07.

Execution: 1 for, 5 againstPerformance: 2 for, 1 againstIdea: 1 for, 0 againstDocs: 1 for, 0 againstPricing: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Built-in Rust source map debugging in the browser

    From 1 comment
    • That looks awesome! For debugging we support full Rust source maps in the browser (using DWARF). :D (This is something that wasm-bindgen doesn't support, for example!) See…
      janpaul123 on HN
  • Interesting approach to Rust and Wasm performance

    From 2 comments

Objections

  • Commercial licensing plans for Zapium runtime

    From 1 comment
    • This is really cool but I can’t say I’m a fan of Zapium given it would move to a commercial license in the future. If you have to ship CEF anyhow, what is the performance…
      priansh on HN
  • Rendering lag on low-end mobile and continuous animation

    From 1 comment
    • Just tried opening this on my cheap Android phone; really appreciate that the whole page stayed usable! There was some noticable lag though, which I don't see on advanced…
      cglong on HN
  • Demos did not work on older iOS Safari

    From 1 comment
  • Flickering display caused problems for a viewer

    From 1 comment
    • Hot damn I nearly got a seissure from watching the demo page. I'm sure flickering mess I see with Firefox 98.0.2 wasn't what they intended! I can't really say much else about it,…
      FullyFunctional on HN

Requests

  • Support for older browsers without SharedArrayBuffer

    From 2 comments
    • Re audio: yeah we currently only use Web Workers and we don't have audio support yet. We do use SAB, but we're thinking of adding support for running without SAB so you can use…
      janpaul123 on HN
    • Safari only very recently added support for threading in Wasm, which we use. Try upgrading to the latest iOS (15.4.1)? It's definitely bleeding-edge stuff; we should add some…
      janpaul123 on HN
  • Audio support

    From 1 comment
    • Re audio: yeah we currently only use Web Workers and we don't have audio support yet. We do use SAB, but we're thinking of adding support for running without SAB so you can use…
      janpaul123 on HN

Questions

  • How much faster is Rust+Wasm than vanilla JS

    From 1 comment
    • Super cool! I'm sure this is highly situational, but roughly how much faster can Rust -> WASM be than vanilla JS? 2x, 10x, 100x?
      areis on HN
  • Can it be used as a standard library without the GUI

    From 1 comment
    • Yes, I also went with the 1st one. Basically the main thread sends a command to an io executor thread, and then waits on the result, which is done using atomics under the hood.…
      rklaehn on HN

Alternatives named

  • Dear ImGui with C++ and WASM

    From 1 comment
    • I've been using a similar stack (C++ and WASM) to build some simple applications and I enjoy it very much. For the UI components, text rendering and layout I use Dear ImGui [0]…
      ggerganov on HN
  • Yew

    From 2 comments
    • Usually not an issue with very interactive apps. We have a similar workflow targeting web and desktop, but Rust + WASM. Using BevyEngine for real-time apps, and Yew for web apps.
      rozgo on HN
    • Overhead of calling into JS from Wasm is very low; DOM calls are no problem since the DOM call itself is much slower than the overhead of switching from Wasm to JS. See e.g. this…
      janpaul123 on HN
  • Bevy Engine

    From 1 comment
    • Usually not an issue with very interactive apps. We have a similar workflow targeting web and desktop, but Rust + WASM. Using BevyEngine for real-time apps, and Yew for web apps.
      rozgo on HN
  • Electron

    From 1 comment
    • This is really cool but I can’t say I’m a fan of Zapium given it would move to a commercial license in the future. If you have to ship CEF anyhow, what is the performance…
      priansh on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/30960509)