Annotations on gen-class :state

2014-04-13 Thread Jon Seltzer
There are many Java APIs that expect client APIs to annotate fields but Clojure does not support annotations on fields. Is there any plan to add support? And one tangential question: Is there any consideration of adding gen-class support for multiple fields instead of just one? jbs -- You

Re: Annotations on gen-class :state

2014-04-14 Thread Jon Seltzer
of interop, the easiest thing is just to write a Java class and call into Clojure from there as required. On 14 April 2014 14:28, Jon Seltzer seltz...@gmail.com javascript:wrote: There are many Java APIs that expect client APIs to annotate fields but Clojure does not support annotations on fields

Loop and Recur

2010-06-07 Thread Jon Seltzer
I'm still learning Clojure and doing so by reading everything on clojure.org. I ran across this example in the Functional Programming section: (defn my-zipmap [keys vals] (loop [my-map {} my-keys (seq keys) my-vals (seq vals)] (if (and my-keys my-vals) (recur (assoc

Re: Rich Hickey Video - unit conversion language

2010-06-21 Thread Jon Seltzer
The language was Frink. On Jun 21, 4:46 am, Julian juliangam...@gmail.com wrote: Rich Hickey made reference in one of his videos to a language that could convert between all different kinds of units and dimensions. Does anybody recall what that was? -- You received this message because you

Re: Clojure Performance For Expensive Algorithms

2013-02-27 Thread Jon Seltzer
I beg to differ. You can't separate an assessment of idiomaticity from the specific problem domain. *That* is true no matter what the language. On Feb 27, 9:48 am, Marko Topolnik marko.topol...@gmail.com wrote: On Wednesday, February 27, 2013 6:28:03 PM UTC+1, Andy Fingerhut wrote: If you

Re: Google AI winner uses lisp

2010-12-10 Thread Jon Seltzer
CL On Dec 9, 7:09 pm, Ken Wesson kwess...@gmail.com wrote: On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles alec.batt...@gmail.com wrote: I'm sure a few people have read this news already. It's been up for a week, though strangely ZDnet -- which, on principle, I refuse to link to Why? --

Re: Funding 2011?

2011-01-04 Thread Jon Seltzer
Why not update the funding from simple donation to a purchase of clojure/core software like a refined version of the eclipse plugin or some other incentive based approach? I think I understand why rich might find 'donation' approach a bit uncomfortable. On Jan 4, 2:24 pm, Mark Engelberg

Re: A newbie's summary - what worked, what didn't

2011-03-28 Thread Jon Seltzer
While I agree that clear steps should be provided to assist newcomers, I don't have sympathy for newcomers more interested in bashing other languages and people than in actually learning something. I started learning clojure over a year ago and I don't recall any issues getting started. I fired

Re: A newbie's summary - what worked, what didn't

2011-03-28 Thread Jon Seltzer
Sorry, Lee. Not you. You're posts have been sincere. On Mar 28, 4:22 pm, Lee Spector lspec...@hampshire.edu wrote: On Mar 28, 2011, at 9:07 AM, Jon Seltzer wrote: Frankly, I'm a little annoyed by people who want to blame everyone else if something new is not immediately obvious to them

Re: A newbie's summary - what worked, what didn't

2011-03-29 Thread Jon Seltzer
I use JEdit exclusively as described by David and adding external libraries to the classpath on my own when I launch the REPL. Really, setting the classpath isn't that hard and if you're really planning on using Clojure long term then you'll have to deal with it eventually. So why not just spend

Re: A newbie's summary - what worked, what didn't

2011-03-29 Thread Jon Seltzer
This is exactly what I use and it works perfectly. On Mar 28, 10:48 am, David Nolen dnolen.li...@gmail.com wrote: On Mon, Mar 28, 2011 at 12:39 PM, Lee Spector lspec...@hampshire.eduwrote: On Mar 28, 2011, at 12:19 PM, Luc Prefontaine wrote: But with any other language I've ever used, at

Re: Leiningen capabilities (was Re: A newbie's summary - what worked, what didn't)

2011-03-29 Thread Jon Seltzer
on H1-B visas, or they just outsource the work over to there.  So you don't have a shot anyway. Jon Seltzer While I agree that clear steps should be provided to assist newcomers, I don't have sympathy for newcomers more interested in bashing other languages and people than in actually

Re: Hierarchical logs

2012-02-13 Thread Jon Seltzer
I'm not sure I'm getting your data example (seems like there are some characters missing or out of place) but this might be what you're looking for: user= (def stuff [['(+ 1 (- 5 2)) nil] ['(- 5 2) nil] [3 true] [4 true]]) #'user/stuff user= (vec (for [m stuff] (vec (butlast m [[(+

Re: Lack in the documentation

2012-02-17 Thread Jon Seltzer
1. You can't do GUI or game development without using Java. A: Yes, that's true. Clojure was designed to use the vast libraries of Java. Java documentation is superb so if you want to do anything graphical, I'd suggest the Java tutorial and JavaFX especially for all things graphical. It's

inserting into vector

2010-08-26 Thread Jon Seltzer
I know what assoc does: user= (assoc [\a \b \c] 0 \d) ;please extend to much larger vector with index somewhere in the middle [\d \b \c] but what if I want: user= (assoc-x [\a \b \c] 0 \d) ;is there an assoc-x [\a \d \b \c] I don't see a function that does this. I'm sure I'm missing it. I,

$'s in java class member names and set!

2010-09-08 Thread Jon Seltzer
Suppose you have a class projects.test.A: package projects.test; public class A { public A(){super();} public boolean y; public boolean $z; } and I want to use set to update both values: user= (def m (A.)) ; Create a ref m to new instance of A #'user/m user= (set! (. m y) true)

Re: $'s in java class member names and set!

2010-09-09 Thread Jon Seltzer
is.  This might help. On Sep 8, 1:23 am, Jon Seltzer seltzer1...@gmail.com wrote: Suppose you have a class projects.test.A: package projects.test; public class A {   public A(){super();}   public boolean y;   public boolean $z; } and I want to use set to update both values

Re: $'s in java class member names and set!

2010-09-09 Thread Jon Seltzer
I suspect $ is in munge because Rich and company may want to use it as a special reader character. $'s used to access inner classes work fine. I'd be fine with that as long as there's still a way to access Java identifiers with dollar signs (perhaps a special macro). On Sep 9, 3:49 am, Michał

gen-class and need for fully qualified class names

2021-09-30 Thread Jon Seltzer
Hi all, I'm sure this is answered somewhere already but can't find it. The :gen-class option of ns macro has access to imports. Why is it that fully qualified class names are still required? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

ANN: just-maven-clojure-archetype version 0.2-RELEASE

2021-12-31 Thread Jon Seltzer
Get more information here - seltzer1717/just-maven-clojure-archetype: An archetype for Clojure projects that require only Maven (github.com) -- You received this message because you are subscribed to the Google Groups "Clojure"

ANN: just-maven-clojurescript-archetype 0.2-RELEASE

2021-12-24 Thread Jon Seltzer
A Maven archetype for creating ClojureScript projects that only require Maven. seltzer1717/just-maven-clojurescript-archetype: An archetype for Clojure projects that require only Maven (github.com) -- You received this

Re: ANN: just-maven-clojure-archetype 0.3-RELEASE

2022-11-29 Thread Jon Seltzer
e: > >> Nice, >> >> Almost surprised to not see my clojure-maven-plugin pop in there - it’s >> always a surprise finding folk still using it. >> >> -- >> "Great artists are extremely selfish and arrogant things" — Steven >> Wilson, Porcupine Tre

ANN: just-maven-clojure-archetype 0.3-RELEASE

2022-11-19 Thread Jon Seltzer
Bumped version, some small changes - see details here . Let's you do Clojure development in a Java shop without demanding the adoption of a new build stack - it's just Maven. -- You received this message because you are subscribed