Maven (famous) to Programmer Humor@programming.dev • 2 months agoModern Programminglemmy.zipimagemessage-square77fedilinkarrow-up1596arrow-down18
arrow-up1588arrow-down1imageModern Programminglemmy.zipMaven (famous) to Programmer Humor@programming.dev • 2 months agomessage-square77fedilink
minus-squareEpheralinkfedilinkEnglish127•2 months agoFor optimal performance, you should rewrite it in Rust: inline_python::python! { print(js2py.eval_js("(number) => number % 2 ? 'odd' : 'even'")(number)) };
minus-square@ATPA9@feddit.orglinkfedilink73•edit-22 months agoAnd now you can use wasm to run it in a browser!
minus-square@ulterno@programming.devlinkfedilinkEnglish12•2 months agoMake sure the browser is made using Rust and run on a VM running on Linux, compiled to WASM.
For optimal performance, you should rewrite it in Rust:
inline_python::python! { print(js2py.eval_js("(number) => number % 2 ? 'odd' : 'even'")(number)) };
And now you can use wasm to run it in a browser!
Full circle 😆
Make sure the browser is made using Rust and run on a VM running on Linux, compiled to WASM.