Skip to content

Commit

Permalink
Everything before Chapter 3 done
Browse files Browse the repository at this point in the history
  • Loading branch information
AHY123 committed Mar 17, 2024
1 parent 19646e2 commit 8c33052
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/ComputingCostGraph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
font-size="14px"
transform="translate({-370}, {margin.top - 20})"
>
Plotting the Cost Of Components Throughout Time (Logarithmic Scale)
Plotting the Cost of Components Through Time (Logarithmic Scale)
</text>
<!-- x-axis -->
<g
Expand Down
2 changes: 1 addition & 1 deletion src/components/GuessGame.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let cost_data;
$: console.log(cost_data);
// $: console.log(cost_data);
let data = [];
let gort = "GB";
Expand Down
31 changes: 27 additions & 4 deletions src/components/Story.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@
"text",
"text",
"guess",
'cost',
"text",
"cost",
"text",
"text",
-1,
"subtitle",
10,
];
// for programmer use
Expand Down Expand Up @@ -248,7 +253,7 @@
{:else if sec[1] == "guess"}
<section class="snapper" class:fade={sections_fade[sec[0]]}>
<div class="content_sticky">
<GuessGame {cost_data}/>
<GuessGame {cost_data} />
</div>
</section>
{:else}
Expand Down Expand Up @@ -292,11 +297,29 @@
right={"Particularly on the Linear Scale, see if we have been following Moore's Law in recent years."}
/>
{/if}
{#if index >= 13 && index <= 20}
{#if index >= 13 && index <= 16}
<GenericLabelText
{index}
fadeIn="13"
fadeOut="19"
fadeOut="17"
title="Chapter 2: Why Does Moore's Law Matter"
/>
{/if}
{#if index >= 16 && index <= 17}
<GenericLabelText
{index}
fadeIn="16"
fadeOut="18"
title="Chapter 2: Why Does Moore's Law Matter"
left={"Interact with this graph to see how expensive computer components were."}
right={"Remember that this graph is in logarithmic scale so the price of components have indeed been exponentially decreasing."}
/>
{/if}
{#if index >= 17 && index <= 21}
<GenericLabelText
{index}
fadeIn="17"
fadeOut="20"
title="Chapter 2: Why Does Moore's Law Matter"
/>
{/if}
Expand Down
20 changes: 18 additions & 2 deletions src/components/text_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,25 @@
"text": "Why Does Moore's Law Matter?"
},
"13": {
"text": "At first glance, it might seem like Moores Law only matters in terms of transistors and computing power. Yet Moores Law was a hallmark theory for a reason. Not only did Moores Law predict computing power, it also predicted something just as important: cost. The final part of this equation, Moore predicted faster, more efficient, smaller, and CHEAPER."
"text": "At first glance, it might seem like Moore's Law only matters in terms of transistors and computing power. Yet Moore's Law was a hallmark theory for a reason. Not only did Moore's Law predict computing power, it also predicted something just as important: cost. The final part of this equation, Moore predicted faster, more efficient, smaller, and CHEAPER."
},
"14": {
"text": "We plotted out the costs of memory, flash, SSD, and disk drives ever since 1955 and have observed their continual downtrend in costs, which emulates Moore’s Law to a tee — yet instead of having an upwards exponential relationship, this time, they have a major decline in cost. Let’s observe how Moore’s Law affects things other than transistors — this time, in regards to the cost of these computing components "
"text": "We plotted out the costs of memory, flash, SSD, and disk drives ever since 1955 and have observed their continual downtrend in costs, which emulates Moore's Law to a tee — yet instead of having an upwards exponential relationship, this time, they have a major decline in cost. Let's observe how Moore's Law affects things other than transistors — this time, in regards to the cost of these computing components "
},
"16": {
"text": "Surprising right? Let's show you what that graph looks like now."
},
"18": {
"text": "Immediately, when we observed the cost of memory in 1956, we were shocked. It's an enormous amount of money, more than I would ever be able to see in my lifetime, all for the cost of a TB of memory."
},
"19": {
"text": "Fortunately, as Moore predicted, the costs of these components became cheaper and cheaper as time went on. However, it seems like we are slowly reaching a hard limit in terms of the costs of these components, as the ending parts of our graph show that there hasn't been much of a decline since 2010."
},
"21": {
"subtitle": "Chapter 3",
"text": "Predicting With Moore's Law?"
},
"num": {
"text": "lol"
}
}

0 comments on commit 8c33052

Please sign in to comment.