Desktop multi-plataform ruby app

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

Thanks and best regards.

ยทยทยท

--
Guerra

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

JRuby + Monkeybars + NetBeans GUI editor = Massive Win

http://www.monkeybars.org

Super-easy GUI app development, plus you can use rawr for snap-simple packaging for multiple platforms.

There is nothing better.

ยทยทยท

--
James Britt

"Hackers will be expelled"
  - The Breakfast Club (1985)

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

Thanks and best regards.

Hello Israel:

I haven't written tons of apps with it but wxRuby ( http://wxruby.rubyforge.org/wiki/wiki.pl ) has been working well for me on both Linux and Windows. Unfortunately I haven't found a nice way to do GUI building part visually.

Michael

Since no one seemed to mention it...

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option?

I can't speak for the "best", but there are many. Why's Shoes looks the most
interesting (to me, anyway), and you could also use Qt or GTK+ bindings.

I would prefer something that has a graphical app that can help me creating
the visual part.

Well, GTK+ has Glade, and Qt has qt-designer.

I'm a Rails developer by day, so when I want to create a UI beyond a
commandline, I usually build a web interface unless I have a good reason not
to. Haven't had a good reason not to, yet.

ยทยทยท

On Friday 06 June 2008 14:50:50 Israel Guerra wrote:

QT, Ruby and Rubyscript2exe is a great combination. There is qt
designer for building the gui. The widgets look good on windows. All
that is required to get started on windows:

*)download the one click installer
*)download and install the qtruby gem

The only disadvantage that i can see:

*)is the licensing if you are not developing open source software.
*)once the script is packaged (so that you can use it on other PCs)
using rubyscript2exe there is a few seconds delay before the app is
loaded.

Mark

ยทยทยท

On Jun 6, 8:50 pm, Israel Guerra <israel.gue...@gmail.com> wrote:

[Note: parts of this message were removed to make it a legal post.]

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

Thanks and best regards.

--
Guerra

Charles Oliver Nutter wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

What he said. :slight_smile:

If you have questions, jump on #monkeybars on irc; the Monkeybars squad is usually about and very happy to answer questions.

There's also a mailing list, or just write me (or David or Logan) directly.

ยทยทยท

--
James Britt

Can JRuby coexist with C-Ruby?
Does anyone have any performance numbers of Ruby vs JRuby?
Would any JRuby appl with GUI run on any *NIX server that supports Java?
Is there a drag and drop widgets creation GUI design under JRuby with Swing?
I think VxRuby or something to that effect is the only GUI environment that
offers drag/drop widget creation. Not sure though!
Currently I am running Ruby 1.8.7 and on some servers I am playing 1.9. What
is the equivalent version of JRuby to the latest level of Ruby?
How far behind is JRuby from Ruby (C-Ruby)?
If I am not mistaken, Monkeybars is only an MS/Windows appl, correct?

Thank you

Victor

ยทยทยท

On Fri, Jun 6, 2008 at 4:15 PM, Charles Oliver Nutter < charles.nutter@sun.com> wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me
creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

James Britt wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me creating
the visual part.

JRuby + Monkeybars + NetBeans GUI editor = Massive Win

http://www.monkeybars.org

Super-easy GUI app development, plus you can use rawr for snap-simple packaging for multiple platforms.

There is nothing better.

This all sounds very interesting, and I want to investigate it, but I dread having to deal with the java monster. I've been there before. Forty-five+ versions, all with 26 letter names, and documentation that requires a masters in CS to decypher. I simply cannot know everything, and I'm pretty committed in a couple of other fields. Still, I have programming to get done, and drag and drop GUI that doesn't require yet another book to read would be a blessing.

So, onward, again. I try to install Netbeans 6 for Linux. Says it want a JDK (the dread starts now). I'm on Kubuntu, so I go to Adept, find sun-jave6-jdk - nothing else looks more likely - and install it. Now Netbeans says it can't find it and I need to point the way. Huh? Don't have a clue.

Looking at the helpful (?) installed files list under the tab of the same name in I see a long file list. Nothing seems clearly the answer to Netbeans problems, so I throw a number of possibilities at it. Nothing works. Sigh.

Could someone who knows more please give me a clue here? I'm be most grateful.

t.

ยทยทยท

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

But guys, maybe im wrong about jruby, but its a ruby interpreter running in
the jvm isnt it?

So the final app needs a jvm (obviously), am i right?

Just want to make things clear :slight_smile:
It sounds weird at the beginning... hehe

ยทยทยท

On Fri, Jun 6, 2008 at 5:57 PM, James Britt <james.britt@gmail.com> wrote:

Charles Oliver Nutter wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option?
I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me
creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

What he said. :slight_smile:

If you have questions, jump on #monkeybars on irc; the Monkeybars squad is
usually about and very happy to answer questions.

There's also a mailing list, or just write me (or David or Logan) directly.

--
James Britt

--
Guerra

I hardly believe that an interpreter made in java running on a jvm will be
as fast as a C interpreter.

1 thing could cause that and would be a very bad work made on the CRuby and
i don't believe that's the case.

The truth is that the convenience of the JRuby is ok for most end uses.

ยทยทยท

On Fri, Jun 6, 2008 at 11:49 PM, Victor Reyes <victor.reyes@gmail.com> wrote:

On Fri, Jun 6, 2008 at 4:15 PM, Charles Oliver Nutter < > charles.nutter@sun.com> wrote:

> Israel Guerra wrote:
>
>> Hail everyone!
>>
>> This is my first post here. :slight_smile:
>>
>> I want to develop a desktop app that runs in either linux or windows.
>> I have many doubts about which GUI i should use. What's the best option?
I
>> heard about wxwidgets or tk, but have no idea of what i should use.
>>
>> I would prefer something that has a graphical app that can help me
>> creating
>> the visual part.
>>
>
> JRuby + Swing + NetBeans Matisse + MonkeyBars
>
> - Charlie
>
>
Can JRuby coexist with C-Ruby?
Does anyone have any performance numbers of Ruby vs JRuby?
Would any JRuby appl with GUI run on any *NIX server that supports Java?
Is there a drag and drop widgets creation GUI design under JRuby with
Swing?
I think VxRuby or something to that effect is the only GUI environment that
offers drag/drop widget creation. Not sure though!
Currently I am running Ruby 1.8.7 and on some servers I am playing 1.9.
What
is the equivalent version of JRuby to the latest level of Ruby?
How far behind is JRuby from Ruby (C-Ruby)?
If I am not mistaken, Monkeybars is only an MS/Windows appl, correct?

Thank you

Victor

--
Guerra

Did you consider using Google before asking other people to do your
research for you? Charles gave you four things to look at. Did you
look at them at all, even for a moment? (Hint: the answers you seek can
be found with a few clicks of the mouse and a little typing.)

ยทยทยท

On Sat, 2008-06-07 at 11:49 +0900, Victor Reyes wrote:

> JRuby + Swing + NetBeans Matisse + MonkeyBars

Can JRuby coexist with C-Ruby?
Does anyone have any performance numbers of Ruby vs JRuby?
Would any JRuby appl with GUI run on any *NIX server that supports Java?
Is there a drag and drop widgets creation GUI design under JRuby with Swing?
I think VxRuby or something to that effect is the only GUI environment that
offers drag/drop widget creation. Not sure though!
Currently I am running Ruby 1.8.7 and on some servers I am playing 1.9. What
is the equivalent version of JRuby to the latest level of Ruby?
How far behind is JRuby from Ruby (C-Ruby)?
If I am not mistaken, Monkeybars is only an MS/Windows appl, correct?

--
Michael T. Richter <ttmrichter@gmail.com> (GoogleTalk:
ttmrichter@gmail.com)
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny..." (Isaac Asimov)

Victor Reyes wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option? I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me
creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

Can JRuby coexist with C-Ruby?

Yes, more or less. There are jruby equivalents of gem, rake, and I rename them to jgem and jrake so that I don't accidentally call the wrong one.

Does anyone have any performance numbers of Ruby vs JRuby?
Would any JRuby appl with GUI run on any *NIX server that supports Java?

Should. If the app bundles up the needed jars (swing, or swingx, for example) to handle the UI then all the end user needs is a jre.

Is there a drag and drop widgets creation GUI design under JRuby with Swing?

The Matisse GUI editor than comes with NetBeans 6, all free, is great.

I think VxRuby or something to that effect is the only GUI environment that
offers drag/drop widget creation. Not sure though!

You get that from Matisse as well.

Currently I am running Ruby 1.8.7 and on some servers I am playing 1.9. What
is the equivalent version of JRuby to the latest level of Ruby?

Um, 1.8.6, though I *think* there are some things planned for 1.9 that are already in JRuby (such as hash.first).

How far behind is JRuby from Ruby (C-Ruby)?

Charlie should answer that one, but people are using it for production apps.

If I am not mistaken, Monkeybars is only an MS/Windows appl, correct?

Oh, far from it. I develop on Kubuntu, David and Logan are on Macs, and our main customer is all WinXP.

It really is cross-platform.

Monkeybars is Ruby code that knows how to hook into Swing via JRuby and wicked use of Java reflection.

Also check out rawr, a tool that helps in packaging and deploying JRuby apps.

http://gitorious.org/projects/rawr

ยทยทยท

On Fri, Jun 6, 2008 at 4:15 PM, Charles Oliver Nutter < > charles.nutter@sun.com> wrote:

--
James Britt

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.rubystuff.com - The Ruby Store for Ruby Stuff

:preface => I hate *nix package managers :slight_smile:

I think you'd be better off downloading a JDK from Sun and installing
it the normal way, so you /know/ where it's located. Then the rest of
the NetBeans install should be a piece of cake...

FWIW,

ยทยทยท

On Sat, Jun 7, 2008 at 10:02 AM, Tom Cloyd <tomcloyd@comcast.net> wrote:

So, onward, again. I try to install Netbeans 6 for Linux. Says it want a JDK
(the dread starts now). I'm on Kubuntu, so I go to Adept, <snip/>

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

I understand your dread - I have the same dread, and the same problems getting
Java + XYZ to work. I actually currently have a Netbeans install that
I have tried
to use the built-in plugin installer to install Ruby support - after
incomprehensible
errors it knows nothing of Ruby. Busy re-downloading. I tried monkeybars and the
tutorials for a few hours and failed completely. Perhaps it is very
good, but it is
surely also very complicated.

After failing there I have been having quite a nice time with
Glade/Gtk. I am working on
a tutorial but in the meantime, below is a message I sent a friend as an intro.

Look at my previous post to this list for "glader" which should
convert your .glade
file to a program directly so get you started fast.

Also, be aware that the Glade form builder uses a bit of a different
form building philosophy if you
come from a VB/C#/VS environment. If you get stuck with it, mail me
and I'll help out. You just need to understand a few of the ideas and
you can build good-looking forms really quickly and easily in Glade.

--snip--

Glade as a GUI builder works quite well on both Windows and Linux and had a fair
selection of ok looking Widgets.

Installing it on Linux is also quite easy - apt-get libglade2-ruby1.8
and glade-3 to pull in
most of what you need. Certain widgets have their own packages, so you may need
one of these, depending on which your Ruby program uses:

libgtk-mozembed-ruby - ruby binding of GtkMozEmbed, gecko renderer
libgtk-mozembed-ruby1.8 - ruby binding of GtkMozEmbed, gecko renderer
libgtkglext1-ruby - GTK+ GL extension bindings for the Ruby language
libgtkglext1-ruby1.8 - GTK+ GL extension bindings for the Ruby language
libgtkhtml2-ruby - GtkHTML bindings for the Ruby language
libgtkhtml2-ruby1.8 - GtkHTML bindings for the Ruby language
libgtksourceview1-ruby - GtkSourceView bindings for the Ruby language
libgtksourceview1-ruby1.8 - GtkSourceView bindings for the Ruby language

ie. apt-cache search libgtk|grep ruby

After that you build forms using glade-3 and run a little script
(ruby-glade-create-template) to
convert your XML glade files to Ruby programs. Well, almost. The
script creates a bit of
an example for you and doesn't actually SHOW the form as you may
expect. To show the
form, you need to access the GladeXML object that is created in the
form's initializer and
call something like @glade["window1"].show, where "window1" is the id
of the form you
want to show.

I am going to improve the script so that it makes things much more
seamless, for now
it's just a basic example-form-with-events creator. (see glader in prev post)

In Windows you need to download a few things:
Ruby-gnome:
http://downloads.sourceforge.net/ruby-gnome2/ruby-gnome2-0.16.0-1-i386-mswin32.exe?modtime=1171279190&big_mirror=0

Glade and Gtk:
http://downloads.sourceforge.net/gladewin32/glade-3.4.3-win32-1.tar.bz2
http://downloads.sourceforge.net/gladewin32/gtk-2.12.9-win32-2.exe

There's a bit of a guide (minus glade) here:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+Windows

Good luck!
Les

ยทยทยท

On Sat, Jun 7, 2008 at 7:02 PM, Tom Cloyd <tomcloyd@comcast.net> wrote:

James Britt wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option?
I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me
creating
the visual part.

JRuby + Monkeybars + NetBeans GUI editor = Massive Win

http://www.monkeybars.org

Super-easy GUI app development, plus you can use rawr for snap-simple
packaging for multiple platforms.

There is nothing better.

This all sounds very interesting, and I want to investigate it, but I dread
having to deal with the java monster. I've been there before. Forty-five+
versions, all with 26 letter names, and documentation that requires a
masters in CS to decypher. I simply cannot know everything, and I'm pretty
committed in a couple of other fields. Still, I have programming to get
done, and drag and drop GUI that doesn't require yet another book to read
would be a blessing.

So, onward, again. I try to install Netbeans 6 for Linux. Says it want a JDK
(the dread starts now). I'm on Kubuntu, so I go to Adept, find sun-jave6-jdk
- nothing else looks more likely - and install it. Now Netbeans says it
can't find it and I need to point the way. Huh? Don't have a clue.

Looking at the helpful (?) installed files list under the tab of the same
name in I see a long file list. Nothing seems clearly the answer to Netbeans
problems, so I throw a number of possibilities at it. Nothing works. Sigh.

Could someone who knows more please give me a clue here? I'm be most
grateful.

Tom Cloyd wrote:

This all sounds very interesting, and I want to investigate it, but I dread having to deal with the java monster. I've been there before.

So have I. And David created Monkeybars to avoid all that.

Seriously, you can write desktop apps that use Swing and run under JRuby and never look at a line of Java. That's basically the whole point.

We wanted whatever was good we could glom from Java, while avoiding having to write any actual Java ourselves.

Forty-five+ versions, all with 26 letter names, and documentation that requires a masters in CS to decypher. I simply cannot know everything, and I'm pretty committed in a couple of other fields. Still, I have programming to get done, and drag and drop GUI that doesn't require yet another book to read would be a blessing.

Monkeybars. It uses reflection and naming conventions to interact with the UI components so that you stick to Ruby.

So, onward, again. I try to install Netbeans 6 for Linux. Says it want a JDK (the dread starts now). I'm on Kubuntu, so I go to Adept, find sun-jave6-jdk - nothing else looks more likely - and install it. Now Netbeans says it can't find it and I need to point the way. Huh? Don't have a clue.

Better off grabbing the JDB+NetBeans bundle from netbeans.org, then once installed telling NetBeans to install the Ruby plugins.

There is a screencast on monkeybars.org that goes through the installation of NetBeans:

http://monkeybars.rubyforge.org/tutorials/netbeans.html

ยทยทยท

--
James Britt

"Tear it up and start again."
  - Anonymous

Victor Reyes wrote:

Can JRuby coexist with C-Ruby?

Yes, and you can have any number of entirely separate JRuby installs or a single one you use. It's up to you. The JRuby install process is essentially "1. unpack, 2. run" provided you have a compliant JVM installed (almost all OSes have free and Free compliant JVMs available now).

Does anyone have any performance numbers of Ruby vs JRuby?

Should be as good, but let us know if not.

Would any JRuby appl with GUI run on any *NIX server that supports Java?

Java is Java wherever you go, so the same GUI will basically work as-is on any *NIX. For a non-GUI example, we have people running Rails + weird database access on systems like AS/400 and HP/UX.

Is there a drag and drop widgets creation GUI design under JRuby with Swing?

Matisse does the drag-and-drop and MonkeyBars makes it all Ruby-nice.

Currently I am running Ruby 1.8.7 and on some servers I am playing 1.9. What
is the equivalent version of JRuby to the latest level of Ruby?

Almost nobody is asking for 1.9 features, so we've only taken a marginal interest. If people want those features, it wouldn't take more than a couple dedicated weeks to get them in.

How far behind is JRuby from Ruby (C-Ruby)?

Not far behind at all...most normal pure-Ruby code should "just work". The places we find bugs these days are in our Java integration layer (up for a rewrite this summer) or where you interact with system-level resources (IO and process control are especially twitchy). But if you're not doing anything that wouldn't have portability challenges under normal Ruby, it will probably work great in JRuby too.

- Charlie

Which network? Freenode? The #monkeybars channel there has no topic
and one person idling in it. :slight_smile:

ยทยทยท

On Sat, 2008-06-07 at 05:57 +0900, James Britt wrote:

If you have questions, jump on #monkeybars on irc; the Monkeybars squad
is usually about and very happy to answer questions.

--
Michael T. Richter <ttmrichter@gmail.com> (GoogleTalk:
ttmrichter@gmail.com)
Never, ever, ever let systems-level engineers do human interaction
design unless they have displayed a proven secondary talent in that
area. Their opinion of what represents good human-computer interaction
tends to be a bit off-track. (Bruce Tognazzini)

HELLLLLOOOOUU

I ยดm still seeking for a Ruby on rails developer for a Job in San Fco........

LAET. Yazmรญn M. Cรกrdenas Rubalcaba

Technical Recruiter

Phone 01 800 087 47 87 Ext 257

Local phone 1368 1745 Ext 257

Av. Mariano Otero 3225 Col. Verde Valle

C.P. 44540 Guadalajara, Jal. Mรฉxico

www.pounceconsulting.com

e-mail. yazmin.cardenas@pounceconsulting.com

ยทยทยท

-----Original Message-----
From: Israel Guerra [mailto:israel.guerra@gmail.com]
Sent: Friday, June 06, 2008 4:07 PM
To: ruby-talk ML
Subject: Re: Desktop multi-plataform ruby app

But guys, maybe im wrong about jruby, but its a ruby interpreter running in
the jvm isnt it?

So the final app needs a jvm (obviously), am i right?

Just want to make things clear :slight_smile:
It sounds weird at the beginning... hehe

On Fri, Jun 6, 2008 at 5:57 PM, James Britt <james.britt@gmail.com> wrote:

Charles Oliver Nutter wrote:

Israel Guerra wrote:

Hail everyone!

This is my first post here. :slight_smile:

I want to develop a desktop app that runs in either linux or windows.
I have many doubts about which GUI i should use. What's the best option?
I
heard about wxwidgets or tk, but have no idea of what i should use.

I would prefer something that has a graphical app that can help me
creating
the visual part.

JRuby + Swing + NetBeans Matisse + MonkeyBars

- Charlie

What he said. :slight_smile:

If you have questions, jump on #monkeybars on irc; the Monkeybars squad is
usually about and very happy to answer questions.

There's also a mailing list, or just write me (or David or Logan) directly.

--
James Britt

--
Guerra

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1482 - Release Date: 6/4/2008 7:10 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1482 - Release Date: 6/4/2008 7:10 AM

Israel Guerra wrote:

But guys, maybe im wrong about jruby, but its a ruby interpreter running in
the jvm isnt it?

So the final app needs a jvm (obviously), am i right?

Yeah, but that's a pretty minor requirement. There's free (as in beer AND speech) JVMs easily installable on any plaform (including through the usual packaging mechanisms).

- Charlie