Follow next link for an overview of the latest demos.
The orginal article, a bit outdated now, talking about the first experimental Swiby: Experimental Declarative UI Language
Swiby is great for
Swiby is a blend of Swing and Ruby for truly rich distributed applications.
It is aiming to be:
Swing is an incredibly sophisticated UI technology for Java that can meet all your UI needs. Applications like JetBrain's Intellij IDEA are built on it. There are other complimentary technologies like Java2D that are highly complementary to Swing.
Ruby is an interpreted language that is very adaptable and capable. It has been popularised by Ruby on Rails in recent years, its proving that less is more for web application development. We want the same gains for 'The Sweb' so we have defined a builder-like style for the marking up of Swiby pages. This style of page will:
Ruby, or more accurately JRuby will be fast to interpret each page that it processes. The is no compile stage that may invisibly slow rendering down.
Sun's JavaFX Script technology is closest to Swiby.
Jean started a simple bank-account application. Its has Transfers Lists and the ability to make new transfers. There is no server side yet, but it will gove you a glimpse of the pseudo-declarative form that is easy for newbies to code. The source for the app is two ruby scripts (click on each image to see the source). When you ar running Swiby, the first page gives way to the second when the user clicks the applicable button.
Transfers List ..
Editing a Transfer ..
Note the back button - like the web it will take you to the previous page.
Best to do this direct from Subversion. In a command shell:
svn co http://svn.codehaus.org/swiby/trunk(full version with site source, quite big)
svn co http://svn.codehaus.org/swiby/trunk/core(Swiby core files)
svn co http://svn.codehaus.org/swiby/trunk/demo(all demos)
jruby -Ilib lib/swiby/sweb.rb ../demo/banking/banking.rb
Requires JRuby installed and 'jruby' in your PATH
It is quite early days for the project. Nothing is useable in any serious way yet, and we have a ton of work to do. However if you're a swing loving Ruby convert or a C++ person with a like of writing browser plugins think about helping us. The management app for Codehaus projects shows you where the mail lists and issue tracker are. We're looking forward to patches in advance of taking committers on :-)