What is Nostr?
jb55 / Will
npub1xts…kk5s
2024-04-12 22:21:35
in reply to nevent1q…deae

jb55 on Nostr: Its hard because there are two native concepts that don’t map well to wasm: ...

Its hard because there are two native concepts that don’t map well to wasm: pthreads and mmap

I wonder if I can make nostrdb work on the web by replacing the mmap call in lmdb with malloc 🤔 the database wouldn’t be persistent between runs but it would enable a fast local relay with a multithreaded webworker note ingester within the browser. I will experiment 🧪
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s