frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Torch.ts – building PyTorch in TypeScript from scratch to learn

https://github.com/13point5/torch.ts
42•13point5•1mo ago

Comments

13point5•1mo ago
Right now it's just a tensor manipulation lib but will be adding an autograd engine soon. It's been fun learning about strides and doing matmuls by hand and then coding it without numpy.
primitivesuave•1mo ago
Thanks for sharing! I used to teach students to build ML algorithms from scratch (everything from Markov chains to multilayer perceptrons and convolution neural networks) - I rewrote some of my notes in TypeScript here:

1. https://github.com/keshavsaharia/numbers/blob/dev/lib/nn/neu...

2. https://github.com/keshavsaharia/numbers/blob/dev/lib/cnn/cn... (still working on the visualization)

Hope you find these useful in your own learning journey!

13point5•1mo ago
Thank you!
fleshmonad•1mo ago
Are these posts just made to have a better chance of being hired?
throwaway314155•1mo ago
So what if they are?
adastra22•1mo ago
They provide no value and waste our sadly finite lives.
wesammikhail•1mo ago
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.
penger774•1mo ago
typical hackernews clickbait. I saw a post a while ago titled "c compiler from scratch" and it's a shell script that calls gcc
13point5•1mo ago
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.

tfsh•1mo ago
I think I must have just spent more time (5 mins) looking at this repo trying to understand why you posted it, than you spent actually coding this.

I don't want to put you off, but there's no substance at all here, I'd have assumed Claude wrote it based on the fact you've vendored in rules, but the code is so questionable, even an LLM from 2022 would do better. E.g. 'flattenData' from utils could just be [1] rather than a BFS, though I don't really get why your public API allows TensorData to be a single integer in the first place, 50% of your logic is to work around that.

But rant over. My point is, maybe post this when you've built even 5% of PyTorch, or learnt something of value, or have something tangible to impart upon us, rather than a library of ill-thought-out array utils.

1: flattenData = (x: TensorData) => Array.isArray(x) ? x.flat(Infinity) : [x]

13point5•1mo ago
1. Thanks for the .flat suggestion

2. It’s clear you didn’t read the rules folder because it’s a rule to tell cursor to teach me

3. You say you don’t understand why TensorData can be a single integer. Scalars are tensors too. I’m trying to support PyTorch’s spec and ops as much as possible which is why I’m supporting it. The obvious use cases are for reduction ops and scalar unary ops.

4. Fine I’ll post after I’ve made more progress.

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
601•klaussilveira•11h ago•178 comments

The Waymo World Model

https://waymo.com/blog/2026/02/the-waymo-world-model-a-new-frontier-for-autonomous-driving-simula...
908•xnx•17h ago•545 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
24•helloplanets•4d ago•20 comments

How we made geo joins 400× faster with H3 indexes

https://floedb.ai/blog/how-we-made-geo-joins-400-faster-with-h3-indexes
97•matheusalmeida•1d ago•23 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
28•videotopia•4d ago•0 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
204•isitcontent•12h ago•24 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
204•dmpetrov•12h ago•96 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
314•vecti•14h ago•138 comments

Sheldon Brown's Bicycle Technical Info

https://www.sheldonbrown.com/
359•ostacke•17h ago•93 comments

Microsoft open-sources LiteBox, a security-focused library OS

https://github.com/microsoft/litebox
353•aktau•18h ago•178 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
463•todsacerdoti•19h ago•231 comments

Delimited Continuations vs. Lwt for Threads

https://mirageos.org/blog/delimcc-vs-lwt
24•romes•4d ago•3 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
261•eljojo•14h ago•156 comments

An Update on Heroku

https://www.heroku.com/blog/an-update-on-heroku/
395•lstoll•18h ago•268 comments

Dark Alley Mathematics

https://blog.szczepan.org/blog/three-points/
80•quibono•4d ago•20 comments

PC Floppy Copy Protection: Vault Prolok

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-vault-prolok.html
54•kmm•4d ago•3 comments

Was Benoit Mandelbrot a hedgehog or a fox?

https://arxiv.org/abs/2602.01122
7•bikenaga•3d ago•2 comments

Jeffrey Snover: "Welcome to the Room"

https://www.jsnover.com/blog/2026/02/01/welcome-to-the-room/
3•kaonwarb•3d ago•1 comments

How to effectively write quality code with AI

https://heidenstedt.org/posts/2026/how-to-effectively-write-quality-code-with-ai/
235•i5heu•14h ago•178 comments

Introducing the Developer Knowledge API and MCP Server

https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/
47•gfortaine•9h ago•14 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
5•jesperordrup•2h ago•1 comments

I spent 5 years in DevOps – Solutions engineering gave me what I was missing

https://infisical.com/blog/devops-to-solutions-engineering
137•vmatsiiako•16h ago•60 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
27•gmays•7h ago•8 comments

Why I Joined OpenAI

https://www.brendangregg.com/blog/2026-02-07/why-i-joined-openai.html
124•SerCe•7h ago•105 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
68•phreda4•11h ago•13 comments

Understanding Neural Network, Visually

https://visualrambling.space/neural-network/
271•surprisetalk•3d ago•37 comments

I now assume that all ads on Apple news are scams

https://kirkville.com/i-now-assume-that-all-ads-on-apple-news-are-scams/
1048•cdrnsf•21h ago•431 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
171•limoce•3d ago•92 comments

Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better

https://github.com/dmtrKovalenko/zlob
14•neogoose•4h ago•9 comments

FORTH? Really!?

https://rescrv.net/w/2026/02/06/associative
60•rescrv•19h ago•22 comments