Submit Search
Upload
Clrh47zecl
•
0 likes
•
435 views
G
guest5b854d
Follow
CLR/H 47 zecl LT
Read less
Read more
Education
Report
Share
Report
Share
1 of 9
Download now
Download to read offline
Recommended
YAPC::ASIA 2012 LT GaiaX
YAPC::ASIA 2012 LT GaiaX
Kazuyuki Todo
仕事でも Groovy を使おう!
仕事でも Groovy を使おう!
Oda Shinsuke
IronRuby on Silverlight っておいしいの?
IronRuby on Silverlight っておいしいの?
terurou
Large Enterprise Initiatives
Large Enterprise Initiatives
Aaron Howard
Social Web Media
Social Web Media
Aaron Howard
Aaron PSU NEW Forum
Aaron PSU NEW Forum
Aaron Howard
Breakthrough Planning
Breakthrough Planning
Aaron Howard
技術とサービスをつなぎ価値ある製品をつくるための組込みアジャイル
技術とサービスをつなぎ価値ある製品をつくるための組込みアジャイル
Naoya Maekawa
Recommended
YAPC::ASIA 2012 LT GaiaX
YAPC::ASIA 2012 LT GaiaX
Kazuyuki Todo
仕事でも Groovy を使おう!
仕事でも Groovy を使おう!
Oda Shinsuke
IronRuby on Silverlight っておいしいの?
IronRuby on Silverlight っておいしいの?
terurou
Large Enterprise Initiatives
Large Enterprise Initiatives
Aaron Howard
Social Web Media
Social Web Media
Aaron Howard
Aaron PSU NEW Forum
Aaron PSU NEW Forum
Aaron Howard
Breakthrough Planning
Breakthrough Planning
Aaron Howard
技術とサービスをつなぎ価値ある製品をつくるための組込みアジャイル
技術とサービスをつなぎ価値ある製品をつくるための組込みアジャイル
Naoya Maekawa
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Clrh47zecl
1.
.NETでちょっと草植えときますね型 言語 Grassを実装してみました ~オブジェクト指向と関数プログラミングの狭間で~
_, ._ ( ・ω・) んも〜 ○={=}〇, |:::::::::\, ', ´ 、、、、し 、、、(((.@)wvwwWWwvwwWwwvwwwwWWWww WwwWWWWWWwwwwWwwvwWWwWwwvwWWW zecl/ぜくる
2.
自己紹介 zecl/ぜくる ・C#とF#が好きです。F#歴はもう少しで1年。 ・はてなでブログ書いてます id:zecl ・twitterのつぶやきは少なめです@zecl ・最近ようやくWPFとSilverlightさわり始めました ・アジャイルを好みます。TDD,ペアプロ,ピアレビュー ・「辛そうで辛くない少し辛いラー油」探してます ・年間200本くらい映画を観ます / ・積みゲーを消化しきれません><
3.
ちょっと草植えときますね型言語 Grassとは かなり適当なGrassの説明 ・使う文字は W,w,v
の3種類(いわゆる難読言語) ・草を植えるための関数型言語で型無しラムダ計算 ベース。スタックマシンの一種。 ・関数定義と関数適用のみで構成(変態仕様) ・プリミティブはw,Out,In,Succの4つ ・初期環境E0 = Out :: Succ :: w :: In :: ε ・とにかく草を生やせばいいじゃない ・詳しくはWebで・・・。
4.
草を植えた動機 ・ネタ好きなので ・C#やF#など.NETでの実装が見当たらない ・初見は理解不能で悔しい思いをした ・Haskell,OCaml,F#等の関数型言語を勉強し てきた今ならイケそうな気がする ・オブジェクト指向と関数プログラミングの 表現力の違いを確認したい ・λ(lambda)とお友達になりたい
5.
C#で草を植える ・オブジェクト指向で実装 ・面倒くさいので公式にあるJavaの実装をパ クりました。多少アレンジはしています ・LINQやラムダ式を使わない縛りプレイ ・プリミティブはポリモーフィズムで表現 ・LinkedListでスタックを表現 ・トータル800行くらいで書けた ただし、これはC#の本気ではない!
6.
F#で草を植える ・関数プログラミング的に実装 ・class、if文、for等を使わない縛りプレイ ・強力な型推論が素敵。C#のショボイ推論ではこう はいかない。でもたまにKYな推論しやがります。 ・パターンマッチで常勝理論 逆に言えば、これがなかったら死ねる ・プリミティブは弁別子付き共用体 (discriminated union)
型で表現(再帰的に) ・クロージャーとリストでスタックを表現 ・だいたい120行くらいで書けた
7.
感想 ・関数脳へパラダイムシフトすると、関数を主役に考え ることができ、クラスを利用するよりもより細かいコ ンポジションメカニズムを利用し、抽象的な実装で
コードのシンプルさを追求できる!きもちいい・・。 (コード削減はOff-side Ruleの恩恵も大きい) ・強力な型推論で開発者自身の型推論能力もUPする! ・豊富なパターンマッチで夢は広がりんぐ! ・オブジェクト指向はプログラミングの基本。やっぱり大 事。F#はオブジェクト指向もサポートされていて死角 なし。F#で関数型とオブジェクト指向の長所を組み合 わせたプログラミングスタイルを目指そう!
8.
そう遠くない未来に・・・ F#>>>越えられない壁>>>C#>VB.NET となる日が来るかもしれません。 ナ ナンダッテー!! Ω ΩΩ
9.
おしまい デモ
Download now