Re: Mexico City Clojureists?

2020-10-20 Thread Diego Villaseñor
Qué tranza! :) On Tuesday, October 20, 2020 at 2:20:00 PM UTC-5 doyouun...@gmail.com wrote: > Wondering who is living/working in Mexico City? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: map output to string

2014-07-08 Thread Diego Basch
That's not your problem. From (doc str): "With more than one arg, returns the concatenation of the str values of the args." The str value of a lazy sequence is something like: "clojure.lang.LazySeq@386e0460" which is the result of (.toString your-seq) What you probably want is something like

Re: Logger conflicts

2012-07-24 Thread Eric in San Diego
Thanks for your response. I look forward to trying out your lib. As it happens, my problem seems magically to have vanished on its own, and I can't think of anything I did that might have shaken it loose. Gotta love problems that magically fix themselves (until they magically unfix themselve

Logger conflicts

2012-07-23 Thread Eric in San Diego
I'm in the process of upgrading some oldish code, and I'm encountering some compatibility problems with the loggers required by various libraries. See the *appendix* below for my project.clj, which loads a number of libraries and to which I've recently added statements like this: [com.

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-16 Thread Eric in San Diego
Thanks for everyone's input. I think at this point I've concluded that this is not a clojure problem, but rather something going on with the program I'm calling in the shell. I'm talking to the support community there. In the meantime I've found a work-around. Thanks again for everyone's hel

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
at all, it must have some knowledge of the PATH. Does (null *sh-env*) then mean 'no changes to the default environment'? On Wednesday, July 11, 2012 3:53:48 PM UTC-7, Michael Klishin wrote: > > Eric in San Diego: > > > That's why I'm hoping there is some way I can

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
Wednesday, July 11, 2012 3:23:38 PM UTC-7, Michael Klishin wrote: > > Eric in San Diego: > > > my app is throwing an error > > How about posting the error (and a snippet of your code)? Bonus points for > a Github repository that can be used > to reproduce. > > MK

Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
In a shell, I can call > app arg1 arg2 arg3 arg4 arg5 arg6 arg7 and get my expected results. However, if I make what I think is the same call programmatically in clojure: (ns ... (:require [clojure.java.shell :as sh] )) (defn test [] (sh/sh "app" "arg1" "arg2" "arg3" "arg4" "arg5" ar

Re: File not found exception: instant.clj running: lein cljsbuild

2012-07-03 Thread diego
> > To follow up on my own post: looks like installing a later version of > clojure should fix this: https://gist.github.com/3019801 > -- 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

File not found exception: instant.clj running: lein cljsbuild

2012-07-01 Thread diego
I am trying to run `lein cljsbuild once` and am getting the exception trace shown at the bottom of this post. I have a Noir/ClojureScript project on OS X 10.7.4, Java 1.6.0_33. My project.clj contains: :dev-dependencies [[lein-cljsbuild "0.2.2"]] :cljsbuild { :source-

Type hints for ^map migrating from 1.2 to 1.3

2011-12-06 Thread Eric in San Diego
I'm migrating some code from 1.2 to 1.3, and one of the things I've encountered is that it no longer accepts ^map as a type hint. It's happy if I use ^clojure.lang.PersistentArrayMap, but that's quite a mouthful. Is there a more compact abbreviation I can use? Where are such things documented? T

Re: Unexpected behavior with satisfies?

2011-10-19 Thread Eric in San Diego
;old" version of pro-1, > while fun will be testing for satisfaction of the "current" version. > > On Oct 15, 8:04 am, Eric in San Diego wrote: > > > > > > > > > Hi all - > > > I'm experiencing some unexpected behavior with prot

Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
; import clojure.lang.RT; import clojure.lang.Var; /** * * @author Diego Pacheco * */ public class JavaCallsClojureInterpreted { private static final Var seq= RT.var("clojure.core", "seq"); private static final Var type = RT.var(&

Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
uct-map"); Object oStruct = struct.invoke(oType,"Diego",26,"Coach",1000); Var hire = RT.var("user", "hire"); Object r = hire.invoke(oStruct); System.out.println(r); ...

Re: Unexpected behavior with satisfies?

2011-10-16 Thread Eric in San Diego
Update: This appears to have been the product of a funky state. Restarting with a new swank service seems to have removed the problem. - e in sd On Oct 15, 8:04 am, Eric in San Diego wrote: > Hi all - > > I'm experiencing some unexpected behavior with protocols. Stripping &g

Unexpected behavior with satisfies?

2011-10-15 Thread Eric in San Diego
Hi all - I'm experiencing some unexpected behavior with protocols. Stripping out extraneous details... ; (ns my.ns1 ...) (defprotocol pro-1 ...) (deftype T1 [...] pro-1 ...) (defn fun [p] ^{:pre [(satisfies? pro-1 p) ] } ...) Then in another file: (

clojure struct with java

2011-10-13 Thread Diego Pacheco
ed.java] import clojure.lang.RT; import clojure.lang.Var; /** * * @author Diego Pacheco * */ public class JavaCallsClojureInterpreted { public static void main(String args[]) throws Throwable{ try{ RT.loadResourceScript("company.clj"); Var