Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 недель назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/lha-jvm-macos.html">EN</a>
  19. <a href="../../ru/news/lha-jvm-macos.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="lha-jvm-macos.html">The first Local Host Access working version</a>
  29. </h2>
  30. <p class="news_item_date">
  31. 2024-12-09 00:00
  32. </p>
  33. <div class="news_item_contents">
  34. <p><img src="../../images/2024_web-test.jpg" alt="web-test" /></p>
  35. <h1 id="localhostaccess">Local Host Access</h1>
  36. <p>Tiny web server called Local Host Access (<strong>LHA</strong>) is ready to replace
  37. Local File System Access (<strong>LFSA</strong>) on JVM and macOS: I've generated this
  38. very article with LHA on macOS. Thus, Kotlin prooved to be a good choice for
  39. cross-platform development with a minor limitation.</p>
  40. <p>The minor limitation is the fact that 99% of Kotlin is used on JVM. The
  41. remaining 1% is so-called Kotlin Native for iOS, Linux, macOS, and Windows.
  42. Thus, when one needs something as simple as to find out if a symlink
  43. points to a file or directory, that's a dead end, there's no article for
  44. that on the Internet. For C, there are numerous articles telling to call <code>stat()</code>
  45. function. For Kotlin Native, it's unclear how to properly make such a simple call.</p>
  46. <p>I've actually asked <a href="https://discuss.kotlinlang.org/t/how-to-call-stat-c-function-to-get-file-type/29541">this specific question</a> in November,
  47. and still wait for an answer.
  48. In the meantime, I had to resort to calling <code>stat</code> in the shell (aka <code>system()</code>).</p>
  49. <h1 id="december">December</h1>
  50. <p>I plan to implement the first Kotlin -&gt; Python translator to let LHA
  51. cover as many platforms as the original LFSA in Python.</p>
  52. </div>
  53. </div>
  54. <div id="disqus_thread"></div>
  55. <script>
  56. var disqus_config = function () {
  57. this.page.url = "https://opengamestudio.org/en/news/lha-jvm-macos.html";
  58. this.page.identifier = "lha-jvm-macos.html";
  59. };
  60. (function() { // DON'T EDIT BELOW THIS LINE
  61. var d = document, s = d.createElement('script');
  62. s.src = 'https://opengamestudio.disqus.com/embed.js';
  63. s.setAttribute('data-timestamp', +new Date());
  64. (d.head || d.body).appendChild(s);
  65. })();
  66. </script>
  67. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  68. <div id="footer">
  69. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  70. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  71. </div>
  72. </center>
  73. </body>
  74. </html>