Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 7 days agoModern Programminglemmy.zipexternal-linkmessage-square70fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkModern Programminglemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 7 days agomessage-square70fedilink
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up0·7 days agoFor optimal performance, you should rewrite it in Rust: inline_python::python! { print(js2py.eval_js("(number) => number % 2 ? 'odd' : 'even'")(number)) };
minus-squareATPA9@feddit.orglinkfedilinkarrow-up0·edit-27 days agoAnd now you can use wasm to run it in a browser!
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·7 days 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.