News for hackers. Stuff that matters.
Re:Torch.ts – building PyTorch in TypeScript from scratch to... by wesammikhail on Saturday January 03, 2026 @10:45PM (#46484668)
The entire repo is 2-3 array access functions. Why is it even posted here? No harm in trying to learn but there is nothing in here that is even close to PyTorch.
Re:Torch.ts – building PyTorch in TypeScript from scratch to... by penger774 on Sunday January 04, 2026 @12:20AM (#46485189)
typical hackernews clickbait. I saw a post a while ago titled "c compiler from scratch" and it's a shell script that calls gcc
Re:Torch.ts – building PyTorch in TypeScript from scratch to... by 13point5 on Sunday January 04, 2026 @11:39AM (#46489601)
I posted when I had more operations including unary, binary, and matmul but got a lot of help from Claude when writing that and realized I didn’t really understand broadcast operations so got rid of all that and started fresh.

Will post again after making more progress.