Artifact
2918807851c44727a7e3ef45786ba799fb90f6f0:
Wiki page
[
Application Example: Silktorrent Package Manager] by
martin_vahi on
2016-07-01 08:20:52.
D 2016-07-01T08:20:52.930
L Application\sExample:\sSilktorrent\sPackage\sManager
P 895b28b712b1a5a16759fd2c5b78050041d591e7
U martin_vahi
W 1483
<h1 style="text-align: left;">The Core Idea</h1>
<p>If the silktorrent packet is a tar-file that contains folders </p>
<p><b>payload</b></p>
<p><b>header</b></p>
<p>then the content of the folders payload and header can be referenced by
using the
<a href="http://bitrary.softf1.com/index.php?title=Art_:_Source_Code#Tree_Encoding">tree
encoding</a>:</p>
<p><b><tar-file name>/payload/<the file or folder relative to the
folder payload></b></p>
<p><b><tar-file name>/header/<the file or folder relative to the
folder header></b><br>
</p>
<p>The <tar-file name> can be also a name of a local folder or some
folder at some publicly hosted web page. The include/require/src/uses
statements of various programming languages and configurations files, including
HTML, can be modified by changing the pfefix of the <tar-file name>. That
allows an HTML-page to be switched from using JavaScript libraries from one
site to using the very same JavaScript libraries from another site.</p>
<p><b>http://www.first_site.com/</b><tar-file name>/payload/the_JavaScript_library.js<br>
</p>
<p><b>http://www.second_site.com/</b><tar-file name>/payload/the_JavaScript_library.js<br>
</p>
<p>Due to the possibility to use regular expressions, that solution does not
require code generation. It might be even usable with many existing IDE-s
without requiring any additional tools. The solution is also programming
language agnostic.</p>
Z b0e0d5900cea1f9414c0b6fed66d387d