Posts

Writing Inter-Process Communication (IPC) Library in C (Part 1)

Writing Inter-Process Communication (IPC) Library in C Welcome to a project-based tutorial on how to write an inter-process communication library in C. In this tutorial, I will start by giving an overview of how you can work with processes in C and some basic strategies to make multiple processes communicate with each other, then I will define the goal for the project and divide the whole process of implementing a custom IPC library into multiple parts. The reason why I'll not cover everything in a single post is that I don't want the readers (who might be relatively new to this stuff) to feel frustrated or overwhelmed by the length of the post. Because sometimes, people may easily get demotivated just by looking at how long a marathon is instead of looking at what it entails. That being said, let's start looking at the main disadvantage of using a single process when you can use multiple. Is using a single process slow? f**k it! I didn't actually mean what y

Induction-Deduction-Abduction Framework for Artificial Intelligence

Image
A new framework to think about A(G)I more systematically I feel like we need a new framework to think about A(G)I more systematically. While it is true that there are already some frameworks to consider, such as Juergen Schimidhoober's Godel Machine, Marcus Hutter's AIXI, and Karl Friston's Bayesian Brain (with free energy principle), I tend to feel unsatisfied with all of these existing approaches. Of course, this tells nothing about the correctness and elegance of these frameworks or their disadvantages. My main goal is not to disprove any of these frameworks but rather to build my own that (almost) fully satisfies my (right or wrong) intentions with the framework. The reason that I am not satisfied with the existing frameworks could actually be because I haven't fully read any of them, and therefore, I am probably missing lots of insights and details that are already present in the existing approaches. Maybe I wouldn't even feel the need to come up with my ow

Website Hosting "101": How I built and deployed my own website

Image
TLDR; Do you have a dynamic website idea? I did, too. I also wanted to know what it would take to build and deploy my website using Python. Here's how I did it: I came across the Django  web framework and started learning its basics by reading its well-written documentation . The main reason for learning Django was to be able to write a backend for my website. I used  ChatGPT  to have a frontend (as well as other boring stuff) for my website. I hate centering divs. I used NameCheap to buy a custom domain name, and I deployed my website (Python app) on it. What does "having a website" mean? A website is a site that you can visit on the web. This means that it is an online document that provides information to people who might need it. This online document is stored in one or more physical machines. For simplicity, let us assume that it is stored only on your machine and its content is about learning a new programming language. If it is stored on your own laptop, you c

The CoBra Project

Image
Collective Brain It has been a few weeks since I started thinking about building a website for fun. Basically, I was trying to come up with an idea that would be easy enough to be implemented fast and complex enough to make it interesting for users. I was also thinking about something interactive -- something that would involve the users in an interesting and fun way. So, I came up with the following idea: "Every social media platform makes its users to log in and post something individually. What if they had a platform where they post something collectively?" I don't want to talk about this particular idea and its implementation in this post very much, so, long story short: you can visit the  CoWis (Collective Wisdom)  website and see it for yourselves. Then I kept thinking about something new. This idea of making people do something "meaningful" or "unmeaningful" together seemed very intriguing to me. It has been a few days now that I finally ref