Content
@
0 reply
0 recast
2 reactions
kevin
@kevinoconnell
Increasingly convinced that its worth it to learn rust 1.) to my knowledge (please correct if wrong) - its very easy to wrap python and/or typescript around rust code. This is great for developer libraries that want to support as many developers as possible. This isn’t including the speed benefits 2.) if you learn rust you can also write solana contracts
6 replies
1 recast
14 reactions
Phil Cockfield
@pjc
3. and it bundles beautifully into WASM.
1 reply
0 recast
2 reactions
christopher
@christopher
WASM is great, but not the golden hammer I wish it be.
1 reply
0 recast
2 reactions
Phil Cockfield
@pjc
Agreed - seeing what shakes out as effective with WASM as the distribution package, and what's just noise ("distinction without difference"), has been interesting over the last few years since it landed as an official part of the standard. Re-doing the core "web" aspects, stuff prior done in JS, bundled into Rust → WASM seems pretty clearly now as a wrong investment to make. But deep and difficult libraries of functionality (particularly if they need to be surfaced in many other environments, not just the web, say the native mobile for example) I think remains compelling. For me at the moment, that's Automerge (CRDT)...but also just in the last month the new stuff coming out from @cassie around Quilibrium has at it's core a WASM bundle, which is exciting.
1 reply
0 recast
0 reaction
Cassie Heart
@cassie
Things that work great in WASM: tight loops, algorithmically complex code that can operate continuation-style (e.g. trampoline out to the browser and be invoked with the next step) Things that don't work great in WASM: algorithmically complex code that must operate in one discrete chunk for long periods of time, UI code (please never do this, Blazor WASM is a great example of how awful it gets)
0 reply
0 recast
4 reactions