|
Post by Alex Epifanov on Mar 9, 2017 8:04:42 GMT
Hey guys, We are now migrating Rhodes to the new version of Ruby machine - 2.3. Changes are currently applied to this experimental branch: github.com/rhomobile/rhodes/tree/ruby_vm_upgradeIt only works on iOS currently, Android and Windows is coming soon. Please note this is experimental alpha at the moment - lots of bugs possible. Community is welcome to try it out. We'll keep updating this thread as we progress. Regards, Alex.
|
|
|
Post by egghead on Mar 9, 2017 12:00:45 GMT
What are the advantages of Ruby machine - 2.3 ?
|
|
|
Post by Alex Epifanov on Mar 9, 2017 12:24:54 GMT
Ruby 1.9.2 which Rhodes uses currently was released in 2011 and no longer officially supported. Recent versions include syntax improvements, bugs and security fixes etc. You can see changelog in Ruby github ( see version branches ): github.com/ruby/ruby/blob/ruby_2_3/NEWS
|
|
|
Post by egghead on Mar 10, 2017 12:40:06 GMT
I think by the "Ruby Virtual Machine" you are referring to the built-in version of Ruby that is part of the Rhodes gem and which is embedded in the application and that will be eventually installed on the device. Please correct me if I am wrong.
What will then be the matching version of Ruby for this new version of Ruby VM that would be required to build an app (with rake, for example) and would Rhostudio install that matching Ruby version automatically (because, as I understand it, Rhostudio installer comes with Ruby also, and this is system Ruby, not Rhodes Ruby)
|
|
|
Post by Alex Epifanov on Mar 10, 2017 13:34:34 GMT
Yes you are correct, this is about embedded Ruby VM which runs with mobile app. As for build phase we have plans to migrate to new Ruby version as well ( 2.3 presumably ). For Windows RMS installer we bundle Ruby inside, but for Mac system- or user-installed Ruby is used ( via RVM for instance )
|
|
|
Post by louisatome on Mar 29, 2017 10:17:34 GMT
Hello guys,
Thanks for your great work on rhodes framework! I have a question about the future upgrade to Ruby 2.3 : do you know if it will improve the Ruby execution performance? Besides, when would it be possible to test this new version (beta) and give you some feedback?
Louis
|
|
|
Post by Super Admin on Mar 29, 2017 12:02:05 GMT
Hi,
Correct. It should improve the Ruby execution performance. I think we will provide Rho development version with new Ruby VM in next couple weeks.
Regards, Konstantin
|
|
|
Post by jontara on May 3, 2017 3:25:19 GMT
Yes, you should get a significant performance upgrade. I've switched to 2.3 for build and for a fairly extensive rake task I use before build quite some time ago. It is a very noticeable performance improvement.
Looking forward to using 2.3 inside of Rhodes now as well!
|
|
|
Post by louisatome on May 26, 2017 8:52:13 GMT
Hi guys,
I saw you've merged the Ruby upgrade branch in master, that's great! Is the new dev version (5.5.19) released the 2017-05-24 includes the upgrade?
Regards, Louis
|
|
|
Post by Super Admin on May 26, 2017 9:05:26 GMT
Hi,
No. It doesn't.
Regards, Konstantin
|
|
|
Post by Alex Epifanov on May 27, 2017 15:10:28 GMT
|
|
|
Post by louisatome on May 29, 2017 15:10:33 GMT
Hey,
I tried to compile my app with the new 6.0.0.beta1 rhodes gem and I've got the following error :
[INFO] Running default.rb dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /Users/louis/.rvm/gems/ruby-2.3.1/gems/rhodes-6.0.0.beta1/res/build-tools/RubyMac Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _clock_gettime Referenced from: /Users/louis/.rvm/gems/ruby-2.3.1/gems/rhodes-6.0.0.beta1/res/build-tools/RubyMac Expected in: /usr/lib/libSystem.B.dylib I found some threads that suggest this error could be linked to XCode. Do I need a special version of XCode (I currently have the 8.1) ?
Louis
|
|
|
Post by Dmitry Soldatenkov on May 29, 2017 15:49:30 GMT
Hi, I see in Internet the same issue in other products. Like this - github.com/Homebrew/homebrew-php/issues/3737Can you try to upgrade to latest Sierra OS and latest XCode ? We also will investigate this issue and try to build our tool in old environemnt
|
|
|
Post by louisatome on Jun 1, 2017 10:14:44 GMT
Hi,
I tried with an up-to-date XCode (8.3.2) and i've got another error during android compilation :
/Users/louis/.rvm/gems/ruby-2.3.4/gems/rhodes-6.0.0.beta1/platform/android/../../platform/shared/ruby/signal.c: At top level: /Users/louis/.rvm/gems/ruby-2.3.4/gems/rhodes-6.0.0.beta1/platform/android/../../platform/shared/ruby/signal.c:28:22: fatal error: ucontext.h: No such file or directory #include <ucontext.h> ^ compilation terminated.
rake aborted! Build failed: ruby Any ideas?
Louis
|
|
|
Post by Alex Epifanov on Jun 1, 2017 13:21:22 GMT
What NDK version are you using?
|
|