On May 31, 1:08 am, dmiller wrote:
> Proxying and genclass haven't been attempted yet.
Can you guess how long they should take to implement?
> Speed is still an issue. For basic code generation, the MSIL
> produced by the ClojureCLR compiler is as close as possible to the
> bytecodes produced
Hi all - I'm in the process of writing a proxy for MySQL in Clojure,
and until now everything has been going smoothly. My project has
reached the point where it can shuffle data up and down the wire
between client and server with accurate results, but I'm running into
a strange issue. I've noticed
I think the docs at http://clojure.org/java_interop#toc25 should
include a description of proxy-super as well as proxy.
--Steve
smime.p7s
Description: S/MIME cryptographic signature
On 28.05.2009, at 21:23, CuppoJava wrote:
> eg.
> (with_file "myfile.txt"
> (write "asdf")
> (close))
>
> compared to.
> (with_file "myfile.txt"
> (fn []
> (write "asdf")
> (close)))
For that kind of application, you might also want to use the state
monad (see http://onclojure.c
On May 31, 5:20 am, Meikel Brandmeyer wrote:
> Am 31.05.2009 um 11:11 schrieb ataggart:
>
> (partial f a b) is equivalent to #(apply f a b %&). So anonymous
> functions are the more general, more powerful concept.
Ah, beautiful! Somehow I missed the %& form when reading the docs.
--~--~
On May 31, 2009, at 1:00 PM, Mark Engelberg wrote:
I posted about this recently. In emacs/slime, printed output on other
threads does not appear. I have not found a workaround, other than
running such code in a standard REPL.
The output is ending up in the *inferior-lisp* buffer.
This mes
On May 31, 2009, at 11:38 AM, Emeka wrote:
> Hello All
>
>
> (defn chang[f key hj]
> (dosync (ref-set f (assoc @f key hj
>
>
>
> (defn proceed-now-right [alon key]
> (let [val (extract-num alon key)
> row-dev (eval (get-next-row inc (first val)))
> keyword-dev-right
Max et. al,
I'm impressed by your solutions to the problem. I still object to them
in practice, though, because they depend on either extra up-front work
(uncurry-n) or extra understanding on the part of the caller (:end,
'() and calling without parameters).
Haskell and the other ML langua
I'll add a note on the necessary command-line args to
BootstrapCompile. I didn't think of it because I'm always running
debug mode inside VS and the command line args are set up in the
project properties.
The speedup in startup you saw is consistent with my experience.
Thanks for the feedback.
Hello All
(defn chang[f key hj]
(dosync (ref-set f (assoc @f key hj
(defn proceed-now-right [alon key]
(let [val (extract-num alon key)
row-dev (eval (get-next-row inc (first val)))
keyword-dev-right (get-key inc (second val))
cell-empty-right (check-cel
I posted about this recently. In emacs/slime, printed output on other
threads does not appear. I have not found a workaround, other than
running such code in a standard REPL.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Sun, May 31, 2009 at 4:08 AM, dmiller wrote:
>
> I've posted a major update to the ClojureCLR code to clojure-contrib.
> However, if you want to stay up with the latest changes, I recommend
> gitting the code at http://github.com/dmiller/ClojureCLR. Consult the
> wiki there for information on
Hi,
Am 31.05.2009 um 11:11 schrieb ataggart:
On further consideration, having partial so the arity handling in non-
trivial cases is where it trumps an anonymous function.
(partial f a b) is equivalent to #(apply f a b %&). So anonymous
functions are the more general, more powerful concept.
On May 31, 1:55 am, Daniel Lyons wrote:
> On May 30, 2009, at 7:25 PM, kinghajj wrote:
>
>
>
> > On May 30, 1:19 pm, Daniel Lyons wrote:
> >> You can't have both partial application and variable arity functions.
>
> > Uh, yeah you can. Haskell can have variadic functions, like
> > Text.Printf.
Thank you. doseq is probably more what I was looking for. I was
thinking mapcar when I used map, but I really don't want the resulting
seq anyway. I'll be a lot more careful about lazy evaluation, I'm
just not used to it. Again thanks for your response.
On May 30, 8:55 pm, Timothy Pratley wr
I have the same error, but only with emacs slime repl (any clojure version).
2009/5/31 Alen Ribic
>
> I thought I had the latest from trunk, but I was on rev 1371. Did an
> update to latest now, rev 1382. Ran the example again and it was fine
> now.
>
> -Al
>
> On Sun, May 31, 2009 at 11:48 AM,
I thought I had the latest from trunk, but I was on rev 1371. Did an
update to latest now, rev 1382. Ran the example again and it was fine
now.
-Al
On Sun, May 31, 2009 at 11:48 AM, Timothy Pratley
wrote:
>
> Hi Alen,
>
> I just updated to revision 1382 and it worked fine:
> Clojure 1.1.0-alpha
Hi Alen,
I just updated to revision 1382 and it worked fine:
Clojure 1.1.0-alpha-SNAPSHOT
user=> (def foo 10)
#'user/foo
user=> (.start (Thread. (fn [] (println foo
nil
10
It also worked on whatever I was using before that. Can you confirm
you are experiencing this behaviour in 1382?
On Ma
On further consideration, having partial so the arity handling in non-
trivial cases is where it trumps an anonymous function.
On May 31, 2:04 am, ataggart wrote:
> On May 30, 12:58 pm, eyeris wrote:
>
> > The ubiquity of these anonymous functions
> > in clojure code is evidence that partial ap
On May 30, 12:58 pm, eyeris wrote:
> The ubiquity of these anonymous functions
> in clojure code is evidence that partial application is just as needed
> in clojure as it is in haskell.
Doesn't that depend entirely on whether or not the anonymous functions
are being used for partial applicatio
I am currently reading the Programming Clojure book and have come
across an unexpected result for an example in section titled "Managing
Per-thread state with Vars".
Code snippet is as follows (with expected result):
user> (def foo 10)
#'user/foo
user=> (.start (Thread. (fn [] (println foo
I've posted a major update to the ClojureCLR code to clojure-contrib.
However, if you want to stay up with the latest changes, I recommend
gitting the code at http://github.com/dmiller/ClojureCLR. Consult the
wiki there for information on installing / compiling / running.
This release brings the
MiGLayout is a nice layout manager that works with Swing.
clojure.contrib.miglayout provides a Clojure interface for it.
I've enhanced clojure.contrib.miglayout with the ability to retrieve a
map of components indexed by their "id" constraint (for those
components that have one). This has n
23 matches
Mail list logo