Skip to content

Commit 60af71e

Browse files
committed
ready to release
1 parent 3013206 commit 60af71e

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
# clojure-conj-talk
22

3-
A Clojure library designed to ... well, that part is up to you.
3+
Here is are the code examples used in the 2013 Clojure Conj talk on core.async. The core.clj
4+
file in this project contains the examples, and expects that users will eval the forms one
5+
at a time, top to bottom.
46

57
## Usage
68

7-
FIXME
9+
In the talk, I used a binding (CTRL-`) and this emacs code to run each form one at a time in a repl.
10+
11+
12+
13+
(defun nrepl-eval-expression-at-point-in-repl ()
14+
(interactive)
15+
(let ((form (nrepl-expression-at-point)))
16+
;; Strip excess whitespace
17+
(while (string-match "\\`\s+\\|\n+\\'" form)
18+
(setq form (replace-match "" t t form)))
19+
(set-buffer (nrepl-find-or-create-repl-buffer))
20+
(goto-char (point-max))
21+
(insert form)
22+
(nrepl-return)))
23+
824

925
## License
1026

11-
Copyright © 2013 FIXME
27+
Copyright © 2013 Timothy Baldridge
1228

1329
Distributed under the Eclipse Public License either version 1.0 or (at
1430
your option) any later version.

src/clojure_conj_talk/core.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@
481481

482482
;;;; Actors ;;;;
483483

484-
;; Please don't do this:
485484

486485
(defprotocol IActor
487486
(! [this msg]))
@@ -524,16 +523,14 @@
524523
;; 3) specify how to handle the next message
525524

526525

527-
;; <pontificate>
528-
529526
;; My critique of this system
530527
;; 1) unbounded queue (mailbox)
531528
;; 2) internal mutating state (hidden in function closures)
532529
;; 3) must send message to deref (mailbox could be backed up)
533530
;; 4) couples a queue, with mutating state, with a process
534531
;; 5) basically async OOP
535532

536-
;; </pontificate>
533+
;; </critique>
537534

538535

539536

0 commit comments

Comments
 (0)