Tomas Matousek
2012-Aug-25 22:39 UTC
[Ironruby-core] IronRuby scripting in Windows Store apps
I have just checked in a sample Windows 8 application that evaluates Ruby code and displays result. https://github.com/IronLanguages/main/tree/master/Hosts/WindowsStore Feel free to play with it. The basics should work but definitely expect bugs :). To try it out build Ruby.sln Win8 configuration: main\Solutions> msbuild Ruby.sln /p:Configuration="Win8Debug" Then open Hosts\WindowsStore\IronApp.sln, build and run. [cid:image001.png at 01CD82D6.0A8FA250] The app is a regular C# Windows Store app that uses ScriptEngine to execute Ruby code against a ScriptScope containing a "main" variable, which is set to be the application MainPage UI element. IronPython doesn''t build yet for Win8 profile, there is quite a bit of work to be done to make it work. If anyone is interested in making IronPython work or improving IronRuby let me know. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120825/ee2e7199/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 14638 bytes Desc: image001.png URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120825/ee2e7199/attachment-0001.png>
Tomas Matousek
2012-Aug-26 18:30 UTC
[Ironruby-core] IronRuby scripting in Windows Store apps
(Seems like my previous email didn''t go thru, trying again) I have just checked in a sample Windows 8 application that evaluates Ruby code and displays result. https://github.com/IronLanguages/main/tree/master/Hosts/WindowsStore Feel free to play with it. The basics should work but definitely expect bugs :). To try it out build Ruby.sln Win8 configuration: main\Solutions> msbuild Ruby.sln /p:Configuration="Win8Debug" Then open Hosts\WindowsStore\IronApp.sln, build and run. The app is a regular C# Windows Store app that uses ScriptEngine to execute Ruby code against a ScriptScope containing a ?main? variable, which is set to be the application MainPage UI element. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120826/69161e0b/attachment.html>
Orion Edwards
2012-Aug-26 20:33 UTC
[Ironruby-core] IronRuby scripting in Windows Store apps
That sounds fantastic :-) ______________________________________________________ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwards at gallagher.co | WEB www.gallagher.co From: Tomas Matousek <Tomas.Matousek at microsoft.com> To: "ironruby-core at rubyforge.org" <ironruby-core at rubyforge.org> Date: 27/08/2012 06:31 a.m. Subject: [Ironruby-core] IronRuby scripting in Windows Store apps Sent by: ironruby-core-bounces at rubyforge.org (Seems like my previous email didn''t go thru, trying again) I have just checked in a sample Windows 8 application that evaluates Ruby code and displays result. https://github.com/IronLanguages/main/tree/master/Hosts/WindowsStore Feel free to play with it. The basics should work but definitely expect bugs J. To try it out build Ruby.sln Win8 configuration: main\Solutions> msbuild Ruby.sln /p:Configuration="Win8Debug" Then open Hosts\WindowsStore\IronApp.sln, build and run. The app is a regular C# Windows Store app that uses ScriptEngine to execute Ruby code against a ScriptScope containing a ?main? variable, which is set to be the application MainPage UI element. Tomas _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120827/8b6e40cc/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 3465 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120827/8b6e40cc/attachment.gif>
On Sat, Aug 25, 2012 at 3:39 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> > IronPython doesn?t build yet for Win8 profile, there is quite a bit of work to be done to make it work. If anyone is interested in making IronPython work or improving IronRuby let me know.I''m interested (as you know) and I''m already neck-deep in IronPython''s codegen, so I''ll probably be tackling this next. I think they may be related anyway. FRom looking at the API reference, there''s no way to generate Types at runtime in Metro apps, right? Does IronRuby have a way to inherit from a .NET type in that case? IIRC that was one thing WP7 could not support. - Jeff
Tomas Matousek
2012-Aug-28 20:38 UTC
[Ironruby-core] [Ironpython-users] IronRuby scripting in Windows Store apps
That''s correct, new types can''t be generated at runtime and hence it is not possible to inherit from an arbitrary CLR type. Tomas -----Original Message----- From: ironpython-users-bounces+tomas.matousek=microsoft.com at python.org [mailto:ironpython-users-bounces+tomas.matousek=microsoft.com at python.org] On Behalf Of Jeff Hardy Sent: Tuesday, August 28, 2012 11:59 AM To: ironruby-core at rubyforge.org Cc: ironpython-users at python.org; John Lam (WINDOWS) Subject: Re: [Ironpython-users] [Ironruby-core] IronRuby scripting in Windows Store apps On Sat, Aug 25, 2012 at 3:39 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> > IronPython doesn''t build yet for Win8 profile, there is quite a bit of work to be done to make it work. If anyone is interested in making IronPython work or improving IronRuby let me know.I''m interested (as you know) and I''m already neck-deep in IronPython''s codegen, so I''ll probably be tackling this next. I think they may be related anyway. FRom looking at the API reference, there''s no way to generate Types at runtime in Metro apps, right? Does IronRuby have a way to inherit from a .NET type in that case? IIRC that was one thing WP7 could not support. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users
Jeff Hardy
2012-Aug-28 23:10 UTC
[Ironruby-core] [Ironpython-users] IronRuby scripting in Windows Store apps
On Tue, Aug 28, 2012 at 2:11 PM, Curt Hagenlocher <curt at hagenlocher.org> wrote:> ...as opposed to one of a set of predefined types whose source is compiled > into IronRuby.Or any types precompiled ahead of time, which is what I''m working on now. I need it for Android anyway, but it looks like I''ll need it here too. - Jeff