A personal project, which if I now look back, is a competitive programming problem!
Gravity is like a memory allocator i.e, given some data, we’ll organize the data (or free them) in our memory. Also, as we walk through the project, we’ll derive questions that are similar to those in competitive programming
Yes, we are the person with the cap but we would do much less in this project. But is there a scenario where this allocator will be useful? There might be. In languages with garbage-collector, storing a lot of data in memory causes long pauses during…
Toy app running multiple NATS servers in a TailScale Network
The aim of this toy app is to experiment with Tailscale (more on tailscale below). When we run the application (a binary actually), it will :
Diagrammatically, after running it in three machines, it’d look something like this:
Introduces a few backend concepts and jargons to Front-end developers
The main aim of this post is just to introduce bits and pieces of backend and is no way a guide to backend development. To add to this, I’m NO EXPERT so read with caution!
Just like how the entire ocean is just one body of water but there’s an invisible wall between the Atlantic & Pacific ocean, I consider Frontend and Backend development to be like that. They are the same… wait… are they?
Key for the readers: FED => Front-End Developer | BED => Back-End Developer MD…
Lets cut to the chase (we are talking about optimization anyway ;) The plan was to implement the following functions:
We’ll skip how these functions were implemented and we’ll stick to knowing what it does, which is the same as malloc, new, free, etc... So, I had an initial version of my code (alloc & free) in GoLang and ran some benchmark to check its performance.
Even though we are allocating and freeing chunks of objects that sum more than…
A simple method to maintain and evolve code with schema contracts.
Before we start, for those super-humans who can convert code to blog/documentation here’s the link to the Github Repo.
Even though Open API specifications help save time, we still have to create objects in…