#clojure logs

2015-03-28

10:45hyPiRionSince reader conditionals acts like "cond", should it be an error to do something like #?(:default foo :clj baz) ? Since foo will be the chosen path anyway
11:48ShayanjmHey, so broad question: When working with clojure on a remote machine (i.e: writing code locally, but pushing & testing remotely due to hardware bottlenecks)
11:48Shayanjmwhat's the best 'workflow', or is it as simple as starting nrepl on the remote machine and connecting locally?
12:02GonzihShayanjm: connecting to remote repl should be fine
12:02ShayanjmGonzih: if I then eval statements within the repl would they execute on my machine, or the remote one?
12:03Shayanjmi.e: Does connecting to a remote repl actually persist a connection to a remotely executing code base, or does it simply replicate application state in the local repl?
12:03GonzihShayanjm: everything will be send to remote machine and executed there
12:03ShayanjmGonzih: awesome. follow up - what if I wanted to use incanter to plot a bunch of points using the remote machine
12:03Shayanjmbut view that plot via my local machine
12:03Gonzihincanter is harder
12:04ShayanjmThat's what I figured
12:04Gonzihbut you can always start nrepl server via ssh and do x forwarding
12:04Gonzihso X windows will apear on your machine
12:04Shayanjmhmm
12:04Gonzihworks on linux fine in my experience
12:04Gonzihno idea about macos
12:05ShayanjmThe remote machine is running Ubuntu, and I don't see why it wouldn't work on my local mac
12:05Shayanjmthanks for the tip Gonzih. Will test it out later
12:06GonzihShayanjm: enjoy! :)
12:06oddcullyShayanjm: first try with e.g. xterm and see if it works
12:07oddcullyif they haven't butchered x11 on osx in recent years, this should work fine
12:07ShayanjmSounds great oddcully
12:09oddcullyis the machine in your lan or some where along a slow pipe in the internet?
12:10Shayanjmoddcully: somewhere along a slow pipe in the internet
12:11Shayanjmit's a cluster, really. The plotting I have to do is pretty cpu intensive
12:11Shayanjmsome like 760k points
12:11ShayanjmTried doing it on my mbp and it threw up in my lap
12:11oddcullybut you basically want to see some graphs? so no big interaction on X11 side?
12:12ShayanjmRight
12:12Shayanjmthe only X window i'd like to see is the result, which is the result of one command (view plot)
12:12oddcullywell try it out. i don't see why it should not work
12:12Shayanjmpast that everything can be done from inside the repl
12:12Shayanjmawesome
12:14oddcullyyou can even tunnel your repl traffic via the ssh tunnel then. a) it's safe and sound and b) if you still send lots of data you can compress ssh
12:15piecykMaybe someone knows why on heroku the core.async block don't run ? https://github.com/piecyk/ts/blob/master/src/cljs/ts/core.cljs#L31-L35 ?
12:23danlentz_Test message please disregard