Re: clojure debugging repl

2014-01-25 Thread t x
https://github.com/GeorgeJahad/debug-repl/blob/master/src/alex_and_georges/debug_repl.clj is some of the most enlightening clojure code I have read. Any other suggestions? Criteria for code I'm looking for: * need not be production use * ideally short * focus is demonstrate key idea, not

problems installing lighttable:

2014-01-25 Thread t x
I'm on OSX: xs-mbp-2% git clone https://github.com/LightTable/LightTable.git Cloning into 'LightTable'... remote: Reusing existing pack: 4986, done. remote: Counting objects: 159, done. remote: Compressing objects: 100% (128/128), done. remote: Total 5145 (delta 73), reused 79 (delta 9) Receiving

Re: problems installing lighttable:

2014-01-25 Thread Jozef Wagner
There is a dedicated group to the LightTable at https://groups.google.com/forum/#!forum/light-table-discussion On Saturday, January 25, 2014 9:43:45 AM UTC+1, t x wrote: I'm on OSX: xs-mbp-2% git clone https://github.com/LightTable/LightTable.git Cloning into 'LightTable'... remote:

Re: What's your testing flow with the current clj tools?

2014-01-25 Thread Jay Fields
I use emacs expectations[1] These days I do more repl-driven-development than test-driven-development, so the tests tend to come after solving the problem at hand. At that point I run all the tests via lein expectations[2] to get an idea of what's broken. Now that I know what test namespaces

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Patrick Logan
In CSP you might have a limited size buffer, but then block on the next Put. That's not something you want to casually attempt over a distance. It seems you want an interface like Channels that deal in fully formed objects, but you don't want CSP blocking semantics. -- -- You received this

[ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Hi all, yesterday Laurent Petit asked me how to run on CCW OM and Austin together to have the same live experience obtained by David Nolen in his OM tutorial. This morning I created this simple om-start lein-template (a kind of cljs-start without unit testing stuff) which allows to create a OM

Re: clojure debugging repl

2014-01-25 Thread Mimmo Cosenza
On Jan 25, 2014, at 2:12 AM, Alexandr Kurilin a...@kurilin.net wrote: I'd love to be able to set breakpoints in a running clojure application, step through the code and inspect locals and the referencing environment. Anything that gets me off of the time-consuming process of adding

Re: What's your testing flow with the current clj tools?

2014-01-25 Thread Stuart Sierra
I use tools.namespace https://github.com/clojure/tools.namespace to cleanly reload all source files which have changed, then ` clojure.test/run-all-testshttp://clojure.github.io/clojure/clojure.test-api.html#clojure.test/run-all-tests` with a regex. -S On Saturday, January 25, 2014 12:57:23

Re: What's your testing flow with the current clj tools?

2014-01-25 Thread Jay Fields
sorry, I forgot to mention you can you also expectations/run-all-tests (with or without a regex) if you're the kind of developer who likes to live in the repl. On Sat, Jan 25, 2014 at 8:19 AM, Jay Fields j...@jayfields.com wrote: I use emacs expectations[1] These days I do more

Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Laurent PETIT
Thanks a lot Mimmo, you're invaluable in helping people cross bridges between tools, libraries, and a real bright light for newcomers also ! Le samedi 25 janvier 2014, Mimmo Cosenza mimmo.cose...@gmail.com a écrit : Hi all, yesterday Laurent Petit asked me how to run on CCW OM and Austin

Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Thanks Laurent! Has been a pleasure to interact with you! mimmo On Jan 25, 2014, at 5:56 PM, Laurent PETIT laurent.pe...@gmail.com wrote: Thanks a lot Mimmo, you're invaluable in helping people cross bridges between tools, libraries, and a real bright light for newcomers also ! Le

Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread David Nolen
This is great, thank you! On Sat, Jan 25, 2014 at 10:34 AM, Mimmo Cosenza mimmo.cose...@gmail.comwrote: Hi all, yesterday Laurent Petit asked me how to run on CCW OM and Austin together to have the same live experience obtained by David Nolen in his OM tutorial. This morning I created

[ANN] com.stuartsierra/frequencies 0.1.0

2014-01-25 Thread Stuart Sierra
New Clojure library frequencies https://github.com/stuartsierra/frequencies Basic statistical computations (mean, median, etc.) on **frequency maps**, e.g. the map returned by `clojure.core/frequencies`. A frequency map can represent (or approximate) a large distribution of values in a small

Clojure memory usage

2014-01-25 Thread Anurag Ramdasan
I've been playing around with clojure for a while now but never actually made anything in it. Today I started looking around into pedestal and started following its tutorials. Once I kept the server running for a few hours I noticed that it took upto 500MB of my ram even though it wasn't

Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Thanks David, it could be even better if someone explains to me how to make austin to run in a browser connected REPL with `:none` optimization ;-) mimmo On Jan 25, 2014, at 6:37 PM, David Nolen dnolen.li...@gmail.com wrote: This is great, thank you! On Sat, Jan 25, 2014 at 10:34 AM,

Re: [ANN] com.stuartsierra/frequencies 0.1.0

2014-01-25 Thread Sam Ritchie
Nice! Aphyr's interval-metrics also does a really nice job here: https://github.com/aphyr/interval-metrics Stuart Sierra mailto:the.stuart.sie...@gmail.com January 25, 2014 10:39 AM New Clojure library frequencies https://github.com/stuartsierra/frequencies Basic statistical computations

Re: Web App structure on server?

2014-01-25 Thread Jarrod Swart
I've thought about this in the past, but the callback style node requires is not very appealing to me for scripting. Most python scripts I write are very imperative/sequential, does CLJS abstract any of that away? On Saturday, January 25, 2014 2:14:05 AM UTC-5, Joshua Ballanco wrote: I just

Re: Clojure memory usage

2014-01-25 Thread Jarrod Swart
This was talked about here: https://groups.google.com/forum/#!searchin/clojure/user$3A$20g$20vim/clojure/XqPGnX5aSAI/PoLYaydgX3cJ TLDR: The JVM carves out its own chunk of memory from the OS. It then uses very advanced and finely tuned means to manage said memory. So even though the app

Helping newcomers get involved in Clojure projects

2014-01-25 Thread Bridget
OpenHatch has this great initiativehttps://openhatch.org/wiki/Bug_trackersfor encouraging newcomers to get involved with open source projects. You tag some issues in your bug tracker as newcomer or easy. This provides a gentle path into contributing. There is some work involved with this. You

Re: Rename file uploaded

2014-01-25 Thread Jarrod Swart
Nothing sticks out, but a NullPointerException is something I most commonly get as a result of an incorrect file path. Things I would do: 1. Make sure that (gallery-path) actually exists or is writable. 2. I would do (POST /upload [file] (println file) (handle-upload file))), to inspect what

Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Jarrod Swart
I have been spending a lot of time thinking about the Clojure newcomer perspective lately, and I'd like to work on some things that help smooth that path. I've been thinking about this as well, and I would love to hear your thoughts. Please elaborate! On Saturday, January 25, 2014

[ANN] Stefon: A Composable Blog Engine

2014-01-25 Thread Timothy Washington
The kernel of Stefon https://github.com/stefonweblog/stefon has stabilized to a point where people can start writing plugins against it. I still want to deliver *i)* a database and *ii)* webui plugin along with the core kernel. But my schedule's packed up, and I don't want to leave it too long.

Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Mimmo Cosenza
+1 On Jan 25, 2014, at 7:54 PM, Bridget bridget.hill...@gmail.com wrote: OpenHatch has this great initiative for encouraging newcomers to get involved with open source projects. You tag some issues in your bug tracker as newcomer or easy. This provides a gentle path into contributing. There

Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Marcus Blankenship
+1 One idea: what about doing some remote pairing and virtual hackathon sessions which let people work together? I went to a hackathon this weekend and it seems like a great way to learn. Thanks, Marcus Marcus Blankenship 541-805-2736 On Jan 25, 2014, at 11:24 AM, Mimmo Cosenza

Re: ANN: Om 0.3.0

2014-01-25 Thread David Pidcock
I was following along with this and hit an interesting bug The contact list delete button actually works out of the gate in the first example, (when its supposed to fail) and when I add the deref in the next step I get Uncaught Error: No protocol method IDeref.-deref defined for type

Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Timothy Washington
+1 I need help building out Stefon https://github.com/stefonweblog/stefon and accompanying plugins https://github.com/stefonweblog. Tim Washington Interruptsoftware.com http://interruptsoftware.com/ On Sat, Jan 25, 2014 at 1:54 PM, Bridget bridget.hill...@gmail.com wrote: OpenHatch has

So, how much do you really know about clojure's internals?

2014-01-25 Thread Gal Dolber
https://github.com/galdolber/clojure-core-java -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post.

simple-check gen/boolean Only Returning false

2014-01-25 Thread Michael Daines
I decided to play with simple-check for the first time and was working through the examples on github. I noticed that all the values that use gen/boolean are returning false. I never get a true. At the extreme end, the following never returns when run in the repl: (gen/sample (gen/such-that

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
I'm getting the deref error, but the first example failed as expected in 0.3.0. On Saturday, January 25, 2014 2:51:08 PM UTC-5, David Pidcock wrote: I was following along with this and hit an interesting bug The contact list delete button actually works out of the gate in the first

Re: ANN: Om 0.3.0

2014-01-25 Thread Rudi Engelbrecht
Hi David Thank you for a great tutorial! I really enjoyed working through your Tutorial on LightTable and Om.  A note: In my environment the contact is being deleted when the contact-view has the following code (defn contact-view [contact owner] (reifyom/IRenderState(render-state

Re: ANN: Om 0.3.0

2014-01-25 Thread Rudi Engelbrecht
I experienced the same as you when following the tutorial - it works the first time and when adding the deref the delete button stops working Rudi On Jan 26, 2014, at 6:51 AM, David Pidcock eraz0rh...@gmail.com wrote: I was following along with this and hit an interesting bug The

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Cedric Greevey
What about a hybrid blocking/timeout approach? At the sending end of the network bridge you have the taker and at the receiving end the putter. The putter, when it sees an object on the wire, puts it on a local channel (blocking put with timeout). If it succeeds it sends an ack up the wire. If the

Re: Clojure memory usage

2014-01-25 Thread Cedric Greevey
You might want to use the G1 collector (JVM opt UseG1GC) if you're using Java 7 as I've heard that the G1 collector gives memory back to the OS more readily than the other options. On Sat, Jan 25, 2014 at 1:55 PM, Jarrod Swart jcsw...@gmail.com wrote: This was talked about here:

Re: Clojure memory usage

2014-01-25 Thread Sean Corfield
On Jan 25, 2014, at 2:32 PM, Cedric Greevey cgree...@gmail.com wrote: You might want to use the G1 collector (JVM opt UseG1GC) if you're using Java 7 as I've heard that the G1 collector gives memory back to the OS more readily than the other options. My experience with Java 7 and the G1

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
I cannot replicate this. If somebody wants to publish a repo that exhibits the problem I'll take a look. Thanks. On Sat, Jan 25, 2014 at 5:12 PM, Rudi Engelbrecht r...@engelbrecht.mewrote: I experienced the same as you when following the tutorial - it works the first time and when adding the

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Patrick Logan
This seems like more trouble than it is worth. There are almost certainly suitable but more established protocols and implementations for the problem at hand. Anyway, maybe it's worth exploring. To me it seems to muddy the waters for what core.async seems intended to provide, which seems to me

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
This is what I did (using the om-start template.) On Saturday, January 25, 2014 5:51:06 PM UTC-5, David Nolen wrote: I cannot replicate this. If somebody wants to publish a repo that exhibits the problem I'll take a look. Thanks. On Sat, Jan 25, 2014 at 5:12 PM, Rudi Engelbrecht

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
Woops, left it off: https://github.com/johnwalker/hellom On Saturday, January 25, 2014 6:15:59 PM UTC-5, john walker wrote: This is what I did (using the om-start template.) On Saturday, January 25, 2014 5:51:06 PM UTC-5, David Nolen wrote: I cannot replicate this. If somebody wants to

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
That project.clj is using Om 0.2.3 and not Om 0.3.0. On Sat, Jan 25, 2014 at 6:16 PM, john walker john.lou.wal...@gmail.comwrote: Woops, left it off: https://github.com/johnwalker/hellom On Saturday, January 25, 2014 6:15:59 PM UTC-5, john walker wrote: This is what I did (using the

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Michał Marczyk
If the application is structured in such a way that messages from the other side of the client/server divide are put on channels upon arrival, which seems to be a reasonable idea, why not encapsulate the connection-handling logic in a black box exposing a (bunch of) channel(s)? On 26 January 2014

Re: ANN: clojure-objc

2014-01-25 Thread PublicFarley
I'm utterly shocked by the lack of posts and questions about this very cool variation of the Clojure compiler. Think people Develop iOS apps in Clojure! Awesome and fun. I suggest that the author and his team try to see if you can present at ClojureWest. Need to get the word out. Anyway,

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread t x
I believe the semantics can be simplified as this: * the server (clj) can disconnect at any time * the client (cljs) has the responsibility of (1) informing the user (2) reconnecting (3) figuring out what went wrong in such events I believe this is both necessary and

Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Marcus Blankenship
I’d love to help with Stefon. I just forked it, and am trying to get it running. Is there a mailing list for it? On Jan 25, 2014, at 12:41 PM, Timothy Washington twash...@gmail.com wrote: +1 I need help building out Stefon and accompanying plugins. Tim Washington

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
The one on master is using 0.2.3. Checkout the 0.3.0 branch for the same results. On Saturday, January 25, 2014 6:17:32 PM UTC-5, David Nolen wrote: That project.clj is using Om 0.2.3 and not Om 0.3.0. On Sat, Jan 25, 2014 at 6:16 PM, john walker john.lo...@gmail.comjavascript: wrote:

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
The tutorial doesn't cover using advanced optimizations and it doesn't appear your index.html page is setup for it. I switched your project to use :optimizations :none. I ran `lein cljsbuild clean` to blow everything away. I ran CIDER and followed your instructions. At that point everything works

Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
Hey, you cannot subclass from clojure at the moment. But I its not necessary.. Just create a UIView, add subviews, properties and listeners. And if you need a UIViewController to pass around, create one and set the view with setView: I have a small ui framework, but its not ready to open source.

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
This fixed it for me. Thanks ! On Saturday, January 25, 2014 7:13:43 PM UTC-5, David Nolen wrote: The tutorial doesn't cover using advanced optimizations and it doesn't appear your index.html page is setup for it. I switched your project to use :optimizations :none. I ran `lein cljsbuild

Re: ANN: clojure-objc

2014-01-25 Thread Timothy Baldridge
What's the performance of this code like? I'd be interested in seeing how performance on Clojure data structures compares. In my experiments with reference counting and highly polymorphic code, getting much faster than languages like Python was quite hard. Without a more dedicated optimizer that

Re: [core.async] New put api

2014-01-25 Thread Sean Corfield
On Jan 23, 2014, at 1:47 PM, Timothy Baldridge tbaldri...@gmail.com wrote: Sadly, put! on a closed channel has never thrown an exception (regardless of what the docstring says). LOL! OK, then I'm happy. So to answer your question about closing with pending puts. 1) call put! on an open

Re: ANN: clojure-objc

2014-01-25 Thread Devin Walters
(inc #'your/idea) I performance related questions similar to Tim, but I think having some good getting started material might give me a way to start testing the boundaries myself. Cheers, '(Devin Walters) On Jan 25, 2014, at 17:31, PublicFarley publicfar...@gmail.com wrote: I'm utterly

Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
Loading performance is actually better than clojure on the jvm, on my notebook loading clojure.core takes 700ms on the jvm and 200ms on the ios simulator. And for computation performance I haven't benchmark yet, but at first sight doesn't seems to be a problem. On the second question, j2objc

Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
To get started just follow the steps here: https://github.com/galdolber/lein-objcbuild You should be able to get everything setup in a few minutes. On Sat, Jan 25, 2014 at 10:02 PM, Devin Walters dev...@gmail.com wrote: (inc #'your/idea) I performance related questions similar to Tim, but

Re: ANN: clojure-objc

2014-01-25 Thread PublicFarley
Thanks for the quick reply Gal. Excellent advise. I never thought to do it that way. Need to stretch my thinking a bit... LOL. Yes your compilation technology could enable a lot of creative thinking around frameworks and libraries for iOS UI construction in Clojure. Much like the excitement

Re: [ANN] Simbase: A vector similarity database

2014-01-25 Thread Mingli Yuan
Hi, folks, This week we released v0.1.0-alpha3 * Remove constrains on vectors, Simbase support arbitrary vectors now * Fix various bugs on memory structure to keep scale ratio linearly * Almost 7 times improvement on performance, right now it can handle 100k dimensional dense vectors in under

Re: simple-check gen/boolean Only Returning false

2014-01-25 Thread Jean Niklas L'orange
On Saturday, January 25, 2014 10:03:13 PM UTC+1, Michael Daines wrote: I decided to play with simple-check for the first time and was working through the examples on github. I noticed that all the values that use gen/boolean are returning false. I never get a true. At the extreme end,

Re: Rename file uploaded

2014-01-25 Thread The Dude (Abides)
Thanks for the feedback Jarrod, the gallery-path did exist because I was able to upload files without renaming them and I saw the map with keys per your tip. I just wasn't familiar enough with the plumbing in noir.io or the language as I finally had the time to spend a week getting into clojure

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Sean Corfield
On Jan 25, 2014, at 3:17 PM, Michał Marczyk michal.marc...@gmail.com wrote: If the application is structured in such a way that messages from the other side of the client/server divide are put on channels upon arrival, which seems to be a reasonable idea, why not encapsulate the

Re: Clojure development laptop battery usage

2014-01-25 Thread greybird
In case it helps, I've also seen this CPU eating problem. I'm using: REPL-y 0.1.9 Clojure 1.5.1. I don't know what you guys mean by MBP and MBA. --mark -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure development laptop battery usage

2014-01-25 Thread Timothy Baldridge
MBP = Mac Book Pro MBA = Mac Book Air On Sat, Jan 25, 2014 at 9:12 PM, greybird m...@greybird.com wrote: In case it helps, I've also seen this CPU eating problem. I'm using: REPL-y 0.1.9 Clojure 1.5.1. I don't know what you guys mean by MBP and MBA. --mark -- -- You received this

Re: Clojure development laptop battery usage

2014-01-25 Thread Jarrod Swart
MBP -- Mac Book Pro MBA -- Mac Book Air Best, Jarrod On Saturday, January 25, 2014 11:12:37 PM UTC-5, greybird wrote: In case it helps, I've also seen this CPU eating problem. I'm using: REPL-y 0.1.9 Clojure 1.5.1. I don't know what you guys mean by MBP and MBA. --mark -- -- You

Re: Clojure development laptop battery usage

2014-01-25 Thread Andy C
On Wed, Jan 22, 2014 at 5:29 PM, John Chijioke johnben...@gmail.com wrote: Not true. More RAM, more power. Why? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from

Re: Clojure development laptop battery usage

2014-01-25 Thread Timothy Baldridge
It's not true. All memory has to be kept active at all times. Now you may experience less battery usage due to the GC having to run more often, but that's not exactly a memory usage problem. Not to mention that the OS will almost always use all free ram for disk caches and the like. On Sat,