<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: TPECKA180</title>
    <description>The latest articles on DEV Community by TPECKA180 (@tpecka180).</description>
    <link>https://dev.to/tpecka180</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4268916%2F69e49f2d-17e8-4066-a04e-efe0fe1436ae.png</url>
      <title>DEV Community: TPECKA180</title>
      <link>https://dev.to/tpecka180</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tpecka180"/>
    <language>en</language>
    <item>
      <title>Bringing Living Planet to 10 Languages with GitHub Pages — TPECKA180 (ТРЕСКА180)</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Sun, 29 Nov 2026 11:49:41 +0000</pubDate>
      <link>https://dev.to/tpecka180/bringing-living-planet-to-10-languages-with-github-pages-tpecka180-trieska180-46l0</link>
      <guid>https://dev.to/tpecka180/bringing-living-planet-to-10-languages-with-github-pages-tpecka180-trieska180-46l0</guid>
      <description>&lt;h1&gt;
  
  
  Bringing Living Planet to 10 Languages with GitHub Pages — TPECKA180 (ТРЕСКА180)
&lt;/h1&gt;

&lt;p&gt;Today, November 29, 2026, marks an important milestone in the development of Living Planet, my experimental AI civilization simulator.&lt;/p&gt;

&lt;p&gt;I introduced a multilingual foundation supporting ten languages and created a dedicated international portal using GitHub Pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New portal:&lt;/strong&gt; &lt;a href="https://tpecka180.github.io/living-planet/en/" rel="noopener noreferrer"&gt;https://tpecka180.github.io/living-planet/en/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At first, internationalization seemed like a relatively straightforward task. Translate the interface, update the documentation, add a language selector, and publish the result.&lt;/p&gt;

&lt;p&gt;However, when your application is a complex simulation controlled by autonomous AI agents, localization becomes a much more interesting engineering problem.&lt;/p&gt;

&lt;p&gt;It affects not only the interface but also the architecture, documentation, data representation, compatibility, distribution, and future maintenance of the entire project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why translating a README was not enough
&lt;/h2&gt;

&lt;p&gt;Living Planet was originally developed in Russian.&lt;/p&gt;

&lt;p&gt;I had already introduced multilingual README files on GitHub, allowing international visitors to learn about the project in their own language.&lt;/p&gt;

&lt;p&gt;However, this created an obvious limitation.&lt;/p&gt;

&lt;p&gt;A developer from Germany, Japan, Brazil, or France could read about the project in a familiar language, download the application, and encounter a predominantly Russian interface.&lt;/p&gt;

&lt;p&gt;The same problem affected technical documentation and development history.&lt;/p&gt;

&lt;p&gt;Translating a README makes a project easier to discover, but it does not necessarily make the product easier to use.&lt;/p&gt;

&lt;p&gt;I wanted to go beyond that.&lt;/p&gt;

&lt;p&gt;The objective is to gradually transform Living Planet into a genuinely international project without abandoning its original Russian identity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ten languages, one project
&lt;/h2&gt;

&lt;p&gt;The internationalization architecture now includes the following languages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Russian&lt;/li&gt;
&lt;li&gt;English&lt;/li&gt;
&lt;li&gt;Spanish&lt;/li&gt;
&lt;li&gt;Simplified Chinese&lt;/li&gt;
&lt;li&gt;Brazilian Portuguese&lt;/li&gt;
&lt;li&gt;German&lt;/li&gt;
&lt;li&gt;French&lt;/li&gt;
&lt;li&gt;Japanese&lt;/li&gt;
&lt;li&gt;Korean&lt;/li&gt;
&lt;li&gt;Italian&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One possibility I initially considered was creating separate language-specific versions using GitHub forks.&lt;/p&gt;

&lt;p&gt;Each fork could theoretically contain its own translated interface, documentation, and development materials.&lt;/p&gt;

&lt;p&gt;But maintaining ten independent versions of an actively developed simulation would introduce enormous complexity.&lt;/p&gt;

&lt;p&gt;Every new feature would need to be synchronized across multiple repositories. Bug fixes could arrive at different times. Documentation could become inconsistent. Different language versions might gradually develop incompatible behavior.&lt;/p&gt;

&lt;p&gt;For a solo developer, this would be an unnecessarily expensive maintenance strategy.&lt;/p&gt;

&lt;p&gt;Instead, I decided to keep a single repository and a shared simulation engine.&lt;/p&gt;

&lt;p&gt;All languages should use the same game logic, AI architecture, save format, and development history.&lt;/p&gt;

&lt;p&gt;Only the presentation layer should change according to the user's language.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the localization architecture
&lt;/h2&gt;

&lt;p&gt;The current internationalization work is based on the stable Living Planet v8.5.4 source.&lt;/p&gt;

&lt;p&gt;Rather than duplicating the entire application, translations are organized into dedicated locale directories.&lt;/p&gt;

&lt;p&gt;The architecture uses language-specific JSON catalogs organized by functional category.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;localization/
├── ru/
├── en/
├── es/
├── zh-CN/
├── pt-BR/
├── de/
├── fr/
├── ja/
├── ko/
└── it/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each locale contains six initial categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Menu&lt;/li&gt;
&lt;li&gt;Settings&lt;/li&gt;
&lt;li&gt;Launcher&lt;/li&gt;
&lt;li&gt;Interface&lt;/li&gt;
&lt;li&gt;AI&lt;/li&gt;
&lt;li&gt;Game&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The initial verification snapshot contains 312 matching message identifiers per language.&lt;/p&gt;

&lt;p&gt;Across ten languages, this represents 3,120 catalog entries.&lt;/p&gt;

&lt;p&gt;However, having the same number of keys in every language does not automatically mean the entire application is translated.&lt;/p&gt;

&lt;p&gt;This is an important distinction.&lt;/p&gt;

&lt;p&gt;A localization validator can confirm that every existing key has a corresponding translation. It cannot necessarily detect interface strings that have never been extracted into the localization system.&lt;/p&gt;

&lt;p&gt;Complete internationalization requires auditing the actual user-facing code, not simply counting translation entries.&lt;/p&gt;

&lt;h2&gt;
  
  
  The danger of translating internal identifiers
&lt;/h2&gt;

&lt;p&gt;Living Planet is not a conventional application with a collection of independent buttons and menus.&lt;/p&gt;

&lt;p&gt;It is a simulation where local language models make decisions for autonomous countries.&lt;/p&gt;

&lt;p&gt;These decisions interact with economic systems, military operations, diplomacy, resources, technology, and persistent world data.&lt;/p&gt;

&lt;p&gt;A resource may have a translated name, but its internal identifier must remain unchanged.&lt;/p&gt;

&lt;p&gt;A simplified example would be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Internal identifier: food

English: Food
Russian: Еда
German: Nahrung
Japanese: 食料
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The simulation should continue using the same internal resource identifier regardless of the selected language.&lt;/p&gt;

&lt;p&gt;If translated labels become part of the underlying game logic, changing languages could potentially introduce broken resource references, invalid AI commands, or incompatible saved worlds.&lt;/p&gt;

&lt;p&gt;The internationalization architecture therefore separates presentation text from internal game data.&lt;/p&gt;

&lt;p&gt;Action identifiers, protocol fields, resource identifiers, and save keys must remain stable.&lt;/p&gt;

&lt;p&gt;This is particularly important when future versions introduce additional AI capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  The challenge of localizing autonomous AI agents
&lt;/h2&gt;

&lt;p&gt;One of the most difficult remaining problems is the localization of dynamically generated content.&lt;/p&gt;

&lt;p&gt;Living Planet uses local language models to control autonomous states.&lt;/p&gt;

&lt;p&gt;These states generate decisions, diplomatic correspondence, plans, explanations, and historical narratives.&lt;/p&gt;

&lt;p&gt;Unlike predefined interface strings, these messages cannot all be translated in advance.&lt;/p&gt;

&lt;p&gt;There are several possible approaches.&lt;/p&gt;

&lt;p&gt;The model could generate user-facing messages directly in the selected language while preserving a language-independent action protocol.&lt;/p&gt;

&lt;p&gt;Alternatively, the simulation could preserve its original internal language and translate generated messages before displaying them.&lt;/p&gt;

&lt;p&gt;Another possibility is combining structured event localization with selective translation of free-form AI-generated text.&lt;/p&gt;

&lt;p&gt;Each approach introduces different trade-offs.&lt;/p&gt;

&lt;p&gt;Additional translation requests consume processing time. Changing the language of AI prompts may influence decision quality. Loading an additional model may require more memory. Generated translations can also alter subtle diplomatic meanings.&lt;/p&gt;

&lt;p&gt;Since Living Planet is designed around local AI execution, I cannot simply assume that unlimited cloud computing resources are available.&lt;/p&gt;

&lt;p&gt;The development environment includes an RTX 3060 with 12 GB of VRAM and 16 GB of system memory.&lt;/p&gt;

&lt;p&gt;Internationalization must respect those hardware limitations.&lt;/p&gt;

&lt;p&gt;The objective is to make the simulation understandable to international users without unnecessarily slowing down the autonomous civilizations.&lt;/p&gt;

&lt;p&gt;Full validation of multilingual live-model output remains part of the ongoing work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supporting Chinese, Japanese, and Korean
&lt;/h2&gt;

&lt;p&gt;Another challenge is font compatibility.&lt;/p&gt;

&lt;p&gt;Supporting English, Russian, German, or Spanish is relatively straightforward compared with supporting the full character sets required by Chinese, Japanese, and Korean.&lt;/p&gt;

&lt;p&gt;An application may technically contain a correct translation but fail to display it because the selected font does not contain the necessary characters.&lt;/p&gt;

&lt;p&gt;Missing glyphs can turn otherwise valid translations into unreadable text.&lt;/p&gt;

&lt;p&gt;The current internationalization work includes Noto Sans CJK fonts for Simplified Chinese, Japanese, and Korean.&lt;/p&gt;

&lt;p&gt;These fonts are distributed under the SIL Open Font License.&lt;/p&gt;

&lt;p&gt;Including suitable fonts directly with the application reduces dependence on language components installed on the user's operating system.&lt;/p&gt;

&lt;p&gt;But font availability is only one part of the problem.&lt;/p&gt;

&lt;p&gt;Different languages also require different line lengths, spacing, wrapping behavior, and interface layouts.&lt;/p&gt;

&lt;p&gt;A button that comfortably displays an English word may not have enough space for its German equivalent.&lt;/p&gt;

&lt;p&gt;Japanese and Chinese text can require different wrapping behavior.&lt;/p&gt;

&lt;p&gt;These issues require visual testing rather than purely automated translation checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I created a GitHub Pages portal
&lt;/h2&gt;

&lt;p&gt;After designing the multilingual architecture, I started thinking about how international users would actually navigate the project.&lt;/p&gt;

&lt;p&gt;A GitHub repository is excellent for source code, issues, pull requests, releases, and technical collaboration.&lt;/p&gt;

&lt;p&gt;However, browsing numerous directories and Markdown documents is not necessarily the most convenient experience for someone discovering a game for the first time.&lt;/p&gt;

&lt;p&gt;I wanted to preserve the traditional GitHub repository while adding a more accessible presentation layer.&lt;/p&gt;

&lt;p&gt;That led me to GitHub Pages.&lt;/p&gt;

&lt;p&gt;The new portal is available here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://tpecka180.github.io/living-planet/en/" rel="noopener noreferrer"&gt;https://tpecka180.github.io/living-planet/en/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of replacing GitHub, the portal provides an additional way to explore Living Planet.&lt;/p&gt;

&lt;p&gt;The repository remains the original technical source of the project.&lt;/p&gt;

&lt;p&gt;The website provides a more convenient environment for navigating localized materials, development history, help pages, and available releases.&lt;/p&gt;

&lt;h2&gt;
  
  
  One website with ten language routes
&lt;/h2&gt;

&lt;p&gt;The international portal uses separate language-specific routes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/living-planet/ru/
/living-planet/en/
/living-planet/es/
/living-planet/zh-CN/
/living-planet/pt-BR/
/living-planet/de/
/living-planet/fr/
/living-planet/ja/
/living-planet/ko/
/living-planet/it/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This structure has several advantages.&lt;/p&gt;

&lt;p&gt;Users can share direct links to localized pages. Navigation can remain consistent across languages. Search engines can discover individual language versions rather than depending entirely on a JavaScript-based translation selector.&lt;/p&gt;

&lt;p&gt;The portal includes localized navigation for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Project overview&lt;/li&gt;
&lt;li&gt;Releases and downloads&lt;/li&gt;
&lt;li&gt;Game help&lt;/li&gt;
&lt;li&gt;Development history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The expanded site architecture therefore provides forty localized pages across these four main page types, in addition to shared pages and resources.&lt;/p&gt;

&lt;p&gt;The goal is to let users explore the project without manually searching through repository folders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preserving the original Git history
&lt;/h2&gt;

&lt;p&gt;One particularly interesting idea was making the complete development history accessible through the international portal.&lt;/p&gt;

&lt;p&gt;Living Planet has an existing Git history that documents its evolution.&lt;/p&gt;

&lt;p&gt;Rewriting old commit messages simply to translate them would change commit identifiers and introduce unnecessary compatibility problems.&lt;/p&gt;

&lt;p&gt;I did not want to sacrifice the authenticity of the original development history for localization.&lt;/p&gt;

&lt;p&gt;Instead, the portal uses exported commit metadata.&lt;/p&gt;

&lt;p&gt;The history system preserves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Original commit SHA&lt;/li&gt;
&lt;li&gt;Author&lt;/li&gt;
&lt;li&gt;Date&lt;/li&gt;
&lt;li&gt;Original commit subject&lt;/li&gt;
&lt;li&gt;Commit description, where available&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The initial development snapshot contained 67 original Git commits.&lt;/p&gt;

&lt;p&gt;A dedicated history export tool collects this information into structured data for the portal.&lt;/p&gt;

&lt;p&gt;Users can browse the history and search using commit metadata.&lt;/p&gt;

&lt;p&gt;The interface around this history is localized, but the original commit messages are currently preserved rather than presented as completed translations.&lt;/p&gt;

&lt;p&gt;The long-term goal is to add complete translated commit descriptions while maintaining their association with the original SHA identifiers.&lt;/p&gt;

&lt;p&gt;This way, internationalization does not require rewriting the past.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a multilingual release catalog
&lt;/h2&gt;

&lt;p&gt;Another important part of the portal is the release and download system.&lt;/p&gt;

&lt;p&gt;Instead of requiring users to search through GitHub Releases manually, the portal provides a localized interface for exploring versions.&lt;/p&gt;

&lt;p&gt;The expanded architecture includes a structured release catalog and dedicated release pages for each language.&lt;/p&gt;

&lt;p&gt;Download links point to the original release assets and source archives.&lt;/p&gt;

&lt;p&gt;This avoids unnecessarily duplicating large installers across multiple language versions.&lt;/p&gt;

&lt;p&gt;It also allows the project to preserve older versions while continuing development.&lt;/p&gt;

&lt;p&gt;The current portal is based on the stable v8.5.4 release boundary.&lt;/p&gt;

&lt;p&gt;Experimental builds from later development branches are not automatically presented as stable public releases.&lt;/p&gt;

&lt;p&gt;I consider this separation important because a development website should accurately represent what users can actually download and use.&lt;/p&gt;

&lt;h2&gt;
  
  
  International SEO without a marketing budget
&lt;/h2&gt;

&lt;p&gt;As an independent developer, I currently work with a promotional budget of zero.&lt;/p&gt;

&lt;p&gt;Internationalization is therefore not only a technical decision but also a discoverability strategy.&lt;/p&gt;

&lt;p&gt;A dedicated website provides more control over how project documentation is presented to search engines.&lt;/p&gt;

&lt;p&gt;The portal architecture includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Localized page titles&lt;/li&gt;
&lt;li&gt;Meta descriptions&lt;/li&gt;
&lt;li&gt;Canonical URLs&lt;/li&gt;
&lt;li&gt;Hreflang annotations&lt;/li&gt;
&lt;li&gt;Open Graph metadata&lt;/li&gt;
&lt;li&gt;XML sitemap&lt;/li&gt;
&lt;li&gt;Robots.txt&lt;/li&gt;
&lt;li&gt;Language-specific page addresses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These features do not guarantee better search rankings.&lt;/p&gt;

&lt;p&gt;They simply make the website easier for search engines to understand and discover.&lt;/p&gt;

&lt;p&gt;I would rather build genuinely useful multilingual documentation than generate hundreds of meaningless pages purely for search traffic.&lt;/p&gt;

&lt;p&gt;The same philosophy applies to my identity as a developer.&lt;/p&gt;

&lt;p&gt;I use both my original Latin-character nickname, TPECKA180, and its Cyrillic equivalent, ТРЕСКА180.&lt;/p&gt;

&lt;p&gt;The international version of Living Planet should expand the project's accessibility without erasing its origins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automating validation and deployment
&lt;/h2&gt;

&lt;p&gt;Maintaining ten languages manually can quickly become a source of technical debt.&lt;/p&gt;

&lt;p&gt;Every new feature introduces additional text. Every changed message may require nine new translations. Every new release requires documentation updates.&lt;/p&gt;

&lt;p&gt;This makes automation essential.&lt;/p&gt;

&lt;p&gt;The current architecture includes dedicated tools for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tools/check_localization.py
tools/build_site.py
tools/build_history.py
tools/check_site.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These tools are intended to validate translation catalogs, generate localized pages, export development history, and verify the resulting website.&lt;/p&gt;

&lt;p&gt;The localization checker examines encoding, JSON structure, duplicate keys, placeholder consistency, and matching message identifiers.&lt;/p&gt;

&lt;p&gt;The website checker validates language routes, local assets, metadata, release records, sitemap entries, and consistency between exported history and the original Git repository.&lt;/p&gt;

&lt;p&gt;A dedicated GitHub Actions workflow handles Pages deployment.&lt;/p&gt;

&lt;p&gt;This reduces the amount of repetitive manual work required whenever the website changes.&lt;/p&gt;

&lt;p&gt;The long-term objective is to make internationalization part of the normal development process rather than treating it as a separate task performed once every few months.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development and testing results
&lt;/h2&gt;

&lt;p&gt;The initial internationalization verification report records the following results:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Reported result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Supported locale catalogs&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Catalog categories per locale&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matching message IDs per locale&lt;/td&gt;
&lt;td&gt;312&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total initial catalog entries&lt;/td&gt;
&lt;td&gt;3,120&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automated unit tests passed&lt;/td&gt;
&lt;td&gt;535&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Original Git commits in the initial history snapshot&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Localized overview and setup documents&lt;/td&gt;
&lt;td&gt;20, including Russian originals&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CJK font families included&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Portable Windows ZIP size&lt;/td&gt;
&lt;td&gt;Approximately 109.6 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A portable Windows build was also created and launched during this stage.&lt;/p&gt;

&lt;p&gt;However, these results must be interpreted carefully.&lt;/p&gt;

&lt;p&gt;Passing 535 automated tests does not automatically establish complete translation quality, compatibility with every existing saved world, or equivalent AI behavior across ten languages.&lt;/p&gt;

&lt;p&gt;Similarly, catalog parity does not prove that every visible interface string has been localized.&lt;/p&gt;

&lt;p&gt;The project still requires broader visual testing, additional documentation translations, complete commit-message translations, live-model validation, and further performance measurements.&lt;/p&gt;

&lt;p&gt;The initial report also notes that a new installer executable was not built because the required installer compiler was unavailable in that development environment.&lt;/p&gt;

&lt;p&gt;I prefer to document these limitations rather than present an incomplete internationalization effort as a finished product.&lt;/p&gt;

&lt;h2&gt;
  
  
  The difficulties of maintaining everything together
&lt;/h2&gt;

&lt;p&gt;Perhaps the biggest lesson from this work is that internationalization is not simply a translation problem.&lt;/p&gt;

&lt;p&gt;It is a synchronization problem.&lt;/p&gt;

&lt;p&gt;The application, documentation, release catalog, website, development history, and translations all need to describe the same actual project.&lt;/p&gt;

&lt;p&gt;If the game introduces a new feature but its documentation describes an older version, international users receive misleading information.&lt;/p&gt;

&lt;p&gt;If a translation changes a technical identifier, it may break the connection between documentation and implementation.&lt;/p&gt;

&lt;p&gt;If the portal displays an experimental build as a stable release, users may download something that is not ready.&lt;/p&gt;

&lt;p&gt;If translated commit descriptions become detached from their original SHA identifiers, the development history loses reliability.&lt;/p&gt;

&lt;p&gt;Solving these problems requires a consistent architecture, validation tools, and clear release boundaries.&lt;/p&gt;

&lt;p&gt;For a solo developer, designing these systems correctly is particularly important.&lt;/p&gt;

&lt;p&gt;I cannot maintain ten completely independent projects.&lt;/p&gt;

&lt;p&gt;I need one project that speaks ten languages.&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes next
&lt;/h2&gt;

&lt;p&gt;The multilingual portal represents an important step, but the internationalization process is not finished.&lt;/p&gt;

&lt;p&gt;The next challenges include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Expanding application localization coverage.&lt;/li&gt;
&lt;li&gt;Translating remaining technical documentation.&lt;/li&gt;
&lt;li&gt;Completing translated development history.&lt;/li&gt;
&lt;li&gt;Improving localization of AI-generated messages.&lt;/li&gt;
&lt;li&gt;Testing language switching with real saved worlds.&lt;/li&gt;
&lt;li&gt;Measuring the performance impact of dynamic translation.&lt;/li&gt;
&lt;li&gt;Improving the multilingual Windows distribution.&lt;/li&gt;
&lt;li&gt;Maintaining translation consistency during future releases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My long-term objective remains the same: Living Planet should be accessible to anyone interested in autonomous AI civilizations, regardless of their native language.&lt;/p&gt;

&lt;p&gt;And it should remain a free project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Living Planet started as a Russian-language experiment in autonomous civilization simulation.&lt;/p&gt;

&lt;p&gt;Today, it has taken an important step toward becoming an international project.&lt;/p&gt;

&lt;p&gt;The original repository remains intact, the Russian language remains supported, and the international architecture provides a foundation for reaching users around the world.&lt;/p&gt;

&lt;p&gt;Creating a multilingual application is considerably more complicated than translating its README.&lt;/p&gt;

&lt;p&gt;But I believe the additional engineering work is worthwhile.&lt;/p&gt;

&lt;p&gt;A technically interesting project becomes more valuable when more people can understand it, use it, criticize it, and contribute to its development.&lt;/p&gt;

&lt;p&gt;If you have experience with localization, internationalization, multilingual documentation, or AI-generated content translation, I would be interested in hearing how you approach these challenges.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Explore Living Planet:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;International portal: &lt;a href="https://tpecka180.github.io/living-planet/en/" rel="noopener noreferrer"&gt;https://tpecka180.github.io/living-planet/en/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Original GitHub repository: &lt;a href="https://github.com/TPECKA180/living-planet" rel="noopener noreferrer"&gt;https://github.com/TPECKA180/living-planet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Global Observatory: &lt;a href="https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Author:&lt;/strong&gt; TPECKA180 (ТРЕСКА180)&lt;/p&gt;

&lt;p&gt;Independent developer and original creator of Living Planet.&lt;/p&gt;

</description>
      <category>github</category>
      <category>localization</category>
      <category>ai</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>TZIPER180: Building a Hybrid CPU-GPU Compression Engine — TPECKA180 (ТРЕСКА180)</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Sat, 28 Nov 2026 18:42:08 +0000</pubDate>
      <link>https://dev.to/tpecka180/tziper180-building-a-hybrid-cpu-gpu-compression-engine-tpecka180-trieska180-2000</link>
      <guid>https://dev.to/tpecka180/tziper180-building-a-hybrid-cpu-gpu-compression-engine-tpecka180-trieska180-2000</guid>
      <description>&lt;h1&gt;
  
  
  TZIPER180: Building a Hybrid CPU-GPU Compression Engine — TPECKA180 (ТРЕСКА180)
&lt;/h1&gt;

&lt;p&gt;File compression is an interesting engineering problem because performance is not determined by a single component.&lt;/p&gt;

&lt;p&gt;A powerful processor does not automatically guarantee fast compression. A powerful graphics card does not automatically make every compression algorithm faster. Even a well-optimized codec can perform poorly if the storage system becomes the bottleneck.&lt;/p&gt;

&lt;p&gt;While developing my experimental file archiver, TZIPER180, I started exploring a question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if an archiver could intelligently distribute compression workloads between the CPU and GPU instead of relying primarily on one computational device?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is one of the main directions I am currently exploring in version 0.4.8.&lt;/p&gt;

&lt;p&gt;The objective is not simply to add GPU acceleration as a feature. I want to investigate whether a genuinely hybrid compression architecture can improve overall performance without sacrificing compression efficiency or data integrity.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limitations of the previous architecture
&lt;/h2&gt;

&lt;p&gt;Before starting development of version 0.4.8, I reviewed the actual capabilities of version 0.4.7.&lt;/p&gt;

&lt;p&gt;The existing implementation included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zstandard.&lt;/li&gt;
&lt;li&gt;LZ4.&lt;/li&gt;
&lt;li&gt;LZMA2.&lt;/li&gt;
&lt;li&gt;GPU-accelerated run-length encoding.&lt;/li&gt;
&lt;li&gt;Adaptive codec selection modes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, several larger architectural ideas were still unimplemented, including global deduplication, solid compression, an advanced decision-making system called T180 Brain, and a complete set of specialized compression profiles.&lt;/p&gt;

&lt;p&gt;I consider it important to distinguish implemented functionality from planned functionality.&lt;/p&gt;

&lt;p&gt;Instead of pretending that these systems already existed, I decided to establish a reliable performance baseline and improve the actual compression pipeline.&lt;/p&gt;

&lt;p&gt;One of the first discoveries was that an important bottleneck had surprisingly little to do with compression mathematics.&lt;/p&gt;

&lt;p&gt;It was unnecessary disk access.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hidden cost of reading files multiple times
&lt;/h2&gt;

&lt;p&gt;In version 0.4.7, the archiver could perform a complete preliminary read of an input file to calculate its CRC checksum.&lt;/p&gt;

&lt;p&gt;The same file would then be read again during compression or transfer to the GPU.&lt;/p&gt;

&lt;p&gt;For small files, this overhead might be relatively insignificant.&lt;/p&gt;

&lt;p&gt;For large files, particularly when using a mechanical hard drive, it can become expensive.&lt;/p&gt;

&lt;p&gt;Consider a large file that must be read once to calculate its checksum and then read again to compress it.&lt;/p&gt;

&lt;p&gt;The second operation is necessary.&lt;/p&gt;

&lt;p&gt;But is the first one?&lt;/p&gt;

&lt;p&gt;Most compression pipelines already process the original bytes during encoding. That creates an opportunity to calculate the checksum during the actual compression pass instead of requiring an independent full-file read.&lt;/p&gt;

&lt;p&gt;The redesigned pipeline in version 0.4.8 attempts to eliminate this redundant operation wherever it can be done safely.&lt;/p&gt;

&lt;p&gt;CRC calculation is integrated into the processing of the actual input blocks.&lt;/p&gt;

&lt;p&gt;This preserves integrity checking while reducing unnecessary source reads.&lt;/p&gt;

&lt;p&gt;It is a useful reminder that improving a compression engine does not always require inventing a new compression algorithm.&lt;/p&gt;

&lt;p&gt;Sometimes the most effective optimization is removing work that should never have been necessary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing the HYBRID compression mode
&lt;/h2&gt;

&lt;p&gt;The central experiment in version 0.4.8 is a dedicated mode called HYBRID.&lt;/p&gt;

&lt;p&gt;Instead of selecting either the processor or the graphics card for an entire archive, HYBRID attempts to distribute suitable workloads between them.&lt;/p&gt;

&lt;p&gt;The current architecture evaluates individual files and determines whether they are appropriate candidates for GPU processing.&lt;/p&gt;

&lt;p&gt;Suitable files can be processed through a DirectCompute-based GPU run-length encoding implementation.&lt;/p&gt;

&lt;p&gt;Other files are processed through CPU-based compression methods, currently including Zstandard or raw storage in the hybrid path.&lt;/p&gt;

&lt;p&gt;Different files can be processed in parallel worker threads, allowing CPU and GPU operations to overlap.&lt;/p&gt;

&lt;p&gt;The basic architecture looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    INPUT FILES
                         |
                 Workload analysis
                         |
               Adaptive codec selection
                    /          \
                   /            \
          CPU compression    GPU compression
          Zstandard / RAW    DirectCompute RLE
                   \            /
                    \          /
                 Archive assembly
                         |
                  Integrity checks
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an important architectural distinction.&lt;/p&gt;

&lt;p&gt;The graphics card is no longer merely an optional alternative to the processor.&lt;/p&gt;

&lt;p&gt;Both computational devices can participate in the same archive creation operation.&lt;/p&gt;

&lt;p&gt;However, the current implementation is an initial file-level hybrid system. It does not yet represent a fully developed heterogeneous compression scheduler capable of dynamically distributing every individual compression stage.&lt;/p&gt;

&lt;p&gt;That remains a future engineering challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why maximum GPU utilization is not always the correct objective
&lt;/h2&gt;

&lt;p&gt;One of my original ambitions was to utilize the available computational hardware as aggressively as possible.&lt;/p&gt;

&lt;p&gt;Ideally, the archiver should make effective use of all available CPU cores and a substantial portion of GPU resources whenever the workload benefits from parallel processing.&lt;/p&gt;

&lt;p&gt;But hardware utilization alone can be a misleading performance metric.&lt;/p&gt;

&lt;p&gt;A GPU operating at 100% utilization is not necessarily improving compression performance.&lt;/p&gt;

&lt;p&gt;It might simply be performing an inefficient task.&lt;/p&gt;

&lt;p&gt;For example, run-length encoding is relatively simple and can be attractive for parallel GPU execution.&lt;/p&gt;

&lt;p&gt;However, its compression efficiency depends heavily on the structure of the input data.&lt;/p&gt;

&lt;p&gt;A more advanced CPU-based codec may produce a significantly smaller output, even if the GPU completes its operation quickly.&lt;/p&gt;

&lt;p&gt;There are also additional costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transferring data into GPU memory.&lt;/li&gt;
&lt;li&gt;Synchronizing GPU workloads.&lt;/li&gt;
&lt;li&gt;Transferring compressed results back to system memory.&lt;/li&gt;
&lt;li&gt;Managing memory allocations.&lt;/li&gt;
&lt;li&gt;Coordinating CPU and GPU worker threads.&lt;/li&gt;
&lt;li&gt;Writing compressed output to storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An effective hybrid system must consider these costs rather than assuming that GPU acceleration is inherently beneficial.&lt;/p&gt;

&lt;p&gt;My goal is therefore evolving from simply maximizing hardware utilization toward maximizing useful computational throughput.&lt;/p&gt;

&lt;p&gt;The hardware should remain busy when there is productive work available.&lt;/p&gt;

&lt;p&gt;It should not perform unnecessary operations merely to make a utilization graph look impressive.&lt;/p&gt;

&lt;h2&gt;
  
  
  An unexpected compression result
&lt;/h2&gt;

&lt;p&gt;During the development of version 0.4.8, a test involving a file containing zeros demonstrated why adaptive codec selection matters.&lt;/p&gt;

&lt;p&gt;The development test reported the following compressed payload sizes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Compression method&lt;/th&gt;
&lt;th&gt;Compressed payload&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Forced GPU-RLE&lt;/td&gt;
&lt;td&gt;1,572,868 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HYBRID selecting Zstandard&lt;/td&gt;
&lt;td&gt;16,843 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Despite the extremely repetitive input, the current GPU-RLE implementation produced a substantially larger compressed payload.&lt;/p&gt;

&lt;p&gt;Zstandard produced an output approximately 93 times smaller.&lt;/p&gt;

&lt;p&gt;This does not demonstrate that GPU compression is generally inferior to CPU compression.&lt;/p&gt;

&lt;p&gt;It demonstrates that the specific GPU codec currently implemented in TZIPER180 was not the appropriate choice for this particular workload.&lt;/p&gt;

&lt;p&gt;Forcing the GPU to compress that file simply because GPU acceleration was available would have been a poor architectural decision.&lt;/p&gt;

&lt;p&gt;The HYBRID mode was therefore extended to estimate not only whether data is suitable for run-length encoding, but also whether the resulting representation is likely to be competitive with CPU-based compression.&lt;/p&gt;

&lt;p&gt;If the GPU representation is expected to increase the archive size significantly, the file is redirected to a CPU codec.&lt;/p&gt;

&lt;p&gt;This is exactly the type of decision-making I want to expand in future versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adaptive compression instead of fixed compression
&lt;/h2&gt;

&lt;p&gt;Traditional compression settings often ask users to make decisions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which compression algorithm should be used?&lt;/li&gt;
&lt;li&gt;Which compression level should be selected?&lt;/li&gt;
&lt;li&gt;How many CPU threads should be enabled?&lt;/li&gt;
&lt;li&gt;Should compression prioritize speed or archive size?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These options are useful, but they require the user to understand the characteristics of the workload.&lt;/p&gt;

&lt;p&gt;I want TZIPER180 to increasingly make these decisions internally.&lt;/p&gt;

&lt;p&gt;In the current HYBRID implementation, small samples distributed across a file help estimate its suitability for GPU-RLE without requiring a complete preliminary scan.&lt;/p&gt;

&lt;p&gt;In the future, this analysis could become significantly more advanced.&lt;/p&gt;

&lt;p&gt;Potential decision factors include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Estimated data entropy.&lt;/li&gt;
&lt;li&gt;Repeated byte sequences.&lt;/li&gt;
&lt;li&gt;Repeated blocks across files.&lt;/li&gt;
&lt;li&gt;File size.&lt;/li&gt;
&lt;li&gt;Predicted compression ratio.&lt;/li&gt;
&lt;li&gt;Predicted encoding time.&lt;/li&gt;
&lt;li&gt;GPU transfer overhead.&lt;/li&gt;
&lt;li&gt;Available CPU worker capacity.&lt;/li&gt;
&lt;li&gt;Available GPU memory.&lt;/li&gt;
&lt;li&gt;Storage throughput.&lt;/li&gt;
&lt;li&gt;Current hardware utilization.&lt;/li&gt;
&lt;li&gt;The user's selected balance between speed and compression efficiency.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rather than treating every file in an archive identically, the archiver could select a processing strategy based on the characteristics of each workload.&lt;/p&gt;

&lt;p&gt;This is part of the broader idea behind the planned T180 Brain system.&lt;/p&gt;

&lt;p&gt;T180 Brain is not yet a completed component. It represents a future direction for a more sophisticated compression decision engine.&lt;/p&gt;

&lt;p&gt;The current HYBRID implementation is an initial step toward that architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data integrity remains non-negotiable
&lt;/h2&gt;

&lt;p&gt;Performance optimization is meaningless if an archiver cannot reliably restore the original data.&lt;/p&gt;

&lt;p&gt;Every change to the compression pipeline must preserve correctness.&lt;/p&gt;

&lt;p&gt;The first reported round-trip test of the new HYBRID implementation processed 512 MiB of data.&lt;/p&gt;

&lt;p&gt;After compression and extraction:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The original data was restored byte for byte.&lt;/li&gt;
&lt;li&gt;SHA-256 checksums matched.&lt;/li&gt;
&lt;li&gt;The integrity verification passed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is an encouraging initial result, but it is not sufficient to establish production-level reliability.&lt;/p&gt;

&lt;p&gt;A complete validation process must include many different file types, archive sizes, compression modes, interruption scenarios, and corrupted input conditions.&lt;/p&gt;

&lt;p&gt;In particular, removing preliminary checksum passes introduces a requirement to ensure that the data being compressed does not change unexpectedly during processing.&lt;/p&gt;

&lt;p&gt;The implementation therefore also addresses the protection of source files against concurrent modification while they are being read.&lt;/p&gt;

&lt;p&gt;Compression performance should never come at the cost of silent data corruption.&lt;/p&gt;

&lt;h2&gt;
  
  
  The next major challenge: hardware scheduling
&lt;/h2&gt;

&lt;p&gt;The current HYBRID mode distributes different files between CPU and GPU workers.&lt;/p&gt;

&lt;p&gt;But this is only the beginning.&lt;/p&gt;

&lt;p&gt;A more advanced scheduler could potentially divide large workloads into independent blocks, provided that the codec and archive format support this without unacceptable compression losses.&lt;/p&gt;

&lt;p&gt;It could monitor available computational resources and dynamically adjust the distribution of tasks.&lt;/p&gt;

&lt;p&gt;For example, consider an archive containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large binary files.&lt;/li&gt;
&lt;li&gt;Source code.&lt;/li&gt;
&lt;li&gt;Repetitive data.&lt;/li&gt;
&lt;li&gt;Executables.&lt;/li&gt;
&lt;li&gt;Images.&lt;/li&gt;
&lt;li&gt;Already compressed multimedia.&lt;/li&gt;
&lt;li&gt;Thousands of small documents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These workloads have very different characteristics.&lt;/p&gt;

&lt;p&gt;Some might benefit from CPU compression.&lt;/p&gt;

&lt;p&gt;Others could potentially benefit from GPU-based preprocessing or specialized parallel algorithms.&lt;/p&gt;

&lt;p&gt;Some should be stored without further compression.&lt;/p&gt;

&lt;p&gt;A future hybrid scheduler should ideally recognize these differences and prevent individual computational resources from remaining idle when useful work is available.&lt;/p&gt;

&lt;p&gt;Possible future pipeline improvements include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separate CPU and GPU task queues.&lt;/li&gt;
&lt;li&gt;Dynamic workload balancing.&lt;/li&gt;
&lt;li&gt;Asynchronous GPU execution.&lt;/li&gt;
&lt;li&gt;Overlapping data transfers and compression.&lt;/li&gt;
&lt;li&gt;Double-buffered input processing.&lt;/li&gt;
&lt;li&gt;Memory pooling.&lt;/li&gt;
&lt;li&gt;Storage-aware scheduling.&lt;/li&gt;
&lt;li&gt;Parallel checksum calculations.&lt;/li&gt;
&lt;li&gt;Adaptive block sizing.&lt;/li&gt;
&lt;li&gt;GPU-assisted data analysis.&lt;/li&gt;
&lt;li&gt;Hybrid preprocessing and CPU-based final encoding.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are planned research and development directions, not completed features of version 0.4.8.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with existing GPU compression efficiency
&lt;/h2&gt;

&lt;p&gt;Another important observation from the current development process is that GPU acceleration requires suitable algorithms.&lt;/p&gt;

&lt;p&gt;The existing GPU-RLE codec is relatively limited.&lt;/p&gt;

&lt;p&gt;It can process certain patterns, but it is not designed to replace more sophisticated general-purpose compression algorithms.&lt;/p&gt;

&lt;p&gt;This means that the long-term potential of TZIPER180 cannot depend exclusively on GPU-RLE.&lt;/p&gt;

&lt;p&gt;I want to investigate additional ways of using the graphics card, including parallel pattern detection, block analysis, preprocessing, and potentially more advanced GPU-compatible compression techniques.&lt;/p&gt;

&lt;p&gt;In such an architecture, the GPU would not necessarily produce the final compressed representation independently.&lt;/p&gt;

&lt;p&gt;It could accelerate expensive computational stages that help the CPU produce a better compressed result.&lt;/p&gt;

&lt;p&gt;That would create a more interesting form of cooperation between the two devices.&lt;/p&gt;

&lt;p&gt;The processor and graphics card would no longer simply compete over which one should compress a particular file.&lt;/p&gt;

&lt;p&gt;They could contribute different computational strengths to the same compression pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benchmarking against 7-Zip
&lt;/h2&gt;

&lt;p&gt;One of my long-term ambitions is to develop TZIPER180 into an archiver capable of competing with established compression software such as 7-Zip.&lt;/p&gt;

&lt;p&gt;However, meaningful comparisons require more than carefully selected synthetic tests.&lt;/p&gt;

&lt;p&gt;A hybrid architecture must be evaluated across realistic workloads.&lt;/p&gt;

&lt;p&gt;The current development process includes work with the Silesia compression corpus, alongside comparisons against the previous version of TZIPER180 and official 7-Zip builds.&lt;/p&gt;

&lt;p&gt;I want the eventual benchmarking process to include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compression speed.&lt;/li&gt;
&lt;li&gt;Extraction speed.&lt;/li&gt;
&lt;li&gt;Final archive size.&lt;/li&gt;
&lt;li&gt;CPU utilization.&lt;/li&gt;
&lt;li&gt;GPU utilization.&lt;/li&gt;
&lt;li&gt;Peak memory consumption.&lt;/li&gt;
&lt;li&gt;GPU memory consumption.&lt;/li&gt;
&lt;li&gt;Storage throughput.&lt;/li&gt;
&lt;li&gt;Performance on large individual files.&lt;/li&gt;
&lt;li&gt;Performance on thousands of small files.&lt;/li&gt;
&lt;li&gt;Performance on highly repetitive data.&lt;/li&gt;
&lt;li&gt;Performance on difficult-to-compress data.&lt;/li&gt;
&lt;li&gt;Complete data integrity verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective is not to claim victory based on a single favorable benchmark.&lt;/p&gt;

&lt;p&gt;A compression engine that performs exceptionally well on repetitive test data but poorly on real-world files has limited practical value.&lt;/p&gt;

&lt;p&gt;Likewise, an archiver that creates files quickly but produces archives several times larger than its competitors may simply be exchanging compression efficiency for speed.&lt;/p&gt;

&lt;p&gt;Finding a better balance between these objectives is the actual engineering challenge.&lt;/p&gt;

&lt;p&gt;At the current stage, I am not claiming that TZIPER180 is generally faster than 7-Zip.&lt;/p&gt;

&lt;p&gt;That remains a development objective that must be demonstrated through reproducible measurements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development status of version 0.4.8
&lt;/h2&gt;

&lt;p&gt;Version 0.4.8 is currently under active development.&lt;/p&gt;

&lt;p&gt;The implementation has been developed in a separate working copy, preserving the previous version for direct comparison.&lt;/p&gt;

&lt;p&gt;The current development report includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Introduction of a dedicated HYBRID mode.&lt;/li&gt;
&lt;li&gt;Integration of HYBRID into the graphical interface and command-line interface.&lt;/li&gt;
&lt;li&gt;Parallel file-level CPU and GPU processing.&lt;/li&gt;
&lt;li&gt;Adaptive selection between GPU-RLE and CPU compression.&lt;/li&gt;
&lt;li&gt;Estimation of potential GPU compression inefficiency.&lt;/li&gt;
&lt;li&gt;Reduction of redundant source-file reads.&lt;/li&gt;
&lt;li&gt;Integration of CRC calculation into encoding operations where appropriate.&lt;/li&gt;
&lt;li&gt;Successful initial 512 MiB round-trip verification.&lt;/li&gt;
&lt;li&gt;Separate testing of forced GPU compression.&lt;/li&gt;
&lt;li&gt;Ongoing benchmarking against previous implementations and 7-Zip.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final performance results are not yet available.&lt;/p&gt;

&lt;p&gt;There is still considerable work ahead before I can evaluate the full effectiveness of the new architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The long-term vision
&lt;/h2&gt;

&lt;p&gt;I do not want TZIPER180 to become merely another graphical interface built around existing compression libraries.&lt;/p&gt;

&lt;p&gt;The long-term objective is to develop a compression system capable of intelligently coordinating the entire available hardware environment.&lt;/p&gt;

&lt;p&gt;The CPU, GPU, system memory, video memory, and storage system should work as interconnected parts of a single processing architecture.&lt;/p&gt;

&lt;p&gt;Different resources should handle the tasks for which they are best suited.&lt;/p&gt;

&lt;p&gt;Compression decisions should adapt to the workload instead of depending entirely on fixed presets.&lt;/p&gt;

&lt;p&gt;And improvements in speed should be accompanied by improvements in compression efficiency and reliability.&lt;/p&gt;

&lt;p&gt;Whether this approach can eventually compete with established archivers remains an open question.&lt;/p&gt;

&lt;p&gt;But that uncertainty is precisely what makes developing TZIPER180 interesting to me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Working on version 0.4.8 has reinforced an important engineering principle:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fastest system is not necessarily the one that performs the most work. It is the one that performs the right work as efficiently as possible.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sometimes that means using every available CPU core.&lt;/p&gt;

&lt;p&gt;Sometimes it means accelerating a task with the GPU.&lt;/p&gt;

&lt;p&gt;Sometimes it means allowing both devices to operate simultaneously.&lt;/p&gt;

&lt;p&gt;And sometimes the best optimization is deciding not to perform an unnecessary operation at all.&lt;/p&gt;

&lt;p&gt;I am continuing to explore how these principles can be combined into a practical adaptive compression engine.&lt;/p&gt;

&lt;p&gt;I would be particularly interested in hearing from developers who have experience with heterogeneous computing, GPU compression, DirectCompute, parallel algorithms, or high-performance data processing.&lt;/p&gt;

&lt;p&gt;What do you think is the most promising role for GPUs in general-purpose file compression: independent encoding, parallel preprocessing, pattern detection, or something entirely different?&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Author:&lt;/strong&gt; TPECKA180 (ТРЕСКА180)&lt;/p&gt;

&lt;p&gt;Independent software developer and creator of TZIPER180.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>performance</category>
      <category>algorithms</category>
      <category>gpu</category>
    </item>
    <item>
      <title>Building a Live Observatory for an AI Civilization Simulator Was Harder Than I Expected — TPECKA180</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Sat, 28 Nov 2026 17:03:26 +0000</pubDate>
      <link>https://dev.to/tpecka180/building-a-live-observatory-for-an-ai-civilization-simulator-was-harder-than-i-expected-tpecka180-3m68</link>
      <guid>https://dev.to/tpecka180/building-a-live-observatory-for-an-ai-civilization-simulator-was-harder-than-i-expected-tpecka180-3m68</guid>
      <description>&lt;p&gt;I'm TPECKA180, an independent developer working on Living Planet, an experimental civilization simulator powered by local language models.&lt;/p&gt;

&lt;p&gt;In my previous articles, I discussed autonomous AI civilizations and my plans to eventually let them learn from their own decisions.&lt;/p&gt;

&lt;p&gt;This time, I want to talk about a completely different engineering challenge: building a public website that receives and displays data from a simulation running on my personal computer.&lt;/p&gt;

&lt;p&gt;The idea sounded relatively simple.&lt;/p&gt;

&lt;p&gt;The implementation turned out to be considerably more complicated.&lt;/p&gt;

&lt;h2&gt;
  
  
  The original idea
&lt;/h2&gt;

&lt;p&gt;Living Planet is a simulation built with Python and Pygame in which independent countries are controlled by local language models.&lt;/p&gt;

&lt;p&gt;Countries make decisions about economic development, diplomacy, research, territorial expansion and military conflicts. The game engine validates their proposed actions and determines the consequences.&lt;/p&gt;

&lt;p&gt;While developing the simulation, I started thinking about how interesting it would be to let other people observe these artificial civilizations without requiring them to download the game or run a language model themselves.&lt;/p&gt;

&lt;p&gt;Imagine opening a website and watching an artificial civilization develop over several days or weeks.&lt;/p&gt;

&lt;p&gt;You could observe economic growth, military conflicts, diplomatic changes, technological discoveries and unexpected strategic decisions.&lt;/p&gt;

&lt;p&gt;That idea became Living Planet Global Observatory.&lt;/p&gt;

&lt;p&gt;The important distinction is that I don't want the website to display prerecorded scenarios or randomly generated statistics.&lt;/p&gt;

&lt;p&gt;I want it to receive information from an actual simulation running on my computer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not simply stream the game?
&lt;/h2&gt;

&lt;p&gt;The obvious solution would be to stream the game as video.&lt;/p&gt;

&lt;p&gt;However, video has several limitations.&lt;/p&gt;

&lt;p&gt;Viewers cannot easily explore historical economic data, compare countries, examine individual events or interact with charts.&lt;/p&gt;

&lt;p&gt;A video stream shows what is currently visible on the screen, but it doesn't provide structured access to the simulation's underlying state.&lt;/p&gt;

&lt;p&gt;Instead, I wanted to transmit structured telemetry.&lt;/p&gt;

&lt;p&gt;The website should eventually receive information such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current simulation day.&lt;/li&gt;
&lt;li&gt;Country statistics.&lt;/li&gt;
&lt;li&gt;Population changes.&lt;/li&gt;
&lt;li&gt;Economic indicators.&lt;/li&gt;
&lt;li&gt;Resource production and consumption.&lt;/li&gt;
&lt;li&gt;Territorial changes.&lt;/li&gt;
&lt;li&gt;Military activity.&lt;/li&gt;
&lt;li&gt;Diplomatic events.&lt;/li&gt;
&lt;li&gt;AI performance metrics.&lt;/li&gt;
&lt;li&gt;Accepted and rejected actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This transforms the website from a simple viewing platform into something closer to an experimental research dashboard.&lt;/p&gt;

&lt;p&gt;Unfortunately, it also introduces an entirely new set of problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the simulation independent
&lt;/h2&gt;

&lt;p&gt;One of my most important requirements is that the game must remain fully functional without the website.&lt;/p&gt;

&lt;p&gt;Living Planet was designed to run locally. I don't want its core simulation to depend on an internet connection or a remote service.&lt;/p&gt;

&lt;p&gt;If the website becomes unavailable, the game should continue.&lt;/p&gt;

&lt;p&gt;If a telemetry request fails, the simulation should continue.&lt;/p&gt;

&lt;p&gt;If my internet connection disappears halfway through a simulation day, that should not prevent countries from making their decisions.&lt;/p&gt;

&lt;p&gt;This requirement led to the decision to create a separate Broadcast Edition rather than immediately modifying the stable public release.&lt;/p&gt;

&lt;p&gt;The experimental edition can be developed and tested independently while preserving the existing game.&lt;/p&gt;

&lt;p&gt;Conceptually, the architecture looks like this:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LOCAL COMPUTER
    |
    |-- Living Planet simulation
    |-- Local language model
    |-- Local database
    |-- Telemetry module
    |
    v
Broadcast protocol
    |
    v
Remote telemetry receiver
    |
    v
Global Observatory
    |
    |-- Live world
    |-- Historical data
    |-- Economic charts
    |-- AI performance analytics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The simulation remains the authority over the world.&lt;/p&gt;

&lt;p&gt;The website is an observer, not a participant.&lt;/p&gt;

&lt;h2&gt;
  
  
  The difference between game data and telemetry
&lt;/h2&gt;

&lt;p&gt;One of the first architectural questions was determining what information should actually leave the computer.&lt;/p&gt;

&lt;p&gt;The game contains much more information than a public dashboard needs.&lt;/p&gt;

&lt;p&gt;There are internal simulation structures, model contexts, private country information, hidden prompts, intermediate outputs and implementation-specific details.&lt;/p&gt;

&lt;p&gt;Sending everything would be a poor design decision.&lt;/p&gt;

&lt;p&gt;It would increase network traffic, expose unnecessary information and make the website heavily dependent on the internal architecture of the game.&lt;/p&gt;

&lt;p&gt;Instead, the telemetry system needs a clearly defined public representation of the simulation.&lt;/p&gt;

&lt;p&gt;The website should receive only the information explicitly intended for publication.&lt;/p&gt;

&lt;p&gt;For the experimental Broadcast Edition, hidden prompts, internal reasoning and raw model outputs are excluded from public telemetry.&lt;/p&gt;

&lt;p&gt;The objective is to observe the consequences of AI decisions, not expose every internal component involved in producing them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snapshots and incremental updates
&lt;/h2&gt;

&lt;p&gt;Another challenge is determining how often the game should transmit information.&lt;/p&gt;

&lt;p&gt;Sending the entire world state after every minor change would be inefficient.&lt;/p&gt;

&lt;p&gt;On the other hand, sending only individual changes introduces synchronization problems.&lt;/p&gt;

&lt;p&gt;Imagine a website receives information about a country's economy, but misses the previous update that changed its territorial ownership.&lt;/p&gt;

&lt;p&gt;It may then display a combination of data that never actually existed in the simulation.&lt;/p&gt;

&lt;p&gt;To address this problem, the experimental telemetry architecture uses snapshots and incremental updates, also known as deltas.&lt;/p&gt;

&lt;p&gt;A snapshot represents a defined state of the simulation.&lt;/p&gt;

&lt;p&gt;A delta describes changes relative to a previous state.&lt;/p&gt;

&lt;p&gt;The advantage of this approach is that the system can potentially avoid repeatedly transmitting unchanged information.&lt;/p&gt;

&lt;p&gt;The disadvantage is that incremental updates require careful handling of ordering, missing messages and recovery.&lt;/p&gt;

&lt;p&gt;A receiver needs to know whether an incoming update belongs to its current state.&lt;/p&gt;

&lt;p&gt;If something is missing, applying subsequent updates blindly could produce incorrect results.&lt;/p&gt;

&lt;p&gt;One possible recovery strategy is to request or wait for a new complete snapshot rather than attempting to reconstruct an unknown state.&lt;/p&gt;

&lt;p&gt;This is one of the reasons why designing a telemetry system is substantially more difficult than simply exporting a JSON file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Developing a dedicated telemetry protocol
&lt;/h2&gt;

&lt;p&gt;The experimental Broadcast Edition introduced a protocol called LPTP v1, or Living Planet Telemetry Protocol.&lt;/p&gt;

&lt;p&gt;The purpose of defining a protocol is to establish a predictable contract between the game and the observation system.&lt;/p&gt;

&lt;p&gt;The website should not need to understand every internal Python object used by the game.&lt;/p&gt;

&lt;p&gt;Instead, it should understand a documented telemetry representation.&lt;/p&gt;

&lt;p&gt;The protocol needs to address several important questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which simulation session does a message belong to?&lt;/li&gt;
&lt;li&gt;Which state or update does it represent?&lt;/li&gt;
&lt;li&gt;What version of the protocol is being used?&lt;/li&gt;
&lt;li&gt;Is the message compatible with the receiver?&lt;/li&gt;
&lt;li&gt;Is an earlier update missing?&lt;/li&gt;
&lt;li&gt;Has this information already been processed?&lt;/li&gt;
&lt;li&gt;Can the receiver detect inconsistent or corrupted data?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without such a contract, every significant game update could potentially break the website.&lt;/p&gt;

&lt;p&gt;The initial development work included protocol documentation, schemas and local telemetry generation.&lt;/p&gt;

&lt;p&gt;However, generating protocol messages locally is not equivalent to proving that the complete remote broadcasting system works.&lt;/p&gt;

&lt;p&gt;That distinction matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hash chains and data consistency
&lt;/h2&gt;

&lt;p&gt;Another mechanism introduced during development was a hash chain.&lt;/p&gt;

&lt;p&gt;The general idea is that consecutive telemetry records can be cryptographically linked, making it possible to detect certain inconsistencies in the recorded sequence.&lt;/p&gt;

&lt;p&gt;For example, if a record depends on the hash of its predecessor, modifying or removing an earlier record may cause subsequent verification to fail.&lt;/p&gt;

&lt;p&gt;This is useful when dealing with a simulation that produces historical records over time.&lt;/p&gt;

&lt;p&gt;However, a hash chain does not solve everything.&lt;/p&gt;

&lt;p&gt;It does not automatically prevent an unauthorized sender from submitting an entirely new sequence of fabricated records. It also does not guarantee that the underlying simulation data is correct.&lt;/p&gt;

&lt;p&gt;Authentication, access control, message validation and trustworthy state generation are separate problems.&lt;/p&gt;

&lt;p&gt;The objective is to use integrity verification as one layer of the overall architecture, rather than treating it as a complete security solution.&lt;/p&gt;

&lt;h2&gt;
  
  
  An actual problem: SQLite resource management
&lt;/h2&gt;

&lt;p&gt;During development, a resource-management issue involving SQLite descriptors was identified and corrected.&lt;/p&gt;

&lt;p&gt;This was a useful reminder that adding telemetry to an existing application can expose problems that may not be obvious during normal gameplay.&lt;/p&gt;

&lt;p&gt;A short simulation session might never reveal a resource leak.&lt;/p&gt;

&lt;p&gt;A simulation running continuously for days or weeks is a different situation.&lt;/p&gt;

&lt;p&gt;Database connections, file handles and background operations need predictable lifetimes.&lt;/p&gt;

&lt;p&gt;A small leak can become a major stability problem when an operation is repeated thousands of times.&lt;/p&gt;

&lt;p&gt;This becomes particularly important when telemetry generation, database access and simulation execution coexist within the same application.&lt;/p&gt;

&lt;p&gt;The intermediate development report recorded the correction of the SQLite descriptor leak.&lt;/p&gt;

&lt;p&gt;I consider this type of issue just as important as the visible features of the website.&lt;/p&gt;

&lt;p&gt;A beautiful dashboard is useless if the application supplying its data gradually becomes unstable.&lt;/p&gt;

&lt;h2&gt;
  
  
  The home computer problem
&lt;/h2&gt;

&lt;p&gt;Unlike a conventional cloud-hosted application, the actual simulation is intended to run on my personal computer.&lt;/p&gt;

&lt;p&gt;That introduces several constraints.&lt;/p&gt;

&lt;p&gt;My computer may be turned off.&lt;/p&gt;

&lt;p&gt;My internet connection may become unavailable.&lt;/p&gt;

&lt;p&gt;The simulation may be stopped for maintenance.&lt;/p&gt;

&lt;p&gt;The computer may be busy running a local language model or other development tools.&lt;/p&gt;

&lt;p&gt;The website must be designed around these possibilities.&lt;/p&gt;

&lt;p&gt;It should distinguish between several conditions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A simulation is actively broadcasting.&lt;/li&gt;
&lt;li&gt;The last known state is available, but no recent data has arrived.&lt;/li&gt;
&lt;li&gt;A simulation has ended.&lt;/li&gt;
&lt;li&gt;A new simulation session has started.&lt;/li&gt;
&lt;li&gt;No real data has been received yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Displaying stale information as if it were currently live would be misleading.&lt;/p&gt;

&lt;p&gt;I would rather show an explicit offline or waiting-for-data state than invent activity to make the website look more impressive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I don't want to expose the entire computer
&lt;/h2&gt;

&lt;p&gt;Another architectural concern is network exposure.&lt;/p&gt;

&lt;p&gt;A public observation website should not require unrestricted access to my computer, local database or AI inference service.&lt;/p&gt;

&lt;p&gt;The intended architecture is based on a narrowly defined telemetry channel.&lt;/p&gt;

&lt;p&gt;Ideally, the local application initiates an authenticated outbound connection and transmits only approved public data.&lt;/p&gt;

&lt;p&gt;The public website should not be able to execute commands inside the game or modify the world state.&lt;/p&gt;

&lt;p&gt;The observer must remain an observer.&lt;/p&gt;

&lt;p&gt;This also means that the remote receiver needs to validate incoming messages and impose reasonable limits on data sizes, update frequency and resource consumption.&lt;/p&gt;

&lt;p&gt;These are engineering requirements for the remote integration, not claims that every security mechanism has already been deployed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building historical analytics
&lt;/h2&gt;

&lt;p&gt;A live map is interesting, but historical data is what could eventually make the observatory genuinely useful.&lt;/p&gt;

&lt;p&gt;I want visitors to be able to examine how artificial civilizations change over time.&lt;/p&gt;

&lt;p&gt;The initial design focuses on retaining and displaying the most recent ten simulation days on the website.&lt;/p&gt;

&lt;p&gt;Potential future analytics include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Population growth and decline.&lt;/li&gt;
&lt;li&gt;Resource shortages.&lt;/li&gt;
&lt;li&gt;Changes in economic productivity.&lt;/li&gt;
&lt;li&gt;Military expansion and territorial losses.&lt;/li&gt;
&lt;li&gt;Differences in national strategies.&lt;/li&gt;
&lt;li&gt;AI-generated action categories.&lt;/li&gt;
&lt;li&gt;Rejected actions.&lt;/li&gt;
&lt;li&gt;Model generation speed measured in tokens per second.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These metrics could reveal patterns that are difficult to notice while manually watching the simulation.&lt;/p&gt;

&lt;p&gt;For example, a country may appear successful because it expands rapidly, while historical economic data reveals that its development is becoming increasingly unsustainable.&lt;/p&gt;

&lt;p&gt;The observatory could eventually make such relationships much easier to examine.&lt;/p&gt;

&lt;p&gt;However, historical analytics introduce additional requirements involving storage, aggregation, session identification and missing data.&lt;/p&gt;

&lt;p&gt;If only one snapshot exists, it is impossible to establish a meaningful historical trend.&lt;/p&gt;

&lt;p&gt;The dashboard needs to communicate that limitation rather than generate artificial graphs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The challenge of measuring AI performance
&lt;/h2&gt;

&lt;p&gt;Living Planet runs language models locally.&lt;/p&gt;

&lt;p&gt;I am particularly interested in observing the relationship between model performance and the behavior of artificial civilizations.&lt;/p&gt;

&lt;p&gt;A model producing more tokens per second is not necessarily making better strategic decisions.&lt;/p&gt;

&lt;p&gt;Likewise, a country generating longer responses is not necessarily developing a more effective economy.&lt;/p&gt;

&lt;p&gt;I want to eventually compare several different metrics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generation speed.&lt;/li&gt;
&lt;li&gt;Processing time.&lt;/li&gt;
&lt;li&gt;Number of proposed actions.&lt;/li&gt;
&lt;li&gt;Number of accepted actions.&lt;/li&gt;
&lt;li&gt;Number of rejected actions.&lt;/li&gt;
&lt;li&gt;Distribution of action categories.&lt;/li&gt;
&lt;li&gt;Long-term simulation outcomes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These measurements could help distinguish raw inference performance from actual usefulness inside the simulation.&lt;/p&gt;

&lt;p&gt;The observatory should eventually make that comparison visible.&lt;/p&gt;

&lt;p&gt;For now, deeper AI analytics remain a development goal rather than a completed public feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the system
&lt;/h2&gt;

&lt;p&gt;According to an intermediate development report, the isolated experimental Broadcast Edition successfully completed 533 tests.&lt;/p&gt;

&lt;p&gt;The local telemetry module, protocol-related work and portable Windows build reached an initial development checkpoint.&lt;/p&gt;

&lt;p&gt;This was encouraging, but it did not mean that the entire observatory was finished.&lt;/p&gt;

&lt;p&gt;There is a major difference between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Testing individual software components.&lt;/li&gt;
&lt;li&gt;Testing local telemetry generation.&lt;/li&gt;
&lt;li&gt;Testing a protocol implementation.&lt;/li&gt;
&lt;li&gt;Building a working executable.&lt;/li&gt;
&lt;li&gt;Successfully transmitting real data over the internet.&lt;/li&gt;
&lt;li&gt;Running a complete broadcasting system continuously for several days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each represents a different level of confidence.&lt;/p&gt;

&lt;p&gt;Passing hundreds of automated tests does not prove that a remote deployment will behave reliably under real-world network conditions.&lt;/p&gt;

&lt;p&gt;That still requires end-to-end integration and operational testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Even packaging introduced another obstacle
&lt;/h2&gt;

&lt;p&gt;The intermediate development work also encountered a packaging limitation.&lt;/p&gt;

&lt;p&gt;A portable Windows build was produced, but creating a conventional installer was blocked by the absence of Inno Setup in the available development environment.&lt;/p&gt;

&lt;p&gt;This is not a fundamental architectural problem, but it illustrates how many unrelated components become involved in a project like this.&lt;/p&gt;

&lt;p&gt;The simulation itself may work.&lt;/p&gt;

&lt;p&gt;The telemetry module may work.&lt;/p&gt;

&lt;p&gt;The website may exist.&lt;/p&gt;

&lt;p&gt;Yet the complete distribution and deployment workflow may still be unfinished.&lt;/p&gt;

&lt;p&gt;Software development rarely progresses as a single uninterrupted sequence of successful implementations.&lt;/p&gt;

&lt;h2&gt;
  
  
  The current state of Global Observatory
&lt;/h2&gt;

&lt;p&gt;The public website already exists and introduces the simulation, its mechanics, screenshots, development roadmap and release information.&lt;/p&gt;

&lt;p&gt;It also contains dedicated Live World and Analytics sections.&lt;/p&gt;

&lt;p&gt;The public page I am discussing currently presents an explicit waiting-for-broadcast state rather than simulated live statistics.&lt;/p&gt;

&lt;p&gt;The local telemetry foundation has been developed separately, but I am not claiming that the full remote broadcasting pipeline has been successfully validated.&lt;/p&gt;

&lt;p&gt;There is still a difference between a website designed to receive live data and a fully operational live observation service.&lt;/p&gt;

&lt;p&gt;I want to preserve that distinction throughout development.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still needs to be tested
&lt;/h2&gt;

&lt;p&gt;The next major engineering milestone is establishing reliable end-to-end communication between the simulation and the website.&lt;/p&gt;

&lt;p&gt;I want to investigate how the system behaves when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The internet connection disappears during a broadcast.&lt;/li&gt;
&lt;li&gt;The receiver restarts.&lt;/li&gt;
&lt;li&gt;An update arrives twice.&lt;/li&gt;
&lt;li&gt;A telemetry message is incomplete.&lt;/li&gt;
&lt;li&gt;The application restarts during a simulation.&lt;/li&gt;
&lt;li&gt;A new world replaces the previous world.&lt;/li&gt;
&lt;li&gt;The website has outdated information.&lt;/li&gt;
&lt;li&gt;The simulation runs continuously for an extended period.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The system should handle these conditions without damaging the local game or displaying misleading information.&lt;/p&gt;

&lt;p&gt;I also want to measure the actual overhead introduced by telemetry collection.&lt;/p&gt;

&lt;p&gt;Living Planet already performs computationally expensive local inference. The observation system should not consume unnecessary resources or significantly interfere with the simulation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned from this development stage
&lt;/h2&gt;

&lt;p&gt;The website initially looked like the relatively easy part of the project.&lt;/p&gt;

&lt;p&gt;I expected the difficult work to be related primarily to artificial intelligence and simulation mechanics.&lt;/p&gt;

&lt;p&gt;Instead, building the observatory introduced questions about distributed systems, database resource management, synchronization, protocol compatibility, security, data consistency and historical storage.&lt;/p&gt;

&lt;p&gt;The most valuable lesson so far is that building a dashboard is not the same as building a reliable observation system.&lt;/p&gt;

&lt;p&gt;A dashboard displays information.&lt;/p&gt;

&lt;p&gt;An observation system must also establish where that information came from, whether it is complete, whether it is current and whether it can be trusted.&lt;/p&gt;

&lt;p&gt;Those are substantially different engineering problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  The long-term vision
&lt;/h2&gt;

&lt;p&gt;Eventually, I want Global Observatory to become a public window into an autonomous artificial world.&lt;/p&gt;

&lt;p&gt;Visitors should be able to return after several days and discover that civilizations have developed technologies, formed alliances, experienced economic crises or changed their strategic priorities.&lt;/p&gt;

&lt;p&gt;In the future, if the planned self-learning architecture becomes operational, the observatory could also help investigate how individual civilizations adapt through experience.&lt;/p&gt;

&lt;p&gt;That is still a distant research direction.&lt;/p&gt;

&lt;p&gt;For now, the more immediate challenge is considerably simpler to describe, but difficult to implement correctly:&lt;/p&gt;

&lt;p&gt;Reliably transmitting the state of a locally running simulation to a public website without compromising the independence, stability or integrity of the original application.&lt;/p&gt;

&lt;p&gt;I'm interested in hearing from developers who have built similar telemetry systems.&lt;/p&gt;

&lt;p&gt;How would you approach reliable state synchronization between a continuously running local simulation and a remote public dashboard?&lt;/p&gt;

&lt;p&gt;Would you prioritize complete snapshots, incremental updates, event sourcing, or some combination of these approaches?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project links:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;Living Planet Global Observatory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/TPECKA180/living-planet" rel="noopener noreferrer"&gt;Living Planet on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tpecka180.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;Official TPECKA180 developer website&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Developer: TPECKA180&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was drafted with AI assistance based on project documentation, an intermediate development report and the publicly available project website.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>webdev</category>
      <category>api</category>
    </item>
    <item>
      <title>Building TZIPER180: My Experiment in Adaptive File Compression — TPECKA180</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:08:33 +0000</pubDate>
      <link>https://dev.to/tpecka180/building-tziper180-my-experiment-in-adaptive-file-compression-tpecka180-2i3p</link>
      <guid>https://dev.to/tpecka180/building-tziper180-my-experiment-in-adaptive-file-compression-tpecka180-2i3p</guid>
      <description>&lt;p&gt;I'm TPECKA180, an independent developer working on experimental games, artificial intelligence simulations and software tools.&lt;/p&gt;

&lt;p&gt;Today, I want to introduce another project I've been working on: &lt;strong&gt;TZIPER180&lt;/strong&gt;, an experimental file archiver focused on adaptive compression.&lt;/p&gt;

&lt;p&gt;The project is still at a very early stage, but its basic compression and extraction pipeline is already functional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why build another file archiver?
&lt;/h2&gt;

&lt;p&gt;There are already excellent compression tools such as 7-Zip, WinRAR and Zstandard.&lt;/p&gt;

&lt;p&gt;I'm not trying to claim that my early prototype is better than decades of established compression research.&lt;/p&gt;

&lt;p&gt;Instead, I want to explore how an archiver could become more intelligent about the way it processes different types of data.&lt;/p&gt;

&lt;p&gt;Different files have different characteristics. A compression strategy that works exceptionally well on one dataset may be inefficient on another.&lt;/p&gt;

&lt;p&gt;My goal is to investigate whether adaptive decision-making can provide a better balance between compression ratio, processing speed and resource consumption.&lt;/p&gt;

&lt;h2&gt;
  
  
  What currently works?
&lt;/h2&gt;

&lt;p&gt;The current TZIPER180 v0.1.0 prototype includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A custom &lt;code&gt;.tziper180&lt;/code&gt; archive format.&lt;/li&gt;
&lt;li&gt;Command-line compression and extraction.&lt;/li&gt;
&lt;li&gt;Zstandard, LZ4 and LZMA2 compression methods.&lt;/li&gt;
&lt;li&gt;Uncompressed storage when compression is unsuitable.&lt;/li&gt;
&lt;li&gt;Basic adaptive compression method selection.&lt;/li&gt;
&lt;li&gt;Parallel compression and decompression with up to four workers.&lt;/li&gt;
&lt;li&gt;Atomic extraction.&lt;/li&gt;
&lt;li&gt;Support for large files through 64-bit file handling.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the foundation of the project, not its final architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Early experiments
&lt;/h2&gt;

&lt;p&gt;Initial synthetic benchmarks against 7-Zip 26.06 using its &lt;code&gt;-mx=3&lt;/code&gt; setting produced some interesting results.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Preliminary result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repetitive data&lt;/td&gt;
&lt;td&gt;TZIPER180 produced a 40.6% smaller archive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Random data&lt;/td&gt;
&lt;td&gt;TZIPER180 was 9.93 times faster in the measured test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64 small files&lt;/td&gt;
&lt;td&gt;7-Zip produced an archive 5.09 times smaller&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These results demonstrate both the potential and the limitations of the current approach.&lt;/p&gt;

&lt;p&gt;They do not establish that TZIPER180 is generally faster or more efficient than 7-Zip. The tests were synthetic, and substantially more benchmarking is necessary.&lt;/p&gt;

&lt;p&gt;The prototype also successfully completed a round-trip test with a sparse file larger than 4 GiB, verified using SHA-256, and underwent 5,000 parser mutation tests.&lt;/p&gt;

&lt;p&gt;For an archiver, correctness must come before impressive compression statistics.&lt;/p&gt;

&lt;h2&gt;
  
  
  The future of TZIPER180
&lt;/h2&gt;

&lt;p&gt;The basic compression pipeline is only the beginning.&lt;/p&gt;

&lt;p&gt;My longer-term development plans include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;T180 Brain:&lt;/strong&gt; an intelligent system for selecting compression strategies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom compression codec:&lt;/strong&gt; researching and developing an experimental compression algorithm.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Solid compression:&lt;/strong&gt; improving compression efficiency across related files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deduplication:&lt;/strong&gt; avoiding unnecessary storage of repeated data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPU acceleration:&lt;/strong&gt; investigating which operations could benefit from graphics hardware.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encryption:&lt;/strong&gt; protecting archived information.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recovery mechanisms:&lt;/strong&gt; improving resilience against archive corruption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graphical interface:&lt;/strong&gt; making the archiver accessible beyond the command line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these advanced features should be considered implemented yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea behind T180 Brain
&lt;/h2&gt;

&lt;p&gt;One of the most interesting concepts I want to explore is a dedicated decision-making system inside the archiver.&lt;/p&gt;

&lt;p&gt;Rather than relying entirely on a fixed compression configuration, TZIPER180 could analyze input data and choose a suitable processing strategy.&lt;/p&gt;

&lt;p&gt;For some files, compression ratio may be the priority. For others, speed or memory consumption may matter more.&lt;/p&gt;

&lt;p&gt;The challenge is making these decisions without introducing more computational overhead than the optimization actually saves.&lt;/p&gt;

&lt;p&gt;That is a problem I want to investigate experimentally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reliability before performance
&lt;/h2&gt;

&lt;p&gt;An archive is useless if the original data cannot be recovered correctly.&lt;/p&gt;

&lt;p&gt;Before pursuing increasingly ambitious compression techniques, I want to establish a reliable foundation with repeatable benchmarks, integrity verification and defensive archive parsing.&lt;/p&gt;

&lt;p&gt;Future performance claims should be supported by reproducible tests across different datasets, hardware configurations and compression settings.&lt;/p&gt;

&lt;p&gt;I would rather document a failed experiment honestly than announce an impressive result that cannot be reproduced.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next?
&lt;/h2&gt;

&lt;p&gt;TZIPER180 is currently an early research and development project.&lt;/p&gt;

&lt;p&gt;There is still a substantial amount of work ahead, and some of the planned technologies may prove impractical. That uncertainty is part of the experiment.&lt;/p&gt;

&lt;p&gt;I intend to document the development process, including successful optimizations, technical challenges and unsuccessful ideas.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in feedback from developers who have worked with data compression, archive formats and performance optimization.&lt;/p&gt;

&lt;p&gt;What do you think is the most promising direction for an adaptive file archiver?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer: TPECKA180&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tpecka180.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;Official developer website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/TPECKA180" rel="noopener noreferrer"&gt;GitHub profile&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was drafted with AI assistance based on my project documentation and development results.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>compression</category>
      <category>algorithms</category>
      <category>devlog</category>
    </item>
    <item>
      <title>Living Planet 9.0: Can Autonomous AI Civilizations Learn From Their Own Decisions? — TPECKA180</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:39:01 +0000</pubDate>
      <link>https://dev.to/tpecka180/living-planet-90-can-autonomous-ai-civilizations-learn-from-their-own-decisions-tpecka180-pp1</link>
      <guid>https://dev.to/tpecka180/living-planet-90-can-autonomous-ai-civilizations-learn-from-their-own-decisions-tpecka180-pp1</guid>
      <description>&lt;p&gt;I'm TPECKA180, an independent developer working on &lt;strong&gt;Living Planet&lt;/strong&gt;, an experimental civilization simulator powered by local large language models.&lt;/p&gt;

&lt;p&gt;In my previous article, I introduced a world where AI agents independently govern entire countries.&lt;/p&gt;

&lt;p&gt;Today, I want to explore the most ambitious feature on my development roadmap: allowing artificial civilizations to learn from their own decisions.&lt;/p&gt;

&lt;p&gt;This is the planned direction for Living Planet 9.0, not an already implemented feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  From memory to actual learning
&lt;/h2&gt;

&lt;p&gt;Living Planet currently allows AI-controlled countries to manage economies, negotiate agreements, research technologies, trade resources, expand territories and wage wars.&lt;/p&gt;

&lt;p&gt;Each country has its own memory, strategic plans and diplomatic relationships.&lt;/p&gt;

&lt;p&gt;However, remembering previous decisions is not the same as learning through parameter updates.&lt;/p&gt;

&lt;p&gt;The underlying language model currently remains unchanged. Previous experiences influence its context, but they do not modify its weights.&lt;/p&gt;

&lt;p&gt;I want to investigate whether this limitation can be overcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learning exclusively from simulated experience
&lt;/h2&gt;

&lt;p&gt;The central idea behind Living Planet 9.0 is to train AI civilizations using the consequences of their own actions inside the simulation.&lt;/p&gt;

&lt;p&gt;I do not intend to introduce externally prepared training datasets into this system.&lt;/p&gt;

&lt;p&gt;Instead, the simulation itself should become the source of experience.&lt;/p&gt;

&lt;p&gt;Every executed decision produces measurable consequences:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Economic growth or decline.&lt;/li&gt;
&lt;li&gt;Territorial expansion or territorial losses.&lt;/li&gt;
&lt;li&gt;Military victories or defeats.&lt;/li&gt;
&lt;li&gt;Technological progress.&lt;/li&gt;
&lt;li&gt;Resource accumulation or shortages.&lt;/li&gt;
&lt;li&gt;Population growth.&lt;/li&gt;
&lt;li&gt;Successful or unsuccessful diplomatic strategies.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These outcomes can be translated into rewards and penalties.&lt;/p&gt;

&lt;p&gt;The learning mechanism would use the recorded decisions, their context and the resulting rewards to update the country's strategy.&lt;/p&gt;

&lt;p&gt;This still requires internally generated experience records for training, but the experience originates entirely from the simulation.&lt;/p&gt;

&lt;h2&gt;
  
  
  One language model, six independent civilizations
&lt;/h2&gt;

&lt;p&gt;My planned architecture consists of one shared base language model and up to six individual LoRA adapters.&lt;/p&gt;

&lt;p&gt;Each civilization would have its own adapter.&lt;/p&gt;

&lt;p&gt;The objective is to allow different countries to develop different strategic tendencies without storing six complete language models.&lt;/p&gt;

&lt;p&gt;Potentially, one civilization could become focused on industrial development, another on territorial expansion, and another on diplomacy or economic influence.&lt;/p&gt;

&lt;p&gt;These differences should emerge from their experiences rather than predefined personality scripts alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four learning horizons
&lt;/h2&gt;

&lt;p&gt;I am planning four different learning cycles:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Learning cycle&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3 simulation days&lt;/td&gt;
&lt;td&gt;Small adjustments based on recent experience&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 simulation days&lt;/td&gt;
&lt;td&gt;Medium-term strategic adaptation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 simulation days&lt;/td&gt;
&lt;td&gt;Learning from accumulated historical experience&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;100 simulation days&lt;/td&gt;
&lt;td&gt;Larger strategic reassessment&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The purpose of this architecture is to balance short-term adaptation with long-term strategic consistency.&lt;/p&gt;

&lt;p&gt;A civilization should not completely change its behavior because of one unsuccessful decision.&lt;/p&gt;

&lt;p&gt;At the same time, it should be able to recognize repeated failures and gradually adapt.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with reward design
&lt;/h2&gt;

&lt;p&gt;Reward design may become one of the most difficult challenges in the entire project.&lt;/p&gt;

&lt;p&gt;If territorial expansion receives too much weight, civilizations may become excessively aggressive.&lt;/p&gt;

&lt;p&gt;If economic growth dominates the reward system, they may avoid necessary military conflicts.&lt;/p&gt;

&lt;p&gt;If diplomatic cooperation is always rewarded, they may become vulnerable to exploitation.&lt;/p&gt;

&lt;p&gt;I want civilizations to evaluate actions according to their actual consequences.&lt;/p&gt;

&lt;p&gt;Even deception or deliberately failing to fulfill a trade agreement could become a potentially rewarding strategy if it produces a genuine long-term advantage.&lt;/p&gt;

&lt;p&gt;However, immediate gains should not automatically outweigh future economic losses, diplomatic isolation or military retaliation.&lt;/p&gt;

&lt;p&gt;The objective is not to create morally good artificial civilizations.&lt;/p&gt;

&lt;p&gt;The objective is to investigate how strategic behavior emerges under competing incentives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can this run on consumer hardware?
&lt;/h2&gt;

&lt;p&gt;My development hardware includes an NVIDIA RTX 3060 with 12 GB of VRAM.&lt;/p&gt;

&lt;p&gt;Running inference and training on the same consumer GPU introduces significant engineering challenges.&lt;/p&gt;

&lt;p&gt;The planned system needs to separate quantized inference from adapter training, manage memory carefully and avoid loading unnecessary model copies.&lt;/p&gt;

&lt;p&gt;GGUF is suitable for local inference, but an inference-oriented GGUF file is not automatically a trainable checkpoint. A compatible training representation and a reliable adapter conversion workflow will be necessary.&lt;/p&gt;

&lt;p&gt;Training one civilization at a time may reduce hardware requirements.&lt;/p&gt;

&lt;p&gt;The system should also preserve previous adapter checkpoints and reject updates that damage model behavior.&lt;/p&gt;

&lt;p&gt;Whether the complete learning architecture can operate efficiently on this hardware remains an open engineering question.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would count as successful learning?
&lt;/h2&gt;

&lt;p&gt;Increasing a civilization's reward score is not enough to prove that its strategy has improved.&lt;/p&gt;

&lt;p&gt;The system must also be evaluated for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Long-term economic stability.&lt;/li&gt;
&lt;li&gt;Validity of generated actions.&lt;/li&gt;
&lt;li&gt;Strategic consistency.&lt;/li&gt;
&lt;li&gt;Adaptation to changing circumstances.&lt;/li&gt;
&lt;li&gt;Resistance to repetitive or ineffective behavior.&lt;/li&gt;
&lt;li&gt;Preservation of general reasoning abilities.&lt;/li&gt;
&lt;li&gt;Performance across different world configurations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project needs safeguards against reward hacking, catastrophic forgetting, unstable training and misleading short-term improvements.&lt;/p&gt;

&lt;p&gt;I want to distinguish actual strategic improvement from a civilization simply discovering a weakness in the reward function.&lt;/p&gt;

&lt;h2&gt;
  
  
  The long-term vision
&lt;/h2&gt;

&lt;p&gt;Imagine observing a simulated planet for hundreds of days.&lt;/p&gt;

&lt;p&gt;Civilizations begin with the same base intelligence, but gradually acquire different strategic tendencies through their own experiences.&lt;/p&gt;

&lt;p&gt;Some cooperate. Some compete. Some discover economic advantages. Others repeatedly fail and need to adapt.&lt;/p&gt;

&lt;p&gt;Could such a system eventually produce genuinely unexpected strategies?&lt;/p&gt;

&lt;p&gt;Could civilizations learn to anticipate betrayal, exploit economic dependencies or develop more effective long-term plans?&lt;/p&gt;

&lt;p&gt;I do not know yet.&lt;/p&gt;

&lt;p&gt;That uncertainty is precisely what makes this experiment interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development roadmap
&lt;/h2&gt;

&lt;p&gt;Living Planet 9.0 is the planned self-learning milestone.&lt;/p&gt;

&lt;p&gt;Before reaching it, development will focus on local model optimization, faster inference, new technological eras and overall simulation performance.&lt;/p&gt;

&lt;p&gt;Living Planet is free, and I intend to keep it free.&lt;/p&gt;

&lt;p&gt;Project source code and technical documentation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/TPECKA180/living-planet" rel="noopener noreferrer"&gt;Living Planet on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tpecka180.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;Official TPECKA180 developer website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;Living Planet Global Observatory&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Previous article: &lt;a href="https://dev.to/tpqcka180/living-planet-an-autonomous-ai-civilization-simulator-powered-by-local-llms-tpecka180-2lco"&gt;Living Planet — An Autonomous AI Civilization Simulator Powered by Local LLMs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm particularly interested in feedback from developers working with reinforcement learning, local LLMs and LoRA training.&lt;/p&gt;

&lt;p&gt;How would you design a reward function for an autonomous AI civilization?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer: TPECKA180&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was drafted with generative AI based on my project documentation and development plans.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>gamedev</category>
      <category>llm</category>
    </item>
    <item>
      <title>Living Planet — An Autonomous AI Civilization Simulator Powered by Local LLMs (TPECKA180)</title>
      <dc:creator>TPECKA180</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:25:28 +0000</pubDate>
      <link>https://dev.to/tpecka180/living-planet-an-autonomous-ai-civilization-simulator-powered-by-local-llms-tpecka180-2lco</link>
      <guid>https://dev.to/tpecka180/living-planet-an-autonomous-ai-civilization-simulator-powered-by-local-llms-tpecka180-2lco</guid>
      <description>&lt;h1&gt;
  
  
  Living Planet: What Happens When AI Controls an Entire World?
&lt;/h1&gt;

&lt;p&gt;I'm TPECKA180, an independent developer working on experimental software, artificial intelligence, and simulation games.&lt;/p&gt;

&lt;p&gt;One of my main projects is &lt;strong&gt;Living Planet&lt;/strong&gt;, a civilization simulator where autonomous AI agents control entire countries using locally running large language models (LLMs).&lt;/p&gt;

&lt;p&gt;Instead of controlling a civilization yourself, you can observe how artificial intelligence develops its own strategies, manages resources, negotiates, cooperates, competes, and fights for survival.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Living Planet?
&lt;/h2&gt;

&lt;p&gt;Living Planet is a Python-based experimental geopolitical simulator that combines a strategy game engine with local artificial intelligence.&lt;/p&gt;

&lt;p&gt;Each AI-controlled country can make independent decisions based on its economic, political, military, and technological situation.&lt;/p&gt;

&lt;p&gt;The simulation includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Autonomous AI-controlled countries.&lt;/li&gt;
&lt;li&gt;Diplomacy and international agreements.&lt;/li&gt;
&lt;li&gt;Wars and territorial expansion.&lt;/li&gt;
&lt;li&gt;Resource production and economic management.&lt;/li&gt;
&lt;li&gt;Population and technological development.&lt;/li&gt;
&lt;li&gt;Procedurally generated worlds.&lt;/li&gt;
&lt;li&gt;Local LLM inference without requiring cloud AI services.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rather than relying entirely on predefined behavioral scripts, Living Planet allows language models to make strategic decisions within the rules of a structured simulation engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why am I developing this project?
&lt;/h2&gt;

&lt;p&gt;I'm interested in what happens when artificial intelligence is given limited resources, competing objectives, and the freedom to make strategic decisions.&lt;/p&gt;

&lt;p&gt;Will AI-controlled civilizations cooperate or betray each other? Will they prioritize economic development or military expansion? Can they develop effective long-term strategies?&lt;/p&gt;

&lt;p&gt;Living Planet is not just a strategy game. It is also an experimental environment for observing autonomous AI behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local artificial intelligence?
&lt;/h2&gt;

&lt;p&gt;One of my main goals is to make this experiment accessible without paid AI APIs or mandatory cloud services.&lt;/p&gt;

&lt;p&gt;Living Planet uses local language models, allowing users to run their own AI civilization experiments on compatible hardware.&lt;/p&gt;

&lt;p&gt;I am currently developing and optimizing the project using an NVIDIA RTX 3060 with 12 GB of VRAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future development
&lt;/h2&gt;

&lt;p&gt;The Living Planet development roadmap includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Optimized local language models.&lt;/li&gt;
&lt;li&gt;Faster AI reasoning and decision-making.&lt;/li&gt;
&lt;li&gt;New technological eras.&lt;/li&gt;
&lt;li&gt;Space exploration and planetary ecology.&lt;/li&gt;
&lt;li&gt;More advanced diplomatic and economic mechanics.&lt;/li&gt;
&lt;li&gt;Experimental reinforcement learning based on the consequences of AI decisions.&lt;/li&gt;
&lt;li&gt;Individual LoRA adapters for AI-controlled countries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The long-term goal is to explore whether artificial civilizations can improve their strategies through their own simulated experiences.&lt;/p&gt;

&lt;p&gt;These features are planned or under development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Living Planet Global Observatory
&lt;/h2&gt;

&lt;p&gt;I am also developing a separate website called &lt;strong&gt;Living Planet Global Observatory&lt;/strong&gt;, intended to become a platform for observing AI civilizations, analyzing simulation statistics, and following long-running experiments.&lt;/p&gt;

&lt;p&gt;Website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/" rel="noopener noreferrer"&gt;https://living-planet-global-observatory.branchingdragonfly2.chatgpt.site/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Download Living Planet
&lt;/h2&gt;

&lt;p&gt;Living Planet is free, and I intend to keep it free.&lt;/p&gt;

&lt;p&gt;The project, documentation, and releases are available on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Living Planet GitHub repository:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/TPECKA180/living-planet" rel="noopener noreferrer"&gt;https://github.com/TPECKA180/living-planet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer profile — TPECKA180:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/TPECKA180" rel="noopener noreferrer"&gt;https://github.com/TPECKA180&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback, technical discussions, and suggestions are welcome.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in what experiments other developers would like to conduct with autonomous AI civilizations.&lt;/p&gt;

&lt;p&gt;What would happen if we allowed artificial intelligence to develop an entire world without human intervention?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>gamedev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
