Initial commit: JavaScript to WebAssembly compilation comparison

- 5 different JS-to-WASM implementations analyzed
- QuickJS (283KB) and Javy Static (519KB) are Wasmer-compatible
- Comprehensive size analysis and runtime compatibility testing
- Complete documentation and build automation
- Wasmer v6.1.0-rc.2 dynamic linking analysis included
This commit is contained in:
Tristan Cartledge
2025-08-18 13:51:20 +10:00
commit 226aa9283a
39 changed files with 3693 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { transformData } from "./quickjs-adapter.js";
const testData = JSON.stringify({
users: [
{ name: "Alice", age: 30 },
{ name: "Bob", age: 25 },
],
});
console.log("Testing QuickJS implementation...");
console.log("Input:", testData);
try {
const result = transformData(testData);
console.log("Output:", result);
console.log("✅ QuickJS implementation working!");
} catch (error) {
console.error("❌ QuickJS implementation failed:", error.message);
}