summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-09-17 02:11:59 -0400
committerAndrew Cady <d@cryptonomic.net>2022-09-17 02:11:59 -0400
commit43a5a6ff36fb99839ecdd709516263a60a82429b (patch)
tree256f5954131e0ddba412620eaf37e3203d216674
parentb668497fffa4845b9ab337f28b545f32c9964980 (diff)
more calendar entries
-rw-r--r--CosmicCalendar.hs83
1 files changed, 82 insertions, 1 deletions
diff --git a/CosmicCalendar.hs b/CosmicCalendar.hs
index b439b48..37b9ece 100644
--- a/CosmicCalendar.hs
+++ b/CosmicCalendar.hs
@@ -56,6 +56,16 @@ data CalendarEntry = CalendarEntry {
56 calReferences :: Text 56 calReferences :: Text
57} deriving (Show) 57} deriving (Show)
58 58
59-- TODO: Encode the input times like so:
60data CosmicTime = YearsAgo Rational | YearsAfterBigBang Rational | YearsBCE Rational | YearsCE Rational
61-- We need the Map data structure to have a simple ordering...
62-- We could simply regenerate the entire table as a function of the year.
63-- This would also allow to fudge the last day countdown to be identical on leap years.
64-- "YearsAgo" would measure from the end of the year on a 365 day model even on 366 day years.
65-- Another option is to keep it 365-based, but on leap years fudge every day after Feb 29 when we use the calendar...
66-- I.e. the getNextCalendarEntry functions would subtract a day from the input value starting March 1.
67-- But this still doesn't allow to encode such dates as `YearsCE 1492` for Columbus.
68
59theCalendar :: Map NominalDiffTime CalendarEntry 69theCalendar :: Map NominalDiffTime CalendarEntry
60theCalendar = Map.fromList $ map (\x -> (calBeginTime x, x)) theCalendarList 70theCalendar = Map.fromList $ map (\x -> (calBeginTime x, x)) theCalendarList
61 71
@@ -225,11 +235,82 @@ theCalendarList =
225 "Ice Age ends" 235 "Ice Age ends"
226 "" 236 ""
227 "" 237 ""
228 "https://en.wikipedia.org/wiki/Last_Glacial_Period" 238 "https://en.wikipedia.org/wiki/Last_Glacial_Period",
239
240 CalendarEntry (1600 & yearsBeforeCommonEra) Nothing
241 "Dynastic China"
242 "History begins"
243 [text|
244 The earliest known written records of the history of China date from as early as 1250 BC, from the Shang dynasty (c. 1600–1046 BC), during the king Wu Ding's reign
245
246 The state-sponsored Xia–Shang–Zhou Chronology Project dated them from c. 1600 to 1046 BC based on the carbon 14 dates of the Erligang site.
247 |]
248 "",
249
250 CalendarEntry (theYear 1492) Nothing
251 "Columbus arrives in America"
252 ""
253 ""
254 "",
255
256 CalendarEntry (theYear 570) Nothing
257 "Muhammad born"
258 ""
259 ""
260 "",
261
262 CalendarEntry (480 & yearsBeforeCommonEra) Nothing
263 "Old Testament, Buddha"
264 ""
265 ""
266 "",
267
268 CalendarEntry (8.8 & billionYearsAgo) Nothing
269 "Thin disk of the Milky Way Galaxy"
270 "Our galaxy begins to form"
271 "The age of stars in the galactic thin disk has also been estimated using nucleocosmochronology. Measurements of thin disk stars yield an estimate that the thin disk formed 8.8 ± 1.7 billion years ago. These measurements suggest there was a hiatus of almost 5 billion years between the formation of the galactic halo and the thin disk.[253] Recent analysis of the chemical signatures of thousands of stars suggests that stellar formation might have dropped by an order of magnitude at the time of disk formation, 10 to 8 billion years ago, when interstellar gas was too hot to form new stars at the same rate as before.[254] "
272 "",
273
274 CalendarEntry (3.4 & billionYearsAgo) Nothing
275 "First photosynthetic bacteria"
276 "(Still no Oxygen)"
277 "They absorbed near-infrared rather than visible light and produced sulfur or sulfate compounds rather than oxygen. Their pigments (possibly bacteriochlorophylls) were predecessors to chlorophyll."
278 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/",
279
280 CalendarEntry (2.7 & billionYearsAgo) Nothing
281 "Oxygen from photosynthesis"
282 "Cyanobacteria"
283 "These ubiquitous bacteria were the first oxygen producers. They absorb visible light using a mix of pigments: phycobilins, carotenoids and several forms of chlorophyll."
284 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/",
285
286 CalendarEntry (1.2 & billionYearsAgo) Nothing
287 "Red and brown algae"
288 ""
289 "These organisms have more complex cellular structures than bacteria do. Like cyanobacteria, they contain phycobilin pigments as well as various forms of chlorophyll."
290 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/",
291
292 CalendarEntry (0.75 & billionYearsAgo) Nothing
293 "Green algae"
294 ""
295 "Green algae do better than red and brown algae in the strong light of shallow water. They make do without phycobilins."
296 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/",
297
298 CalendarEntry (0.475 & billionYearsAgo) Nothing
299 "First land plants"
300 ""
301 "Mosses and liverworts descended from green algae. Lacking vascular structure (stems and roots) to pull water from the soil, they are unable to grow tall."
302 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/",
303
304 CalendarEntry (0.423 & billionYearsAgo) Nothing
305 "Vascular plants"
306 ""
307 "These are literally garden-variety plants, such as ferns, grasses, trees and cacti. They are able to grow tall canopies to capture more light."
308 "https://www.scientificamerican.com/article/timeline-of-photosynthesis-on-earth/"
229 309
230 ] 310 ]
231 311
232 where 312 where
313 theYear = yearsAgo . (2022 -)
233 yearsBeforeCommonEra n = yearsAgo (2022 + n) 314 yearsBeforeCommonEra n = yearsAgo (2022 + n)
234 earthDescription = [text| 315 earthDescription = [text|
235 The standard model for the formation of the Solar System (including the Earth) is the solar nebula hypothesis.[23] In this model, the Solar System formed from a large, rotating cloud of interstellar dust and gas called the solar nebula. It was composed of hydrogen and helium created shortly after the Big Bang 13.8 Ga (billion years ago) and heavier elements ejected by supernovae. About 4.5 Ga, the nebula began a contraction that may have been triggered by the shock wave from a nearby supernova.[24] A shock wave would have also made the nebula rotate. As the cloud began to accelerate, its angular momentum, gravity, and inertia flattened it into a protoplanetary disk perpendicular to its axis of rotation. Small perturbations due to collisions and the angular momentum of other large debris created the means by which kilometer-sized protoplanets began to form, orbiting the nebular center.[25] 316 The standard model for the formation of the Solar System (including the Earth) is the solar nebula hypothesis.[23] In this model, the Solar System formed from a large, rotating cloud of interstellar dust and gas called the solar nebula. It was composed of hydrogen and helium created shortly after the Big Bang 13.8 Ga (billion years ago) and heavier elements ejected by supernovae. About 4.5 Ga, the nebula began a contraction that may have been triggered by the shock wave from a nearby supernova.[24] A shock wave would have also made the nebula rotate. As the cloud began to accelerate, its angular momentum, gravity, and inertia flattened it into a protoplanetary disk perpendicular to its axis of rotation. Small perturbations due to collisions and the angular momentum of other large debris created the means by which kilometer-sized protoplanets began to form, orbiting the nebular center.[25]