Hacker News new | ask | show | jobs
Show HN: I'm 15 and built a neural network from scratch in C++,just math (github.com)
8 points by muchlakshay 419 days ago
I’m 15 and self-taught. I'm learning ML from scratch because I want to really understand how things work. I’m not into frameworks. I prefer math, logic, and C++.

I implemented a basic MLP that supports different activation and loss functions. It was trained via mini-batch gradient descent. I wrote it from scratch, using no external libraries except Eigen (for linear algebra).

I learned how a Neural Network learns (all the math) -- how the forward pass works, and how learning via backpropagation works. How to convert all that math into code.

I’ll write a blog soon explaining how MLPs work in plain English. My dream is to get into MIT/Harvard one day by following my passion for understanding and building intelligent systems. Ive attached link to my GitHub repo. Feedback is much appreciated!!

1 comments

Well done! That's one of the things you should be building to understand high performance ML.

You should also keep going and continue learning technologies that most here are petrified of learning which is C++ (and Rust). You will get very far with mastering both of them.

The things you should REALLY avoid in 2025:

1. Do not fall for the hype in web frameworks and especially the Javascript / Typescript ecosystems.

It has set the tech industry back 15 years and I guarantee you it will be heavily automated by LLMs.

ive seen many people recommending Rust over C++, i think it would be great to rearn Rust. And i am not into those web frameworks. BTW TY for your advise!!!