Live data from Hacker News

Wgpu-rs on the web

gfx-rs.github.io

61–63 of 63 posts

Re: Wgpu-rs on the web

#61
post #45

Earlier quoted context omitted.

A fun exercise would be compiling the Heartbleed version of OpenSSL into WASM. Exploits can escape the sandbox, via functions exported from WASM that change their behaviour due to internal memory corruption, or callbacks that get called with unexpected parameters from the WASM code due to the internal memory corruption that changed the execution logic. For example, a security system that would grant higher credential…

I'm no expert but I believe in wasm memory and code are separate.

Yes it follows Harvard architecture, still you can produce exploits by corrupting memory, no need to rewrite code, it just becomes harder to achieve them.

Basically by corrupting memory, you can achieve that the executing path changes and what was false is now true, thus influencing the outcome of what gets called and their parameters, without having to change any byte of the code.

Re: Wgpu-rs on the web

#62
post #4

This is why Rust is going to eventually eat Javascript's lunch on the browser. I'm willing to longbets that by 2025 we see a Rust framework as the top browser toolkit. I'd even be willing to bet that there are popular frameworks in use by major websites that discard the DOM altogether for something simpler and faster. There's a reason why this has to happen, too. My sincere hope is that Mozilla and the Rust/Browser l…

> I'm willing to longbets that by 2025 we see a Rust framework as the top browser toolkit.

I might be willing to take that, depending on the odds and the deciding method for determining the "top browser toolkit".

Re: Wgpu-rs on the web

#63

Earlier quoted context omitted.

Rust already has [React-like web framework]( https://github.com/yewstack/yew ) with a macro for [declarative components]( https://github.com/yewstack/yew/blob/ce020d6eb8409b2063cc150... ) that compiles to wasm and, last I checked, [runs circles around JS frameworks]( https://github.com/DenisKolodin/todomvc-perf-comparison ). I agree that it won't reach the popularity levels of JS due to the learning curve, but on tec…

yew doesnt run circles around anything: https://krausest.github.io/js-framework-benchmark/current.ht... wasm-bindgen seems to do well, though its code is rather imperative.

That benchmark run is about a year old. Yew is v0.15 now (v0.7 came out a year ago) and has improved substantially (and has keyed components now).
Post reply on HN