A Brief Introduction To Erlang

  • 761 views
Uploaded on

A Brief Introduction To Erlang - Lighting Talk

A Brief Introduction To Erlang - Lighting Talk

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
761
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
9
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • http://en.wikipedia.org/wiki/Erlang_(programming_language)
  • http://smyck.net/2012/04/22/why-erlang/http://www.wooga.com/games/
  • Tennis Kata:http://pastebin.com/sxaJxfJUTennis Kata: http://pastebin.com/7c8QTWkM
  • http://www.businessinsider.com/10-tech-skills-that-will-instantly-net-you-100000-salary-2012-8?op=1http://pragprog.com/articles/erlanghttp://akka.io/http://moiraesoftware.com/blog/2012/01/22/FSharp-Dataflow-agents-I/
  • http://learnyousomeerlang.com/http://www.youtube.com/watch?v=uKfKtXYLG78http://codingdojo.org/cgi-bin/wiki.pl?KataCataloguehttps://twitter.com/#!/search/%23erlang

Transcript

  • 1. A Brief Introduction to ErlangPhillip TrelfordLightning Talk 2012
  • 2. Erlang in Industry• Amazon ▫ SimpleDB for Amazon Elastic Compute Cloud (EC2)• Yahoo! ▫ Delicious social bookmarking (50 million users)• Facebook ▫ Chat service (100 million users)• T-Mobile ▫ SMS and authentication systems• Ericsson ▫ Support nodes in GPRS & 3G mobile networks
  • 3. Open Source Erlang• RabbitMQ ▫ AMQP based messaging• CouchDB ▫ Document-oriented database• Riak ▫ Distributed database• Ejabberd ▫ XMPP based instant messaging (IM)
  • 4. Why Erlang? Wooga Case StudyBefore After• Social Games • 1 App Server*• Millions of daily users• 80 – 200 App Servers• 5000 – 7000 RPS * Actually 2 for redundancy
  • 5. Blackjack functionC# Erlangpublic static isBlackjack([A,B]) when A+B==21 -> bool IsBlackjack(int[] ranks) true;{ isBlackjack(_) -> return false. ranks.Length == 2 && ranks[0] + ranks[1] == 21;}
  • 6. Coding Erlang Text REPL Winning Editor
  • 7. Card Shuffle in Erlang REPLRanks=["A","1","2","3","10","J","Q","K"].Suits=[clubs,diamonds,hearts,spades].Deck=[{Rank,Suit}||Rank<-Ranks,Suit<-Suits].Tuples=[{random:uniform(),Card}||Card<-Deck].[Card||{_,Card}<-lists:keysort(1,Tuples)].
  • 8. Why learn Erlang?• Money ▫ Erlang will instantly net you a $100,000 salary• Power ▫ 99.9999999% Reliability• Respect ▫ Scala Akka ▫ F# Agents ▫ TPL DataFlow (TDF)
  • 9. Erlang Book Stack
  • 10. Next Steps• Read ▫ Learn You Some Erlang For Great Good!• Watch ▫ Erlang: The Movie• Try ▫ Coding Katas• Get the T-Shirt ▫ #Erlang