您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

on-the-way-to-durable-applications.html 9.3KB

1 个月前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 class="header2">
  11. <div class="menu">
  12. <a href="../../en/news/index.html">News</a>
  13. <a href="../../en/game/index.html">Games</a>
  14. <a href="../../en/tool/index.html">Tools</a>
  15. <a href="../../en/page/about.html">About</a>
  16. </div>
  17. <div id="lang">
  18. <a href="../../en/news/on-the-way-to-durable-applications.html">EN</a>
  19. <a href="../../ru/news/on-the-way-to-durable-applications.html">RU</a>
  20. </div>
  21. <div class="clear"></div>
  22. </div>
  23. </div>
  24. <h3 class="left_item_title">In the news...</h3>
  25. <center>
  26. <div class="news_item">
  27. <h2 class="news_item_title">
  28. <a href="on-the-way-to-durable-applications.html">On the way to durable applications</a>
  29. </h2>
  30. <p class="news_item_date">
  31. 2019-08-05 00:00
  32. </p>
  33. <div class="news_item_contents">
  34. <p><img src="../../images/2019-08-05_on-the-way-to-durable-applications.jpg" alt="Pskov's veche" /></p>
  35. <p>This article describes our first durable application for desktop PCs: PSKOV static site generator.</p>
  36. <p><strong>Durability</strong></p>
  37. <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>
  38. <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>
  39. <p>Such an implementation gives PSKOV the following features:</p>
  40. <ul>
  41. <li>it can be copied without restrictions</li>
  42. <li>it can be hosted anywhere</li>
  43. <li>it can run locally</li>
  44. <li>it can operate without Internet</li>
  45. </ul>
  46. <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>
  47. <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>
  48. <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>
  49. <p><strong>Track record</strong></p>
  50. <p>PSKOV has been successfully used to create the following small sites:</p>
  51. <ul>
  52. <li><a href="http://opengamestudio.org">open game studio project site</a></li>
  53. <li><a href="http://opengamestudio.org/pskov">PSKOV itself</a></li>
  54. <li><a href="http://opengamestudio.org/lfsa">LFSA</a></li>
  55. <li><a href="http://opengamestudio.org/pskov/sample/03.Blog/en/blog/index.html">example of a simple blog</a></li>
  56. </ul>
  57. <p>Now let's see why PSKOV was created as a durable application for web browsers.</p>
  58. <p><strong>Reason №1: collect and keep knowledge in an accessible form</strong></p>
  59. <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>
  60. <ul>
  61. <li>few would download an unknown application</li>
  62. <li>few would watch some videos</li>
  63. <li>even fewer would read some articles</li>
  64. </ul>
  65. <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>
  66. <p><strong>Reason №2: rule by people</strong></p>
  67. <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>
  68. <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>
  69. <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>
  70. <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>
  71. <p>That's it for describing our first durable application for desktop PCs: PSKOV static site generator.</p>
  72. </div>
  73. </div>
  74. <div id="disqus_thread"></div>
  75. <script>
  76. var disqus_config = function () {
  77. this.page.url = "https://opengamestudio.org/en/news/on-the-way-to-durable-applications.html";
  78. this.page.identifier = "on-the-way-to-durable-applications.html";
  79. };
  80. (function() { // DON'T EDIT BELOW THIS LINE
  81. var d = document, s = d.createElement('script');
  82. s.src = 'https://opengamestudio.disqus.com/embed.js';
  83. s.setAttribute('data-timestamp', +new Date());
  84. (d.head || d.body).appendChild(s);
  85. })();
  86. </script>
  87. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  88. <div id="footer">
  89. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  90. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  91. </div>
  92. </center>
  93. </body>
  94. </html>