Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

88 lines (76 sloc) 3.789 kb

Appears to be upper limit on broadcast size

e.g. (range 1000)

The above will cause an EOF in the watcher.

(<2010-04-14 Wed>): Implemented, but feels dirty.

Interleave watcher REPL

It would also be great if this output was interleaved with the users current REPL session so they can try stuff at their local REPL while watching the shared REPL. That is, I would like for the watch function to NOT take over the watcher’s REPL.

printStackTrace prints nil on watcher side

Exceptions, in general, don’t seem to showup on the watcher side.

Added a class to intercept calls to err. Should be good to go now.

Multiple lines on share side causes EOF

Send kill signal to watchers

Sharer needs to send kill signal to watches when closing share.

Had an implementation working but decided to scratch this idea for now.

How do I test this?

After futzing with the reader impl multiple times it occured to me I need to write some automated tests to expedite the dev process and to prevent regressions.

Verify this actually works across local network

Verified that it works for two machines over my home network (wifi).

Exception when doing addition over multiple lines

[ryan] user=> (+ 1 java.lang.IllegalStateException: Can’t pop empty vector [ryan] user=> (.printStackTrace *e) clojure.lang.LispReader$ReaderException: java.lang.IllegalStateException: Can’t pop empty vector at at clojure.core$read__5425.invoke(core.clj:2385) at clojure.core$read__5425.invoke(core.clj:2383) at clojure.core$read__5425.invoke(core.clj:2381) at clojure.core$read__5425.invoke(core.clj:2379) at clojure.main$repl_read__7371.invoke(main.clj:92) at clojure.main$repl__7385$read_eval_print__7397.invoke(main.clj:181) at clojure.main$repl__7385.doInvoke(main.clj:200) at clojure.lang.RestFn.invoke( at net.progski.repl_share$share__49.invoke(repl_share.clj:36) at user$eval__55.invoke(NO_SOURCE_FILE:4) at clojure.lang.Compiler.eval( at clojure.core$eval__5236.invoke(core.clj:2017) at clojure.main$repl__7385$read_eval_print__7397.invoke(main.clj:183) at clojure.main$repl__7385.doInvoke(main.clj:200) at clojure.lang.RestFn.invoke( at clojure.main$repl_opt__7431.invoke(main.clj:254) at clojure.main$main__7466.doInvoke(main.clj:347) at clojure.lang.RestFn.invoke( at clojure.lang.Var.invoke( at clojure.lang.AFn.applyToHelper( at clojure.lang.Var.applyTo( at clojure.main.main( Caused by: java.lang.IllegalStateException: Can’t pop empty vector at clojure.lang.PersistentVector.pop( at clojure.lang.PersistentVector.pop( at clojure.lang.RT.pop( at clojure.core$pop__4707.invoke(core.clj:965) at clojure.lang.Atom.swap( at clojure.core$swap_BANG___4880.invoke(core.clj:1474) at net.progski.repl_share.BroadcastReader$_unread__21.invoke(BroadcastReader.clj:32) at net.progski.repl_share.BroadcastReader.unread(Unknown Source) at clojure.lang.LispReader.unread( at clojure.lang.LispReader.readNumber( at at clojure.lang.LispReader.readDelimitedList( at clojure.lang.LispReader$ListReader.invoke( at … 22 more nil

Add license

(<2010-04-14 Wed>): Keep it simple, use EPL.

Install instructions

Usage instructions

Rename share to group

Share reminds me of MS too much. Plus group is what its called in multicast land.

Jump to Line
Something went wrong with that request. Please try again.