Add 2018-08 article

This commit is contained in:
2018-08-21 13:14:12 +03:00
parent 6cf9401645
commit 5b77ee9c98
116 changed files with 2233 additions and 926 deletions

View File

@@ -50,10 +50,10 @@
title="Permalink to Scripting research">Scripting research</a></h3>
</header>
<h6 class="subheader" title="2017-08-16T00:00:00+03:00">Ср 16 Август 2017
<h6 class="subheader" title="2017-08-16T00:00:00+03:00">Ср 16 августа 2017
<a class="button secondary small translation-button" href="http://opengamestudio.org/scripting-research-ru.html">ru</a>
</h6> <p><img alt="Scripting research" src="http://opengamestudio.org/2017-08-scripting-research.png" /></p>
</h6> <p><img alt="Scripting research" src="http://opengamestudio.org/2017-08-scripting-research.png"></p>
<p>This article describes scripting research in July 2017.</p>
<p><strong>Our first goal of using a scripting language was to have a platform-independent code that runs unchanged on every supported platform.</strong></p>
<p>OGS Editor 0.10 supports Python for such a code thanks to <a href="http://swig.org/">SWIG</a>. SWIG provides a way to wrap almost any C/C++ code and use it in dozens of languages like Python, Ruby, Lua, Java, C#, etc.. SWIG really helped us taste the beauty of platform-independent code. However, SWIG only works one way: from C/C++ to a target language. This means the main application must be in the target language, and C/C++ code can only be used as a library.</p>