<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Run_Cuis_in_the_Web_Browser._%28SqueakJS%29</id>
	<title>Run Cuis in the Web Browser. (SqueakJS) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Run_Cuis_in_the_Web_Browser._%28SqueakJS%29"/>
	<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Run_Cuis_in_the_Web_Browser._(SqueakJS)&amp;action=history"/>
	<updated>2026-05-08T12:45:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=Run_Cuis_in_the_Web_Browser._(SqueakJS)&amp;diff=17&amp;oldid=prev</id>
		<title>Nmingott: added links</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Run_Cuis_in_the_Web_Browser._(SqueakJS)&amp;diff=17&amp;oldid=prev"/>
		<updated>2025-05-03T13:07:53Z</updated>

		<summary type="html">&lt;p&gt;added links&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:07, 3 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;CAVEAT&#039;&#039;&#039;. This is very much &#039;&#039;&#039;alpha&#039;&#039;&#039;, don&#039;t take it for granted it will run every day ;)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;CAVEAT&#039;&#039;&#039;. This is very much &#039;&#039;&#039;alpha&#039;&#039;&#039;, don&#039;t take it for granted it will run every day ;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You can run Cuis in the Web browser using SqeuakJS clicking this link : CuisJS&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You can run Cuis in the Web browser using SqeuakJS clicking this link :&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; [https://euriscom.it/smalltalk/cuis.html&lt;/ins&gt; CuisJS&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You can see important debugging messages in your browser developer console.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You can see important debugging messages in your browser developer console.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* It is not very snappy, be prepared to wait long times.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* It is not very snappy, be prepared to wait long times.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=Run_Cuis_in_the_Web_Browser._(SqueakJS)&amp;diff=16&amp;oldid=prev</id>
		<title>Nmingott: inital import</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Run_Cuis_in_the_Web_Browser._(SqueakJS)&amp;diff=16&amp;oldid=prev"/>
		<updated>2025-05-03T13:06:46Z</updated>

		<summary type="html">&lt;p&gt;inital import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;CAVEAT&amp;#039;&amp;#039;&amp;#039;. This is very much &amp;#039;&amp;#039;&amp;#039;alpha&amp;#039;&amp;#039;&amp;#039;, don&amp;#039;t take it for granted it will run every day ;)&lt;br /&gt;
&lt;br /&gt;
* You can run Cuis in the Web browser using SqeuakJS clicking this link : CuisJS&lt;br /&gt;
* You can see important debugging messages in your browser developer console.&lt;br /&gt;
* It is not very snappy, be prepared to wait long times.&lt;br /&gt;
* When you load &amp;#039;&amp;#039;CuisJS&amp;#039;&amp;#039; the first time it comes with only the &amp;#039;&amp;#039;.image&amp;#039;&amp;#039; and &amp;#039;&amp;#039;.changes&amp;#039;&amp;#039; files. To load all the base Cuis directories as &amp;#039;&amp;#039;Documentation&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Features&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Core-updates&amp;#039;&amp;#039; etc. you need to run the following snippet. &amp;#039;&amp;#039;&amp;#039;ATTENTION&amp;#039;&amp;#039;&amp;#039;, this is going to take about 10 minutes to complete.&lt;br /&gt;
&lt;br /&gt;
 Feature require: &amp;#039;CuisJS&amp;#039;. &lt;br /&gt;
 CuisJS installDataDirs.&lt;br /&gt;
&lt;br /&gt;
* If you &amp;#039;&amp;#039;&amp;#039;Save the image&amp;#039;&amp;#039;&amp;#039; you can then visit &amp;#039;&amp;#039;CuisJS&amp;#039;&amp;#039; and have it running with all files and directories in less then 1 minute !&lt;br /&gt;
* This version of Cuis will be always in sync with Juan repository. If possible I will try to check for updates every 5 minutes.&lt;br /&gt;
* &amp;#039;&amp;#039;CuisJS&amp;#039;&amp;#039; virtual machine is &amp;#039;&amp;#039;&amp;#039;SqueakJS&amp;#039;&amp;#039;&amp;#039; with a few primitives more (just one now). For the moment I will not try to keep in sync with &amp;#039;&amp;#039;SqueakJS&amp;#039;&amp;#039; but ideally I will in the future.&lt;br /&gt;
&lt;br /&gt;
== How does it work ? ==&lt;br /&gt;
&lt;br /&gt;
* With your browser you load the page: &amp;#039;&amp;#039;cuis.html&amp;#039;&amp;#039;. That  loads &amp;#039;&amp;#039;&amp;#039;jQuery&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;SqueakJS&amp;#039;&amp;#039;&amp;#039;, then it runs &amp;#039;&amp;#039;SqueakJS&amp;#039;&amp;#039; passing there files:&lt;br /&gt;
** &amp;#039;&amp;#039;Cuis-XXX.image&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;#039;&amp;#039;Cuis-XXX.changes&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;#039;&amp;#039;Cuis-XXX.sources&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;#039;&amp;#039;CuisJS.pck.st&amp;#039;&amp;#039; . My helper package.&lt;br /&gt;
** &amp;#039;&amp;#039;Compression.pck.st&amp;#039;&amp;#039; . Needed because I what to decompress stuff coming from the server.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;lt;nowiki/&amp;gt;&amp;#039;UnsavedChangesTo-Compression-NM.001.cs.st&amp;#039;&amp;#039;&amp;#039; . A correction to &amp;#039;&amp;#039;Compression&amp;#039;&amp;#039; that was not working fine.&lt;br /&gt;
* I added a primitive to &amp;#039;&amp;#039;SqueakJS&amp;#039;&amp;#039; (number &amp;#039;&amp;#039;&amp;#039;902&amp;#039;&amp;#039;&amp;#039;) to let me load text files from the server. The primitive loads the script &amp;#039;&amp;#039;primitive-902.js&amp;#039;&amp;#039; and, on success, calls the function &amp;#039;&amp;#039;getCuisTextFiles()&amp;#039;&amp;#039;. Don&amp;#039;t be fooled by the name, all the files I load are text files, binary are encoded to &amp;#039;&amp;#039;Base64&amp;#039;&amp;#039;. This helped me reduce the amount of code to write.&lt;br /&gt;
* &amp;#039;CuisJS.pck.st&amp;#039; is a helper package to collect useful functions for &amp;#039;&amp;#039;CuisJS&amp;#039;&amp;#039;. It is the only package aware of the new primitives i define, for example.&lt;br /&gt;
&lt;br /&gt;
== Issues &amp;amp; limitations &amp;amp; TODO ==&lt;br /&gt;
&lt;br /&gt;
* If updating the repository I can remove &amp;#039;UnsavedChangesTo-Compression-NM.001.cs.st&amp;#039;, Juan uploaded it to Cuis-Smalltalk-Dev.&lt;br /&gt;
* Load Cuis files and dirs in the same directory where there is the image. Now they are one level below. This could create problems. (mailing Juan 23-Sep-2021).&lt;br /&gt;
* If a new directory is added into &amp;#039;&amp;#039;Cuis-Smalltalk-Dev&amp;#039;&amp;#039;, or its subdirectories, this change will not be automatically reflected in &amp;#039;&amp;#039;CuisJS&amp;#039;&amp;#039;, because the directory structure was hardcoded in Javascript file &amp;lt;code&amp;gt;primitive-902.js&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The image version number is hardcoded into the HTML file &amp;lt;code&amp;gt;cuis.html&amp;lt;/code&amp;gt; , it requires Nicola manual intervention if the image version number change.&lt;br /&gt;
* There a way to load files &amp;#039;&amp;#039;on demand&amp;#039;&amp;#039; (see maling Vanessa 22-Sep-2010).&lt;br /&gt;
&lt;br /&gt;
----Dr. Nicola Mingotti started this page on 19-Sep-2021. I am testing CuisJS in Firefox under Linux mainly.&lt;/div&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
</feed>