Multicore CPUs is making people look at functional.
1. What is functional? No assignment. Controlled assignments.
2. What is wrong with mutability? Problem when shared.
3. If it is immutable no locks are required. Immutable variables in F#. F# is Hybrid functional because it allows you to declare variables as mutable. Pure function is one that does not have side effects. They are predictable. they can be run in parallel. (referential independence)
4. Higher order functions. You can create functions and return functions.
Demo of how functional style reduces code using F# list.filter and list.map
Thoughts that come to the mind expressed in the Internet realm. Chintanaigal pronounced chin-than-aye-cle (as in cubicle))
Labels
Book Review
(429)
Java
(41)
India
(33)
Ecuador Travelogue
(32)
Tourism
(29)
PMD
(26)
Static Code Checks
(25)
Ian Rankin
(22)
Philosophy
(15)
Jeffrey Archer
(12)
Guayaquil
(11)
John Le Carre
(11)
China
(10)
GIDS
(10)
Corruption
(8)
Douglas Crockford
(8)
PEC
(7)
Pondicherry Engineering College
(7)
Quito
(7)
Reservation
(7)
Tena
(6)
Chetan Bhagat
(5)
Pakistan
(5)
Women
(5)
Amazon Forest
(4)
Amitav Ghosh
(4)
Class of 1989
(4)
Haiku
(4)
Human Rights
(4)
Technology
(4)
Ashwin Sanghi
(3)
ECE
(3)
Ebook Reader
(3)
Ecuador
(3)
Graham Greene
(3)
Martin Fowler
(3)
Photography
(3)
Steve Jobs
(3)
Tata Group
(3)
Cs of Code Quality
(2)
Death
(2)
IISc
(2)
IT
(2)
Refactoring
(2)
TCS
(2)
iPhone
(2)
Andean Condor
(1)
Arvind Adiga
(1)
Brahma Kamal
(1)
CEDT
(1)
Cache Memory
(1)
Center of the Earth
(1)
Chanakya
(1)
Class of 1991
(1)
Coriolis Effect
(1)
David Suzuki
(1)
Equator
(1)
Fredrick Forsyth
(1)
Galapagos Turtle
(1)
Garbage Collection
(1)
Gwendoline Riley
(1)
Job
(1)
Joe Hewitt
(1)
Programming Paradigms
(1)
Ramadorai
(1)
S Sudarshan
(1)
Swami Rama
(1)
Tara Cullis
(1)
Walter Isaacson
(1)
iCon
(1)
Tuesday, April 17, 2012
Thinking in functional style F# and some C#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment