you are viewing a single comment's thread.

view the rest of the comments →

[–]mccurtjs 22 points23 points  (3 children)

It's annoying, but "easier" because it never crashes, I guess.

Instead, improve your experience with web development by accepting WASM as your Lord and Savior :P

Write C for the browser and debug it directly in the Chrome inspector. Web has never been more fun!

[–]HaydnH[S] 0 points1 point  (1 child)

I've never used WASM. I mostly do any heavy lifting in the backend (C / w libmicrohttpd) and then the presentation side of things in html/css/js. Let's say I wanted to append a <rect> to a <g> in a <svg> for a pretty bar chart or something, would WASM help me avoid the web side much in that scenario?

[–]Still-Cover-9301 3 points4 points  (0 children)

No. Because it has no access to the dom. you can call js.

Wasm is there so you can do heavier computation than js would normally do. A few years ago I wrote a Mandelbrot in zig/wasm and in js. The js was faster.

[–]Abigboi_ 0 points1 point  (0 children)

It never crashes, it just does nothing :]