diff --git a/_drafts/inbetween-posts/2024-10-10-capitalism-london.md b/_drafts/inbetween-posts/2024-10-10-capitalism-london.md index c2ab3289cc5df..9c8125c09e312 100644 --- a/_drafts/inbetween-posts/2024-10-10-capitalism-london.md +++ b/_drafts/inbetween-posts/2024-10-10-capitalism-london.md @@ -25,6 +25,18 @@ along the lines of; - --> +*** + +a great revolution in thinking. +previously, the world was ruled by kings and queens. +where trade was controlled by the state. +rules and regulations were enforced by the state. +commoners did not have the freedom to trade. +(apply for a license to trade? or get allocated to work as a ???) +now, a man can be his own master. + + + *** how can i build this story around a character? options; diff --git a/_drafts/inbetween-posts/2024-10-10-math-origins.md b/_drafts/inbetween-posts/2024-10-10-math-origins.md index 7974d389b070b..423f0dbd6be39 100644 --- a/_drafts/inbetween-posts/2024-10-10-math-origins.md +++ b/_drafts/inbetween-posts/2024-10-10-math-origins.md @@ -1,21 +1,29 @@ --- title: Ikram and his tricks -subtitle: A story about the origins of math +subtitle: Life without and with math permalink: math-origins layout: post categories: - historical-fiction --- - - -the point of this story is to explore / understand / imagine the origins of math. -to show that; +The story starts before the development of any math / arithmetic and we would get to see the issues that come with no math. We would witness the invention of 'tricks' to help daily life. The point of this story is to explore / understand / imagine the origins of math. To show that; - even the simplest pieces of math were not always obvious. -- math has been collecting 'tricks' for thousands of years. building upon itself. +- math has been collecting 'tricks' for thousands of years, building upon itself. +- math is increibly useful for organizing and simplifying our lives. +- the enduring truth of math. the same tricks that were useful 3000 years ago are still useful today. + +*** + +Overarching storyline; +Ikram lives in Susa, ~1200 BC. He fascilitates trade between a few neighboring towns. +He moves to Nippur and learns some new 'tricks'. He uses his preference for order and simplicity to help organise his trading operation. +Ikram finds a friend / fellow trader and starts shares some of his tricks via riddles / puzzles. They start doing recreational math. -Ikram's character (possibilities): +*** + +Ikram's character: He's a rather sly businessman. He understand that his image is important for trading. He needs people to trust him (learned through experience). In the end he uses these mathematical tricks to help make himself seem more intelligent (and to make him money). @@ -23,7 +31,7 @@ In the end he uses these mathematical tricks to help make himself seem more inte Simplicity and order. How can I show these are things that Ikram values? (and how can I show that these are things that are important for math?) -Possible scenes: +Possible subplots; (which convey a mathematical discovery) 1. Ikran has a child assistant, who's job is mostly 'counting'. Where counting means drawing the icon for wheat on a tablet for each wheat bale in storage. He also has another child assistant for 'counting' the number of sheep in the pen, and another for counting the number of coins in the chest, and another for counting the number of jars of oil in the storage room, and another for counting the sacks of barley in storage, and another ... @@ -33,41 +41,46 @@ One day he's sitting at his desk, with 3 different count tablets. And he has the 2. Ikram needs to purchase a field for grain storage. The seller describes it as "8 lengths by 15 lengths." (but how much wheat can it hold?) Rather than the usual approach to determine the area (using small clay tokens to lay out a rectangle representing the field, and counting them one by one to determine the area) Ikram has an insight. He realizes he has seen these numbers before and he knows the answer. Last week he had 8 seperate orders of 15 bottles of wine, this totalled 120 bottles. Later that week, while travelling (with idle time to think) he realisees he could list all the possible areas of a field with a length of 1 to 10, and a width of 1 to 10. This would give him a table of 100 areas. He could then use this table to quickly determine the area of any field by looking up the length and width in the table. -Now that Ikram knows how to determine the area of some land, he advertises this ability. A customer will come to him with measurements of their land, and Ikram will tell them how much wheat it can hold, for a small fee. -Uses. How many seeds do I need to purchase to plant this field which is N x M? - + 3. mismatch between old and new measurements (rod vs reed). and / or mismatch between units used by foreign traders and local. motivate the need for fractions. +4. A gathering of merchants from different cities, where they're all frustrated by their different counting systems. Through discussion and negotiation, they begin to see the benefits of adopting a common system - the sexagesimal system. This could be shown through a series of meetings and the gradual adoption of the new standard. +This could happen in the background of Ikram's life. He doesn't directly attend, but he hears about it from other traders and sees the impact it has on trade. It could be a way to show the interconnectedness of different cities and the importance of shared systems for trade. *** +applications -Over arching storyline (possibilities); +area +- How many seeds do I need to purchase to plant this field which is N x M? +- i have X bricks, what area can I build with them? -is Ikram starts in a small town doing trade with neighboring towns. Moves to bigger city and learns some new tricks. -The bigger city is chaotic and ???. But math helps organise his life. - -Other, (minor) possibilities. - -- meets a friend and starts doing recreational math. -- discovers +fractions +- what is the value of 1/2 a kurru of barley? +division +- how many days of food do I have left? +- +negative numbers +- how much does this trader owe me? *** set the scene / world building. This is based in Susa and Nippur. -Susa is a cluster of small towns, each with a few hundred people. It's main industry is farming (wheat, barley, dates, olives, sheep, goats, cattle). It's main export is wheat and barley. -the lands / cities to the north are mountainous (closer to afghanistan) traded in minerals and metals (copper, silver, gold, iron, lead, tin, ) and textiles (wool, silk, cotton). -the lands to the south are fertile and traded in plants (dates, olives, ) and animals (sheep, goats, cattle). -already exists a complex trade network. -Akkadian, aramic, and Sumarian are the main languages spoken. +Susa is a cluster of small towns, each with a few hundred people. It's main industry is farming (wheat, barley, ??). +the lands / cities to the north are mountainous (closer to afghanistan) trade in minerals and metals (copper, silver, gold, iron, lead, tin, ) and textiles (wool, silk, cotton). +the lands to the south are fertile and trade in plants (dates, olives, ...?) and animals (sheep, goats, cattle). +already exists a complex trade network (how does it work? silver shekels are used. kurru is an imprecise unit of measure for volume) +Akkadian, aramic, and Sumarian are the main languages spoken (?) + +This first 'large' cities are emerging. Nippur is a city of 10,000 people. This scale requires better organisation. However, everyone has a different way of doing things and a different set of tricks they use. + + -mina and Shekel. -kurru and nindan. Currently peace after ??? @@ -82,6 +95,31 @@ Technologies; - pottery - weaving +*** + +Other scenes; + +- disagreement between two traders because their version of kurru is different. +- how much rope is needed for a diagonal line? more that length of one side, less than the sum of the two sides. + +*** + +other uses of math + +- tracking the length of a day over the months. +- + + +Examples of messy thinking and strange mathematical tactics; +- arbitrarily switching between units during calculations. +- mixing up who owes whom because there is no understanding of negative numbers. +- purely inductive reasoning. solutions to specific examples serve as the basis for general rules. (p 281) +sometimes leading to incorrect conclusions. +- the lack of algebra. and the use of geometric thinking to solve problems. the cut-and-paste method for finding the reciprocal of a sexagesimal number. (pg 109). or solving the quadratic equation by drawing a square. (pg 278) +- the use of trial and error to solve problems. +- missing words for ???. or equating addition with adding to a pile, and subtraction with removing from a pile. + + *** Chapters; @@ -104,6 +142,10 @@ A few of the discoveries I'd like to include; - The discovery of place value notation - The realization that debts can be recorded as negative quantities - The invention of fractions for trading partial quantities +- The discovery of long division?! Normally would solve division by guess work, trial and error. If all our guesses are lower then we can just look at the residual. +- primes? For some numbers division never works. (Finally fed up with 23.) +- A farmer needing to divide harvested food equally among family members + what about discoveries related to; - geometry? (e.g. the 3-4-5 rule for right angles, or the discovery of the Pythagorean theorem) @@ -116,12 +158,6 @@ The Debt Record > After being burned by a few bad deals, Ikran develops a system of recording who owes him what. He creates a special mark to indicate "owed goods" versus "goods in hand," essentially creating negative numbers. This evolves into a rudimentary lending system, where he begins charging extra (interest) for the convenience of paying later. - -> (from LLM) Ikram attends a gathering of merchants from different cities, where they're all frustrated by their different counting systems. Through discussion and negotiation, they begin to see the benefits of adopting a common system - the sexagesimal system. This could be shown through a series of meetings and the gradual adoption of the new standard. - -This could happen in the background of Ikram's life. He doesn't directly attend, but he hears about it from other traders and sees the impact it has on trade. It could be a way to show the interconnectedness of different cities and the importance of shared systems for trade. - - *** Ikram is frustrated because his large trading operation requires keeping track of many different sized quantities. He uses different symbols for 1s, 10s, 60s, and 600s, but it's becoming unwieldy. One day, while watching his assistants arrange storage jars (which are stacked in neat rows and columns), he notices how the position of each jar tells him something about its contents. This gives him an idea: what if the position of a number symbol could tell you its value? He experiments with a system where a symbol's position indicates whether it represents ones, sixties, or three-thousand-six-hundreds. @@ -140,4 +176,9 @@ This leads to the development of a short-hand system for recording weights, wher Outtro. Unlike in the story, it was not a single person who invented most of arithmetic, nor was it done in a single generation. -It took hundreds of years for these seemingly obvious insights to accumulate into a system that resembles modern arithmetic. \ No newline at end of file +It took hundreds of years for these seemingly obvious insights to accumulate into a system that resembles modern arithmetic. + +References + +- https://en.wikipedia.org/wiki/Al-Jabr +- Mathematics in ancient Iraq: a social history. Eleanor Robson. 2008. diff --git a/_drafts/inbetween-posts/tvs/2024-11-01-docs.md b/_drafts/inbetween-posts/tvs/2024-11-01-docs.md new file mode 100644 index 0000000000000..80838ba122b6a --- /dev/null +++ b/_drafts/inbetween-posts/tvs/2024-11-01-docs.md @@ -0,0 +1,30 @@ +# Overview + +The game is split into three parts. + +- the core logic of the game (implemented in rust) +- the frontend (implemented in flask) +- the RL agent (implemented in python / jax) + +## Core logic + +Why did I implement the core logic in rust? +Good question. + +I knew I wanted to do some reinforcement learning, so I wanted the core logic to be fast. +I also wanted to learn rust. + + +I have implemented the core game in rust with some small changes; + +- encryption is based on a 'simple' version of enimga. Aka, a 2 rotor polynumeric substitution cipher. +- re-encryption now costs victory points +- you can send as many or as few resources to a single battle as you like (rather than max 2). + +## Frontend + + + +## RL agent + +I have implemented a RL agent to play the game. diff --git a/_drafts/inbetween-posts/tvs/2024-11-01-engima.md b/_drafts/inbetween-posts/tvs/2024-11-01-engima.md new file mode 100644 index 0000000000000..6da56011032cb --- /dev/null +++ b/_drafts/inbetween-posts/tvs/2024-11-01-engima.md @@ -0,0 +1,154 @@ +--- +title: A tutorial on ciphers and enigma +subtitle: "Code breaking" +layout: post +permalink: /turing-vs-scherbius/enigma/ +categories: + - "tutorial" +--- + + + + + + +## Cesar Cipher + +Enter a string to see it shifted by positions: + +
+ +
+

Shifted Text:

+ + + + + +## Substitution cipher + +An arbitrary permutation of the alphabet. + +
+abcdefghijklmnopqrstuvwxyz
+ +
+ +
+ +
+ +

Substituted Text:

+ + + + +### A stepping substitution cipher + +This is a simple substitution cipher where the substitution changes every time a letter is used. + +
+ +

Stepper:

+
+ +
+ +
+ +

Stepping Substituted Text:

+ + \ No newline at end of file diff --git a/_drafts/inbetween-posts/tvs/2024-11-01-tvs.md b/_drafts/inbetween-posts/tvs/2024-11-01-tvs.md new file mode 100644 index 0000000000000..4308aba48fd41 --- /dev/null +++ b/_drafts/inbetween-posts/tvs/2024-11-01-tvs.md @@ -0,0 +1,42 @@ +--- +title: "Turing versus Scherbius" +subtitle: "A little video game" +layout: post +permalink: /turing-vs-scherbius/ +categoies: + - "fun" +--- + +I made a game. My first! + +*** + +__Arthur Scherbius__ built the Engima encryption machine. It was used in World War 2 to encrypt German military communications. __Alan Turing__ is credited with 'breaking' the Enigma encrpytion and using the intel to win the war. + +> Alan Turing: We need your help, to keep this a secret from Admiralty, Army, RAF, uh...as no one can know, that we've broken Enigma, not even Dennison.
+...
+Alan Turing: While we develop a system to help you determine how much intelligence to act on. Which, uh, attacks to stop, which to let through. Statistical analysis, the minimum number of actions it will take, for us to win the war - but the maximum number we can take before the Germans get suspicious. +(quote from The Imitation Game) + +To win this game as 'Turing', this game requires you to; +- A) break a code, +- B) exploit the broken code, without revealing you have broken it. + +The idea for this game is from a friend (Nick Johnstone aka Widdershin). +https://replit.com/@Widdershin/TuringVsScherbius#main.rb + +Here are a few links; + +- [the game]() +- [a tutorial on ciphers and enigma]({{site.baseurl}}/turing-vs-scherbius/enigma) +- [documention / explanation]({{site.baseurl}}/turing-vs-scherbius/docs) +- [the RL agent]({{site.baseurl}}/turing-vs-scherbius/rl) +- [an exploration of game variants]({{site.baseurl}}/turing-vs-scherbius/variants) + + +*** + +Rules + + + diff --git a/_posts/inbetween-posts/2022-06-23-killer-ai-and-regulations.md b/_posts/inbetween-posts/2022-06-23-killer-ai-and-regulations.md index 69f06e31e84fd..afe504fd387fb 100644 --- a/_posts/inbetween-posts/2022-06-23-killer-ai-and-regulations.md +++ b/_posts/inbetween-posts/2022-06-23-killer-ai-and-regulations.md @@ -40,6 +40,15 @@ Within economics, mechanism design is the study of how to design rules and incen We start from the end goal, and work backwards to design the rules and incentives that will get us there. --> + + ### The Misalignment Gap But over time, many corporations have lost sight of their original purpose. Instead of serving the public good, they prioritize profit above all else. @@ -54,6 +63,16 @@ For example; Instead of serving society, corporations exploit us for financial gain. + + + ### Conclusion While we imagine potential dangers of AI, mis-aligned corporations are causing harm right now. diff --git a/assets/tvs/Enigma-action.png b/assets/tvs/Enigma-action.png new file mode 100644 index 0000000000000..1126867406c83 Binary files /dev/null and b/assets/tvs/Enigma-action.png differ