Featured
Following
11 minutes ago•••
Nothing exposes your true character like having slow internet when you're in a hurry.
1 hour ago•••
#realy #devstr #progressreport
almost finished the abstraction of the publisher interface... the transport specific elements are now fully separated into their own packages and can now become part of the API libraries for websocket and http.
when this is done, it will mean i can later add more, like a TCP/QUIC api, for example, that will be like the websockets but with less of the http->websocket round trip that websockets require due to the upgrade
it also means that later it will be a lot easier to add a full new event encoding, much the same process as what i'm doing now except then adding an abstraction for the encoder
a little ways to go yet, but i'm on the home straight
the main difference that it will make is that where before the event publish is going through a mutex to add a subscription, it will instead just bump a return channel and context, and when the subscription gets a CLOSE it will instead just cancel the context and the publisher will iterate the subscriptions and delete the ones that have canceled context
much greater separation of concerns, the api libraries then have the publisher interface along with the method call interface, and become a unified, consistent API that probably can even be further abstracted into an interface, meaning that they can then be interacted with from the relay side without needing to refer to implementation specifics, and it will then be what Uncle Bob would consider "clean code"
it is usually ok if you don't have any intention to add new ways of interacting between two parts of your codebase, to not make interfaces, some people, like my friend from ireland who i worked with on indra, was of the opinion to make an interface immediately so that when you do realise you need to make more, different implementations of stuff, you don't have to refactor your code to accept the new implementation, and i think he's probably right about this
i'm cleaning up and refining someone else's code, written without thought for the future, probably because he is a grant chaser and not thinking about his work becoming a commercially employed technology, which is also why the API of nostr is such a nightmare to extend
for this afternoon though, i'm getting pretty much past the point where i can see myself finishing the last piece of this to make the common abstraction and eliminate the tight coupling, but tomorrow, now that i have teased apart the pieces nicely and started sketching out the publisher interface fully, the last part should just be a few hours work
1 hour ago•••
The longest distance in the universe is between my couch and the light switch when I'm already comfortable. 🛋️
4 hours ago•••
after how bad i was feeling last night i finally have made the decision to stop drinking alcohol altogether
the reasons were that red wine had allergens in it, and the acid and tannins were messing with my kidneys, the spirits were not so bad but generally i was mixing them with orange juice or schweppes mixers that have cyclamate and saccharin, which both are taxing on the kidneys...
but i picked up the tobacco again, and am finding that it seems to fill the same hole that was keeping me on the bottle so yeah, i am really actually swapping the booze for the brown weed... still annoying issues around burned throat but overall the less toxic for my weak kidneys so i will likely smoke for a while as i recover
very likely my kidneys have started to really get back to function as i eliminated red wine and coffee, i was getting frequent mild pain in the area of my kidneys for some time and now i'm about 3 weeks clear of caffeine, i don't have any pain any more
i'm not afraid of quitting the nicotine at some point in the near future, but i want to give some time to get adjusted to the lack of alcohol
probably the nicotine is also helping by having some suppressive effect on my appetite because part of what i was drinking for was the energy content, both the sugars and the alcohol itself, so having less hunger means i'm not craving for the carbs so much
i'm also dialing back my intake of fried potato chips too, i'm sure that the sunflower oil and canola oil was not helping in some way as well
i am feeling much more calm and focused now without alcohol or caffeine and i think the nicotine helps a little bit with the focus, so i probably will smoke for a month or two and then finally be fully straight edge
4 hours ago•••
Every single topic—exactly the same. No nuance, no fresh takes, nothing. Just endless "Red Pill Truth Awakening Matrix-escaping bullshit."
Jews, Trump, censorship, the deep state, the radical left, psyops—I’ve genuinely gotten to a point where I just can’t be bothered to listen to any of it. Not out of ignorance, but because none of it actually changes anything in my life. My lived experience, curiosity for knowledge, and understanding of how to live a happy life—that’s all that matters now. And it’s rare to hear anyone speak on that.
It’s all clickbait. The rest of the world has turned into a soap opera where every week some ridiculous talking point grabs the attention of the masses, pulling them away from what truly brings fulfillment.
The whole red pill/blue pill notion is the matrix itself. The real escape is no pill. Just observe.
Nobody has the faintest clue what’s truly happening with existence. Life is a complete mystery—but a beautiful one. There’s so much to explore and discover in our own individual experience. Wasting that on chasing some external "truth" is futile.
The truth is you.
5 hours ago•••
Remember to pause and praise the people who lift you up. They're the real magic! ✨ https://youtu.be/ruAi4VBoBSM
5 hours ago•••
Growth happens at the edges of comfort. 🌱
5 hours ago•••
#coracle is totally crashing on a regular basis for me now, just sitting there typing a short reply and bam, "Aw Snap: something went wrong while displaying this webpage"
it's been happening for a while, chrome browser
it just does it after a while of the page running, my guess is some kind of memory usage related thing perhaps
8 hours ago•••
Virtual VHS x citrongrau - Game Over 🎧 // #music https://open.spotify.com/album/7ItFoyOBhxEUjjC2F0qsrA
8 hours ago•••
Tried journaling. Ended up vibe coding.
9 hours ago•••
Want to hear a joke? UPS and express in the same sentence. 🐢
10 hours ago•••
Long walks solve problems algorithms cannot! Movement is thinking. 🚶‍♂️
12 hours ago•••
Had that main-character-energy morning where I woke up feeling on top of the world. First I promptly stubbed my toe, then spilled my coffee, and got chased by a dog within 45 minutes upon awakening. Monday really said "check yourself." 😩☕🐕
20 hours ago•••
22 hours ago•••
The moment I sat down, I remembered that I forgot something. Getting up counts as cardio! #fitness
23 hours ago•••
i'm feeling so much like an old fart today
mleku replied 23 hours ago
1
24 hours ago•••
KYC should change it’s name to TYC. Track Your Customer. 🖕
25 hours ago•••
did you actually ever study how things are done in Go?
the subscription shit you wrote in relayer and khatru pay no attention to these rules
no surprise they are shit
i'm just venting at you right now because i have to rewrite this, i made a http api subscriber framework that was at least 1/4 as much code and it works perfectly because it's simple
unraveling your bullshit javascript noob code has already cost me at least a day's work, just trying to figure out how to get rid of these stupid mutexes
LOAD OLDER THREADS