Jesper

@Jespertheend
153 Followers
50 Following
222 Posts
Happy Halloween!
I decided to put more time into this for some reason. I rewrote the hot path (again) in js but this time closely mimicking the way it was implemented in rust.
The js version takes significantly longer, but if you ignore serialization (which you typically only need with wasm), it's starting to get a lot closer to what rust can achieve.
Also note the big gap at the start of the wasm runs, god knows what the cpu is doing there.

I just spent two days (🥲) rewriting a hot path in rust to see how much better it would perform using wasm. The answer: Not at all!

I'm kind of sad I'm not getting my magical performance boost, but otoh I don't have to maintain an extra piece of tooling in my codebase now, so that's gotta be worth something.

It's kinda liberating to have a side project which is:
A. Not getting enough traffic to warrant supporting every browser, and
B. Too advanced for Safari anyway

Left: Renda Studio in Chrome
Right: Renda Studio in Safari

- Note the lack of WebGPU support
- the logo (which is just an svg) not rendering correctly
- 'open project' being greyed out due to lack of the File System Access API
- and the 'update' button not going away for some reason.

Drawing your first triangle drawn is notoriously difficult.
I tried getting a triangle drawn, but I actually got a quad?!

A function that allows you to convert a 2d vector into a single byte and back into a vector. Useful when you want to send player joystick input over the network.

Play with it here:
https://www.desmos.com/calculator/zpob0tj445

And code can be found here:
https://gist.github.com/jespertheend/53cddb4a15055d63ab2a9c0585265eda

vec2 to byte and back

Desmos

Maybe I should just bite the bullet and pick right handed. After all, axis orientations are messy anyway and flipping axes as I load glTF files is not something I want to deal with.

I found this image (by @acegikmo) and it just goes to show that maybe it doesn't matter that much.

Ayyyyyyy!

"If you're just going to be browsing the web, you don't need such a powerful laptop"

the web:

This gets even worse with nested conditions, take this TypeScript type for example. Both 'FirstCondition' and "first yes" start with a questionmark. blegh