<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: jsui was a mistake.</title>
		<atom:link href="http://cycling74.com/forums/topic/jsui-was-a-mistake/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 20:39:44 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-33964</guid>
					<title><![CDATA[jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-33964</link>
					<pubDate>Thu, 04 Oct 2007 09:33:05 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>Javascript for the UI was a big mistake and nothing can be done about it, short of:<br />
Cut your losses.</p>
<p>Somebody made a big mistake. They did not properly research the climate of available virtual machine technology of the 2003 timeframe. Even back then, we were well aware of Lua&#8217;s&#8217; complete superiority.</p>
<p>JS spidermonkey and JS rhino virtual machines are irreclaimable. Their gluttonous memory consumption and slothlike performance will not be fixed.</p>
<p>Now Max/Msp&#8217;s great potential &#8212; a potential we looked forward for so long, is squandered. Max is not where it should be. This was so important. It was a critical mistake. Now we&#8217;re screwed for a long time.</p>
<p>I feel that I&#8217;m being very pragmatic about this. I&#8217;m not taking a hard-edge aggrandizing stance here. JSUI is simply a failure. It&#8217;s often easy for the creators, in this case, Cycling.. to &#8216;be holding the handle&#8217; but not &#8216;inside the pot.&#8217;</p>
<p>Yes, us guys who are inside the pot.. if you heard what actually goes on in our small talks, our unvoiced frustrations. It&#8217;s just sad. &#8220;Well couldn&#8217;t you do it with JSUI?&#8221; , &#8220;Ah man&#8230;&#8221;  Yes, there are fleeting moments of innocent hope. They&#8217;re quickly shattered.</p>
<p>Because JSUI is unusably slow. It destroys your CPU, it stabs your music. There is nothing you can do.</p>
<p>LUA is completely superior.</p>
<p>Superior in every possible way to Javascript. There is no justification you can come up with for a reason why we&#8217;d ever want Javascript, besides, &#8220;well, some web developers know it.&#8221; And that reason isn&#8217;t even real. Anybody who really wants to do something with Max&#8217;s_amazing_new_LuaUi will have no problem getting into Lua very quickly. The &#8220;PiL&#8221; (Programming In Lua) book is orthogonal to Max/Msp&#8217;s set of tutorials and help patchers. It&#8217;s definitive and highly accessible for both programmers and non-programmers alike.</p>
<p>If we take a look at some respectable language benchmarks of LUA vs JS for a variety of algorithms,<br />
<a href="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#038;lang=lua&#038;lang2=javascript" rel="nofollow">http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#038;lang=lua&#038;lang2=javascript</a><br />
We&#8217;ll see such things as, oh,<br />
Lua being 8.6 times faster,<br />
Javascript using 163 times more memory,<br />
Lua being 5.7 times faster,<br />
Javascript using 77 times more memory,<br />
Or, in the case of LuaJit (<a href="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#038;lang=luajit&#038;lang2=javascript" rel="nofollow">http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#038;lang=luajit&#038;lang2=javascript</a>), oh,<br />
LuaJit being 30 times faster,<br />
Javascript using 138 times more memory,<br />
LuaJit being 15 times faster,<br />
Ad nauseum.</p>
<p>Lua is an incredible little VM. It&#8217;s fast and lightweight. It&#8217;s easily embeddable with luabind or tolua++. It&#8217;s sandboxed. It&#8217;s so tiny that you can just spawn off VM&#8217;s right and left if you like.</p>
<p>Cycling.<br />
Listen up.<br />
It&#8217;s not too late.<br />
CUT YOUR LOSSES.<br />
JSUI has only been in Max for a few point releases. People aren&#8217;t too attached. Max 5 is your chance to say:<br />
Oh, well we made a little booboo.</p>
<p>We really want something that works and uses 2% cpu.<br />
Come on.</p>
<p>- Invect</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113832</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113832</link>
					<pubDate>Thu, 04 Oct 2007 10:08:38 +0000</pubDate>
					<dc:creator>Mattijs</dc:creator>

					<description>
						<![CDATA[
						<p>Haha, beautiful! Despite the contrast with the general positive and polite tone on this forum I must say I like this post.</p>
<p>Invect, without verifying your claims I&#8217;d like to say thanks for formulating your beliefs/frustrations in a comprehensive way to the MaxMSP community.</p>
<p>I must add that I see no problem at all in having lua -and- js available in Max. </p>
<p>Also check this: <a href="http://www.cycling74.com/forums/index.php?t=msg&#038;goto=109151&#038;rid=3579&#038;S=acc90b750e6e7cee871bcc3602c197a9" rel="nofollow">http://www.cycling74.com/forums/index.php?t=msg&#038;goto=109151&#038;rid=3579&#038;S=acc90b750e6e7cee871bcc3602c197a9</a></p>
<p>my 2 cents<br />
Mattijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113833</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113833</link>
					<pubDate>Thu, 04 Oct 2007 10:11:07 +0000</pubDate>
					<dc:creator>Mattijs</dc:creator>

					<description>
						<![CDATA[
						<p>Btw I moved this topic to the javascript forum, mailing list users please reply to the javascript list.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113834</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113834</link>
					<pubDate>Thu, 04 Oct 2007 12:21:58 +0000</pubDate>
					<dc:creator>joshua goldberg</dc:creator>

					<description>
						<![CDATA[
						<p>what about using jit.gl.lua in a jit.pwindow?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113835</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113835</link>
					<pubDate>Thu, 04 Oct 2007 13:33:52 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>On 10/4/07, joshua goldberg <wugmump @speakeasy.org> wrote:</wugmump></p>
<p>> what about using jit.gl.lua in a jit.pwindow?</p>
<p>
It works, but an integrated solution would be much nicer imo. 2 issues with this workaround that come to mind:</p>
<p>- you can&#8217;t know when to update your window, so you&#8217;re always updating even though your pwindow might not be visible at the time.</p>
<p>- there is no equivalent to jitter listener in jit.gl.lua. afaik. You have to manually connect the mouse events of the window to jit.gl.lua</p>
<p>I totally agree with Invect. I&#8217;ve tried to do serious UI design in both JSUI and JS+gl.sketch+pwindow. The latter being an order of magnitude faster obviously.</p>
<p>In my last attempt (multilayer sequencer and curve editor)  I wasted a lot of time only to end up with an unscalable and slow 3000+ lines Javascript file that is now useless to me.</p>
<p>If I could go back I&#8217;d now probably do the whole thing in C++ but that kind of defeats the idea of using Max for me. I&#8217;d end up with something more like a standalone app rather than dynamic and reusable Max components. </p>
<p>Since the arrival of Lua support in Max I&#8217;ve been investigating several ways to design a UI library to be used with jit.gl.lua, but I fear I might not have the time or the experience to come up with a sustainable solution on my own.</p>
<p>If Lua ever will be fully integrated with Max, similar to Javascript is now (UI design + Pattr support), I&#8217;d be an extremely happy person.</p>
<p>My 2 cents,</p>
<p>Thijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113836</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113836</link>
					<pubDate>Thu, 04 Oct 2007 14:33:05 +0000</pubDate>
					<dc:creator>radarsat1</dc:creator>

					<description>
						<![CDATA[
						<p>> In my last attempt (multilayer sequencer and curve editor)  I wasted a lot of time only to end up with an unscalable and slow 3000+ lines Javascript file that is now useless to me.</p>
<p>
I&#8217;ve been down a similar road.  (Though not 3000 lines.. ;-)</p>
<p>I integrated a semi-complicated data structure visualization with<br />
JSUI.  It looked really nice, but as you said was quite slow.  Also,<br />
the visualization in question was intended to go inside a bpatcher,<br />
and it turns out JSUI doesn&#8217;t play very well with this, often drawing<br />
outside the bpatcher boundaries.</p>
<p>I&#8217;m actually at the moment creating an LCD-based alternative, which is<br />
working fine, though not as pretty.  We&#8217;re still using Javascript for<br />
other tasks.</p>
<p>I never figured out if it&#8217;s the javascript itself or just the JSUI<br />
stuff that is slow.  I get the impression is the latter, but would<br />
need to find some way to test it.</p>
<p>Steve</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113837</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113837</link>
					<pubDate>Thu, 04 Oct 2007 15:46:24 +0000</pubDate>
					<dc:creator>Anthony Palomba</dc:creator>

					<description>
						<![CDATA[
						<p>Wow, I did not even know you could use Lua in Max.<br />
That is good to know.</p>
<p>
Anthony</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113838</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113838</link>
					<pubDate>Thu, 04 Oct 2007 17:52:11 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 7:33 AM, Stephen Sinclair wrote:</p>
<p>> I&#8217;m actually at the moment creating an LCD-based alternative, which is<br />
> working fine, though not as pretty.  We&#8217;re still using Javascript for<br />
> other tasks.<br />
><br />
> I never figured out if it&#8217;s the javascript itself or just the JSUI<br />
> stuff that is slow.  I get the impression is the latter, but would<br />
> need to find some way to test it.</p>
<p>Btw, if you disable FSAA (full scene anti-aliasing), JSUI drawing  <br />
code is 2-4x faster.</p>
<p>Lua&#8217;s a great language and we&#8217;re looking at easier ways for anyone to  <br />
make language bindings. So, no need to ditch JS. Btw, the Tamarin VM  <br />
which is slated for the next version of the SpiderMonkey JS  <br />
implementation is significantly faster. Personally, if speed/memory  <br />
is the utmost concern, I&#8217;d drop down to C.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113839</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113839</link>
					<pubDate>Thu, 04 Oct 2007 18:09:44 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>The one thing I was hoping not to bring into this thread is another post from JKC about disabling antialiasing on JSUI.</p>
<p>JKC,<br />
You&#8217;ve already said it on this forum 20 times.<br />
We know.</p>
<p>Today while doing research, I read the standard &#8220;jkc-antialiasing-signature&#8221; at least 10 times.</p>
<p>Come on.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113840</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113840</link>
					<pubDate>Thu, 04 Oct 2007 18:13:04 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>I am so sick of seeing you reply to every single person about disabling antialiasing for &#8220;2 to 4x&#8221; speed benefit.<br />
It&#8217;s as if it somehow allows you to slink away from the issue.<br />
EVERY TIME.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113841</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113841</link>
					<pubDate>Thu, 04 Oct 2007 18:17:52 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>> &#8211; there is no equivalent to jitter listener in jit.gl.lua. afaik. You have to manually connect the mouse events of the window to jit.gl.lua</p>
<p>Not true!</p>
<p>listener = jit.listener(this.drawto, callbackfunc);</p>
<p>wes</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113842</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113842</link>
					<pubDate>Thu, 04 Oct 2007 19:22:28 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 11:13 AM, Zola wrote:</p>
<p>><br />
> I am so sick of seeing you reply to every single person about  <br />
> disabling antialiasing for &#8220;2 to 4x&#8221; speed benefit.<br />
> It&#8217;s as if it somehow allows you to slink away from the issue.<br />
> EVERY TIME.</p>
<p>Sorry, but some people don&#8217;t read the archives, and/or forget this  <br />
fact. The reason that JSUI is slow is that it uses a software based  <br />
OpenGL renderer, and uses 4x multi-sampling if fsaa is enabled (which  <br />
it is by default). Switching to lua with this same means of rendering  <br />
will not make much performance difference as the bottleneck is in the  <br />
drawing. In this case it&#8217;s not a language perf issue. If you want to  <br />
make things faster, use js+jit.gl.sketch, or jit.gl.lua with  <br />
jit.pwindow, which is HW accelerated.</p>
<p>As for Lua vs. JS VM performance comparisons. Of course you&#8217;re right.  <br />
There are a number of reasons why JS was chosen, and why we&#8217;re  <br />
committed to it as a supported scripting language in Max. With  <br />
Tamarin, the VM performance discrepancy between Lua and JS will not  <br />
be such an issue.</p>
<p>I appreciate your frustration, but there is nothing preventing you or  <br />
other people from integrating Lua into Max. In fact two people, have  <br />
already have done this. There&#8217;s no need to be impolite.</p>
<p>Thanks,<br />
Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113843</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113843</link>
					<pubDate>Thu, 04 Oct 2007 19:50:17 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>Joshua,</p>
<p>Yes, making a lua extern takes just a few hours of work with luabind. I&#8217;ve done so. But the key issue here is something else.</p>
<p>Sketch is great. jit.gl.sketch + jit.gl.pwindow works well in the mostly-monolithic scenario. While I have no issues pushing towards eight sketches, it doesn&#8217;t work out for atomic.</p>
<p>With Sketch, I would not create a whole set of building block UI components to use everywhere and love. I use Sketch for centerpiece UI&#8217;s. Not for lego-bricks.</p>
<p>Atomicity is what JSUI is supposed to be able to do.<br />
And that&#8217;s where it fails too.<br />
It&#8217;s too slow for that.</p>
<p>So really, there is no use-case for JSUI:<br />
We don&#8217;t want it for atomic, (watch everything freeze up completely.)(hear your music die)<br />
And we don&#8217;t want it for what Sketch does.</p>
<p>I am driving at a stronger point here.<br />
A powerful, fast, take-it-for-granted-that-it-just-works-fundamental-essential-building-block-of-the-whole-entire-MAX-idea,<br />
A way of building UI components to go inside of Max,<br />
Perfectly. As a core-feature of Max,<br />
is so important.<br />
It&#8217;s the basics, man.<br />
It baffles me how Cycling has placed such little importance on getting this right,<br />
and allows JSUI to remain a failure.<br />
The need is so obvious.</p>
<p>- Invect</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113844</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113844</link>
					<pubDate>Thu, 04 Oct 2007 19:58:33 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>Zola full of lightning?</p>
<p>On 10/4/07, Zola <looseonthestreet @gmail.com> wrote:<br />
><br />
> Joshua,<br />
><br />
> Yes, making a lua extern takes just a few hours of work with luabind. I&#8217;ve done so. But the key issue here is something else.<br />
><br />
> Sketch is great. jit.gl.sketch + jit.gl.pwindow works well in the mostly-monolithic scenario. While I have no issues pushing towards eight sketches, it doesn&#8217;t work out for atomic.<br />
><br />
> With Sketch, I would not create a whole set of building block UI components to use everywhere and love. I use Sketch for centerpiece UI&#8217;s. Not for lego-bricks.<br />
><br />
> Atomicity is what JSUI is supposed to be able to do.<br />
> And that&#8217;s where it fails too.<br />
> It&#8217;s too slow for that.<br />
><br />
> So really, there is no use-case for JSUI:<br />
> We don&#8217;t want it for atomic, (watch everything freeze up completely.)(hear your music die)<br />
> And we don&#8217;t want it for what Sketch does.<br />
><br />
> I am driving at a stronger point here.<br />
> A powerful, fast, take-it-for-granted-that-it-just-works-fundamental-essential-building-block-of-the-whole-entire-MAX-idea,<br />
> A way of building UI components to go inside of Max,<br />
> Perfectly. As a core-feature of Max,<br />
> is so important.<br />
> It&#8217;s the basics, man.<br />
> It baffles me how Cycling has placed such little importance on getting this right,<br />
> and allows JSUI to remain a failure.<br />
> The need is so obvious.<br />
><br />
> &#8211; Invect<br />
></looseonthestreet></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113845</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113845</link>
					<pubDate>Thu, 04 Oct 2007 20:01:22 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 12:50 PM, Zola wrote:</p>
<p>> Sketch is great. jit.gl.sketch + jit.gl.pwindow works well in the  <br />
> mostly-monolithic scenario. While I have no issues pushing towards  <br />
> eight sketches, it doesn&#8217;t work out for atomic.</p>
<p>You might find jitter-gui-sliderexample.pat useful for your purposes.  <br />
Similar strategies could be used in jit.gl.lua, and are also expose  <br />
with the Java Jitter binding.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113846</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113846</link>
					<pubDate>Thu, 04 Oct 2007 20:01:25 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: <a href="mailto:wesley.hoke@gmail.com">wesley.hoke@gmail.com</a> wrote on Thu, 04 October 2007 13:58<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Zola full of lightning?<br />
> </p>
<p>Ack. I can never edit my posts.<br />
jit.pwindow</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113847</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113847</link>
					<pubDate>Thu, 04 Oct 2007 20:01:56 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 12:58 PM, Wesley Smith wrote:</p>
<p>> Zola full of lightning?</p>
<p>Completely :)</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113848</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113848</link>
					<pubDate>Thu, 04 Oct 2007 20:13:46 +0000</pubDate>
					<dc:creator>mzed</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Zola wrote on Thu, 04 October 2007 02:33<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Javascript for the UI was a big mistake and nothing can be done about it, short of:<br />
> Cut your losses.</p>
<p>> LUA is completely superior.<br />
> <br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>I love it, if for no other reason than the Lua sibling of jsui could be called lui-lui.</p>
<p>mz</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113849</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113849</link>
					<pubDate>Thu, 04 Oct 2007 20:45:57 +0000</pubDate>
					<dc:creator>max5pariah</dc:creator>

					<description>
						<![CDATA[
						<p>Joshua,</p>
<p>> Lua&#8217;s a great language and we&#8217;re looking at easier ways for anyone to  <br />
> make language bindings. So, no need to ditch JS. Btw, the Tamarin VM  <br />
> which is slated for the next version of the SpiderMonkey JS  <br />
> implementation is significantly faster. Personally, if speed/memory  </p>
<p>Tamarin will not be fast.<br />
We already know that.<br />
The deal is done.<br />
If you are reserving some future hope that Tamarin will come in and save the day,<br />
No chance.<br />
If you would like proof of that fact,<br />
Your proof will only come when you read-back on my forum posting in 3 years from now, and Tamarin has solved nothing.<br />
Fundamentally it is impossible for Tamarin to ever be fast.<br />
Please check here:</p>
<p><a href="http://ejohn.org/apps/js-speed/results/" rel="nofollow">http://ejohn.org/apps/js-speed/results/</a></p>
<p>Notice how Tamarin is ~20% faster than SpiderMonkey.<br />
20% is not significantly faster.<br />
It&#8217;s not an order of magnitude faster like Lua,<br />
or using 150 times less memory, like Lua.<br />
LuaJIT can be 10 to 40 times faster.</p>
<p>Tamarin is a big bloated piece of Junk with a huge codebase. Major KLOCage goes into concerns WEB SECURITY ISSUES.<br />
It&#8217;s complete bullshit for Max/Msp.</p>
<p>From wikipedia:<br />
&#8220;<br />
__What Tamarin is not__</p>
<p>Adobe contributed code for its virtual machine and the JIT compiler. The JavaScript compiler (the program generating bytecode from JavaScript source code) was not contributed as part of Tamarin. The contributed code will be integrated with SpiderMonkey to produce a complete JavaScript engine.</p>
<p>Tamarin is not the same as Adobe&#8217;s Flash player, which remains closed source. The virtual machine is only a part of the Flash player, and will be a part of future versions of Mozilla/Firefox.<br />
&#8220;</p>
<p>It&#8217;s not a micro-VM like Lua is.<br />
And that&#8217;s what something like Max needs.</p>
<p>Javascript is worth giving up on.<br />
Let&#8217;s see Max/Msp become amazing.<br />
Remove the things which stand in your way.</p>
<p>- Invect</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113850</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113850</link>
					<pubDate>Thu, 04 Oct 2007 20:53:07 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 1:45 PM, Zola wrote:</p>
<p>> It&#8217;s not a micro-VM like Lua is.<br />
> And that&#8217;s what something like Max needs.</p>
<p>No argument.</p>
<p>> Javascript is worth giving up on.</p>
<p>Won&#8217;t happen.</p>
<p>It&#8217;s not an either or question.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113851</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113851</link>
					<pubDate>Thu, 04 Oct 2007 21:52:36 +0000</pubDate>
					<dc:creator>radarsat1</dc:creator>

					<description>
						<![CDATA[
						<p>> The reason that JSUI is slow is that it uses a software based<br />
> OpenGL renderer</p>
<p>
Aha!  *NOW* i understand why JSUI is slow.  ;-)<br />
It has nothing to do with the FSAA per-say.. this software-based<br />
rendering is of course going to be slow.  Surely it might be<br />
eventually possible to drop-in a more efficient renderer that takes<br />
advantage of the operating system facilities for OpenGL?  (Maybe this<br />
is planned, sorry I haven&#8217;t read about the upcoming version yet..)</p>
<p>By the way I don&#8217;t share Zola&#8217;s opinion here.  I think JavaScript is<br />
actually quite a decent language.  As for speed of execution, I pretty<br />
much always expect interpreted languages to be slow and never expect<br />
to use them in time-critical tasks.  This is what C is for.</p>
<p>I never did understand why the JSUI stuff seemed slower than need be,<br />
but I didn&#8217;t realized it was completely software rendered&#8230; (thus..<br />
defeating the purpose of using OpenGL??  Though I&#8217;m sure it made it<br />
easier to implement.)</p>
<p>Steve</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113852</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113852</link>
					<pubDate>Thu, 04 Oct 2007 22:22:26 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>>> &#8211; there is no equivalent to jitter listener in jit.gl.lua. afaik. You have to manually connect the mouse events of the window to jit.gl.lua</p>
<p>> Not true!</p>
<p>> listener = jit.listener(this.drawto, callbackfunc);</p>
<p>Oops my bad! Don&#8217;t know how I missed that one&#8230;</p>
<p>Thijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113853</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113853</link>
					<pubDate>Thu, 04 Oct 2007 22:30:09 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>There&#8217;s an example in the jit.gl.lua download for listener stuff.  It<br />
currently takes a string argument.  I&#8217;ve been meaning to change this<br />
to take an actual lua function but haven&#8217;t got around to it.</p>
<p>wes</p>
<p>On 10/4/07, Thijs Koerselman
<thijskoerselman @gmail.com> wrote:<br />
><br />
> >> &#8211; there is no equivalent to jitter listener in jit.gl.lua. afaik. You have to manually connect the mouse events of the window to jit.gl.lua<br />
><br />
> > Not true!<br />
><br />
> > listener = jit.listener(this.drawto, callbackfunc);<br />
><br />
> Oops my bad! Don&#8217;t know how I missed that one&#8230;<br />
><br />
> Thijs<br />
></thijskoerselman></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113854</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113854</link>
					<pubDate>Thu, 04 Oct 2007 22:48:33 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Oct 4, 2007, at 2:52 PM, Stephen Sinclair wrote:</p>
<p>><br />
> Aha!  *NOW* i understand why JSUI is slow.  ;-)<br />
> It has nothing to do with the FSAA per-say.. this software-based<br />
> rendering is of course going to be slow.</p>
<p>Btw, I don&#8217;t think it should be much slower than the LCD you are  <br />
using if you set fsaa to zero (which is why I mentioned that old  <br />
tidbit again). As for drop in alternate renderers, you can relatively  <br />
easily change Sketch to jit.gl.sketch with jit.pwindow for HW  <br />
accelerated OpenGL with similar JS code.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113855</guid>
					<title><![CDATA[Re: jsui was a mistake.]]></title>
					<link>http://cycling74.com/forums/topic/jsui-was-a-mistake/#post-113855</link>
					<pubDate>Thu, 04 Oct 2007 23:12:03 +0000</pubDate>
					<dc:creator>johnpitcairn</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: jkc wrote on Fri, 05 October 2007 10:48<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Btw, I don&#8217;t think it should be much slower than the LCD you <br />
> are using if you set fsaa to zero</p>
<p>I also investigated using JSUI for my UI, largely to make use of the better antialiased text and easy scaling/resizing. My display requirements (and thus my internal drawing overhead) are actually very simple.</p>
<p>What killed the deal for me seems to be the overhead involved in passing messages from Max into JSUI. I&#8217;m dealing with a fairly dense stream of input messages in some situations, and JSUI required an order of magnitude more CPU time than LCD for the same task when I prototyped using both. Yes, FSAA was off.</p>
<p>If anything could be done about that overhead, I&#8217;d certainly look at JSUI again. Alternately, an OpenGL-based native version of LCD that accepts the equivalent OpenGL commands as Max messages would be most welcome, and possibly more future-proof(?). In Max, not Jitter. But maybe that&#8217;s not possible?</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

