Ruby and .NET


#1

I’ve written a couple Ruby programs that run on Linux using
ruby-gnome2 as the GUI toolkit. Say I get asked to port them over to
Windows (2000 and up).

How would I go about slapping a .NET GUI frontend on it? (I’m
assuming using .NET is the way to go these days)

Joe


#2

Joe Van D. wrote:

I’ve written a couple Ruby programs that run on Linux using
ruby-gnome2 as the GUI toolkit. Say I get asked to port them over to
Windows (2000 and up).

How would I go about slapping a .NET GUI frontend on it? (I’m
assuming using .NET is the way to go these days)

Joe

Check out http://rubydotnet.sourceforge.net/.


#3

The progress on John L.'s Ruby to .NET bridge is much further along.
I would look into that. John has done some impressive stuff:

http://www.iunknown.com

Michael


#4

Joe Van D. wrote:

I’ve written a couple Ruby programs that run on Linux using
ruby-gnome2 as the GUI toolkit. Say I get asked to port them over to
Windows (2000 and up).

How would I go about slapping a .NET GUI frontend on it? (I’m
assuming using .NET is the way to go these days)

Joe, just curious why you wouldn’t just use the Windows version of
Ruby-Gtk2? Is it because of look&feel?

If it’s stability concerns, I’ve written a couple of Ruby-Gtk2 apps that
run on Windows every day and my users report no problems.

Jamey


#5

Let me clarify, when I originally looked at it. I haven’t checked out
rubydotnet in a while.

Michael


#6

My RubyCLR bridge should let you do what you’re looking for - the drop
that’s out there in circulation now has a simple RSS reader built as a
Windows Forms 2.0 application. I’ve also built a non-trivial 3D Avalon
(WPF)
app using an earlier version of the bridge, although I’m just revisiting
that stuff now.

The current drop is almost 3 weeks old - it’s about due for a refresh :slight_smile:
My
private builds now have a ton of new features; off the top of my head
there
is:

  • support for interfaces
  • a lot of really cool Reflection features to make prototyping .NET code
    in
    irb much nicer
  • a ton of perf and reliability work; 80% of the C++ part of the bridge
    was
    re-written.
  • much better support for a few data binding scenarios (such as data
    binding
    against native Ruby arrays)
  • support for generics (I don’t resolve method overloads against generic
    types correctly now - I’m punting that to the next release)
  • proper support for array creation

-John
http://www.iunknown.com


#7

On 3/9/06, Florian Groß removed_email_address@domain.invalid wrote:

Jamey C. wrote:

Joe, just curious why you wouldn’t just use the Windows version of
Ruby-Gtk2? Is it because of look&feel?

If it’s stability concerns, I’ve written a couple of Ruby-Gtk2 apps that
run on Windows every day and my users report no problems.

Look&Feel are pretty much OK as well if you change the GTK renderer to WIMP.

Hm… I’ll have to see how ruby-gnome2 operates on Windows. I really
prefer native GUI toolkits though. I’d probably design a Windows UI
completely different than a Linux UI (and also probably different on
OS X).


#8

Jamey C. wrote:

Joe, just curious why you wouldn’t just use the Windows version of
Ruby-Gtk2? Is it because of look&feel?

If it’s stability concerns, I’ve written a couple of Ruby-Gtk2 apps that
run on Windows every day and my users report no problems.

Look&Feel are pretty much OK as well if you change the GTK renderer to
WIMP.