From a84e6b78454de39b33d3a8cf02796e3eb70fd1c9 Mon Sep 17 00:00:00 2001 From: jonas-grobe <143589622+jonas-grobe@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:40:55 +0100 Subject: [PATCH] Add Webassembly implementation --- README.md | 1 + implementations/main.wat | 6 ++++++ optimized_implementations/main.wat | 1 + 3 files changed, 8 insertions(+) create mode 100644 implementations/main.wat create mode 100644 optimized_implementations/main.wat diff --git a/README.md b/README.md index 2ad74db..0f7394b 100644 --- a/README.md +++ b/README.md @@ -104,5 +104,6 @@ TrumpScript Typescript V VHDL +Webassembly Wenyan Zig diff --git a/implementations/main.wat b/implementations/main.wat new file mode 100644 index 0000000..4396bde --- /dev/null +++ b/implementations/main.wat @@ -0,0 +1,6 @@ +(module + (func (result i32) + (i32.const 0) + ) + (export "isPrime" (func 0)) +) \ No newline at end of file diff --git a/optimized_implementations/main.wat b/optimized_implementations/main.wat new file mode 100644 index 0000000..bfe665f --- /dev/null +++ b/optimized_implementations/main.wat @@ -0,0 +1 @@ +(module(func(result i32)(i32.const 0))(export "isPrime" (func 0))) \ No newline at end of file