An Introduction to Microsoft F#
- Posted: Oct 29, 2008 at 9:37 AM
- 126,607 Views
- 39 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
let the |> fun commence
(hurr!)
Hope to see more of this stuff around.
Thanks for the fun !
Encore.
|> is like . (dot) in C# - especially when talking about extension methods.
Kudos!
Great Presentation!
I am watchin git for the second time and coding along through the demo. However, I am getting an error in the StockAnalyzer type...
type StockAnalyzer (lprices, days) =
let prices =
lprices
|> Seq.map snd
|> Seq.take days
static member GetAnalyzers (tickers,days) =
tickers
|> Seq.map loadPrices
|> Seq.map (fun prices -> new StockAnalyzer (prices, days))
member s.Return =
let lastPrice = prices |> Seq.nth 0
let startPrice = prices |> Seq.nth (days - 1)
lastPrice / startPrice -1.
... the last line is not working ... getting "This value is not a function and cannot be applied" error when mouseover startPrice variable. Any advice for f# newbie? I am running the 1.9.6.2 version of f# with VS integrated shell.
Thanks!
mspan
www.fsharpener.blogspot.com
exm.
let sumOfSquares nums = sum (each nums sqr)
sumOfSquares [0,2,5,8]
The async stuff didn't work for me. In fact, neither AsyncGetResponse nor AsyncReadToEnd exist in my version (.Net 3.5 under MSVS2008). The Plot function of Graphics is also not available. Seems to me like a special library is needed...
(define (sum-of-squares nums) (fold-left + (map sqr nums)))
(sum-of-squares '(0 2 5 8))
Awesome video.
Good Presentation!
After the presentation, I had some fun with this F#.
It's an interessting language like C#.
Thanks.
-Raja
+1 404 424 4674
In regard to the examples, can you share the C# utilities and .dll files?
Thanks,
Can you post the code files used in the demo/talk?
Thanks
Superb presentation, thanks.
Hello Luca,
this video is fantastic!! Very intetresting. This F# remembers me the time when I was studing ML.
Seems very very promising.
Saluti da Reading - UK
Marcco -- StockTrader
This is one of the greatest presentations. Thanks Luca, you're damn good)
Non capisco una cosa: lavori in Microsoft e mi sembri una persona in gamba, perche' non fai un bel corso di pronuncia inglese? Neanche nei film gli italiani parlano inglese in quel modo! :)
-----
I don't understand one thing: you are a Microsoft employee and yet you don't know how to pronounce english? Not even in movies italians pronounce english that way! :D
Bravissimo!
nice =)
Excellent talk mate.
@birbilis: more compact yes, simpler to understand no
Concise and entertaining one-hour intro to F#.
Excellent
@birbilis:
Pipelining functions with classical C-Syntax gets messy when you have many functions with many parameters.
Syntax itself changes the way you percieve programming -- it does indeed matter. If you use C# with and without LINQ, you notice how massive the difference between a functional approach and a sequential/imperative approach can be.
I'm a big fan of the new functional features emerging in .NET, and this takes it a step further.
@Zibri:I am American and had no trouble understanding him. His English is excellent. Very nice video!
What an amayzing presentation!
Teachs a lot! And the examples are practical application than to play with list of numbers and characters.
Cheeeeeeeeeeeeeeerrrrrrrsssss
Such a relaxed presentation ! Good one
This is really an awesome presentation. Thanks
The best accent I've ever heard! :)
The best accent I've ever heard! :)
The best accent I've ever heard! :)
Excellent presentation!! Informative and comical at the same time
Hi!
I entered the same code as in 38:11 but when I type "grid prices;;", I get "C:\Users\Victor\AppData\Local\Temp\stdin (4,1): error FS0039: The value or constructor ' grid ' is not defined"
How can I solve the problem. Thanks for your reply!
Great video by the way!
/Victor
@Victor: thanks for your interest! The best place to ask these questions is over at the MSDN F# forum (http://social.msdn.microsoft.com/Forums/en-US/fsharpgeneral/threads). The short answer to your question is that Luca had already defined "grid" in his project. If you want to use these sorts of charting features in your F# programs, check out this blog post (http://blogs.msdn.com/b/fsharpteam/archive/2011/04/15/getting-started-with-fsharpchart.aspx).
Great presentation. Shame it wasn't helped with some of the sad attempts at gotcha questions at the end. The biggest problem with this industry is the type who just want to demonstrate to them how 'smart' they are.
The code for getting the prices in C# using LINQ. It's kind of the same and little shorter.
var prices = csv.Split('\n')
.Skip(1)
.Select(line => line.Split(','))
.Where(values => values.Length == 7)
.Select(values => new { Date = DateTime.Parse(values[0]), Price = values[6] });
Remove this comment
Remove this thread
close