Re: Implementing a Scribble-like preprocessor for Clojure

2013-08-24 Thread JeremyS
Hi Bogdan, That's a cool Idea ! I'm wondering if you wouldn't be better off with something like Instaparse https://github.com/Engelberg/instaparse. Cheers, Jeremys. On Friday, August 23, 2013 3:37:53 PM UTC+2, Bogdan Opanchuk wrote: Hi all, For those who are not familiar with Scribble, it

ANN Gemini 0.2.0

2013-08-24 Thread Christian Sperandio
Hi, I implemented a function to filter a collection by using a matching environment. Thus, you can do a sort of fuzzy filter on your data. A little example: (let [coll [église Eglise Église Elise Elise élise] clean-fn (fn [s] (- (clojure.string/upper-case s) (clojure.string/replace

Re: Implementing a Scribble-like preprocessor for Clojure

2013-08-24 Thread Bogdan Opanchuk
Hi Jeremy, Thank you for your suggestion, it's worth a try. It seems though that it might not be suitable for my more distant plans for this project, because: 1) The full Scribble syntax is not context-free: multiline text mode has to remember the starting indentation (although I'm not sure if

Re: Interest in a commercial IDE for Clojure?

2013-08-24 Thread Francesco Bellomi
I agree with Matt that a commercial plugin for IntelliJ would be mainly targeted at people already using and preferring IntellJ, but this could be an interesting market. As a personal note, I have tried CCW and found it a beautiful piece of software, but the fact is that I simply prefer

Re: cgrand's parsley... text offsets ?

2013-08-24 Thread Jörg Winter
Just what I was looking for, yes, thanks! From the tests I can see an example for views: (deftest path-to (is (= (- (v/path-to ftree 10) peek first v/text) world))) But what is the way to access the resulting map(?) of v/offsets ? what are the keys to the offsets.. the :tag items ? Joerg --

Re: Interest in a commercial IDE for Clojure?

2013-08-24 Thread Jörg Winter
Totally agree with Francesco, Once your used to IntelliJ's comfort you're pretty much hooked. I would pay a reasonable price for an Intellij-based IDE anytime. Colin, hope this is underway already and I wish you success with it. One thing though: Many Lisp-specific (especially homo-iconicity)

Re: cgrand's parsley... text offsets ?

2013-08-24 Thread Jörg Winter
..so an example of using /iterating a nonrec-view would be great! Hope I'm putting this question right Joerg -- -- 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

Why (eval (list (quote (println Clojure)))) is throwing a Null Pointer Exception?

2013-08-24 Thread Hussein B.
Hi, Why the following snippet: (eval (list (quote (println Clojure is throwing a null pointer exception? Thanks for help and time. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Why (eval (list (quote (println Clojure)))) is throwing a Null Pointer Exception?

2013-08-24 Thread Dave Ray
You have an extra list in there which causes the evaluated code to look like this: ((println Clojure)) The println is executed, it returns nil, and then because of the extra parens, Clojure tries to execute nil as a function, giving a NPE. This works: user= (eval (quote (println Clojure)))

Re: [ANN] pdfkit-clj: Produce PDFs from HTML in Clojure

2013-08-24 Thread Kendall Buchanan
Update... the repository is moving under the pdfkit umbrella (the original Ruby pdfkit for wkhtmltopdf): https://github.com/pdfkit/pdfkit-clj On Thursday, August 22, 2013 8:38:47 AM UTC-6, Kendall Buchanan wrote: In case anybody needs HTML to PDF using wkhtmltopdf:

learning records and namespaces

2013-08-24 Thread Tyler Gillies
disclaimer this code is for educational purposes only/disclaimer Here is a sample repo: https://github.com/tjgillies/futs/tree/master/src/futs Here is the line I'm having issues with: https://github.com/tjgillies/futs/blob/master/src/futs/records/file.clj#L5 Here's what I do: From repl, I load

[ANN] lettercase 1.0.0

2013-08-24 Thread tobereplaced
lettercase https://github.com/ToBeReplaced/lettercase is declarative case conversion for Clojure. This solves the problem of manipulating case when communicating between different technologies. For example, converting your lisp-cased keywords into lowercase strings separated by underscores for

ANN Gemini 0.2.1

2013-08-24 Thread Christian Sperandio
Hi, A minor version of the project Gemini that manages the :min-length selector. You can use it alone or with the :max-length selector to define a length gap. More details on https://github.com/chrix75/Gemini Christian -- -- You received this message because you are subscribed to the Google

Re: Interest in a commercial IDE for Clojure?

2013-08-24 Thread Mark Mandel
I'd be keen on this too - but probably more as a plugin than a standalone IDE (a'la WebStorm, RubyMine, etc). I already have a licence for IntelliJ, so would be wanting to have a better plugin than La Clojure. I just started trying to work out my workflow with IntelliJ and Clojure, and found it

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-24 Thread Paul deGrandis
Guns, Have you signed a Clojure CA yet? I'd love to help get this merged into tools.cli Paul On Wednesday, August 7, 2013 10:18:06 AM UTC-7, guns wrote: On Wed 7 Aug 2013 at 05:35:41PM +0100, Wolodja Wentland wrote: Do you have a particular reason why you didn't simply add this

Re: Latest JOGL with Clojure in Eclipse?

2013-08-24 Thread James Ashley
On Friday, June 28, 2013 10:29:18 PM UTC-5, Greg wrote: If you haven't considered LWJGL as an alternative to JOGL, I highly recommend it. I remember preferring it over JOGL when I compared them some years ago. Many popular game engines use it (like jMonkeyEngine). http://www.lwjgl.org/

Re: Latest JOGL with Clojure in Eclipse?

2013-08-24 Thread James Ashley
On Saturday, August 24, 2013 9:02:25 PM UTC-5, James Ashley wrote: I had a beast of a time with lwjgl and native dependencies on 64-bit linux, back in December. There's something somewhere that really wants to load the 32-bit library instead. Some people have had this same problem (which

ANN: clj-tuple, efficient small collections

2013-08-24 Thread Zach Tellman
I just pulled some code I wrote while trying to optimize 'memoize' into its own library: https://github.com/ztellman/clj-tuple. It only has the one function, so I assume no one will need too much explanation. However, there may still be room for performance improvements, so if anyone wants to

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-24 Thread guns
On Fri 23 Aug 2013 at 05:02:50PM -0700, Paul deGrandis wrote: Guns, Have you signed a Clojure CA yet? I'd love to help get this merged into tools.cli Okay, since there is interest, I will mail a CA on Monday morning. Paul, if you are a maintainer or committer of tools.cli, I would be happy

How to send GET http request with range header, using clj-http or http-kit?

2013-08-24 Thread Seven Hong
Hi all: I am trying to grab down a segment of a file on a http server, so technically I should send a GET message with a range header specifying the range of bytes I wanna get. But how do I exactly do that with clj-http? Or is it possible to do this with clj-http? I looked up their

Re: ANN: clj-tuple, efficient small collections

2013-08-24 Thread Ben Wolfson
Are the element names .e0, .e1 etc. considered part of the public interface of tuple objects? On Sat, Aug 24, 2013 at 7:38 PM, Zach Tellman ztell...@gmail.com wrote: I just pulled some code I wrote while trying to optimize 'memoize' into its own library: https://github.com/ztellman/clj-tuple.

Re: How to send GET http request with range header, using clj-http or http-kit?

2013-08-24 Thread Sean Corfield
Can't you just do (get ... {:headers {..}}) and pass the range header that way? On Sat, Aug 24, 2013 at 8:12 PM, Seven Hong sir.seven.h...@gmail.com wrote: Hi all: I am trying to grab down a segment of a file on a http server, so technically I should send a GET message with a range header

Re: How to send GET http request with range header, using clj-http or http-kit?

2013-08-24 Thread Seven Hong
It works!! Thaks!! :-D On Sunday, August 25, 2013 12:09:12 AM UTC-4, Sean Corfield wrote: Can't you just do (get ... {:headers {..}}) and pass the range header that way? On Sat, Aug 24, 2013 at 8:12 PM, Seven Hong sir.sev...@gmail.comjavascript: wrote: Hi all: I am trying to

Re: ANN: clj-tuple, efficient small collections

2013-08-24 Thread Jozef Wagner
Hi, I've did something similar for CLJS, see http://dev.clojure.org/jira/browse/CLJS-453 and https://groups.google.com/forum/#!searchin/clojure/arrayvector/clojure/yDvTRP0gYLA/Tb5MJC8Z0K8J In CLJS, it is comparable in performance to use array instead of specialized type for each arity. Did you