Re: Excluding an Automatically-Imported Java Class

2013-12-07 Thread Ambrose Bonnaire-Sergeant
Interesting, I had no idea clojure.lang.Compiler was automatically imported. You probably want ns-unmap . (ns rdoc.core ...) (ns-unmap *ns* 'Compiler) (import 'com.google.javascript.jscomp.Compiler) Thanks, Ambrose On Sun, Dec 8, 2013

Re: Function to Generate EDN :readers Map for Namespace Records?

2013-12-07 Thread Michael Daines
Thanks, that inspired me to look around. I didn't figure out how to hijack the defrecord macro, but I was able to write something based upon the code there: (def reader-map (let [records (filter #(re-find #"^map-" (str (key %))) (ns-publics *ns*)) splat (fn [pai

Excluding an Automatically-Imported Java Class

2013-12-07 Thread Jay Young
My interest in Clojure has been building lately, and I have a great project to get my feet wet. One of the dependencies for my project is the Closure javascript compiler (having Clojure and Closure in the project is going to make for some interesting typo-hunting). When I try to import com.go

Re: core.async/thread failing silently

2013-12-07 Thread Alex Miller
Errors are most likely occurring on a thread different than main. Assuming you're using nrepl, have you looked at the nrepl-error buffer? On Saturday, December 7, 2013 7:27:35 PM UTC-6, Paul Butcher wrote: > > Consider the following function that adds two numbers exceptionally > inefficiently b

Re: Advice on choosing the right data structure

2013-12-07 Thread dabd
Why isn't a zipper appropriate for tree recursion? On Sunday, December 8, 2013 2:16:33 AM UTC, Alexander Hudek wrote: > > This is still just recursion because of the map. That means it has all the > problems of recursion. If you need to avoid recursion, you need to do a > depth first or breadth

Re: Advice on choosing the right data structure

2013-12-07 Thread Alexander Hudek
This is still just recursion because of the map. That means it has all the problems of recursion. If you need to avoid recursion, you need to do a depth first or breadth first traversal of the tree and hold onto state as you do it. The zipper does some of this for you and provides an easy way to

core.async/thread failing silently

2013-12-07 Thread Paul Butcher
Consider the following function that adds two numbers exceptionally inefficiently by creating lots of threads: user=> (require '[clojure.core.async :refer [thread (defn thread-add [x y] #_=> (thread #_=> (if (zero? y) #_=> x #_=> (let [t (thread-add (inc x) (dec y))]

Auto-reloading static HTML resource with Enlive + Pedestal

2013-12-07 Thread David James
I took a stab at trying to answer this but hit a wall. http://stackoverflow.com/questions/20108899/enlive-template-auto-reload-detect-changes-in-a-pedestal-service/20447481#20447481 What are we missing? Thanks, David -- -- You received this message because you are subscribed to the Google Gro

Re: Help with Static Site Generator

2013-12-07 Thread David Simmons
> > Perfect - many thanks. > -- -- 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. To unsubscribe fr

Re: Help with Static Site Generator

2013-12-07 Thread Cesar Canassa
You can check Nakkaya blog source. It uses static. https://github.com/nakkaya/nakkaya.com On Sat, Dec 7, 2013 at 3:07 PM, David Simmons wrote: > Hi > > has anyone used Static (https://github.com/nakkaya/static) to create a > site. The documentation is a little sparse and I'm struggling to set u

Help with Static Site Generator

2013-12-07 Thread David Simmons
Hi has anyone used Static (https://github.com/nakkaya/static) to create a site. The documentation is a little sparse and I'm struggling to set up my default.clj file. If someone has a version I could copy that would be great. many thanks Dave -- -- You received this message because you are

Re: accessing big-resource - what are people doing?

2013-12-07 Thread Joshua Ballanco
On Saturday, December 7, 2013 at 14:06, Jim - FooBar(); wrote: > Hi all, > > Technically speaking this is not a question specific to Clojure. I 'd > like to see how people are generally accessing some big resource (e.g a > massive .csv file). My use case is this: > > I've got code that fetc

Re: accessing big-resource - what are people doing?

2013-12-07 Thread James Reeves
It sounds like you either need a local cache, so each client only needs to download the file once, or to place the data on an external database that's accessibly publicly in some fashion. - James On 7 December 2013 12:06, Jim - FooBar(); wrote: > Hi all, > > Technically speaking this is not a

accessing big-resource - what are people doing?

2013-12-07 Thread Jim - FooBar();
Hi all, Technically speaking this is not a question specific to Clojure. I 'd like to see how people are generally accessing some big resource (e.g a massive .csv file). My use case is this: I've got code that fetches the weather conditions from Yahoo, given a WOE_ID code. The problem is th

Re: [ANN] Buffy The ByteBuffer Slayer, Clojure library to working with binary data

2013-12-07 Thread Oleksandr Petrov
I've added a missing option for wrapped buffers: https://github.com/clojurewerkz/buffy#buffer-types On Wed, Dec 4, 2013 at 9:28 AM, Ulises wrote: > While we're on the subject, I found no way of decoding/interpreting an > already existing sequence (ByteBuffer) of bytes, but only one that had > b

Re: [ANN] Buffy The ByteBuffer Slayer, Clojure library to working with binary data

2013-12-07 Thread Oleksandr Petrov
I've added 32-bits based bit type to Buffy: https://github.com/clojurewerkz/buffy#bit-type Does it suit your needs? If not, what length of bits do you require? On Wed, Dec 4, 2013 at 3:58 PM, Rob Day wrote: > On 29 November 2013 22:15, Alex P wrote: > > Buffy [1] is a Clojure library to work