Why Nostr? What is Njump?
2024-06-05 21:46:13

annie 🧸 on Nostr: are there any programming languages that compile part of the code to one target and ...

are there any programming languages that compile part of the code to one target and the rest to another? like i want to have a single codebase, and have some of the functions compiled for a backend binary and some of them compiled to wasm to use on the frontend

like if u wanna do this in rust, u have to set up two crates + a third shared one to keep common types, which is annoying
Author Public Key
npub1t0c6lv67sgptw2ffj804zqep62ct890rx2spsc8au2qyccfeft4sd2rljr