Iron ruby in app scripting
Upcoming SlideShare
Loading in...5
×
 

Iron ruby in app scripting

on

  • 3,880 views

"Grok talk" given at DDD9 - how to use IronRuby inside .Net 4 apps.

"Grok talk" given at DDD9 - how to use IronRuby inside .Net 4 apps.

Accompanying demo was of Iron7 running on WP7 - see http://iron7.com

Statistics

Views

Total Views
3,880
Views on SlideShare
1,553
Embed Views
2,327

Actions

Likes
0
Downloads
2
Comments
0

10 Embeds 2,327

http://www.cirrious.com 1349
http://www.iron7.com 601
http://iron7.com 348
http://5367766695932961020_9e1950e0a94c8b474c8b9b9667bfad61c8a7944b.blogspot.com 21
http://translate.googleusercontent.com 3
http://www.iron7.com. 1
http://www.slashdocs.com 1
https://www.google.ru 1
http://www.google.com 1
https://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Iron ruby in app scripting Iron ruby in app scripting Presentation Transcript

  • IronRuby in-app scripting
    @slodge – me@cirrious.com
  • 3.5, 4.0
    WinForms
    WPF
    Silverlight
    Mono
    ASP.Netw/woMVC
    Sharepoint/Umbraco/DNN
    Azure
    PowerShell Scriptlets
    WP7 (Compact Framework restrictions apply)
    IronRuby - Available across .Netdom
  • Download IronRuby1.1.1 or later - Codeplex/GitHub
    Reference the Assemblies
    Write some code:
    How to embed Ruby in an app
    var engine = Ruby.CreateEngine();
    engine.Execute
    (“System::Windows::MessageBox.show‘Hello DDD’”);
  • .Net powered scripting…
    Load more assemblies for the scripts to play with
    Pass in references to application objects
    Write more Ruby – including event driven scripting
    var engine = Ruby.CreateEngine();
    engine.Runtime.LoadAssembly(typeof(SubModel).Assembly);
    engine.Runtime.Globals.SetVariable(“Model", myModel);
    engine.Execute(@“
    sub = SubModel.newModel.load_something(sub)
    Model.on_loaded { |whatever| dude(whatever) }
    ”);
  • User customisable scripts
    Complex Data Files – e.g. game levels
    Plugins – e.g. paint+
    Wherever functionality might be changed after shipping
    VBA/ActiveScripting/Automation replacement
    Enterprise apps?
    Wheremight it be useful?
  • Iron7 – Inspired by… Sharp MZ80K
    > 10 PRINT “HELLO DDD”
    > 20 GOTO 10
    > RUN
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    > HELLO DDD
    http://blogs.msdn.com/b/mikeormond/
  • In action…
  • Network, Canvas, Logic, Maths, Animation, Sound, GPS, Accelerometer… code!
  • IronRuby in-app scripting:- easy to embed- easy to script- full access to .net types- powerful
    @slodge – me@cirrious.com