Erlang/OTP

2,187 views

Published on

Published in: Technology, News & Politics
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,187
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Erlang/OTP

  1. 1. Erlang/OTP BPStudy #34 2010-06-30 NAKAI Ryosuke Accense Technology, Inc.
  2. 2. Erlang Erlang OTP Mnesia
  3. 3. @voluntas 21 Erlang 3 Python Erlang
  4. 4. Erlang Erlang 3
  5. 5. Erlang RabbitMQ ejabberd MochiWeb CouchDB ErlyVideo
  6. 6. RabbitMQ AMQP Advanced Message Queueing Protocol VMWare http://www.rabbitmq.com/
  7. 7. ejabberd XMPP eXtensible Messaging and Presence Protocol Google Talk http://www.ejabberd.im/
  8. 8. MochiWeb Web MochiMedia Facebook CouchDB http://github.com/mochi/mochiweb
  9. 9. CouchDB DB IBM T-Mobile BBC http://couchdb.apache.org/
  10. 10. ErlyVideo RTMP 1 ... http://github.com/erlyvideo/erlyvideo
  11. 11. WebSocket Server (Erlang) (HTML5) WebGL (HTML5) DEMO @MiCHiLU + @webos_goodies
  12. 12. Erlang ?
  13. 13. spawn(Module, Function, Args) spawn(Fun) (Fiber?) 2~3
  14. 14. top top - 11:15:39 up 4 days, 23:43, 6 users, load average: 0.44, 0.71, 0.53 Tasks: 178 total, 1 running, 177 sleeping, 0 stopped, 0 zombie Cpu0 : 92.1%us, 0.3%sy, 0.0%ni, 7.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 91.3%us, 0.3%sy, 0.0%ni, 8.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 92.3%us, 0.3%sy, 0.0%ni, 7.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 94.4%us, 0.0%sy, 0.0%ni, 5.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu4 : 94.1%us, 0.7%sy, 0.0%ni, 5.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 : 94.1%us, 1.0%sy, 0.0%ni, 4.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu6 : 85.8%us, 0.9%sy, 0.0%ni, 13.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 : 92.6%us, 1.3%sy, 0.0%ni, 6.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 8259008k total, 4047528k used, 4211480k free, 78508k buffers Swap: 6369272k total, 0k used, 6369272k free, 2475444k cached
  15. 15. spawn spawn(fun() -> end) DEMO Pid ! Terms ok. DEMO
  16. 16. A = 10 A = 20 A = 10 A = 10 DEMO
  17. 17. DEMO
  18. 18. DEMO if case ... of DEMO
  19. 19. Erlang Python Erlang OTP
  20. 20. OTP Open Telecom Platform OTP > Erlang loop
  21. 21. OTP gen_server, supervisor, application 3 DEMO gen_event, gen_fsm behaviour
  22. 22. Mnesia Erlang DB
  23. 23. DEMO QLC SQL activity/2, activity/4
  24. 24. R14A 2010-06-16 binary crypto NIF gen:do_call eprof 9 R14B
  25. 25. Q and A Erlang Windows, Linux, Unix, Solaris, VxWorks escript R14A OMake OMake

×