Go! here we go!

1,398 views

Published on

Published in: Health & Medicine, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,398
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
19
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Go! here we go!

  1. 1. Go! Here we go! 2012.02 Xing Xing / mikespook.com / Follow @mikespook
  2. 2. Why <ul><li>Faster … slower, slower or slower...
  3. 3. Header hell
  4. 4. Type: complicated -> dynamically
  5. 5. GC and parallel computation? Systems languages said NO!
  6. 6. Multicore == Worry and Confusion </li></ul>
  7. 7. What <ul><li>Compiling resources is a resources!
  8. 8. Dependency analysis easy, C-style include files and libraries .
  9. 9. To make types feel lighter weight .
  10. 10. Fully GC, support for concurrent execution and communication.
  11. 11. For the construction of system software on multicore machines. </li></ul>
  12. 12. <ul>A new system language, a concurrent, garbage-collected language with fast compilation. </ul>
  13. 13. <ul>When in Rome, do as the Romans do. </ul>
  14. 14. <ul>When in Golang, do as the Gophers do. </ul>
  15. 15. <ul>When in Golang, do as the Gophers do. </ul>
  16. 16. Hello HTTP
  17. 17. Who are always late?
  18. 18. Goroutines <ul><li>It is a function executing in parallel with other goroutines in the same address space.
  19. 19. -- From &quot;Effective Go&quot; </li></ul>
  20. 20. Do not communicate by sharing memory; instead, share memory by communicating.  -- From &quot;Effective Go&quot;
  21. 21. Do not communicate by sharing memory; instead, share memory by communicating.  -- From &quot;Effective Go&quot;
  22. 22. Channels combine communication—the exchange of a value—with synchronization—guaranteeing that two calculations (goroutines) are in a known state. -- From &quot;Effective Go&quot; Channel, PIPE or Message Queue?  Channels
  23. 23. Channels
  24. 24. Go 1: Production usable? <ul><li>Only one main command: go
  25. 25. Lots of official packages
  26. 26. Not large but high-end communities </li></ul><ul>On the doorstep, coming soon... </ul>
  27. 27. Coding Show “ The C heat” Soldiers: We are out of stack, sarge! Sarge: I know! We gonna get it! (The sarge opened a console and typed “showmethestack”...) Soldiers: Wow...Cool! We are survivors! Sarge: Yep! Because we all love the cheat! [asm_386.s, asm_amd64.s, asm_arm.s] runtime.morestack
  28. 28. Question?

×