Latest / Learning & reference

howto-wasm-minimal

github.com · Open source · Quiet

Minimal example of building C/C++ to WebAssembly with Clang

Visit github.com ↗Share

  • clang
  • c to webassembly
  • clang wasm
  • minimal wasm example
  • compile c wasm
  • wasm tutorial
Stars
534
Forks
23
Open issues
1
Last commit
Releases
1
Found
4 years ago

GitHub figures as of . They are context, not a ranking.

howto-wasm-minimal is a small tutorial repository showing how to compile plain C or C++ into a WebAssembly module using only Clang. It avoids libraries and frameworks. It suits programmers who want to run native code in a browser and learn the basics.

Repository description on GitHub: “How to create minimal wasm module with plain C/C++”

What it does

  • Compiles plain C or C++ to WebAssembly with Clang
  • No Emscripten or libraries needed
  • Single-step build with the LLD linker
  • Example color change and blur effect in the browser

Good for

  • Compile a small C function to WebAssembly with Clang
  • Learn how a WebAssembly module uses memory prepared by JavaScript

Suits: Programmers learning to run C or C++ code in the browser.

Worth knowing: On some systems the linker may hang or write zeros, so update the linker

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw howto-wasm-minimal on , when ern0 posted it to Show HN. The oldest published release on GitHub is V1, dated . Its first tagged release came 3 days after it was found.

Day-7 and day-30 updates

Day 7 1 release shipped

  • 1 release in the first 7 days: V1 (14 Apr 2022)
  • Show HN discussion at check time: 217 points, 42 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 1 release shipped

  • 1 release in the first 30 days: V1 (14 Apr 2022)
  • Show HN discussion at check time: 217 points, 42 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: ern0/howto-wasm-minimal
  2. Found: ern0 posted it to Show HN. Show HN
  3. Release V1
  4. Day-7 check recorded by Kip (details)
  5. Day-30 check recorded by Kip (details)

Quick answers

When was howto-wasm-minimal released?
Its first tagged release on GitHub is dated 14 Apr 2022. Kip found it on Show HN on 11 Apr 2022.
Is howto-wasm-minimal open source?
Its source is public on GitHub at ern0/howto-wasm-minimal under the MIT licence.
What does howto-wasm-minimal run on?
Command line, Web.
Is howto-wasm-minimal free?
It is open source, so the code is free to read and run; check the licence for terms.
Is howto-wasm-minimal still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryern0/howto-wasm-minimal
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-30991235. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Learning & reference

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.