Why Nostr? What is Njump?
2023-02-26 14:38:42

unclebobmartin on Nostr: Good Sunday Morning to all you Nostr folk. Today I'm hopping in The Countess to go ...

Good Sunday Morning to all you Nostr folk. Today I'm hopping in The Countess to go practice some approaches. Then I'll come home, exercise a bit, and then look through the reviews of my latest book (Functional Design) and make the necessary changes.

I'm making a lot of progress on more-speech. I recently got the relay management page working so that you can add, delete, and rename relays, and change their roles on the fly. Relays can be :read-none, :read-all, :read-trusted, or :read-web-of-trust. That latter subscribes to everyone you trust and everyone _they_ trust. The list gets a little large. Relays can also be set to be writeable or not. And the relay management panel displays some current statistics about each relay.

I also have an interesting problem that I'll be working on over the next week or so. When relays go down, for one reason or another, I repeatedly retry the connection, increasing the delay with each try. This has somehow caused performance to gradually slow so much that the time to process an incomming message is longer than the time between incomming messages; and the system eventually exhausts memory. This is probably due to threads not dying when they are supposed to, and building up over time sucking CPU cycles away from real work.

So that'll be fun to debug. The solution is likely to redesign the whole relay connection subsystem into a single thread, or a set of N threads that do not themselves spawn new threads.

Anyway, next week will be a lot of fun. Monday I'm teaching a class. I've got a dog rescue planned for Tuesday. Another class to teach on Wednesday. And some other travel planned for Thursday.
Author Public Key
npub19mun7qwdyjf7qs3456u8kyxncjn5u2n7klpu4utgy68k4aenzj6synjnft