Re: Effective Clojure book?

2014-06-11 Thread Daniel Higginbotham
The Clojure Cookbook is useful in this regard, http://clojure-cookbook.com/ On Wednesday, June 4, 2014 9:30:26 PM UTC-4, Mike Fikes wrote: > > Are there any books yet that prescribe best practices for Clojure, à la > Meyers or Bloch? > -- You received this message because you are subscribed to

Re: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Devin Walters
If I had a small fortune I would pay you to sit down and show me how this business you're talking about works. Sounds really cool. Is doing this kind if thing documented well anywhere? I'd love to see some code and your workflow. '(Devin Walters) > On Jun 11, 2014, at 15:30, Mike Fikes wrote:

Re: Instaparse - thank you!

2014-06-11 Thread Devin Walters
I think it's annularly understood that Mark is the bee's knees. Thanks for the fantastic, well-documented instaparse. It's saved me a *lot* of time to date, and it taught me a lot about parsers. Honorable mention to Sean Corfield for starting this thread and being such a model member of the com

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Gustavo Matias
+1 for letting more people contribute to it and for planning on coming with a great junction of all these great projects On Wednesday, June 11, 2014 9:23:31 PM UTC-4, Devin Walters (devn) wrote: > > Thanks for the reply Francesco. I know you said the code needs clean up > and all, but FWIW I hav

Re: Instaparse - thank you!

2014-06-11 Thread Scott Thoman
+1 ! I'm about to use it in a production deployment. It has been a pleasure to use! -- 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 - pleas

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Devin Walters
Thanks for the reply Francesco. I know you said the code needs clean up and all, but FWIW I haven't seen any project where that wasn't the case. I'd encourage you to put it up on github. I for one would be interested in contributing. I want to merge GetClojure, crossclj, clojuredocs, clojuresphe

Re: Instaparse - thank you!

2014-06-11 Thread David Andrews
Yes, kudos to Mark for a neat little library. I used it recently to parse out macro definitions and RightFax commands from a PCL5 data stream. Good stuff, that. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Instaparse - thank you!

2014-06-11 Thread Alexander Hudek
We've also used to at our company to build a query language, though not a "natural language" one. I'm curious, how are you going about making a natural language query system? Usually the problem with those is that they are not flexible enough to really be natural. On Tuesday, June 10, 2014 11:

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Francesco Bellomi
Devin, On Wednesday, June 11, 2014 6:25:13 PM UTC+2, Devin Walters (devn) wrote: > > A few nitpicks: > Thanks for your feedback; I really appreciate any opinion or suggestion, especially related to the UI > > - I find the usability to be a bit difficult in some places. For instance, > sear

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Francesco Bellomi
Hi Gabriel, On Wednesday, June 11, 2014 6:15:14 PM UTC+2, cldwalker wrote: > > > Any plans on open sourcing some of this? I'd be interested to make this > (or an offshoot) that is a canonical site for clojar documentation much > like http://rdoc.info/ is for ruby gems. > I have some ideas for C

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Francesco Bellomi
Hi Mike, On Wednesday, June 11, 2014 5:53:47 PM UTC+2, Mike Haney wrote: > > Very cool. Is there a public REST api? Not at the moment, but I'm open to suggestions from the community > I ask because I'm thinking a lighttable plugin that uses this to search > for dependencies and automaticall

[ANN] Automat 0.1.2

2014-06-11 Thread Zach Tellman
https://github.com/ztellman/automat The initial release of this was just a little ways back, where I alluded to using the library to react to browsing behavior. A few people asked how to actually accomplish that, and I realized that this sort of use, while possible, was harder than it needed t

Re: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Mike Fikes
While Gal's approach of ditching IB is fine, I still use it, but bind UI components to atoms in ClojureScript. Once that is done, you have a lot of power at your disposal on the ClojureScript side of the JavaScriptCore bridge: With atom watchers you can react to UI state changes, feed them throu

Re: Clojure Contributor Agreement process update

2014-06-11 Thread Ustun Ozgur
On Tuesday, June 10, 2014 11:35:34 PM UTC+3, Sergey Didenko wrote: > > Sorry if that was already answered, > > Is there a possibility to get rid of this legalwall? > > Interestingly, node.js has just done that today: http://www.joyent.com/blog/broadening-node-js-contributions Ustun > -- Y

Re: time expression of clojure produces different results on cascalog queries

2014-06-11 Thread Thomas Heller
https://github.com/hugoduncan/criterium Does most of what you'd need for some benchmarks. It should be noted that neither Hadoop nor Cascalog were built for Jobs that finish in msecs. Since you are most likely just measuring the setup/teardown, once you push some real data through the system yo

Re: time expression of clojure produces different results on cascalog queries

2014-06-11 Thread Andy Fingerhut
There are some simple things like: try to ensure that no one else is using the systems being measured besides you, and even that you yourself are doing nothing with those systems other than the runs you are trying to measure. Measure what the load on the machines is before you start your experimen

generate rtf

2014-06-11 Thread Glen Rubin
I am writing a program that needs to process some text and then generate an RTF file. I am using the spit command, but the file I generate gives me an error message when I try opening it using Windows Word, it brings up a message box stating: Word was unable to read this document. It may be c

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Mike Haney
I think he mentioned he was using tools.analyzer. I would also be interested in seeing the source. Pairing this with codeq could be interesting. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: time expression of clojure produces different results on cascalog queries

2014-06-11 Thread sindhu hosamane
Ya right .thanks for this info . If it is the case , how can one make performance tests ? I really have to make some performance comparisons on single node and multinode hadoop. Are there any other work arounds ? I want results to be atleast somewhat close to accurate. Or can u suggest me any ot

Re: [ANN] Nginx-Clojure v0.2.2 released

2014-06-11 Thread Toni Helenius
It does look really cool. What i was wondering about was Datomic's caching of data to peer application process, and limited peers. Maybe slacker could be used to have datomic in a separate process. On Tuesday, June 3, 2014 6:52:50 PM UTC+3, Xfeep Zhang wrote: > > The multiprocess from nginx is q

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Devin Walters
I stumbled upon CrossClj before it was released due to some Google results that started showing up. A few nitpicks: - I find the usability to be a bit difficult in some places. For instance, search results and specific function pages feel kind of cluttered. - What does "Some other projects..."

Re: [ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread cldwalker
I'm loving the usages functionality. Great work! On Wednesday, June 11, 2014 11:53:47 AM UTC-4, Mike Haney wrote: > > Very cool. Is there a public REST api? I ask because I'm thinking a lighttable plugin that uses this to search for > dependencies and automatically add them to project.clj woul

Re: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Gal Dolber
I've been writing iOS apps in clojure for some time now. Believe me when I say that Interface Builder is the least of your problems. I wrote a small lib https://github.com/galdolber/uikit to generate iOS interfaces from clojure data structures. Aside from being able to compose ui like never before,

[ANN] CrossClj, a tool for cross-referencing the clojure ecosystem

2014-06-11 Thread Mike Haney
Very cool. Is there a public REST api? I ask because I'm thinking a lighttable plugin that uses this to search for dependencies and automatically add them to project.clj would be pretty easy to write and quite useful. Yes, I could use clojars directly, but this would allow more options in the

Re: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Hussein B.
The idea of having lisp on iOS (and OS X) is really awesome but there is a huge downside: That won't integrate with Xcode "Interface Builder" out of the box. That would be the deal breaker. On Wednesday, June 4, 2014 3:20:22 PM UTC+2, Greg Knapp wrote: > > The recent release of Swift made me re

Re: time expression of clojure produces different results on cascalog queries

2014-06-11 Thread Andy Fingerhut
I have not used Cascalog, so I do not know how much variation from one run to the next is completely normal, but there are many factors that can cause variations in run time between runs in most computations. For example: + the state of L1, L2, etc. caches in the CPU memory systems + If files are

Re: How to iterate over maps and drop one specific element each time?

2014-06-11 Thread Jonathan Winandy
Hi ! If you want to keep certain entries, there is also select-keys : (map #(select-keys % [:v :b :z]) [{:op :e :v 1} {:op :n :b 2} {:op :m :z 2.3}]) On Wed, Jun 11, 2014 at 3:12 PM, Di Xu wrote: > (map #(dissoc % :op) [{:op :e :v 1} {:op :n :b 2} {:op :m :z 2.3}]) > > 2014-06-11 21:09 GM

Re: solving an equation for all solutions with constraints: core.logic.fd

2014-06-11 Thread David Nolen
core.logic only currently supports solving finite domains CLP(FD), you'll have to look elsewhere for a CLP(R) solver for now. David On Tue, Jun 10, 2014 at 5:30 PM, cej38 wrote: > I picked a toy problem that was really easy to solve, figuring that once I > had the idea down, I would be able to e

Re: How to iterate over maps and drop one specific element each time?

2014-06-11 Thread Di Xu
(map #(dissoc % :op) [{:op :e :v 1} {:op :n :b 2} {:op :m :z 2.3}]) 2014-06-11 21:09 GMT+08:00 Hussein B. : > Hi, > > I have a seq of maps: > > [ {:op :e :v 1} {:op :n :b 2} {:op :m :z 2.3} ] > > How to iterate over the sequence and extracting only the non-op entries? > > Desired result is: > > [

How to iterate over maps and drop one specific element each time?

2014-06-11 Thread Hussein B.
Hi, I have a seq of maps: [ {:op :e :v 1} {:op :n :b 2} {:op :m :z 2.3} ] How to iterate over the sequence and extracting only the non-op entries? Desired result is: [ {:v 1} {:b 2} {:z 2.3} ] Thanks for help and time. -- You received this message because you are subscribed to the Google Gr

Re: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Max Gonzih
GC means pauses. Swift doesn't have proper GC, only ref counting because of that. GC pauses in UI are bad. I like idea of Clojure on some new fancy high performance language like Go or Swift. On Wednesday, June 4, 2014 4:08:17 PM UTC+2, tbc++ wrote: > > I'm starting to feel like a broken record,

time expression of clojure produces different results on cascalog queries

2014-06-11 Thread sindhu hosamane
I have set up a single node hadoop and running my cascalog queries on it . Good and i get results too . Now i am using clojure.core/time to evaluate how much time cascalog queries took for execution. Very Strange thing is: each time i run the cascalog query , i get different elapsed time fo

Re: Clojure Contributor Agreement process update

2014-06-11 Thread Sergey Didenko
I look at it from the psychological point of view. There is a similar design decision in a website world - mandatory login vs relaxed login. For years a lot of webmasters were quite inert to even look at possibility to relax login requirement for core site activities. However in the online shoppi

Re: destructuring let and for

2014-06-11 Thread Francesco Lunelli
Thanks for the answer, I'll try to do as you suggest. Thanks On Tuesday, June 10, 2014 11:51:59 PM UTC+2, Paul G wrote: > > Hi Francesco, > > I apologize for using "for" earlier, as I did not explain how you should > be using it. The comment of "do something with rel" should have indicated > th