|
| 1 | +/** |
| 2 | + * @title Computer Layers |
| 3 | + * @author Bairui Su |
| 4 | + * @created 2026-01-02 |
| 5 | + * @github pearmini |
| 6 | + * @pull_request 207 |
| 7 | + * @thumbnail_start 36 |
| 8 | + * @label Beginner |
| 9 | + */ |
| 10 | + |
| 11 | +/** |
| 12 | + * ============================================================================ |
| 13 | + * = Computer Layers = |
| 14 | + * ============================================================================ |
| 15 | + * |
| 16 | + * > Computers can be seen as layers of technology, with increasing complexity and |
| 17 | + * > abstraction as they go up. Programming can happen at different layers. |
| 18 | + * |
| 19 | + * - By Everest Pipkin, 2020 |
| 20 | + * - Ref. https://ifyoulived.org/fuzzy/#I%20-%20Computers%20were%20humans |
| 21 | + */ |
| 22 | + |
| 23 | +const layers = [ |
| 24 | + "Application", |
| 25 | + "Algorithm", |
| 26 | + "Programming Language", |
| 27 | + "Assembly Language", |
| 28 | + "Machine Code", |
| 29 | + "Instruction Set Architecture", |
| 30 | + "Microarchitecture", |
| 31 | + "Gates/Registers", |
| 32 | + "Device (Transistors)", |
| 33 | + "Physicals", |
| 34 | +]; |
| 35 | + |
| 36 | +//➜ +-----+--------------------------------+ |
| 37 | +//➜ | {0} | "Application" | |
| 38 | +//➜ |-----|--------------------------------| |
| 39 | +//➜ | {1} | "Algorithm" | |
| 40 | +//➜ |-----|--------------------------------| |
| 41 | +//➜ | {2} | "Programming Language" | |
| 42 | +//➜ |-----|--------------------------------| |
| 43 | +//➜ | {3} | "Assembly Language" | |
| 44 | +//➜ |-----|--------------------------------| |
| 45 | +//➜ | {4} | "Machine Code" | |
| 46 | +//➜ |-----|--------------------------------| |
| 47 | +//➜ | {5} | "Instruction Set Architecture" | |
| 48 | +//➜ |-----|--------------------------------| |
| 49 | +//➜ | {6} | "Microarchitecture" | |
| 50 | +//➜ |-----|--------------------------------| |
| 51 | +//➜ | {7} | "Gates/Registers" | |
| 52 | +//➜ |-----|--------------------------------| |
| 53 | +//➜ | {8} | "Device (Transistors)" | |
| 54 | +//➜ |-----|--------------------------------| |
| 55 | +//➜ | {9} | "Physicals" | |
| 56 | +//➜ +-----+--------------------------------+ |
| 57 | +for (let i = 0; i < layers.length; i++) { |
| 58 | + echo.key(i)(layers[i]); |
| 59 | +} |
0 commit comments