Re: Clojure glosary

2016-02-19 Thread Tianxiang Xiong
Thanks, but a cheatsheet is not really what I'm looking for. The cheatsheet lists commands grouped by function, which is useful, but I'm looking for rigorous, precise definitions of terms like "var" and "identity". On Friday, February 19, 2016 at 9:22:24 PM UTC-6, juvenn wrote: > > Hi Tianxiang,

[ANN] paren-soup 1.0, now with parinfer

2016-02-19 Thread Zach Oakes
This is a new release of paren-soup, a browser-based ClojureScript editor for people who think CodeMirror is too stable and performant for their taste. I gutted my embarrassing paren completion and auto-indentation code to make it use the amazing Parinfer library instead. I also added a some su

Re: Clojure glosary

2016-02-19 Thread Juvenn Woo
Hi Tianxiang, there is Clojure cheatsheet that may be helpful to you: http://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html Best, -- Juvenn Woo Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Saturday, 20 February 2016 at 10:39 AM, Tianxiang Xiong wr

Clojure glosary

2016-02-19 Thread Tianxiang Xiong
Is there a better, more comprehensive Clojure glossary than the Clojure-Docs one? While fairly good, it's not comprehensive, and has not been updated in several years. I'd like a canonical go-to reference if I fo

Re: Question about Clojure function naming

2016-02-19 Thread Tianxiang Xiong
Yes, as I'm reading further into the book I am coming to understand more about the differences between the ref, atom, and agent types. I am beginning to see that swap! is not an alter on atoms, etc. The way the book presents the information, though, strongly suggests parallels. Consistency is a

Re: How to compile with optimizations none when using web workers

2016-02-19 Thread William la Forge
Thomas, Your worker demo includes the entire cljs runtime as part of the project? https://github.com/thheller/worker-example/tree/master/demo/js/cljs-runtime -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: How to compile with optimizations none when using web workers

2016-02-19 Thread William la Forge
Thomas, Have you seen this? A simple demo using workers in clojurescript: https://github.com/MarcoPolo/Servant I've converted the demo to use boot: https://github.com/aatree/aademos/tree/master/servant-demo -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: How to compile with optimizations none when using web workers

2016-02-19 Thread William la Forge
Thomas, Modules looks quite exciting. I would be glad to help in developing a boot task for same. Bill -- 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 a

Re: How to compile with optimizations none when using web workers

2016-02-19 Thread Thomas Heller
Hello, I'm not quite sure what you are saying here since I do not know boot or hoplon or durable-cells. I can however suggest a "better" solution for Workers: Using Closure Modules. CLJS or boot do not implement them for :none at the moment but shadow-build does. I also have a few extra hints

Anyone going to Clojure West?

2016-02-19 Thread Kester Browne
Try to find out if anyone from the DC area is going to Clojure West? -- 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

Re: surprising behaviour from dissoc on records

2016-02-19 Thread Beau Fabry
Interesting. I think it makes sense in that `dissoc` is a function for removing a kv pair from a map, not a function for setting v to nil given a k. I could definitely see tripping up on this though. On Friday, February 19, 2016 at 8:07:16 AM UTC-8, Alex Miller wrote: > > You can find some of th

[ANN] trapperkeeper-webserver-jetty9 v1.5.1 released

2016-02-19 Thread Chris Price
Today we did a new release of puppetlabs/trapperkeeper-webserver-jetty9 to clojars. trapperkeeper-webserver-jetty9 is the main webserver component for use with our "trapperkeeper" service framework. The new release is version 1.5.1, and it includes a fix for a memory leak that would be triggered

Re: surprising behaviour from dissoc on records

2016-02-19 Thread Alex Miller
You can find some of the background for this at http://clojure.org/reference/datatypes. Records are intended to capture "application domain information" - where the fields are known. Dissoc'ing means you are removing not just a value, but the whole "field", and the implication here is that you

Re: [GSoC Idea] Distributed Load Testing Tool in Clojure

2016-02-19 Thread Alex Miller
I added this to the page - thanks Markus! On Friday, February 19, 2016 at 9:49:51 AM UTC-6, Markus Hjort wrote: > > *Brief explanation:* Clojure as a language is a good choice for writing > readable load test scenarios. Core libraries and runtime are well suited > for doing highly parallel compu

How to compile with optimizations none when using web workers

2016-02-19 Thread William la Forge
Compiling with optimizations none is no doubt quite handy, especially in conjunction with source maps, as a traceback will take you to the line of code causing the problems, and with the same variable names used in your original clojurescript code. But this is not currently possible for .jc f

[GSoC Idea] Distributed Load Testing Tool in Clojure

2016-02-19 Thread Markus Hjort
*Brief explanation:* Clojure as a language is a good choice for writing readable load test scenarios. Core libraries and runtime are well suited for doing highly parallel computation while lazy sequences and transducers are effective for doing calculations on big data structures. All of these

surprising behaviour from dissoc on records

2016-02-19 Thread Stig Brautaset
Dissoc behaviour on records really surprised me: user> (defrecord Foo [bar]) ;; => user.Foo user> (def foo (->Foo nil)) ;; => #'user/foo user> (dissoc foo :bar) ;; => {} user> (assoc foo :bar nil) ;; => #user.Foo{:bar nil} It lead to a bug where a component of min

Re: Question about Clojure function naming

2016-02-19 Thread Gary Verhaegen
I'd say only Rich Hickey can really answer these questions, but here is one possible explanation. These functions are not equivalent. Just like 'send' on an agent has fundamental differences with 'swap!', 'alter' has fundamental differences with both. There is also some similarity, of course: in a

Unexpected behavior of bidi.ring/make-handler function when using nginx-clojure-embed.

2016-02-19 Thread Arturas Kveselis
Hi, I've tried to play with bidi using embedded nginx server and faced this problem: Noticed that if I'm calling ring handler function directly, request map I'm receiving is correct, but then calling the same handler using bidi's routing map and make-handler function, reques map gets partly des

Re: Brief Clojars outage in ~5 hours

2016-02-19 Thread Chris Ford
Thanks for being vigilant, Toby, and for keeping us informed. On 19 February 2016 at 02:06, Toby Crawley wrote: > This maintenance has been completed. > > Let us know if you see any issues: > https://github.com/clojars/clojars-web/wiki/Contact > > On Thu, Feb 18, 2016 at 3:43 PM, Toby Crawley w

Re: Question about Clojure function naming

2016-02-19 Thread Atamert Ölçgen
> > why Clojure chose to name functions operating on refs and atoms so > differently swap! is not an alter on atoms. And vice versa. reset! is not a ref-set on atoms. And vice versa. The analogous functions names would make remembering which is which easier. Are you having trouble remembering