Ruby's viability for cross-platform development with native toolkits?

Let’s say that I’m writing a commercial piece of software with closed source code, which should have been deployed in the following situations: Windows Desktop App built on .Net, ActiveX, Windows Netscape plugin, Mac Desktop application built on Cocoa, Mac Netscape plugin, Java applet hosted in a browser. Would it be viable in terms of code sharing to write my models and controller classes in common Ruby source files and use MacRuby, IronRuby and JRuby to integrate at different time intervals? My view classes will presumably be written to use WPF on Windows, Cocoa on Mac, and all that are suitable for Java (SWT?).

From my point of view, the most important thing here is the long-term maintenance of the code base, and it seems that Ruby is close to being a first-class language on three platforms that I should aim at: .Net, Cocoa and Java, like any language. Am I wrong about this?

Secondly, it is important to avoid any viral license requirements in our code. I see where JRuby is released under various licenses; can I assume that I can distribute binary files, and licenses do not apply to any Ruby files that I write for my own application (as opposed to modifications to their framework).

Is Ruby used in any well-known desktop applications? Has this been done before?

+3
source share
3

.... : " Ruby (-, Java)?"

, , ruby ​​ (jRuby, IronRuby MacRuby) , . , , ruby ​​ .

, , (Java jRuby, , ) .

+2

, , : , IronRuby 1.0.

, ? , WxRuby, ( ) - WxWidgets. Ruby, btw - , .

, , / - //api/proxy ( ).

" " - Ruby? (ruby2exe RubyScript2exe), , , . , ? - ( face-first -).

( Python, ) SO

+2

Ruby MacRuby, IronRuby JRuby ?

Ruby ; Ruby. , JRuby IronRuby Ruby 1.8.6, JRuby 1.9 , MacRuby 1.9.

, , , JRuby SWT, IronRuby WPF ..

, Ruby :.Net, Cocoa Java,

Ruby , . Ruby , , Ruby , #/Java/ Objective-C.

, Ruby, ( .)

, , , , . , "", GPL, Ruby , , , , . , , .

Ruby ? ?

I don’t know of any widely used desktop applications that use Ruby, but I know a couple of applications that use IronPython for Windows, such as Blaze and Resolver One ; their deployment methods will be the same for IronRuby.

+2
source

Source: https://habr.com/ru/post/1723284/


All Articles