logoalt Hacker News

beej71 • last Wednesday at 3:30 PM • 2 replies • view on HN

What finally clicked for me was a slide at an MIT presentation. It stacked up the "layers of abstraction": machine, assembly, c, python, English.

And next to the bottom 4 was a bracket labeled "Rigorous thinking required". And next to English was a bracket that said "Rigorous thinking optional".

And there's also the fact that an abstraction does two things:

1. Simplify the interface. The messy details are hidden.

2. Restrict ability. You can do more things in the lower level abstraction than you can in the higher one.

English fails both those tests, IMHO.


Replies

pessimizer • last Wednesday at 6:46 PM

> English fails both those tests, IMHO.

The big difference between the other steps and English is that python requires no less exacting thinking than machine code. What's effectively removed at each step before English is a bunch of torturous memorization.

This is most obvious at the fist step, when you're trying to remember what an arbitrary binary opcode does. All assembler does sometimes is just give those opcodes intuitive names.

English is actually the first step that isn't exacting, and that's why the metaphor fails. A line of python might do a lot more than I need it to do, but it does a defined thing, not a suggested thing.

➕ show 1 reply
bitwize • last Wednesday at 3:46 PM

An abstraction changes the building blocks you use to build with.

A frontier LLM is like a whole goddamn construction company. Run by a surly guy named Vinnie who has connections to certain families...

➕ show 2 replies