+ All Categories
Home > Technology > F# 3.0: data, services, Web, cloud, at your fingertips

F# 3.0: data, services, Web, cloud, at your fingertips

Date post: 05-Jul-2015
Category:
Upload: microsoft
View: 383 times
Download: 3 times
Share this document with a friend
Description:
Modern programming thrives on rich spaces of data, information and services. With F# 3.0 and Visual Studio 11, you now have a tool that massively simplifies information-rich analytical programming. F# 3.0 provides integrated support for F# Information Rich Programming, a new and powerful way of integrating data and services into your programming experience. In this talk, we will describe the new features of F# 3.0, including the first released version of F# Type Providers and F# Queries, with apps to leverage technologies such as SharePoint, Azure Data Market, OData, Entity Framework and SQL Server.
41
palais des congrès Paris 7, 8 et 9 février 2012
Transcript
Page 1: F# 3.0: data, services, Web, cloud, at your fingertips

palais des

congrès

Paris

7, 8 et 9

février 2012

Page 2: F# 3.0: data, services, Web, cloud, at your fingertips

7 Feb 2012Don SymePrincipal Researcher, Microsoft

F# 3.0 Information-Rich

ProgrammingData, Services, Web, Cloud, at your fingertips!

Now in Visual Studio 11 Developer Preview!

Page 3: F# 3.0: data, services, Web, cloud, at your fingertips
Page 4: F# 3.0: data, services, Web, cloud, at your fingertips

1 2 3 4 5 6 7

Page 5: F# 3.0: data, services, Web, cloud, at your fingertips
Page 6: F# 3.0: data, services, Web, cloud, at your fingertips
Page 7: F# 3.0: data, services, Web, cloud, at your fingertips

This is a Big Problem

Page 8: F# 3.0: data, services, Web, cloud, at your fingertips
Page 9: F# 3.0: data, services, Web, cloud, at your fingertips

magic

Page 10: F# 3.0: data, services, Web, cloud, at your fingertips

type providers

Page 11: F# 3.0: data, services, Web, cloud, at your fingertips

WebSharper/Pit/

Javascript (HTML5)

Page 12: F# 3.0: data, services, Web, cloud, at your fingertips
Page 13: F# 3.0: data, services, Web, cloud, at your fingertips

productive supported interoperable fun

ctional language

simple code complex problems

Page 14: F# 3.0: data, services, Web, cloud, at your fingertips

let swap (x, y) = (y, x)

let rotations (x, y, z) =

[ (x, y, z);

(z, x, y);

(y, z, x) ]

let reduce f (x, y, z) =

f x + f y + f z

C#

Tuple<U,T> Swap<T,U>(Tuple<T,U> t)

{

return new Tuple<U,T>(t.Item2, t.Item1)

}

ReadOnlyCollection<Tuple<T,T,T>> Rotations<T>(Tuple<T,T,T> t)

{

new ReadOnlyCollection<int>

(new Tuple<T,T,T>[]

{new Tuple<T,T,T>(t.Item1,t.Item2,t.Item3);

new Tuple<T,T,T>(t.Item3,t.Item1,t.Item2);

new Tuple<T,T,T>(t.Item2,t.Item3,t.Item1); });

}

int Reduce<T>(Func<T,int> f,Tuple<T,T,T> t)

{

return f(t.Item1)+f(t.Item2)+f(t.Item3);

}

F#

Page 15: F# 3.0: data, services, Web, cloud, at your fingertips
Page 16: F# 3.0: data, services, Web, cloud, at your fingertips

excels analytical engines

Page 17: F# 3.0: data, services, Web, cloud, at your fingertips

an application to balance the national power generation schedule

the calculation engine was written in F#

address the complexity at the heart of this application

algorithmic analysis of large data sets

Page 18: F# 3.0: data, services, Web, cloud, at your fingertips
Page 19: F# 3.0: data, services, Web, cloud, at your fingertips
Page 20: F# 3.0: data, services, Web, cloud, at your fingertips
Page 21: F# 3.0: data, services, Web, cloud, at your fingertips

F# + World Bank

Page 22: F# 3.0: data, services, Web, cloud, at your fingertips

F# + OData

Page 23: F# 3.0: data, services, Web, cloud, at your fingertips

F# + Climate Data + Weather Data

Page 24: F# 3.0: data, services, Web, cloud, at your fingertips

Language Integrated Web Data

Page 25: F# 3.0: data, services, Web, cloud, at your fingertips
Page 26: F# 3.0: data, services, Web, cloud, at your fingertips

into

Page 27: F# 3.0: data, services, Web, cloud, at your fingertips
Page 28: F# 3.0: data, services, Web, cloud, at your fingertips

Type Providers + LINQ

Language Integrated Data and Services

Page 29: F# 3.0: data, services, Web, cloud, at your fingertips
Page 30: F# 3.0: data, services, Web, cloud, at your fingertips
Page 31: F# 3.0: data, services, Web, cloud, at your fingertips

SQL

type "Server='.\\SQLEXPRESS'.."

let

Page 32: F# 3.0: data, services, Web, cloud, at your fingertips

OData

type "http://odata.netflix.com"

let

Page 33: F# 3.0: data, services, Web, cloud, at your fingertips

Web Services

type "http://www.xignite.com/xFutures.asmx?WSDL"

let

Page 34: F# 3.0: data, services, Web, cloud, at your fingertips

let avatarTitles = query { for t in netflix.Titles do

where (t.Name.Contains "Avatar") select t }

Page 35: F# 3.0: data, services, Web, cloud, at your fingertips

let avatarTitles = query { for t in netflix.Titles do

where (t.Name.Contains "Avatar")sortBy t.Nameselect t }

Page 36: F# 3.0: data, services, Web, cloud, at your fingertips

let avatarTitles = query { for t in netflix.Titles do

where (t.Name.Contains "Avatar")sortBy t.Nameselect ttake 100 }

Page 37: F# 3.0: data, services, Web, cloud, at your fingertips

Building a web site using ODataService<…>

Page 38: F# 3.0: data, services, Web, cloud, at your fingertips
Page 39: F# 3.0: data, services, Web, cloud, at your fingertips

without explicitcodegen

strongly typed

extensible, open

Page 40: F# 3.0: data, services, Web, cloud, at your fingertips

Recommended