Friday, February 27, 2009

Newspeak Prototype Escapes into the Wild

The Newspeak prototype is now available at http://newspeaklanguage.org/downloads/ . We had planned to release it in early January, but decided to complete a few more things - like better source control support, a fully functional Hopscotch based debugger and a new GUI for unit testing (shown below).



Newspeak is a long way from being finished - we are less than half way to realizing the vision of a robust, high performance, secure, network aware, high productivity platform. We can only get there if people care enough to use it and contribute to it. I hope you'll check it out.

19 comments:

  1. I'm considering checking it out/contributing. Any pointers on things to read (books or online) in order to learn the prerequisites for contribution? BTW My main interest is in the IDE design and usability, not necessarily the VM side of things. Thanks!

    ReplyDelete
  2. Hi Mohamed,

    I don't know your technical background but I'll try. The most critical thing is to understand the philosophy of the system (which we have yet to live up to in many cases). Things like minimalism, compositionality, orthogonality.

    a. There is a fair amount of material about Newspeak on newspeaklanguage.org. In particular, regarding the IDE, there's Vassili's workshop paper.
    This blog also has a good deal of material that's relevant.

    b. Knowing Smalltalk or Self helps (though some things are very different). There are quite a few books on that.

    c. My personal web page (bracha.org) has stuff under papers. The 2004 OOPSLA paper on mirrors is pretty important wrt the iDE.

    d. Read some of the better code in the system. The Newspeak2 version of CombinatorialParsing, the new compiler (Newspeak2Compilation), the Newspeak debugger and parts of Hopscotch and Brazil done in Newspeak2 (like the windows mapping).

    ReplyDelete
  3. Darn. The image we're distributing has a ton of uncollected garbage which bloats it. It happens when you do this stuff around midnight.

    In any case, you should be saving a copy, and that should give you a cleaned up version - around 14Mb.

    ReplyDelete
  4. Hi Gilad,

    Congratulations. I've downloaded and gone through the tutorial which is great and easy to read.

    A brave new world indeed!

    Paul.

    ReplyDelete
  5. Hi Gilad,

    That's certainly enough to get me started, thanks a lot!

    ReplyDelete
  6. Hurray! Now to start learning goodthink.

    ReplyDelete
  7. Excellent. Is there a mailing list or newsgroup for Newspeak yet?

    ReplyDelete
  8. Avi,

    The Newspeak language page has a link to the forums:

    http://newspeaklanguage.org/forums

    ReplyDelete
  9. For Windows XP, I had to associate .image with nsvm.exe

    ReplyDelete
  10. jink,

    Sorry about that. I thought we had it fixed - but we tested that on Vista and Windows 7, so maybe there's a difference. Old Squeak installations can also cause problems.

    ReplyDelete
  11. Honestly, I had a secret hope that this release would unveil your top-secret port to the Da Vinci JVM. Unless you have such a thing up your sleave, then what exactly is the roadmap to web serviced Newspeak applications?

    The Newspeak project has taken a refreshingly pragmatic approach to Smalltalk, but it runs both ways. Just as morphic won't fly in the enterprise, "not deployable on the web" won't fly either.

    My pitch: Drop everything, and do the absolute minimum needed to make NewSpeak images run on Dan Ingalls's JSqueak. JSqueak struggles but it is trying to do the graphics in Smalltalk. The pragmatic Newspeak approach would use Brazil abstracted Java graphics. If you did nothing else but implement your non-squeak bytecodes in JSqueak, and get a (gui-less) image running, that would make a world of difference to someone like me who looks at Newspeak now and says "that looks interesting, but how could I ever deploy Newspeak apps?"

    ReplyDelete
  12. Peter,

    The thought of web deployment has actually occurred to me :-). Seriously, cloud computing was the original motivation for the language.

    To me, the path to the web leads through Javascript, not Java. Translate Newspeak to JS, and bind Hopscotch to the DOM (and eventually, Brazil to SVG). Why is Java so important to you (I can speculate, but please do tell).

    Why hasn't that happened you ask? The web story was of no real interest to our funders (when we had funding). I hope to make it happen in the foreseeable future.

    As for DaVinci. I'm watching that. This will be more interesting if/when it is part of a shipping product (Java 7, presumably) and widely deployed.

    I had not thought of JSqueak. In any case, lifie is finite, and can't see it as a priority.

    As for Java graphics - the 3G stuff is interesting. Ordinary GUI stuff - you don't want to touch it.

    Finally: if you want to see more rapid progress, please join the forums and/or (even better) volunteer to help with some of this stuff

    ReplyDelete
  13. Gilad says: >>The thought of web deployment has actually occurred to me :-)<<

    well I had wondered :-)

    [and]

    >>Why is Java so important to you (I can speculate, but please do tell).
    <<

    you can indeed speculate, but please -allow me to speculate for you:

    perhaps java is so important to me because:

    a. basic tribalism. I define myself by my opposition to microsoft

    b. in too deep. i'm sitting on 100 kloc of marginally useful java code, and i can't face moving on without it

    c. history. i simply left my brain in the 90's

    d. smalltalk fundamentalist guerilla. i can't face your turning the barcelona pavilion into a funhouse hall of mirrors where nothing is what it seems, and every time you turn around -someone has whipped out a travertine panel and replaced it with a google-ad for a new social software site

    e. because newspeak on a dynamic language friendly jvm, is a no brainer -and i have no brains

    f. because gilad bracha==java==gilad bracha, 4evr

    g. because the end of the free lunch is the start of the speed crunch -and i heard a lang.net presentation saying that open source projects couldn't muster the resources to make a fast vm

    g. because i consider javascript to be a toy language, and ajax "not proper software"

    h. because i am billy idol

    [i haven't really thought this last one through]

    i could go on...

    ReplyDelete
  14. Peter,

    You have clearly out-speculated me :-)

    Invokedynamic and allied JVM changes may make for a very fast dynamic language engine, which certainly has its attractions. Yet, even with these changes, the hoops one has to go through to make Newspeak really work on a JVM are still formidable.

    I expect to look into this once we've bootstrapped. At that point, it should be easier to port the system to a variety of targets: JS/V8, JVM, Strongtalk, .Net, iPhone ...

    I will simply assign one the many full time compiler engineers at our disposal to each of the above ports :-)
    I still think web browsers are where the focus should be, but we'll see.

    ReplyDelete
  15. Pete F.

    re "and i heard a lang.net presentation saying that open source projects couldn't muster the resources to make a fast vm"

    Keith Duckworth, who along with Frank Costin founded Cosworth, the motor racing engine company, was fond of saying
    "An engineer is some one who for a dollar can do what any idiot can do for one hundred dollars."

    Vista comes to mind when one thinks of a really well-managed, generously-staffed commercial project.

    Never mind the quality, feel the width.

    ReplyDelete
  16. Eliot,

    I think Peter was referring to my presentation at lang.net 2006. I stand by it - someone needs to be paying the bills if you want a fast VM. Be that Sun, IBM (soon to be the same?), Google, Microsoft or even Cincom or Qwaq. They can open source it if they choose - but it won't materialize out of volunteer work. There is no counter-example.

    ReplyDelete
  17. Eliot,

    I was indeed alluding to Gilad's lang.net 2006 presentation

    -but going with the motor racing theme...

    just last night, i was listening to another recorded presentation involving VM's -where the difference between a "fast car" and a "quick car" was used to illustrate the decreasing marginal return on optimisation effort -i believe Gilad was talking about the quick end of the curve

    For the record, I'm not especially interested in either Java or quick VM's. I proposed JSqueak here because of its simplicity and the relatively firm ground of java gui's (relative to browsers that is).

    Going with the engineering theme, the browser platform strikes me as being much higher geared. Great results as long as there is sufficient torque to turn the crank. A lower geared newspeak on jsqueak, would suit my model aeroplane engine brain.

    >>Never mind the quality, feel the width.<<

    so said John Cooper as he floored the Twini...

    ReplyDelete
  18. This racing business I leave to you and Eliot.

    If you want to run Newspeak on JSqueak - by all means go ahead and implement it if that is your passion. I'd rather you helped us in other ways though.

    As for Java GUIs - that is one of the most important things I wanted to get away from.

    A Brazil to Swing (or SWT for that matter) mapping is probably one of the most unproductive things I can imagine: a large amount of work, just to get things to start slow ...

    A comparable effort would probably buy us native MacOS and Linux bindings.

    Porting Newspeak to a JVM, I would probably use NIO and connect to the native GUI binding.

    BTW, this discussion may belong on the Newspeak forums.

    ReplyDelete