# Ruby and .NET

**URL:** <https://www.ruby-forum.com/t/ruby-and-net/79164>\
**Category:** Ruby\
**Created:** [March 9, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164 "2006-03-09T19:46:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/1 "2006-03-09T19:46:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/2 "2006-03-09T19:49:23Z")

</div>

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/](http://rubydotnet.sourceforge.net/).

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/3 "2006-03-09T20:04:34Z")

</div>

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:

> **[John Lam's Blog](https://www.iunknown.com/)**
>
> Since 1997

Michael

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 8:19pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/4 "2006-03-09T20:19:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 8:07pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/5 "2006-03-09T20:07:36Z")

</div>

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

Michael

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/6 "2006-03-09T23:04:59Z")

</div>

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 🙂  
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

> **[John Lam's Blog](https://www.iunknown.com/)**
>
> Since 1997

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 10, 2006, 12:24am UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/7 "2006-03-10T00:24:22Z")

</div>

On 3/9/06, Florian Groß [removed\_email\_address@domain.invalid](mailto: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).

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 9, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/ruby-and-net/79164/8 "2006-03-09T20:47:20Z")

</div>

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.
