Embracing a new world - dynamic languages and .NET

Post on 12-Jan-2015

1,148 views 1 download

Tags:

description

Presentation on dynamic languages and .Net for DeveloperDay Scotland on 2nd May 2009.

transcript

Embracing a new world - dynamic languages and .NET

Twitter - @Ben_HallBlog.BenHall.me.ukBen@BenHall.me.uk

What is the DLR?

http://www.flickr.com/photos/lastrounds/3199561205/sizes/o/

IronSmallTalkGary Short

dynamic What is a

Language?

RUBY, RUBY, RUBY

Optional Syntax

puts ‘Hello World’

puts(‘Hello World’)puts(‘Hello World’);

Simple declarations

x = 1

Natural Programming

x = [1,2,3]y = [4,5,6]

x + y == [1,2,3,4,5,6]

Everything is an object

“Hello World”.upcase

[5,3,4,1,6].sort

10.times { }

Blocks

10.times do |i| puts iend

10.times { |i| puts i }

Duck Typing

def print_name(obj) puts obj.get_nameend

http://www.flickr.com/photos/normis/337183421/

Duck Typing

class A def get_name “My name is A” endend

Duck Typing

class Q def get_name “My name is Q” endend

Duck Typing

print_name A.newprint_name(Q.new)

Libraries

require ‘rake’

RubyGems

gem install rake

Successfully installed rake-0.8.41 gem installedInstalling ri documentation for rake-0.8.4...Installing RDoc documentation for rake-0.8.4...

If that’s Ruby

http://www.flickr.com/photos/bflv/3328427869/

What’s IronRuby?

http://www.flickr.com/photos/djwhelan/8395783/

http://www.flickr.com/photos/mendhak/2117622450/sizes/o/

Combing the two worlds

Data Gen Screenshot

Reflector Screenshot

Resolver Systems

change How will the DLR

your world?

Thank you!

Twitter - @Ben_HallBlog.BenHall.me.uk

Ben@BenHall.me.uk

Links

• http://www.codeplex.com/dlr• http://www.codeplex.com/Ironruby• http://www.codeplex.com/ironpython• http://blog.benhall.me.uk/2009/04/embedding-ironruby-

and-dlr-into-red.html• http://msdn.microsoft.com/en-us/magazine/dd434651.aspx• http://msdn.microsoft.com/en-us/magazine/dd453038.aspx• http://www.resolversystems.com• http://www.manning.com/foord/