Your SlideShare is downloading. ×
Clojure functions v
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Clojure functions v

542
views

Published on

Clojure, Function, FP, Functional, java, jvm

Clojure, Function, FP, Functional, java, jvm

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
542
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
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

Transcript

  • 1. 3 functions (agent, send, add-watch) functions Fun with 4Clojure@diego_pacheco
  • 2. Yes, I’m a geek guy.(And I like dinosaurs) @diego_pacheco diego-pacheco.blogspot.com github.com/diegopacheco
  • 3. Remember… Respect The REPL
  • 4. Remember…(NO enterprise java Bullshit PLEASE)
  • 5. Agents (reactive not autonomous: no imperative message loop and no blocking receive) Refs Agents Agents are… coordinated independent Data structures that synchronous asynchronous is associated with a pool of threads.change of multiple locations change of individual locations single storage location single storage locationmutation within a transaction mutation as a result of an action Async Functions STM Integrated with STM prevent shutdown
  • 6. agent What is the issue here ?
  • 7. agent What is the issue here ? NONE
  • 8. send What is the issue here ?
  • 9. send What is the issue here ? JVM blocks
  • 10. add-watch"[Agent Log] Key: :logger Agent: clojure.lang.Agent@da6bf4 old-value: 30 new-value: 31""[Agent Log] Key: :logger Agent: clojure.lang.Agent@da6bf4 old-value: 31 new-value: 32"
  • 11. 4Clojure.com+10 Problems Solved+Share 3 Solutions
  • 12. +30 Problems Solved
  • 13. Solution 1
  • 14. Solution 2
  • 15. Solution 3
  • 16. Recommended Books
  • 17. (pr “Thanks All Folks”)@diego_pacheco