Skip to content

Commit 4dd63a1

Browse files
authored
[Example] Computer Layers (#207)
* Add computer layers * Update PR number * Fix typos
1 parent 1124a75 commit 4dd63a1

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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

Comments
 (0)