<br><br><div class="gmail_quote">On Fri, Feb 6, 2009 at 10:13 AM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The main reason, which prevents squeak to use as embedded solution is<br>
a structure of VM.<br>
- there are many points when it assuming that it runs standalone<br>
- the main interpret() function is an endless loop and not reentrant,<br>
which makes it hard to interoperate with host process , like Lua does.<br>
recent updates added a callbacks, so they can be used as a kind of<br>
workaround to solve that issue.</blockquote><div><br></div><div>I either solved these issues or found they were non-issues in the context of VisualWorks in 1997/98 and made it function as a Web browser plugin. &nbsp;I used my threaded FFI that allows different threads to call-in and out of the VM, so that the Smalltalk image was fully active all the time even when the browser was not calling into it. &nbsp;The VM was loadable as a DLL and was supplied with an image file (which can be embedded as data, e.g. in a Windows exe&#39;s resources) in an init call which returns once the image as loaded. &nbsp;The entry-points in the DLL can then be called from code that has loaded the DLL. &nbsp;Inside these entry-points are rendezvous-style call-backs that the single-threaded Vm responds to.</div>
<div><br></div><div>I think (ok, know) the issue is not the image but the lack of a threaded FFI.</div><div><br></div><div>For reference, the external doc to my thrteaded interconnect is at</div><div>&nbsp;&nbsp; &nbsp;<a href="http://www.cincomsmalltalk.com/CincomSmalltalkWiki/VisualWorks+THAPI">http://www.cincomsmalltalk.com/CincomSmalltalkWiki/VisualWorks+THAPI</a></div>
<div>I have internal doc somewhere which belongs to Cincom so if anyone is interested I&#39;ll ask Cincom for permission to publish it and if they say yes then I&#39;ll make it available, e.g. on my web site.</div><div><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2009/2/6 Steve Wart &lt;<a href="mailto:steve.wart@gmail.com">steve.wart@gmail.com</a>&gt;:<br>
<div><div></div><div class="Wj3C7c">&gt; That&#39;s an interesting idea. Quite a lot of the momentum in Python, Lua,<br>
&gt; ECMAScript, etc. come from their embedded-ness.<br>
&gt;<br>
&gt; Smalltalk was built embedded in an OS that it was never entirely comfortable<br>
&gt; with, although there have been many attempts at scripting Smalltalk from<br>
&gt; other programs, Seaside being the most notable success.<br>
&gt;<br>
&gt; I suggest that this ideal already exists. The benefits come from specific<br>
&gt; implementations.<br>
&gt;<br>
&gt; It would be interesting to see a Croquet variant with a modern game engine.<br>
&gt; Smalltalk and C++ should be able to play well together.<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
&gt; On Fri, Feb 6, 2009 at 8:53 AM, askoh &lt;<a href="mailto:askoh@askoh.com">askoh@askoh.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I think it is good you dare to speak your mind. I also think that the<br>
&gt;&gt; Squeak<br>
&gt;&gt; community can take that. Keep your ideas coming.<br>
&gt;&gt;<br>
&gt;&gt; I would like Squeak to be callable from other programs so that it can be<br>
&gt;&gt; used as plugins.<br>
&gt;&gt;<br>
&gt;&gt; Aik-Siong Koh<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Giuseppe Luigi Punzi Ruiz wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We have elections soon.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;ts time to think about the project. What we search? What new<br>
&gt;&gt; &gt; developers search?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I think, probably, Squeak, needs a refactoring on the ideas behind. The<br>
&gt;&gt; &gt; people thath wants etoys, use etoys image. Croquet uses his own image.<br>
&gt;&gt; &gt; Now, at the moment (2009), I&#39;m 90% sure, the people thath go to<br>
&gt;&gt; &gt; <a href="http://squeak.org" target="_blank">squeak.org</a>, and get the latest Squeak, now, are developers searching a<br>
&gt;&gt; &gt; good smalltalk (something similar to VW but opensource I means) to use<br>
&gt;&gt; &gt; in their projects, not the use of Squeak as multimedia, or something<br>
&gt;&gt; &gt; similar. I know this for all spanish people ask me about Squeak, or<br>
&gt;&gt; &gt; developers &quot;going out the list&quot; searching Pharo, an approach to the<br>
&gt;&gt; &gt; things I say.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I like the idea about a console squeak (like GST) with the objects<br>
&gt;&gt; &gt; living in memory, but not dependent of the &quot;World&quot;, launching the actual<br>
&gt;&gt; &gt; Squeak World as an object (I don&#39;t know if is the actual behaviour, I<br>
&gt;&gt; &gt; only dream) if you want, or launching something like VW (or Dolphin)<br>
&gt;&gt; &gt; working over TK or GTK or WxWidgets or technologys like XUL<br>
&gt;&gt; &gt; instead.....I like the idea of an UI Painter....I like the idea of all<br>
&gt;&gt; &gt; Squeak tools running over web too..well, this idea don&#39;t like it very<br>
&gt;&gt; &gt; much :)..but I don&#39;t have the skills for all of this, for this I offer<br>
&gt;&gt; &gt; the ideas. But most important, is the community has vote for this<br>
&gt;&gt; &gt; things. The community needs to stay informed about the movements. I<br>
&gt;&gt; &gt; think, this, is the right direction.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I don&#39;t know what you all think, but IMHO, it&#39;s the moment to get a new<br>
&gt;&gt; &gt; Squeak 4 from zero, trying to preserve the core classes, with new ideas<br>
&gt;&gt; &gt; and ambitions.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I don&#39;t like very much the idea about all list hating me, but, after<br>
&gt;&gt; &gt; this mail, I know you hate me :P<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; P.D.: Yes, probably, I&#39;m crazy too.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://www.nabble.com/-squeak-dev--Winds-of-change-tp21872826p21876368.html" target="_blank">http://www.nabble.com/-squeak-dev--Winds-of-change-tp21872826p21876368.html</a><br>
&gt;&gt; Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</font></blockquote></div><br>