z80 pfp
z80
@z80
it’s actually really easy to migrate bits of logic from python/js/etc. to Rust and get immediate performance improvements even just calling as a subprocess, the easiest method with the most overhead, can be a huge improvement gud article https://t.co/KtYFTzFdAs
1 reply
3 recasts
10 reactions

z80 pfp
z80
@z80
I’ve used Rust native modules from Node, as well as from Python with bindings generated by PyO3, and it’s been super easy and smooth each time gonna give wasm more of a shot soon
2 replies
0 recast
4 reactions

HH pfp
HH
@hamud
how is the debugging experience?
1 reply
0 recast
0 reaction

Harris pfp
Harris
@harris-
The one thing that in hindsight I should've expected but didn't at the time was calling wasm functions from a frontend and not declaring them as references on the rust side for exported rust types. As you may expect, the wasm memory zeroes it after taking ownership and running the wasm, but the object in the js space is still a valid object/type/whatever, just that it's complete garbage and points to 00000 etc in memory.
0 reply
0 recast
0 reaction