tag:blogger.com,1999:blog-8378574.post2642439597194516949..comments2023-04-13T03:57:37.221-04:00Comments on Croquet: More ScriptingDavid A. Smithhttp://www.blogger.com/profile/08378620295464558412noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8378574.post-57814547881670548372007-10-13T21:12:00.000-04:002007-10-13T21:12:00.000-04:00That is a very interesting idea Patrick. Thanks fo...That is a very interesting idea Patrick. Thanks for the heads up. I will contact Doug!David A. Smithhttps://www.blogger.com/profile/08378620295464558412noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-52353388391329919832007-10-13T21:10:00.000-04:002007-10-13T21:10:00.000-04:00Maybe something similar to douglas crockford's "si...Maybe something similar to douglas crockford's "simplified javascript" dialect. The full language has a lot of, em, bad stuff, including security holes.patrickdloganhttps://www.blogger.com/profile/09030151653908100586noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-5292201534071089822007-10-07T12:19:00.000-04:002007-10-07T12:19:00.000-04:00The Babel stuff looked good, but unfortunately, it...The Babel stuff looked good, but unfortunately, it was not a full Javascript and I believe it diverged from the "official" standard in some very fundamental ways. How close to actual Javascript does it need to be? Would someone who was quite familiar with Javascript be turned off by something that was almost but not quite the same? How different is ActionScript from JavaScript?David A. Smithhttps://www.blogger.com/profile/08378620295464558412noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-17522124613711388332007-10-07T12:16:00.000-04:002007-10-07T12:16:00.000-04:00Animations/simulations occur over time. Looping li...Animations/simulations occur over time. Looping like this:<BR/><BR/>myAnimation<BR/>[anything] whileTrue:[self animate] <BR/><BR/>is considered to be an atomic operation. That is, it must be completed in the same teatime. Further, there is no control on how fast this animation runs, hence even allowing it to suspend on occasion is not necessarily replicatable. There are ways to fix this, but I believe that is pointless. Far better to use the explicit and clean temporal tail recursion offered by #future:. The above becomes:<BR/><BR/>myAnimation<BR/>self animate.<BR/>anything ifTrue:[(self future:100)myAnimation.]David A. Smithhttps://www.blogger.com/profile/08378620295464558412noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-76300339551534708322007-10-07T11:56:00.000-04:002007-10-07T11:56:00.000-04:00What do you mean, in reference to the #future: met...What do you mean, in reference to the #future: method, by "you must not loop to simulate in Croquet"? Maybe an example would illustrate ...<BR/><BR/>Could the Jasmine-based Babel flavor of Javascript help here? It was quite limited as I recall.Anonymoushttps://www.blogger.com/profile/01350063992413538306noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-79654132231014931802007-10-07T11:56:00.001-04:002007-10-07T11:56:00.001-04:00What do you mean, in reference to the #future: met...What do you mean, in reference to the #future: method, by "you must not loop to simulate in Croquet"? Maybe an example would illustrate ...Anonymoushttps://www.blogger.com/profile/01350063992413538306noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-37336808950862362322007-10-06T20:12:00.000-04:002007-10-06T20:12:00.000-04:00Thanks ED. This looks like an interesting project....Thanks ED. This looks like an interesting project. I will definitatly give it a look.David A. Smithhttps://www.blogger.com/profile/08378620295464558412noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-64965787063005994722007-10-06T13:59:00.000-04:002007-10-06T13:59:00.000-04:00Do you have a starting place for a javascript comp...Do you have a starting place for a javascript compiler written in Smalltalk? Here's link I googled up:<BR/>http://www.exept.de:8080/doc/online/english/programming/goody_javaScript.html<BR/><BR/>Is there something better?Kevin Driedgerhttps://www.blogger.com/profile/07354289344595303603noreply@blogger.comtag:blogger.com,1999:blog-8378574.post-34531804973420966312007-10-05T22:49:45.327-04:002007-10-05T22:49:45.327-04:00Too bad about Lua, since it's my favorite scriptin...Too bad about Lua, since it's my favorite scripting language. I do have to admit JS is better known.kinglesshttps://www.blogger.com/profile/12089751082622296801noreply@blogger.com