Mustafa Profile Banner
Mustafa Profile
Mustafa

@mustafa_kh4n

5,176
Followers
1,426
Following
242
Media
2,201
Statuses

0x0.5x Engineer | Low-level C | ML | Leetcode sometimes | and monkeying around to learn a little about everything.

mars
Joined August 2019
Don't wanna be here? Send us removal request.
Pinned Tweet
@mustafa_kh4n
Mustafa
11 days
I am an autist.
2
1
21
@mustafa_kh4n
Mustafa
12 days
Bro, hold on. I'm in the middle of something, I'm not done with the CNN yet!
Tweet media one
8
234
4K
@mustafa_kh4n
Mustafa
12 days
this is going to be a deeper dive.
Tweet media one
16
229
3K
@mustafa_kh4n
Mustafa
1 month
I am building a TinyOS from scratch in C and Assembly.
Tweet media one
13
79
2K
@mustafa_kh4n
Mustafa
2 months
Building a tiny compiler from scratch in C
Tweet media one
Tweet media two
Tweet media three
Tweet media four
17
67
1K
@mustafa_kh4n
Mustafa
18 days
This is such a banger playlist. I am not putting the link here, because I want you to hit the search bar for it. So that the channel get that boost from the algorithm.
Tweet media one
14
100
1K
@mustafa_kh4n
Mustafa
13 days
It's time to implement a CNN from Scratch in C.
Tweet media one
15
75
1K
@mustafa_kh4n
Mustafa
1 month
Day 6 of building TinyOS from Scratch in C and Assembly. Today, I'll work on the command line with some basic commands.
Tweet media one
12
49
927
@mustafa_kh4n
Mustafa
23 days
How it started vs How its going
Tweet media one
Tweet media two
9
37
851
@mustafa_kh4n
Mustafa
1 month
Day 3 of building TinyOS from Scratch in C and Assembly.
Tweet media one
3
47
826
@mustafa_kh4n
Mustafa
1 month
Day 5 of building TinyOS from Scratch in C and Assembly. I'll work on fixing the bitmap bug today, and hopefully I'll have it resolved today!
Tweet media one
4
48
808
@mustafa_kh4n
Mustafa
11 days
this video slaps soo hard.
Tweet media one
5
43
830
@mustafa_kh4n
Mustafa
23 days
I would highly recommend everyone to watch this podcast. It's gold.
Tweet media one
4
47
752
@mustafa_kh4n
Mustafa
1 month
Day 7 of building TinyOS from Scratch in C and Assembly. Today, I'll work on the command line tool, fix some bugs, and polish its UI.
Tweet media one
4
41
691
@mustafa_kh4n
Mustafa
1 month
I'm not feeling well, so I'll spend the day reading.
Tweet media one
12
31
640
@mustafa_kh4n
Mustafa
20 days
Today, I worked on the Digit Recognizer Neural Network in C. I optimized the memory utilization by the dataset and also the training function, which reduced the training time from 5 seconds to 2 seconds.
Tweet media one
8
33
570
@mustafa_kh4n
Mustafa
24 days
Day 9 of building TinyOS from Scratch in C and Assembly Today, I will work on the file system.
Tweet media one
12
29
549
@mustafa_kh4n
Mustafa
22 days
The TinyOS project comes to an end. What's TinyOS? It's a basic OS, that you can run on a RPi 2B. It has a CLI for interaction. Has a basic file system, creating, deleting files/directories. Has process management and scheduling. Check it out :
12
55
515
@mustafa_kh4n
Mustafa
13 days
Mastering Neural Networks from First Principles: 1. Learn matrix multiplication 2. Understand activation functions. 3. Fu*k around for 12hrs on the tensorflow playground. 4. Implement it in C, without using any libraries. Foundations matter most!!
7
58
507
@mustafa_kh4n
Mustafa
23 days
Day 10 of building TinyOS from scratch in C and Assembly. Today, I'll work on Process Management and Process Scheduling.
Tweet media one
3
33
444
@mustafa_kh4n
Mustafa
21 days
which way anon?
Tweet media one
18
28
435
@mustafa_kh4n
Mustafa
15 days
I'm building a Sign Language Recognizer Neural Network in C.
Tweet media one
11
24
402
@mustafa_kh4n
Mustafa
2 months
The TinyCompiler is finished. I've been coding for 14 hours. My eyes and brain hurt. Imma sleep now. Here is the Github repo, if you wanna peek into it.
Tweet media one
3
22
394
@mustafa_kh4n
Mustafa
13 days
Day 2 of MNIST Sign Language Recognizer Neural Network in C. Today, I'll try to resolve the overfitting problem.
Tweet media one
11
18
370
@mustafa_kh4n
Mustafa
24 days
I'm cooked for now, will continue tomorrow. I implemented the file system, I'm done with coding it. But it doesn't work!
Tweet media one
3
15
339
@mustafa_kh4n
Mustafa
16 days
I'm cooking a neural network from Scratch in C. Stay tuned!
10
15
280
@mustafa_kh4n
Mustafa
21 days
I knew the basics of OpenMP in C. But after skimming through the official NVIDIA docs on CUDA and the first chapter of this book, I was floored by the brilliance of the human mind. The way GPUs leveled up and how CUDA supercharged them is just mind blowing.
Tweet media one
Tweet media two
4
20
263
@mustafa_kh4n
Mustafa
13 days
a math phd. with two cracked undergrads is all it takes. electrical engineering + computer science.
15
8
236
@mustafa_kh4n
Mustafa
2 months
I did it guys. MNIST Digit Recognizer in C from scratch.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
4
10
219
@mustafa_kh4n
Mustafa
15 days
It's done guys, I ran the first test. It yielded 100% training accuracy, 73% testing Accuracy. So overrrfittinggggggg. Take 3 minutes on parallel to train.
Tweet media one
13
8
219
@mustafa_kh4n
Mustafa
16 days
cooking.c
Tweet media one
6
6
188
@mustafa_kh4n
Mustafa
1 month
Hey X fam, I was stuck in some bugs, I seriously am so frustrated, and exhausted. I spent the whole day, and was only able to get the kernel display fkn white rectangle on the screen. I don't know how to feel about this.
Tweet media one
8
7
169
@mustafa_kh4n
Mustafa
2 months
Building MNIST digit recogniser from scratch in C.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
3
3
161
@mustafa_kh4n
Mustafa
18 days
BMP images are always fun to play with. a C program that converts a normal photo to a grayscale and also blurs it. grayscale uses the luminance formula. the mathematics of blurring is interesting, it takes an average of the matrix pixels , to smooth the edges and sharpness.
Tweet media one
2
14
165
@mustafa_kh4n
Mustafa
13 days
Just start building stuff. Don't worry if you don't know it all. Believe me, you'll learn alot along the way. Otherwise, you'll live your life as a spectator.
7
16
162
@mustafa_kh4n
Mustafa
11 days
It took 35 minutes to train, and it didn't work !!! overfittingg....
Tweet media one
6
9
173
@mustafa_kh4n
Mustafa
22 days
Day 11 of TinyOS from Scratch in C and Assembly. Today, I will do some bug fixes and data flow optimization.
Tweet media one
4
8
159
@mustafa_kh4n
Mustafa
18 days
first thing I do in the morning after breakfast, is sit, open youtube, and watch a lecture of cs50.
Tweet media one
4
4
149
@mustafa_kh4n
Mustafa
1 month
Day 4 of building TinyOS, today I will work on fixing the character stream to display characters, I have managed to work my way around frameBuffer to manipulate display pixels.
Tweet media one
3
5
131
@mustafa_kh4n
Mustafa
23 days
Guyss, I am done with the File System and Process Management on the TinyOS. It's still a lil buggy, so don't be surprised if you encounter any bugs.
Tweet media one
2
6
130
@mustafa_kh4n
Mustafa
13 days
My current neural network architecture cannot achieve more than 70% test accuracy. So I have to change my NN architecture to a Convolutional Neural Network - CNN. The catch? I don't even know CNN past the name. Isss gooon bee fun.
Tweet media one
3
5
125
@mustafa_kh4n
Mustafa
1 month
Day 2 of building TinyOS from scratch! Today I will be implement the display buffer to make it present a welcome message on the emulator and a command line tool.
Tweet media one
0
4
118
@mustafa_kh4n
Mustafa
13 days
Lorenz Attractor.
Tweet media one
Tweet media two
1
10
118
@mustafa_kh4n
Mustafa
14 days
I have a friend, who is a cracked programmer. The reason he is soo good, is because he read the errors and understand the cause, rather than copy pasting them blindly into an llm. It made me 10x more efficient. Errors would annoy me. Now, I think they improve my solution.
2
3
109
@mustafa_kh4n
Mustafa
13 days
People who say that you don't need math for programming, are html developers who think html is a programming language.
5
8
108
@mustafa_kh4n
Mustafa
1 month
I spent the whole day debugging, and I think I'm getting closer to the origin of the problem. the problem is in access of memory addresses where the bitmap of the characters that I wrote manually in ASCII are. idk, i'm not sure. I am completely burnt out, my brain hurts.
Tweet media one
3
3
103
@mustafa_kh4n
Mustafa
7 months
like seriously, where tf is ilya?
23
0
82
@mustafa_kh4n
Mustafa
15 days
yeah, you can boil water on my CPU.
Tweet media one
1
5
78
@mustafa_kh4n
Mustafa
24 days
the codebase is growing.
Tweet media one
4
0
77
@mustafa_kh4n
Mustafa
1 month
I hope yโ€™all suffer. Coz I want yโ€™all to succeed.
3
0
61
@mustafa_kh4n
Mustafa
15 days
youtube just entitled me as cracked.
Tweet media one
1
3
61
@mustafa_kh4n
Mustafa
12 days
aight, let's sharpen the sword.
Tweet media one
1
1
58
@mustafa_kh4n
Mustafa
1 month
One of my favourite books so far!
Tweet media one
5
3
50
@mustafa_kh4n
Mustafa
22 days
embedded systems are fun.
5
4
53
@mustafa_kh4n
Mustafa
16 days
Its 3am, and I am cooked fr, all this mathhh. My brain hurt, there is this sort of burn in my prefrontal cortex. Imma sleep. Hopefully, I will finish it tomorrow.
4
3
53
@mustafa_kh4n
Mustafa
13 days
Machine Learning truly fascinates me, especially LLMs. And I like to code in C. An integration sounds so mean.
1
0
52
@mustafa_kh4n
Mustafa
19 days
my dad often scold me for reinventing the wheel. his approach is : stand on the shoulder of giants and build - its faster. my answer is : I want to go through the process and understand it from the roots. I want to experience the process, that made them the giants.
6
1
49
@mustafa_kh4n
Mustafa
2 months
Day 2 of building the MNIST Digit Recogniser from scratch in C. Itโ€™s actually simple in a complex way, I have to dry run every loop on a paper -> pseudocode -> code. Itโ€™s hard!!
Tweet media one
0
1
50
@mustafa_kh4n
Mustafa
1 month
The goal is to become the cracked engineer from 1970s.
2
5
49
@mustafa_kh4n
Mustafa
1 month
Wow, this is fun (frustrating).
Tweet media one
1
0
49
@mustafa_kh4n
Mustafa
14 days
tired of writing the : git commit -m "idk wtf should i write here"? here is an automated version, it generates the message for you by sending the current staged differences to an llm.
1
7
43
@mustafa_kh4n
Mustafa
1 month
No TinyOS work today!! I have my Autonomous drone thesis defense. Photo: prototype.
Tweet media one
0
1
43
@mustafa_kh4n
Mustafa
11 days
If C doesn't have inheritance, then how did it give birth to other languages?
7
3
51
@mustafa_kh4n
Mustafa
11 days
MNIST (ASL) Sign Language Recognizer from Scratch in C. Someone on here suggested implementing Adam Optimizer on my base ANN. So let's see how it goes. Stay tuned for the results.
Tweet media one
1
1
43
@mustafa_kh4n
Mustafa
18 days
leveraging mathematics to solve real world problems through computation is the real computer science.
0
3
38
@mustafa_kh4n
Mustafa
12 days
Rรถssler Attractor
Tweet media one
Tweet media two
2
2
39
@mustafa_kh4n
Mustafa
4 months
Can someone explain!! Why arenโ€™t they in a square or rectangular shape?
Tweet media one
17
0
36
@mustafa_kh4n
Mustafa
1 month
Day 1 of Building TinyOS for Pi: - Set up the ARM cross-compiler (GCC toolchain). - Install QEMU for ARM emulation. - Familiarize myself with the Raspberry Pi architecture and boot process.
1
0
38
@mustafa_kh4n
Mustafa
4 months
It ainโ€™t luck.
Tweet media one
4
0
34
@mustafa_kh4n
Mustafa
21 days
Learning is not supposed to be fun. If you are enjoying what you are learning, is because you are too comfortable learning it. Comfort means looping over the same neural pathways. Which means you are not learning at all. Discomfort is the actual indicator of learning.
2
2
34
@mustafa_kh4n
Mustafa
1 month
Cracked people inspire me more, makes me push my intellectual boundries.
Tweet media one
0
6
34
@mustafa_kh4n
Mustafa
13 days
If you are goood at math, you will mostly likely excel at Programming. Programming is just the expression of your mathematical intuition.
2
2
31
@mustafa_kh4n
Mustafa
23 days
good luckkk
Tweet media one
0
4
32
@mustafa_kh4n
Mustafa
1 month
this is a very different paradigm, I am beginning to see alot of the stuff that happen under the hood. I'm loving it so faar (just being dishonest).
Tweet media one
2
1
30
@mustafa_kh4n
Mustafa
13 days
and honestly, I am not very good at math. matter of fact, I had a C-Grade in the last math exam of my bachelors. Just the passing marks. And this is why, I realize the significance of mathematics in programming.
1
0
28
@mustafa_kh4n
Mustafa
11 days
If you don't have ideas to build, optimize existing solutions.
0
3
31
@mustafa_kh4n
Mustafa
1 month
Debugging my understanding, not my code.
Tweet media one
0
0
27
@mustafa_kh4n
Mustafa
19 days
in order to be great at it, youโ€™ve got to make it your obsession. because mediocrity is just a fancy word for "not all in"
3
3
27
@mustafa_kh4n
Mustafa
12 days
I will be intentionally deviating, because I need to.
Tweet media one
1
0
27
@mustafa_kh4n
Mustafa
1 month
The bug is fixed, thanks to @vulkantpot . The text is through to the QEMU Emulator.
0
0
26
@mustafa_kh4n
Mustafa
24 days
you think you are doing enough? meanwhile anons here: @novasarc01
Tweet media one
0
0
25
@mustafa_kh4n
Mustafa
1 month
the console on my TinyOS is up!!
Tweet media one
0
1
25
@mustafa_kh4n
Mustafa
19 days
a possibility of having personal satellites in the orbit.
Tweet media one
1
3
24
@mustafa_kh4n
Mustafa
19 days
no matter how hard I try, I cannot visualize recursion past 2,3 iterations in my mind. I cannot do it, without a pen and paper. I make a bigger bubble, then a smaller bubble in it and so on. each bubble has computation for each iteration. until I reach the base case.
5
0
22
@mustafa_kh4n
Mustafa
24 days
interactions with registers is much easier when done through assembly. it gets hard with C. I cannot even imagine interaction of high level languages and low level hardware. my abstraction breaks. my intuition is very inadequate, when it comes to computational thinking.
0
0
23
@mustafa_kh4n
Mustafa
15 days
LLMs are capable of solving literally any problem. Context is the key.
5
1
22
@mustafa_kh4n
Mustafa
1 month
After I finish this OS project, Iโ€™m going hard core on high scale data intensive over-engineered software projects.
1
0
23
@mustafa_kh4n
Mustafa
1 month
honestly, I am not smart enough to be doing what I'm doing. but I do it anyways, why? becuase I like it. you don't need to be smart, if you like it. you can still go ahead and do it.
4
5
23
@mustafa_kh4n
Mustafa
11 days
never have I ever thought, that I would be learning Julia at some point. But here I am.
Tweet media one
2
0
21
@mustafa_kh4n
Mustafa
1 month
How do you know you are good at something? You can reverse engineer it.
1
1
21
@mustafa_kh4n
Mustafa
14 days
idk, this doesn't feel right to me. I shouldn't be pushing my laptop this hard.
Tweet media one
4
0
21
@mustafa_kh4n
Mustafa
4 months
@arpitingle @sahir2k Turn it into my ping pong room, is a banger line of all times.
0
0
20
@mustafa_kh4n
Mustafa
23 days
Whoโ€™s out there training a neural network on satellite imagery and LiDAR data to build a full-on 3D point cloud of the world? Thatโ€™s World 2.0โ€”a digital playground where we can simulate, train, and mess around with robots, drones, planes, cars, and whatever else we can dream up.
@taylorbaldwin
Taylor Baldwin
23 days
Spent the last few weeks parsing NYC's massive 2017 lidar dataset (almost 1TB of data) and segmenting them by building. Now you can select any of NYC's more than 1M buildings and see its point cloud. #webgpu
23
137
1K
3
0
19
@mustafa_kh4n
Mustafa
4 months
Wait, is this all free?
6
0
19
@mustafa_kh4n
Mustafa
12 days
It's this easy now.
0
1
19
@mustafa_kh4n
Mustafa
11 days
Chua's Circuit Attractor.
Tweet media one
Tweet media two
0
1
19
@mustafa_kh4n
Mustafa
1 month
you see a variable, while I see a pointer to a memory address. We ainโ€™t the same bro!
5
1
18
@mustafa_kh4n
Mustafa
11 days
how beautiful.
Tweet media one
3
1
19