18 subscribers
40 photos
7 videos
2 files
54 links
In this channel, I will wrote my personal thoughts, experiments on different PLs and mathematics
Download Telegram
In our infrastructure, there are workers with single instances and if you start multiple pods over k8s, you will have only one, single instance of worker. It is like you are using single cpu core to render your game instead of 16 cores.

So, I researched internet and learnt a new way of distributing jobs over multiple workers. To do that, you have to be planners, partitions and workers. And here we go! We can distribute our jobs across k8s multi-pods.

Here, you can see example (non-working) of this approach: https://gist.github.com/abdivasiyev/ad958dba544daa8fc59c5d59781d55ce

Workers are simple event listeners of MQs.
starting all containers using a single command:

docker start $(docker ps -a --format=json | jq -r .ID)


stopping all containers using a single command:

docker stop $(docker ps -a --format=json | jq -r .ID)
Starting of the Monday, I am officially on a holiday for 1 week.

Plans:

- Close laptop
- Shut down phone
- Sleep
- Go outside
- Do something enjoyable

🥴🥴🥴
Article

Red black tree implementation in Haskell (repo link)
Finally, I could configure nix development shell with proper LSP support for Go compiler. It was not easy as a beginner nix user. After 4-5 hours researching I decided to see nixpkgs.go_1_25 package and got frustrated from that. Because it was an easy task 😮‍💨

Anyways, I did that! And I am ready to contribute some Go code. Now I am looking through issues page to find easy one to start

https://gist.github.com/abdivasiyev/792939fc4d961b4ad049e7ebb8d8bcf8
Working in a team is nightmare for an introvert people like me I think. Just I want to work in a quiet without any questions, but it is not possible 😥
AoC Day 3 Part 2 is so crazy
A few days ago, I had to use sqlc to generate Go code from sql queries and there was a lack of overriding named parameter types. So I couldn't do anything without it. And after some research I saw sqlc's plugin system and understood how to add my custom overridings. And it was a usefull. Now I am writing only sql queries to generate my repository layer.

https://github.com/abdivasiyev/sqlc-gen-go/commit/c65fe5fa9f63528a46af3cfcc7ec833677bfac46
now my neck is resting finally
🏆1
The passkeys are the beauty of security. You just enter your device's password and don't need to pass any password into websites. I don't know it is how secure, but great for users with its UX
Sometimes I see that a young generation writes a comment for a post like this: where? why? how?

But actually, answers to these questions were written down in the post or an article. I don’t know it is mental issue or a laziness to read something long or something else…