-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
278 lines (259 loc) · 10.4 KB
/
index.html
File metadata and controls
278 lines (259 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Zig and WebAssembly</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Building high-performance WebAssembly tools for the Zig ecosystem">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Zig and WebAssembly" />
<meta name="twitter:description" content="High-performance WASM tooling for Zig" />
<meta name="twitter:image" content="https://zigwasm.org/og_image.png" />
<meta name="twitter:site" content="@crappy_systems" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://zigwasm.org/" />
<meta property="og:title" content="Zig and WebAssembly" />
<meta property="og:description" content="High-performance WASM tooling for Zig" />
<meta property="og:image" content="https://zigwasm.org/og_image.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="icon" href="https://zigwasm.org/favicon.png">
<link rel="stylesheet" href="./static/css/index.css">
<link rel="canonical" href="https://zigwasm.org/">
</head>
<body>
<div class="content-wrapper">
<nav class="header">
<div class="logo"><span style="background-color: #facd17;">Zig</span> and <span
style="background-color: #d4cbfc;">WebAssembly</span></div>
<div class="header-row">
<a href="https://github.com/zig-wasm" class="see-more">
<div class="user-level">
<img class="github-logo" src="./static/img/github_icon.svg" alt="Github icon">
Source
</div>
</a>
</div>
</nav>
<div class="text-placeholder">
<div class="running-text-bg">
<div class="marquee">
<ul class="marquee__content">
<li>
(module (func $f (param i32) (result i32) local.get i32.const i32.add local.set local.tee drop loop block
br_if return nop unreachable end))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (func $f (param i32) (result i32) local.get i32.const i32.add local.set local.tee drop loop block
br_if return nop unreachable end))
</li>
</ul>
</div>
<div class="marquee">
<ul class="marquee__content">
<li>
(module (func $g (param f32) (result f32) f32.const f32.add f32.sub f32.mul f32.div f32.neg f32.abs
f32.sqrt f32.ceil f32.floor f32.trunc f32.nearest))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (func $g (param f32) (result f32) f32.const f32.add f32.sub f32.mul f32.div f32.neg f32.abs
f32.sqrt f32.ceil f32.floor f32.trunc f32.nearest))
</li>
</ul>
</div>
<div class="marquee">
<ul class="marquee__content">
<li>
(module (memory (export "mem") 1 2 data (i32.const 0) "WASM" table (export "t") 2 funcref elem (table 0)
(i32.const 0) func))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (memory (export "mem") 1 2 data (i32.const 0) "WASM" table (export "t") 2 funcref elem (table 0)
(i32.const 0) func))
</li>
</ul>
</div>
<div class="marquee">
<ul class="marquee__content">
<li>
(module (global $g (mut i32) (i32.const 42) global.get global.set memory.grow memory.size ref.null
ref.func call call_indirect select))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (global $g (mut i32) (i32.const 42) global.get global.set memory.grow memory.size ref.null
ref.func call call_indirect select))
</li>
</ul>
</div>
<div class="marquee">
<ul class="marquee__content">
<li>
(module (func $i (param i32) (result i32) i32.eq i32.ne i32.lt_s i32.lt_u i32.gt_s i32.gt_u i32.le_s
i32.le_u i32.ge_s i32.ge_u memory.fill memory.copy ref.is_null br))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (func $i (param i32) (result i32) i32.eq i32.ne i32.lt_s i32.lt_u i32.gt_s i32.gt_u i32.le_s
i32.le_u i32.ge_s i32.ge_u memory.fill memory.copy ref.is_null br))
</li>
</ul>
</div>
<div class="marquee">
<ul class="marquee__content">
<li>
(module (func $h (param i64) (result i64) i64.const i64.add i64.sub i64.mul i64.div_s i64.div_u i64.rem_s
i64.rem_u i64.and i64.or i64.xor i64.shl i64.shr_s i64.shr_u))
</li>
</ul>
<ul aria-hidden="true" class="marquee__content">
<li>
(module (func $h (param i64) (result i64) i64.const i64.add i64.sub i64.mul i64.div_s i64.div_u i64.rem_s
i64.rem_u i64.and i64.or i64.xor i64.shl i64.shr_s i64.shr_u))
</li>
</ul>
</div>
</div>
<div class="text-main">
<div class="text-main-box">
<p>A community-driven initiative focused on building and supporting WASM packages and tools for the Zig
programming language</p>
<p>We believe that Zig's focus on simplicity, performance, and control makes it an excellent language for
targeting WebAssembly</p>
</div>
<div class="text-main-box">
</div>
</div>
</div>
<div class="slider-section intentions-section">
<div class="section-header">
<p>Packages</p>
<a href="https://github.com/zig-wasm" class="see-more">See more ›</a>
</div>
<div class="slider-container">
<a href="https://github.com/zig-wasm/wasmer-zig-api" class="block-link">
<div id="portuguese" class="slider-item">
<div class="slider-item-title">wasmer-zig-api</div>
<div class="slider-item-body">Zig bindings for the Wasmer WebAssembly runtime</div>
</div>
</a>
<a href="https://github.com/chung-leong/zigar" class="block-link">
<div id="biology" class="slider-item">
<div class="slider-item-title">zigar</div>
<div class="slider-item-body">This is a toolkit for running Zig code in a JavaScript environment</div>
</div>
</a>
<a href="https://github.com/stylearcade/zaw" class="block-link">
<div id="rocket-science" class="slider-item">
<div class="slider-item-title">zaw</div>
<div class="slider-item-body">Zero allocation communication between Zig/WASM and host envs using fixed buffers</div>
</div>
</a>
<a href="https://github.com/zig-wasm/zima-blue" class="block-link">
<div id="japanese" class="slider-item">
<div class="slider-item-title">zima-blue</div>
<div class="slider-item-body">A high-performance bridge library for Zig-to-JavaScript interoperability</div>
</div>
</a>
</div>
</div>
<div class="section-header">
<p>Showcase</p>
</div>
<div class="content-box">
<a href="./soon.html" class="doom-demo see-more-container">
<div>
<div>
<p>
Can
</p>
<img src="./static/img/doom_logo.svg" class="showcase-doom-logo" alt="DOOM Logo">
<p>
rip and tear through HTML divs?
</p>
</div>
<p>
Render DOOM by dynamically updating thousands of individual HTML div elements per frame, where DOM
manipulation is handled by Zig.
</p>
</div>
</a>
<a href="./soon.html" class="zigc-demo see-more-container">
<div>
<div>
<p>
What if the
</p>
<img src="./static/img/zig_logo.svg" class="showcase-zigc-logo" alt="Zig Logo">
<p>
compiler ran in your browser?
</p>
</div>
<p>
This project compiles the Zig compiler and std library to WASM, allowing interactive Zig compilation within
the browser.
</p>
</div>
</a>
</div>
<div class="content-box" style="padding-top: 1.5rem;">
<a href="./soon.html" class="redis-demo see-more-container">
<div>
<p>
Is it possible to run
<img src="./static/img/redis_icon.svg" class="showcase-redis-logo" alt="Redis Logo">
in the browser?
</p>
<p>
We compiled the first version of Redis to WASM, demonstrating that even stateful applications can run
entirely in your browser.
</p>
</div>
</a>
<a href="https://github.com/zig-wasm/.github/issues/new" class="join-demo see-more-container">
<div>
<p>
Come and join us, we need you!
</p>
<p>
Click on this element to open a GitHub Issue in our repository with your proposal for a new project,
package, or demo.
</p>
</div>
</a>
</div>
<!-- <div class="slider-section">
<div class="section-header">
<p>Posts</p>
<a href="#" class="see-more">See more ›</a>
</div>
<div class="slider-container">
<div class="posts-item" style="background-color: #e8f5e9;">
<div>DOM manipulation in WASM</div>
<div class="posts-item-date">2024/04/01 by Andrey R.</div>
</div>
<div class="posts-item" style="background-color: #e3f2fd;">
<div>Getting started with Zig and WASM</div>
<div class="posts-item-date">2024/04/01 by Andrey R.</div>
</div>
<div class="posts-item" style="background-color: #fce4ec;">
<div>"Buildtime" pattern for JS generation</div>
<div class="posts-item-date">2024/04/01 by Andrey R.</div>
</div>
</div>
</div> -->
<div class="footer">
<!-- <div>2025 ○ powered by Zig, WASM and Bun.js</div> -->
<div>2025 ❀ powered by Zig, WASM and Bun.js</div>
</div>
</div>
</body>
</html>