[clojure 1.5] deftype & defrecord class annotations missing in action

2013-07-22 Thread the80srobot
Hello, Maybe this is a dumb question, but I have been trying to get deftype class annotations to work for a few hours now, ended up reading most of the code in Compiler.java and short of debugging Clojure, I'm out of ideas. As I understand the murky interactions between deftype, metadata and Ja

slurp on over slow HTTP crashes clojure?

2012-07-19 Thread the80srobot
Hello, I apologize if this isn't the right place to post this. I've seen slurp exhibit some very strange behavior when querying a particular URL at certain times of day - it seems that a call to slurp as such: (slurp "http://support.clean-mx.de/clean-mx/viruses.php?limit=0,150";) will crash

Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread the80srobot
Hello, So I've been working on a project at work, that required me to code a simple web interface. I considered going with Noir, and while reading the code, I noticed a pattern that seems to repeat throughout most of the code that Chris Granger has published in Clojure. This is what I'm referri

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread the80srobot
gt; can anyone else add anything? > > Jim > > > On 12/09/12 15:30, the80srobot wrote: > > Hello, > > > > So I've been working on a project at work, that required me to code a > > simple web interface. I considered going with Noir, and while reading > >

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread the80srobot
t > is a "Clojure best practice" :) > > On Wed, Sep 12, 2012 at 9:30 AM, the80srobot > > > wrote: > > Is this a Clojure best practice? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: unseq

2012-11-06 Thread the80srobot
If I understand this right, you're looking for something like Lua's unpack function. AFAIK you will not be able to do this in Clojure using functions, because Clojure functions can only return one argument. The only way to achieve this behavior would by by transforming your calls using reader m

Copying (immigrating) macros from namespace to namespace

2013-01-06 Thread the80srobot
I have come up with a solution to a problem I don't think exists outside of my mind, but since I can't for the life of me figure out how Clojure 'wants' me to do this, I thought I would bounce this off the Google Group. *The scenario:* I am trying to collect a bunch of functions and macros from

Re: Copying (immigrating) macros from namespace to namespace

2013-01-07 Thread the80srobot
Stuart, You're right that it breaks identity. How about a different approach then - I can get the list of referred vars from a namespace, and vars can cary metadata. A natural way to add more flexibility would be to add a flag - let's call it :export - to referred vars that I'd like for namespa