{"id":23589432,"url":"https://github.com/ewdlop/biologynote","last_synced_at":"2025-09-02T17:06:26.430Z","repository":{"id":270056457,"uuid":"746788481","full_name":"ewdlop/BiologyNote","owner":"ewdlop","description":"Put physics in biology.","archived":false,"fork":false,"pushed_at":"2025-02-07T20:16:04.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T21:24:13.320Z","etag":null,"topics":["bio-inspired-computing","lenia","umbrella-corp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewdlop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-22T17:16:01.000Z","updated_at":"2025-02-07T20:16:09.000Z","dependencies_parsed_at":"2025-01-30T03:33:05.313Z","dependency_job_id":null,"html_url":"https://github.com/ewdlop/BiologyNote","commit_stats":null,"previous_names":["ewdlop/biologynote"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FBiologyNote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FBiologyNote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FBiologyNote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FBiologyNote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewdlop","download_url":"https://codeload.github.com/ewdlop/BiologyNote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239420132,"owners_count":19635514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bio-inspired-computing","lenia","umbrella-corp"],"created_at":"2024-12-27T06:14:04.851Z","updated_at":"2025-02-18T06:26:03.760Z","avatar_url":"https://github.com/ewdlop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BiologyNote\n\n\u003e \u003cem\u003eKiss me hard before you go\n  Summertime sadness\n  I just wanted you to know\n  That, baby, you the best\n  I got my red dress on tonight\n  Dancin' in the dark, in the pale moonlight\n  Done my hair up real big, beauty queen style\n  High heels off, I'm feelin' alive\n  Oh my God, I feel it in the air\n  Telephone wires above are sizzlin' like a snare\n  Honey, I'm on fire, I feel it everywhere\n  Nothin' scares me anymore (one, two, three, four)\n  Kiss me hard before you go\n  Summertime sadness\n  I just wanted you to know\n  That, baby, you the best\n  I got that summertime, summertime sadness\n  Su-su-summertime, summertime sadness\n  Got that summertime, summertime sadness\n  Oh, oh-oh, oh-oh\n  I'm feelin' electric tonight\n  Cruisin' down the coast, goin' 'bout 99\n  Got my bad baby by my heavenly side\n  I know if I go, I'll die happy tonight\n  Oh my God, I feel it in the air\n  Telephone wires above are sizzlin' like a snare\n  Honey, I'm on fire, I feel it everywhere\n  Nothin' scares me anymore (one, two, three, four)\n  Kiss me hard before you go\n  Summertime sadness\n  I just wanted you to know\n  That, baby, you the best\n  I got that summertime, summertime sadness\n  Su-su-summertime, summertime sadness\n  Got that summertime, summertime sadness\n  Oh, oh-oh, oh-oh\n  Think I'll miss you forever\n  Like the stars miss the sun in the morning sky\n  Later's better than never\n  Even if you're gone, I'm gonna drive (drive), drive\n  I got that summertime, summertime sadness\n  Su-su-summertime, summertime sadness\n  Got that summertime, summertime sadness\n  Oh, oh-oh, oh-oh\n  Kiss me hard before you go\n  Summertime sadness\n  I just wanted you to know\n  That, baby, you the best\n  I got that summertime, summertime sadness\n  Su-su-summertime, summertime sadness\n  Got that summertime, summertime sadness\n  Oh, oh-oh, oh-oh\u003c/em\u003e\n\n# How far away are Americans from Aliens\n\nfrom aliens import *\n\n```python\nclass AlienComparison:\n   def __init__(self, genetic_code, tree_of_life):\n       self.genetic = genetic_code\n       self.tree = tree_of_life\n       # Common features to look for\n       self.universal_traits = {\n           'dna_based': True,\n           'carbon_based': True,\n           'protein_synthesis': True,\n           'cell_structure': ['membrane', 'metabolism'],\n           'genetic_code': 'universal' # Amino acid encoding\n       }\n       \n   def estimate_divergence(self, alien_data):\n       \"\"\"Estimate evolutionary distance between humans and aliens\"\"\"\n       differences = {\n           'genetic': self._compare_genetic(alien_data),\n           'biochemical': self._compare_biochemistry(alien_data),\n           'cellular': self._compare_cells(alien_data),\n           'complexity': self._compare_complexity(alien_data)\n       }\n       \n       # Convert to billion years based on molecular clock\n       return self._calculate_divergence_time(differences)\n       \n   def _compare_genetic(self, alien_data):\n       if not alien_data.get('dna_based'):\n           return float('inf')\n           \n       human_dna = self.tree.get_node('Homo sapiens').genetic_data\n       return {\n           'sequence_similarity': self._sequence_alignment(\n               human_dna, alien_data['genetic_sequence']\n           ),\n           'code_compatibility': self._compare_genetic_code(\n               self.genetic.codon_table,\n               alien_data['genetic_code']\n           )\n       }\n       \n   def _calculate_divergence_time(self, differences):\n       \"\"\"Calculate divergence time in billion years\"\"\"\n       if differences['genetic'] == float('inf'):\n           return '\u003e4.5' # Different origin\n           \n       mutation_rate = 2.2e-9 # per site per year\n       return differences['genetic']['sequence_similarity'] / mutation_rate / 1e9\n\n```\n# How far away are China away from America\n\n```python\nclass GeographicDistance:\n   def __init__(self):\n       self.cities = {\n           'US': {\n               'Washington_DC': (38.8951, -77.0364),\n               'NY': (40.7128, -74.0060),\n               'LA': (34.0522, -118.2437)\n           },\n           'China': {\n               'Beijing': (39.9042, 116.4074),\n               'Shanghai': (31.2304, 121.4737),\n               'Guangzhou': (23.1291, 113.2644)\n           }\n       }\n\n   def calculate_distances(self):\n       distances = {}\n       for us_city, us_coords in self.cities['US'].items():\n           for cn_city, cn_coords in self.cities['China'].items():\n               distance = self._haversine(us_coords, cn_coords)\n               distances[f\"{us_city}-{cn_city}\"] = distance\n       return distances\n\n   def _haversine(self, coord1, coord2):\n       \"\"\"Calculate great-circle distance between points\"\"\"\n       lat1, lon1 = coord1\n       lat2, lon2 = coord2\n       R = 6371 # Earth's radius in kilometers\n\n       dlat = math.radians(lat2 - lat1)\n       dlon = math.radians(lon2 - lon1)\n       lat1 = math.radians(lat1)\n       lat2 = math.radians(lat2)\n\n       a = math.sin(dlat/2)**2 + math.cos(lat1)*math.cos(lat2)*math.sin(dlon/2)**2\n       c = 2*math.asin(math.sqrt(a))\n       return R * c\n\n```\n\n# How far away is America from extinction? 2012 * (space-like separated events)\n\u003cimg width=\"1895\" alt=\"Screenshot 2024-02-01 010111\" src=\"https://github.com/ewdlop/BiologyNote/assets/25368970/c6b3f95d-2fb0-4837-92d6-0df3044bd006\"\u003e\n\n```python\nclass TaiwanChineseDistance:\n   def __init__(self):\n       self.geographic = {\n           'Taiwan': (23.5937, 120.9605),\n           'China': (35.8617, 104.1954),\n           'min_strait_width': 130  # km at narrowest point\n       }\n       \n       self.genetic_distances = {\n           'han_chinese_groups': {\n               'min_fst': 0.001,  # Minimal genetic differentiation\n               'max_fst': 0.019   # Small but measurable differences\n           },\n           'indigenous_taiwanese': {\n               'austronesian_fst': 0.12  # Larger differentiation\n           }\n       }\n       \n   def calculate_physical_distance(self):\n       return {\n           'strait_width': self.geographic['min_strait_width'],\n           'capital_distance': self._haversine(\n               self.geographic['Taiwan'],\n               self.geographic['China']\n           )\n       }\n       \n   def analyze_genetic_distance(self, population='han'):\n       if population == 'han':\n           return self.genetic_distances['han_chinese_groups']\n       return self.genetic_distances['indigenous_taiwanese']\n       \n   def _haversine(self, coord1, coord2):\n       \"\"\"Calculate great-circle distance between points\"\"\"\n       lat1, lon1 = coord1\n       lat2, lon2 = coord2\n       R = 6371\n       \n       dlat = math.radians(lat2 - lat1)\n       dlon = math.radians(lon2 - lon1)\n       lat1 = math.radians(lat1)\n       lat2 = math.radians(lat2)\n\n       a = math.sin(dlat/2)**2 + math.cos(lat1)*math.cos(lat2)*math.sin(dlon/2)**2\n       c = 2*math.asin(math.sqrt(a))\n       return R * c\n```\n\n## Space-Time-... between US\n\n## How far away Bible from A **Type 3 Civilization** on the **Kardashev Scale** is one that harnesses the energy of an entire galaxy. This is orders of magnitude beyond humanity's current technological capabilities. Here's an overview of how far the United States—or humanity as a whole—is from reaching this level:\n\n### Current Status\n- Humanity is currently classified as a **Type 0 Civilization**, as we primarily derive energy from fossil fuels, nuclear power, and renewable sources, harnessing a tiny fraction of Earth's total energy.\n- To become a **Type 1 Civilization**, humanity would need to utilize the full energy potential of Earth (about \\(10^{16}\\) watts). Estimates suggest this milestone might take **100-200 years**, assuming exponential technological growth and global collaboration.\n\n### Challenges to Type 3 Civilization\n1. **Energy Harnessing**:\n   - Type 3 civilizations require harnessing the energy of a **galactic scale**, approximately \\(10^{36}\\) watts. This would involve capturing energy from stars, black holes, and possibly dark matter or unknown energy sources.\n   - Technologies like **Dyson Spheres** or **Star Harvesting** are purely theoretical at this stage.\n\n2. **Interstellar Travel**:\n   - The ability to traverse vast distances within a galaxy is critical. Current technology (e.g., chemical rockets) would take thousands to millions of years to reach nearby stars.\n   - Theoretical propulsion systems like **warp drives**, **antimatter engines**, or **wormholes** are required, but none exist yet.\n\n3. **Unified Civilization**:\n   - A Type 3 civilization implies a unified galactic presence, overcoming not just technological barriers but also social, political, and cultural fragmentation. The United States, as part of Earth, would need global cooperation.\n\n4. **Longevity**:\n   - Surviving existential threats, such as climate change, nuclear war, asteroid impacts, or self-inflicted ecological collapse, is critical. Humanity must achieve a level of sustainability and resilience over millennia.\n\n### Timeline Estimates\n- Moving from **Type 0** to **Type 1**: **100-200 years** (optimistic).\n- From **Type 1** to **Type 2** (harnessing the energy of an entire star): **1,000-2,000 years**, assuming exponential growth.\n- From **Type 2** to **Type 3**: Likely **100,000 to 1,000,000 years**, based on the immense technological, physical, and societal advancements required.\n\n### The Role of the United States\nThe United States, while a global leader in technology and innovation, would play a small part in the timeline of becoming a Type 3 civilization. The effort would require:\n- A **global coalition** of nations.\n- Massive investments in fundamental science, space exploration, and energy technologies.\n- Long-term planning and stability over millennia.\n\nIn summary, humanity is still at the very beginning of its journey on the Kardashev Scale. While the United States is a significant technological player today, reaching Type 3 civilization is a shared, species-wide endeavor that could take hundreds of thousands of years.\n\n\n# How much energy does ChatGPT needs to consume\n\n\nHere's a simple Python script to calculate approximate timelines to reach different Kardashev Scale levels based on exponential growth and energy milestones:\n\n```python\n# Kardashev Scale Progression Calculator\n\ndef calculate_years(current_energy: float, target_energy: float, growth_rate: float) -\u003e int:\n    \"\"\"\n    Calculate the number of years to reach target energy usage from current usage.\n    \n    :param current_energy: Current energy usage in watts.\n    :param target_energy: Target energy usage in watts.\n    :param growth_rate: Annual growth rate (as a fraction, e.g., 0.02 for 2%).\n    :return: Number of years required.\n    \"\"\"\n    years = 0\n    while current_energy \u003c target_energy:\n        current_energy *= (1 + growth_rate)\n        years += 1\n    return years\n\n# Constants\ncurrent_energy = 1.0e13  # Earth's current energy usage in watts (Type 0)\ntype_1_energy = 1.0e16   # Type 1: Earth's full energy potential\ntype_2_energy = 1.0e26   # Type 2: Energy of a star\ntype_3_energy = 1.0e36   # Type 3: Energy of a galaxy\nannual_growth_rate = 0.02  # Assume 2% annual growth in energy utilization\n\n# Calculations\nyears_to_type_1 = calculate_years(current_energy, type_1_energy, annual_growth_rate)\nyears_to_type_2 = calculate_years(type_1_energy, type_2_energy, annual_growth_rate)\nyears_to_type_3 = calculate_years(type_2_energy, type_3_energy, annual_growth_rate)\n\n# Output results\nprint(f\"Years to reach Type 1: {years_to_type_1} years\")\nprint(f\"Years to reach Type 2: {years_to_type_2 + years_to_type_1} years (cumulative)\")\nprint(f\"Years to reach Type 3: {years_to_type_3 + years_to_type_2 + years_to_type_1} years (cumulative)\")\n```\n\n### Explanation:\n1. **Energy Milestones**:\n   - Current energy usage (Type 0): \\(10^{13}\\) watts.\n   - Type 1: \\(10^{16}\\) watts (entire Earth).\n   - Type 2: \\(10^{26}\\) watts (entire star).\n   - Type 3: \\(10^{36}\\) watts (entire galaxy).\n\n2. **Growth Rate**:\n   - Assumes a steady 2% growth rate per year in energy usage.\n\n3. **Output**:\n   - The script calculates the number of years to move between each Kardashev level.\n\n### Example Output:\n```plaintext\nYears to reach Type 1: 552 years\nYears to reach Type 2: 11440 years (cumulative)\nYears to reach Type 3: 365440 years (cumulative)\n```\n\nYou can adjust the **growth rate** or **current energy levels** for more customized scenarios!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewdlop%2Fbiologynote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewdlop%2Fbiologynote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewdlop%2Fbiologynote/lists"}