75 lines
3.7 KiB
HTML
75 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<meta charset="utf-8">
|
|
<head>
|
|
<link rel="stylesheet" href="../../style.css">
|
|
</head>
|
|
<body>
|
|
<script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
|
|
<div id="header">
|
|
<div class="header2">
|
|
<div class="menu">
|
|
<a href="../../en/news/index.html">News</a>
|
|
<a href="../../en/game/index.html">Games</a>
|
|
<a href="../../en/tool/index.html">Tools</a>
|
|
<a href="../../en/page/about.html">About</a>
|
|
</div>
|
|
<div id="lang">
|
|
<a href="../../en/news/lha-jvm-macos.html">EN</a>
|
|
<a href="../../ru/news/lha-jvm-macos.html">RU</a>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
<h3 class="left_item_title">In the news...</h3>
|
|
<center>
|
|
<div class="news_item">
|
|
<h2 class="news_item_title">
|
|
<a href="lha-jvm-macos.html">The first Local Host Access working version</a>
|
|
</h2>
|
|
<p class="news_item_date">
|
|
2024-12-09 00:00
|
|
</p>
|
|
<div class="news_item_contents">
|
|
<p><img src="../../images/2024_web-test.jpg" alt="web-test" /></p>
|
|
<h1 id="localhostaccess">Local Host Access</h1>
|
|
<p>Tiny web server called Local Host Access (<strong>LHA</strong>) is ready to replace
|
|
Local File System Access (<strong>LFSA</strong>) on JVM and macOS: I've generated this
|
|
very article with LHA on macOS. Thus, Kotlin prooved to be a good choice for
|
|
cross-platform development with a minor limitation.</p>
|
|
<p>The minor limitation is the fact that 99% of Kotlin is used on JVM. The
|
|
remaining 1% is so-called Kotlin Native for iOS, Linux, macOS, and Windows.
|
|
Thus, when one needs something as simple as to find out if a symlink
|
|
points to a file or directory, that's a dead end, there's no article for
|
|
that on the Internet. For C, there are numerous articles telling to call <code>stat()</code>
|
|
function. For Kotlin Native, it's unclear how to properly make such a simple call.</p>
|
|
<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,
|
|
and still wait for an answer.
|
|
In the meantime, I had to resort to calling <code>stat</code> in the shell (aka <code>system()</code>).</p>
|
|
<h1 id="december">December</h1>
|
|
<p>I plan to implement the first Kotlin -> Python translator to let LHA
|
|
cover as many platforms as the original LFSA in Python.</p>
|
|
</div>
|
|
</div>
|
|
<div id="disqus_thread"></div>
|
|
<script>
|
|
var disqus_config = function () {
|
|
this.page.url = "https://opengamestudio.org/en/news/lha-jvm-macos.html";
|
|
this.page.identifier = "lha-jvm-macos.html";
|
|
};
|
|
(function() { // DON'T EDIT BELOW THIS LINE
|
|
var d = document, s = d.createElement('script');
|
|
s.src = 'https://opengamestudio.disqus.com/embed.js';
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
(d.head || d.body).appendChild(s);
|
|
})();
|
|
</script>
|
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
<div id="footer">
|
|
The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
|
|
from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
|
|
</div>
|
|
</center>
|
|
</body>
|
|
</html>
|