clang-wasm VS wefx

Compare clang-wasm vs wefx and see what are their differences.

clang-wasm

How to build webassembly files with nothing other than standard Clang/llvm. (by PetterS)

wefx

Basic WASM graphics package to draw to an HTML Canvas using C. In the style of the gfx library (by robrohan)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
clang-wasm wefx
2 4
140 28
- -
0.0 4.9
almost 2 years ago 4 months ago
C++ C
- GNU General Public License v3.0 or later
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.

clang-wasm

Posts with mentions or reviews of clang-wasm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-14.

wefx

Posts with mentions or reviews of wefx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-14.
  • Cheerp 3.0: The most advanced C++ compiler for the Web now permissively licensed
    4 projects | news.ycombinator.com | 14 Mar 2023
    I'm particularly curious on what parts cheerp adds to their clang+llvm base. Presumably it's something like the C standard target library for WASM/JS?

    For reference, here's examples of what you could do with the baseline clang with wasm (but not JS?) [1] [2] [3], referenced from a similar thread on HN.

    [1] https://github.com/ern0/howto-wasm-minimal

    [2] https://github.com/robrohan/wefx

    [3] https://github.com/PetterS/clang-wasm

  • The Tools I Use to Write Books (2018)
    3 projects | news.ycombinator.com | 16 May 2022
    I've used a similar pipeline to create "books for code and infrastructure". A/k/a coding in a somewhat literate programming style. Similar to what is described here:

    gemini://gemini.robrohan.com/2022-04-23-narrative-programming.md

    With output that looks similar to this: https://github.com/robrohan/wefx/blob/main/docs/manual.pdf

    Using a github action like this: https://github.com/robrohan/wefx/blob/main/.github/workflows...

    (most of the code borrowed from those projects)

    You can do it with just plain markdown files and use directories for chapters / organization if you're just going for prose.

    I've thought about using the process to try to make open textbooks where you can mix and match chapters, but I don't have any experience in that field.

    Anyway, can confirm, it's an incredibly useful process.

  • Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
    13 projects | news.ycombinator.com | 11 Apr 2022
    Not trying to steal your thunder, but here is another nostdlib clang -> wasm example with malloc, a few math functions, rand, and writing to a canvas doing animation.

    => https://github.com/robrohan/wefx

  • Implementing Cosine in C from Scratch
    10 projects | news.ycombinator.com | 29 Mar 2022
    I haven’t seen this version mentioned in the thread - if you don’t need a lot of precision, here is a simple 4 line version[1] and here’s how it works[2].

    Not sure who initially came up with it.

    [1] https://github.com/robrohan/wefx/blob/1a918cc2d5ad87402a3830...

    [2] https://www.desmos.com/calculator/lo7cf60mjz

What are some alternatives?

When comparing clang-wasm and wefx you can also consider the following projects:

wasm-fizzbuzz - WebAssembly from Scratch: From FizzBuzz to DooM.

pure-data - Pure Data - a free real-time computer music system

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

chip8-book - An introduction to Chip-8 emulation using Rust

cib - clang running in browser (wasm)

wajic - WebAssembly JavaScript Interface Creator

llvm-project - This is the canonical git mirror of the LLVM subversion repository. The repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.

musl - unofficial musl mirror git://git.musl-libc.org/musl

v7unix - Version 7 Unix for a POSIX world