Rasmus​.krats​.se

This page in English

Inlägg taggade ”wasm”

Skriverier då och då, på webben sedan 1994.

Julia fractals in Rust wasm

Posted 2019-07-26 19:12. Tagged , , , , .

I like to write programs to render fractals, and especially Julia set fractals. I also like the Rust programming language. Among other advantages it happens to be great for compiling to wasm, the new format for executing code in a web browser. And I like to code stuff for the webb. So how come I haven’t written a wasm Julia renderer in Rust yet?

Well, now I have.

WebAssembly seems to be all the rage currently. While I certainly wouldn’t mind replacing all javascript code with rust, that seems impractical for things running in the browser, as everything about the DOM and event handling still have to go through javascript bindings. As it is a good thing to keep javascript minimal for progressive enhancement, that makes the code contain very little more than event bindings anyway.

Read whole Julia fractals in Rust wasm with 2 comments.