pretty cute Phil!
It does break for closures that use vars, like this:
(let [a inc] (def dinc (fn [x] (inc (a x)
Caused by: java.lang.IllegalArgumentException: No matching field
found: v for class clojure.lang.Compiler$VarExpr
so you probably want to test the return type from "(.init local)
On Feb 25, 7:45 am, Jules wrote:
> I want to include functions in my metadata - e.g. I might want to
> specify a version comparator function to allow tables to decide
> whether a new version that they are presented with is actually more
> recent than the one that they already hold. I might want to
On Mon, Feb 28, 2011 at 2:51 PM, Seth wrote:
> Notice that saving the code wouldn't work if you had locals (i.e.
> clojures). On the other hand, clojures are serialized when you
> serialize the function.
All the way back in my first post to this thread, I noted that for
closures you'd need to sen
On Feb 14, 2011, at 8:00 AM, Rasmus Svensson wrote:
>> Conditions seem to work in the REPL, but not in my program. I don't know if
>> that's due to the mysteries of AOT compiling or something else I'm doing
>> wrong. Please enlighten.
>
> I guess that depeds on what you mean by "in my program"
Mark,
Thanks for the input. Some comments inline:
On Feb 27, 2011, at 1:06 PM, Mark Rathwell wrote:
> If you have time, I posted a gist containing a data access library I built on
> top of Rich's sdb library (data.clj), and the modifications I made to his sdb
> library (sdb.clj) for consisten
La Clojure's Clojure REPL does not seem to pick up system environment
vars, but run/debug configs do. I'm only able to connect to an Oracle
database using a run/debug config.
http://devnet.jetbrains.net/message/5282672;jsessionid=32A0AC2B9D7CE08AC50042C08250EE19#5282672
On Feb 28, 3:12 am, fin
whats wrong with clojure.contrib.generic.arithmetics? Too slow? The
only other method that i know of is too :
(a). use defprotocol, but this will only dispatch on the first value
(b). use gen-class, but this require aot compilation
For the first approach, see
https://github.com/ztellman/cantor/bl
Notice that saving the code wouldn't work if you had locals (i.e.
clojures). On the other hand, clojures are serialized when you
serialize the function.
For example, heres some code which saves the function to a file, and
then loads it back
;
;;;
On Feb 28, 2011, at 12:33 PM, Ken Wesson wrote:
> As noted earlier in this thread, I have determined that simply making
> supers return a sorted set with an appropriate comparator (e.g.
> alphabetic) suffices in this regard. (For performance reasons, supers,
> or the instance of supers used by pr
Is it possible to define arithmetic operations like + or * for custom
types (like for a coordinate system for example) without using
clojure.contrib.generic.arithmetics ?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, s
Great!
I just joined, unfortunely I won't be in Germany for the next event.
--
Paulo
On Feb 28, 10:20 am, Max Weber
wrote:
> Hello everyone,
>
> back in December 2010 we launch a Clojure User Group for the wider
> area of Cologne in Germany. So if you are living in this region and
> like to joi
aaarrrgh !! no dice :-(
Clojure.lang Compiler and RT conspire to return a new DCL every time
you deref the Compiler/LOADER var :
user=> @clojure.lang.Compiler/LOADER
#
user=> @clojure.lang.Compiler/LOADER
#
user=> @clojure.lang.Compiler/LOADER
#
...
you can get in underneath this, by setting up
Rich just moved the content from the Libraries page on http://clojure.org
to a Libraries page on the dev wiki so that this content is easier for
the community to update. Perhaps it would be good to get a link to
this and the clojure toolbox pages up there?
http://dev.clojure.org/display/community
You might find the (totally unsearchable) "work" library to be useful:
https://github.com/getwoven/work
On Feb 28, 11:38 am, Zlatko Josic wrote:
> Hm. I need something like pool of agents something ilke
> akka framework for scala/java. So I can process more
> messages at once.
>
> Zlaja
>
>
>
>
Hm. I need something like pool of agents something ilke
akka framework for scala/java. So I can process more
messages at once.
Zlaja
On Mon, Feb 28, 2011 at 6:34 PM, Ken Wesson wrote:
> On Mon, Feb 28, 2011 at 12:31 PM, Zlatko Josic
> wrote:
> >
> > First thanks for reply.
> > if I use only o
On Mon, Feb 28, 2011 at 12:31 PM, Zlatko Josic wrote:
>
> First thanks for reply.
> if I use only one agent does it mean that the
> agent process one message by one?
Yes. And messages sent from the same thread will be processed in the
order that that thread sent them, also.
--
You received this
On Mon, Feb 28, 2011 at 11:30 AM, Chris Perkins
wrote:
> On Feb 28, 10:49 am, Rich Hickey wrote:
>> On Feb 28, 2011, at 8:32 AM, Chas Emerick wrote:
>>
>> > I agree with your sentiment. This has been discussed before here:
>>
>> >http://groups.google.com/group/clojure-dev/browse_frm/thread/fb3a0
First thanks for reply.
if I use only one agent does it mean that the
agent process one message by one?
Thanks
Zlaja
On Mon, Feb 28, 2011 at 4:26 PM, Ken Wesson wrote:
> On Mon, Feb 28, 2011 at 9:34 AM, Zlaja wrote:
> > Hi,
> >
> > How I can achieve master worker pattern in clojure with agen
On Feb 28, 10:49 am, Rich Hickey wrote:
> On Feb 28, 2011, at 8:32 AM, Chas Emerick wrote:
>
> > I agree with your sentiment. This has been discussed before here:
>
> >http://groups.google.com/group/clojure-dev/browse_frm/thread/fb3a0b03...
>
> > That discussion pretty quickly wandered into the w
On Mon, Feb 28, 2011 at 11:13 AM, Jules wrote:
> I've had one last throw of the dice - a plan to intercept class
> definition and remember associated bytecode so that my URLClassLoader
> server could look it up when given the correspondong class name - with
> no luck :
>
> ;; UNFINISHED
>
> ;; let
I've had one last throw of the dice - a plan to intercept class
definition and remember associated bytecode so that my URLClassLoader
server could look it up when given the correspondong class name - with
no luck :
;; UNFINISHED
;; let's maintain a map of class-name : byte-code
(def class-name-to
On Mon, Feb 28, 2011 at 9:25 AM, Jules wrote:
> This is actualy my preferred route - however I've just revisited some
> test code I wrote a while back, that I thought I had working... - I
> only had it half working :-( - and in having another go at it, I've
> realised that there is a big problem w
On Feb 28, 2011, at 8:32 AM, Chas Emerick wrote:
I agree with your sentiment. This has been discussed before here:
http://groups.google.com/group/clojure-dev/browse_frm/thread/fb3a0b03bf3ef8ca
That discussion pretty quickly wandered into the weeds of whether
this sort of usage of protocols
On Mon, Feb 28, 2011 at 9:34 AM, Zlaja wrote:
> Hi,
>
> How I can achieve master worker pattern in clojure with agents.
> For example I have components that write messages to a queue.
> I would like to process messages parallel by agents. Is it posible?
>
> Thanks
It may be possible to be even si
On Feb 27, 2011, at 2:33 PM, Mark wrote:
> With a fresh brain (and a fresh cup of coffee), I realized this
> message is probably caused (somehow) by my misuse of the midje
> library. No doubt it does fancy macro stuff under-the-hood.
Indeed it does.
> One could certainly argue that the
> macro
Hi,
How I can achieve master worker pattern in clojure with agents.
For example I have components that write messages to a queue.
I would like to process messages parallel by agents. Is it posible?
Thanks
Zlaja
--
You received this message because you are subscribed to the Google
Groups "Cloj
On Feb 28, 1:50 pm, Ken Wesson wrote:
> On Mon, Feb 28, 2011 at 5:59 AM, Jules wrote:
> > Unfortunately, I'd like it to be a open set, just as I would like the
> > system's types to be - this was one of the choices driving Clojure
> > over Java as the implementation language.
>
> The simplest t
On Mon, Feb 28, 2011 at 8:32 AM, Chas Emerick wrote:
> I agree with your sentiment. This has been discussed before here:
>
> http://groups.google.com/group/clojure-dev/browse_frm/thread/fb3a0b03bf3ef8ca
>
> That discussion pretty quickly wandered into the weeds of whether this sort
> of usage of
I'm going to leave the poll up for one more week for those interested in
casting a vote.
https://spreadsheets.google.com/a/thinkrelevance.com/viewform?hl=en&formkey=dE92bEdzMmpVOURDNUVHOWpaVXVhU3c6MQ#gid=0
Just to be clear, this is about capturing a strong objection to calling the
next version
On Mon, Feb 28, 2011 at 5:59 AM, Jules wrote:
> Unfortunately, I'd like it to be a open set, just as I would like the
> system's types to be - this was one of the choices driving Clojure
> over Java as the implementation language.
The simplest thing I can think of in that case is to send function
I refer this earlier thread
https://groups.google.com/group/clojure/browse_thread/thread/f129d366ded1a3a0
We are trying to develop a WebSocket server in Clojure that can
broadcast Log4J messages to browsers. The Log4J code is Java and
apart from writing files it will call the Clojure WebSocket s
It looks like you would have to scrape it right now, as there doesn't appear
to be rss for the library pages, but that would be a straightforward thing
to add.
On Mon, Feb 28, 2011 at 8:31 AM, rob levy wrote:
> Nice! It would be cool if this could could be integrated with Clojars, to
> keep the
I agree with your sentiment. This has been discussed before here:
http://groups.google.com/group/clojure-dev/browse_frm/thread/fb3a0b03bf3ef8ca
That discussion pretty quickly wandered into the weeds of whether this sort of
usage of protocols was intended or not, fundamentally programmer error o
Nice! It would be cool if this could could be integrated with Clojars, to
keep the lein artifact & group ID up to date without manually editing.
On Sun, Feb 27, 2011 at 6:56 PM, Glen Stampoultzis wrote:
> Hi everyone,
>
> I'd like to announce the availability of Clojure Libraries
> (http://clo
I am wondering whether this is a known issue. I made the mistake of
extending a protocol to two interfaces, and then calling it with an
object that implements both.
(defprotocol Foo
(foo [x]))
(extend-protocol Foo
clojure.lang.Sequential
(foo [x] "sequential")
clojure.lang.Associative
On Feb 26, 2:10 am, Ken Wesson wrote:
> Embedding literal functions in macros "sorta" works. It behaves
> glitchy sometimes, especially if the functions are closures.
>
> If your set of functions is not open-ended, I'd suggest simply
> defn'ing all of them at both client and server sides, sticki
On Feb 26, 2:10 am, Ken Wesson wrote:
> Embedding literal functions in macros "sorta" works. It behaves
> glitchy sometimes, especially if the functions are closures.
>
> If your set of functions is not open-ended, I'd suggest simply
> defn'ing all of them at both client and server sides, sticki
On Feb 26, 2:10 am, Ken Wesson wrote:
> Embedding literal functions in macros "sorta" works. It behaves
> glitchy sometimes, especially if the functions are closures.
>
> If your set of functions is not open-ended, I'd suggest simply
> defn'ing all of them at both client and server sides, sticki
On Feb 26, 2:10 am, Ken Wesson wrote:
> Embedding literal functions in macros "sorta" works. It behaves
> glitchy sometimes, especially if the functions are closures.
>
> If your set of functions is not open-ended, I'd suggest simply
> defn'ing all of them at both client and server sides, sticki
Hello everyone,
back in December 2010 we launch a Clojure User Group for the wider
area of Cologne in Germany. So if you are living in this region and
like to join us, then you can find all necessary information under:
http://www.meetup.com/clojure-cologne/
Best regards
Max
--
You received th
Interesting, I can run the code by building it via "Run ..". It works
fine within IDEA. But not via Idea's REPL.
So no firewall issue (I have no zonealarm or any other local firewall
running).
Looks like the REPL in IDEA has really a problem establishing a socket
connection.
- Finn (finbeu)
O
41 matches
Mail list logo