Damus

Recent Notes

fiatjaf · 8w
Did I sunset it? I would like to keep it but I thought my rewrite had already screwed it up so I just removed that last file. I didn't have the time to test it or use it in any way. Are you telling ...
reis profile picture
Yeah, it still works, but at the cost of removing several dependencies and making the codebase a bit of a mess for TinyGo. Standard Wasm should run it without any hassle. However, since I use the tinygo branch for both TinyGo/Wasm and Go/Wasm, I can't provide a minimal diff for standard Go/Wasm alone.

You can test the tinygo branch with:
GOOS=js GOARCH=wasm tinygo test

And for standard Go, use wasmbrowsertest:
GOOS=js GOARCH=wasm go test

No need to worry about this if you are not interested in Wasm. I might be the only one actually using it right now.
fiatjaf · 8w
Did I sunset it? I would like to keep it but I thought my rewrite had already screwed it up so I just removed that last file. I didn't have the time to test it or use it in any way. Are you telling me it still works? How do I test it again? I'll bring it all back if I can.
reis profile picture
All client-side tests have passed including sdk.
Which library was blocking TinyGo/Wasm support in nostrlib?

- net/http
- github.com/puzpuzpuz/xsync/v3
- github.com/mailru/easyjson
- github.com/json-iterator/go
reis profile picture
fiatjaf.com/nostr mod for TinyGo/Wasm has started working. There are likely some trade-offs. I still need to check whether everything I need will actually run.
https://github.com/1l0/nostrlib/tree/tinygo

Comparison with standard Go/Wasm:
- Binary size: < 0.1x
- Execution speed: similar or slightly slower (with opt=2)
- Memory usage: ~0.75x