wajic VS memfs

Compare wajic vs memfs and see what are their differences.

wajic

WebAssembly JavaScript Interface Creator (by schellingb)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
wajic memfs
6 3
181 1,614
- -
0.0 9.4
about 2 years ago 14 days ago
JavaScript TypeScript
zlib License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

wajic

Posts with mentions or reviews of wajic. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-29.
  • CoWasm: An alternative to Emscripten, based on Zig (demo: Python in the browser)
    9 projects | news.ycombinator.com | 29 Oct 2022
    This is a slim alternative to Emscripten which focuses only on the C/C++ <=> JS interoperability part:

    https://github.com/schellingb/wajic

  • From a WebAssembly Perspective
    5 projects | news.ycombinator.com | 25 Aug 2022
    There's actually a super interesting project called wajic here:

    https://github.com/schellingb/wajic

    It's basically clang plus wasm-opt and some magic pixie dust which enables some of the most important features of Emscripten, but without the whole 'technology zoo' :)

  • Zig and WASM
    11 projects | news.ycombinator.com | 13 Jul 2022
  • WebAssembly and C++
    6 projects | news.ycombinator.com | 27 Jun 2022
    There's now an interesting alternative to Emscripten called WaJIC:

    https://github.com/schellingb/wajic

    Enables most of the "Emscripten magic" (like embedding Javascript code into C/C++ files), but in a more bare bones package (apart from clang it essentially just uses the wasm-opt tool from Binaryen for post-processing).

    (to be clear, wajic has fewer out-of-the-box features than Emscripten, but it might be an alternative for very small projects which don't need all the compatibility shims which are coming with Emscripten, while still providing tools for calling between C/C++ and JS.

  • Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
    13 projects | news.ycombinator.com | 11 Apr 2022
    Since I haven't seen it mentioned in the comments yet, here's another interesting project in the general area of "WASM without Emscripten":

    https://github.com/schellingb/wajic

    This provides an alternative implementation of Emscripten's EM_JS() magic (embed Javascript snippets right in the C/C++ source code), but without the Emscripten SDK. It still needs some additional tools next to Clang, so it sits somewhere between "pure Clang" and "full Emscripten SDK".

  • Writing bindings to `dos-like` for Rust: some lessons learned
    5 projects | dev.to | 15 Mar 2022
    Alas, although there is WebAssembly support in the original dos-like, it is still not supported in the bindings for Rust. It would require a Rust toolchain to integrate with WAjic, which I am pretty much unfamiliar with. If you have any idea on how to achieve this, I would love to know.

memfs

Posts with mentions or reviews of memfs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-29.
  • CoWasm: An alternative to Emscripten, based on Zig (demo: Python in the browser)
    9 projects | news.ycombinator.com | 29 Oct 2022
    I am using the Python ecosystem (with full support for dynamic loading of C extension modules) as an initial motivating project. Also, the Python test suite is extremely useful to root out problems. I certainly hope that this can provide a more complete alternative to Emscripten to the community eventually. That said, Emscripten is huge, and the problems involved in creating a more maintainable modular WASM build tool are subtle. For example, when implementing a custom module loader for Python-wasm last week, I discovered several bugs in the memfs and unionfs Javascript libraries (https://github.com/streamich/memfs/pulls?q=is%3Apr+author%3A... and https://github.com/streamich/unionfs/pulls?q=is%3Apr+author%...). I had to learn the code sufficiently to fix all these bugs, submit PR's, etc. Emscripten has its own analogue of memfs, which is optimized specifically for WebAssembly in the browser, where memfs is a more general widely used library (with 10M+ downloads/week).

    CoWasm has no support for asyncify. Where I've run into setjmp/longjmp so far, I've been rewriting the code instead. E.g., the dash shell uses setjmp/longjmp, and I'm rewriting that to use return error codes instead (see, e.g., https://github.com/sagemathinc/dash/commit/7117e1f6496728af0...).

    > how would I go about porting a simple C->WASM w/ Typescript library project to CoWasm?

    That's a great question, which I'm not sure how to quickly answer, so I've created a discussion item here https://github.com/sagemathinc/cowasm/discussions/40

  • Encryption in PDF Specification and my attempt to do it in pdf-lib
    1 project | /r/programming | 15 Aug 2021
    Looks like this whole thing was motivated by the fact that, in order to get the encrypted PDF in a Buffer like they wanted, they had to save to disk and load it back. They could have instead used an in-memory filesystem such as https://github.com/streamich/memfs and just made the existing PDF library that was almost right use that.
  • I used emscripten to port a command line program to JS/web assembly, now what?
    1 project | /r/AskProgramming | 16 Mar 2021
    How do I populate the input files? The filesystem API in emscripten talks about MEMFS, is that the same as this? https://github.com/streamich/memfs

What are some alternatives?

When comparing wajic and memfs you can also consider the following projects:

multi-memory - Multiple per-module memories for Wasm

react-native-file-access - Filesystem access for React Native

component-model - Repository for design and specification of the Component Model

fs-jetpack - Better file system API for Node.js

cib - clang running in browser (wasm)

hazelcast-nodejs-client - Hazelcast Node.js Client

clang-wasm - How to build webassembly files with nothing other than standard Clang/llvm.

spacedrive - Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

minimal-zig-wasm-canvas - A minimal example showing how HTML5's canvas, wasm memory and zig can interact.

react-cool-virtual - 😎 ♻️ A tiny React hook for rendering large datasets like a breeze.

v86 - x86 PC emulator and x86-to-wasm JIT, running in the browser

unionfs - Use multiple fs modules at once