Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

101 рядки
9.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <link rel="stylesheet" href="../../style.css">
  6. </head>
  7. <body>
  8. <script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
  9. <div id="header">
  10. <div>
  11. <strong id="title">Open Game Studio</strong>
  12. <div id="lang">
  13. <a href="../../en/news/on-the-way-to-durable-applications.html">EN</a>
  14. <a href="../../ru/news/on-the-way-to-durable-applications.html">RU</a>
  15. </div>
  16. </div>
  17. <div class="header2">
  18. <div class="menu">
  19. <a href="../../en/news/index.html">News</a>
  20. <a href="../../en/game/index.html">Games</a>
  21. <a href="../../en/tool/index.html">Tools</a>
  22. <a href="../../en/page/about.html">About</a>
  23. </div>
  24. <a class="discord" href="https://t.me/Tail_and_shadow">
  25. <img src="../../images/telegram.png"></img>
  26. </a>
  27. <div class="clear"></div>
  28. </div>
  29. </div>
  30. <h3 class="left_item_title">In the news...</h3>
  31. <center>
  32. <div class="news_item">
  33. <h2 class="news_item_title">
  34. <a href="on-the-way-to-durable-applications.html">On the way to durable applications</a>
  35. </h2>
  36. <p class="news_item_date">
  37. 2019-08-05 00:00
  38. </p>
  39. <div class="news_item_contents">
  40. <p><img src="../../images/2019-08-05_on-the-way-to-durable-applications.jpg" alt="Pskov's veche" /></p>
  41. <p>This article describes our first durable application for desktop PCs: PSKOV static site generator.</p>
  42. <p><strong>Durability</strong></p>
  43. <p>A durable application is an application that functions without a single change on operating systems released in years 2010-2030. In other words, a durable application has backward compatibility of 10 years and has the stability to run for 10 years. Actually, <a href="http://opengamestudio.org/pskov">PSKOV</a> runs even under Windows 2000, so PSKOV has backward compatibility of 19 years.</p>
  44. <p>From technical side, PSKOV is a single HTML file with layout (HTML), styles (CSS), and code (JavaScript) packed inside. PSKOV runs strictly inside a web browser without connecting to any server.</p>
  45. <p>Such an implementation gives PSKOV the following features:</p>
  46. <ul>
  47. <li>it can be copied without restrictions</li>
  48. <li>it can be hosted anywhere</li>
  49. <li>it can run locally</li>
  50. <li>it can operate without Internet</li>
  51. </ul>
  52. <p>We can't guarantee stability for 10 years because we can't control the future. However, the history of HTML, CSS, and JavaScript evolution tells us these technologies are developed with maximum backward compatibility. First, new JavaScript features leave older ones still working. Second, web browser developers are interested in making their web browsers work with as many web sites as possible. For example, <a href="https://www.w3schools.com/tags/tag_center.asp">&lt;center&gt; tag</a>, being declared deprecated in 2014, still works as expected 5 years since, in 2019.</p>
  53. <p>At the same time, each web browser application has a serious restriction called sandbox, a deceptive name for a cage. The cage prevents access to both local file system of users and almost any Internet resource without its owner's explicit permission (CORS). As a result, the application can only communicate with users either through the distinct server, or by offering files to download manually. Downloading files one by one or as an archive is inconvenient, that's why nowadays server oriented approach reigns the world. We'll touch problems of that approach in a moment.</p>
  54. <p>To free PSKOV from the cage, <a href="http://opengamestudio.org/lfsa">LFSA</a> was created, a tiny Python script that needs to be run manually while PSKOV is running. LFSA allows PSKOV to access the user’s local file system. Python was selected because Linux and macOS have Python installed by default, and users can easily install Python on Windows (even Windows 2000).</p>
  55. <p><strong>Track record</strong></p>
  56. <p>PSKOV has been successfully used to create the following small sites:</p>
  57. <ul>
  58. <li><a href="http://opengamestudio.org">open game studio project site</a></li>
  59. <li><a href="http://opengamestudio.org/pskov">PSKOV itself</a></li>
  60. <li><a href="http://opengamestudio.org/lfsa">LFSA</a></li>
  61. <li><a href="http://opengamestudio.org/pskov/sample/03.Blog/en/blog/index.html">example of a simple blog</a></li>
  62. </ul>
  63. <p>Now let's see why PSKOV was created as a durable application for web browsers.</p>
  64. <p><strong>Reason №1: collect and keep knowledge in an accessible form</strong></p>
  65. <p>We have been creating convenient game development tools for several years now. So far the collected knowledge was represented by <a href="../game/ogs-mahjong-1.html">native applications</a> for desktop PCs, <a href="https://github.com/OGStudio/openscenegraph-cross-platform-guide">education articles</a> for related technologies, and <a href="https://youtu.be/_t8TGhSgJG4">showcase videos</a>. Such forms of the collected knowledge are basically dead:</p>
  66. <ul>
  67. <li>few would download an unknown application</li>
  68. <li>few would watch some videos</li>
  69. <li>even fewer would read some articles</li>
  70. </ul>
  71. <p>In many ways, this death is due to inaccessibility: one has to make an unknown amount of effort to achieve an unknown result. Hardly anyone would have interest in this. A web browser application, potentially accessible anywhere, is a totally different deal: you only need to make a known effort, click a link, to achieve an unknown result. The history of conducting <a href="https://en.wikipedia.org/wiki/Twitter_Revolution">twitter revolutions</a> proves that almost anyone can open a link and "like" the change of a "bloody regime".</p>
  72. <p><strong>Reason №2: rule by people</strong></p>
  73. <p>Nowadays any Internet activity is performed by the means of services that almost always belong to some company: <a href="http://twitter.com">messages</a>, <a href="http://2gis.ru">maps</a>, <a href="http://google.com">search</a>, <a href="http://music.yandex.ru">music</a>, <a href="http://github.com">source code</a>, etc. Such power usurpation leads to <a href="https://techcrunch.com/2015/03/13/google-kills-off-google-code/">shutdowns</a> of <a href="https://www.reddit.com/r/sysadmin/comments/62orq9/codeplex_shutting_down_and_fosshub_is_sad/">services</a> that their owning companies deem unprofitable. They usually do it without any consent with those users who brought life to these services in the first place.</p>
  74. <p>Other times companies simply block competing browsers from accessing their service, as it was recently the <a href="https://www.reddit.com/r/firefox/comments/aw1umv/skype_web_is_now_blocked_in_firefox/">case with the web version of Skype</a>. Luckily there are people who don’t agree with such politics. Thanks to them, <a href="https://addons.mozilla.org/ru/firefox/addon/firefox-web-skype/">unlocking tools</a> appear.</p>
  75. <p>As for us, we deem such a way of handling things as inappropriate. However, savage business is not the only one to blame here; average users, every one of us is guilty, too. You may argue that users have no choice, that someone else (government, aliens, underline what you like) made this world unfair. Some people even blame government/aliens directly and believe that without them, life would be amazing. However, human history <a href="https://translate.google.com/translate?sl=ru&amp;tl=en&amp;u=https%3A%2F%2Fria.ru%2F20190723%2F1556775012.html">tells us a different story</a>: "<strong>the state</strong> is not some enemy horde that occupied the society, but that which <strong>grows out of society and mirrors it</strong>".</p>
  76. <p>Being part of the people, we decided to start with ourselves and use our power for the best: create applications that we need in such a way to make them usable and accessible to everyone everywhere. PSKOV is the first attempt, which already exceeded our expectations. Sure, PSKOV has limitations like LFSA and unencrypted HTTP; there's a lot to do to increase the accessibility of PSKOV, however, we're ready to dare anyone: current PSKOV version will keep functioning for 10 years to come without any maintenance.</p>
  77. <p>That's it for describing our first durable application for desktop PCs: PSKOV static site generator.</p>
  78. </div>
  79. </div>
  80. <div id="disqus_thread"></div>
  81. <script>
  82. var disqus_config = function () {
  83. this.page.url = "https://opengamestudio.org/en/news/on-the-way-to-durable-applications.html";
  84. this.page.identifier = "on-the-way-to-durable-applications.html";
  85. };
  86. (function() { // DON'T EDIT BELOW THIS LINE
  87. var d = document, s = d.createElement('script');
  88. s.src = 'https://opengamestudio.disqus.com/embed.js';
  89. s.setAttribute('data-timestamp', +new Date());
  90. (d.head || d.body).appendChild(s);
  91. })();
  92. </script>
  93. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  94. <div id="footer">
  95. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  96. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  97. </div>
  98. </center>
  99. </body>
  100. </html>