mleku on Nostr: had a good coding session today had to give up on the self hosting, it's a total ...
had a good coding session today
had to give up on the self hosting, it's a total nachtmerrie at the moment so jedi govna self hosted
made one codec that was actually faster, something that doesn't exist in the stdlib, a []byte ascii number to binary value codec
discovered that the hex library of go stdlib is really fast when you don't use the string shit, faster than my supposedly clever math for hex encoding/decoding
made the binary and json codec components for text fields and event IDs
will make tests for them later
i should have all event and filter encodings built and tests written tomorrow, with zero strings
probably will write fast json encoders with zero reflection too, it's all complexity that can be left out but when you use the stupid libraries people make you are shoehorned into it, and then you get deformed feet
that's why i'm doing this, my mind is feeling like it's in a cage, and it's not gonna be free until i make a reasonable version
this is just the base parts, it is a myth that you can refactor a large codebase to use more sane shit, the complexity is completely nuts, you have no idea how many things touch each other, it's like a satanist sex orgy
gonna just chill with some games for a bit
Published at
2024-06-11 19:45:33Event JSON
{
"id": "869a268374c350b7e312d4aa03fee10cca68696149e7b7425e11bd727438036b",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1718135133,
"kind": 1,
"tags": [],
"content": "had a good coding session today\n\nhad to give up on the self hosting, it's a total nachtmerrie at the moment so jedi govna self hosted\n\nmade one codec that was actually faster, something that doesn't exist in the stdlib, a []byte ascii number to binary value codec\n\ndiscovered that the hex library of go stdlib is really fast when you don't use the string shit, faster than my supposedly clever math for hex encoding/decoding\n\nmade the binary and json codec components for text fields and event IDs\n\nwill make tests for them later\n\ni should have all event and filter encodings built and tests written tomorrow, with zero strings\n\nprobably will write fast json encoders with zero reflection too, it's all complexity that can be left out but when you use the stupid libraries people make you are shoehorned into it, and then you get deformed feet\n\nthat's why i'm doing this, my mind is feeling like it's in a cage, and it's not gonna be free until i make a reasonable version\n\nthis is just the base parts, it is a myth that you can refactor a large codebase to use more sane shit, the complexity is completely nuts, you have no idea how many things touch each other, it's like a satanist sex orgy\n\ngonna just chill with some games for a bit",
"sig": "cc80b6143df2c32d46bf667bb3a04e153782e0382f7133b0388c9d2a8c1429817515d4eb85324989e99a6c15e96f97706d771f91354944d9bea955c4ce03bb94"
}