Artifact ID: | 063f5ae4db4f8eee1e4dc3a762de2ff8b734fe52 |
---|---|
Page Name: | Application Example: Silktorrent Package Manager |
Date: | 2016-10-09 19:24:15 |
Original User: | martin_vahi |
Parent: | b024992c2670a2d6ab3bde2f9b93f71c838eaa66 (diff) |
Next | a73e2b391a8cedb19086b65d53a894f0a87ade51 |
The Core Idea
The silktorrent packet is a tar-file that contains folders
payload
header
In software projects and HTML pages the content of the folders payload and header can be referenced by using the tree encoding:
<tar-file name>/payload/<the file or folder relative to the folder payload>
<tar-file name>/header/<the file or folder relative to the
folder header>
The <tar-file name> can be the 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 prefix 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.
http://www.first_site.com/<tar-file name>/payload/the_JavaScript_library.js
http://www.second_site.com/<tar-file name>/payload/the_JavaScript_library.js
Due to the possibility to use regular expressions, the proposed solution does not require code generation. It might be usable with many existing IDE-s without requiring any additional tools or plugins. The solution is also programming language agnostic.