Re: Mapping a function over a map's values

2009-03-24 Thread Jon
Awesome. Thanks Konrad. On Mar 23, 4:11 am, Konrad Hinsen wrote: > On 22.03.2009, at 21:10, Jon Nadal wrote: > > > > > I often need to map a function over the values of a map while > > preserving keys--something like: > ... > > Is there a more concise way t

Re: Trying to get a list of random numbers using repeat

2009-03-26 Thread Jon
You probably figured this out, but what you want is something like: (map rand-int (repeat SIZE MAX)) On Mar 23, 7:43 pm, Paul Drummond wrote: > Hi all, > > user=> (repeat 10 (rand-int 49)) > (4 4 4 4 4 4 4 4 4 4) > > Can someone please tell me why this doesn't work? > > It must be something obvi

NullPointerException in Compiler.java

2009-07-03 Thread jon
Hi, could Rich or someone knowledgeable look into this (reflection related?) NullPointerException in Compiler.java. I think it's either a bug or at least should provide a better error message, but I don't have any time to look deeper into it.. Thanks, Jon - I was using clojure-1.0

missing 'abstract'?

2009-07-09 Thread jon
Rich, could this be a minor omission? public class AReference implements IReference { } is not declared 'public abstract class' like ARef, AFn, APersistentMap, and the others... Cheers, Jon --~--~-~--~~~---~--~~ You received this message becau

Bug? (keyword ...)

2009-07-13 Thread jon
e :a/b) => "a" (name :a/b) => "b" --- for generated keywords, seems dodgy -- (keyword "a/b") => :a/b (name (keyword "a/b")) => "a/b" (namespace (keyword "

lazy-seq problems

2009-08-19 Thread jon
- Is this a bug? Is it because the call to apply in the original version breaks the laziness of concat? (defn interleave [& colls] (apply concat (apply map list colls))) I haven't looked if there are any other api functions that shoul

RFC: laziness-safe, semi-dynamic environment Var(Lite)

2009-09-29 Thread jon
case, would this be a worthwhile enhancement to Clojure? Seems like it could be a win-win situation, since it rescues (semi-)dynamic bindings from the gnashing jaws of laziness for those that want to use it, but shouldn't impact negatively upon those that don't? Or is there something f

Re: RFC: laziness-safe, semi-dynamic environment Var(Lite)

2009-10-01 Thread jon
On Sep 29, 10:31 pm, Rich Hickey wrote: > On Tue, Sep 29, 2009 at 4:04 PM, jon wrote: > > Before leaping to implementation/performance issues, I think it is > important to think about the semantics of this - what does it mean? I > think you will get a lot of confusion, given

Re: Clojure Applets: Tutorial

2009-10-13 Thread Jon
ming/Examples/Creating_an... > Applet demo:http://www.xenoage.com/extern/clojurebook/applet/cljapp.html > > The good news: It works :-) Except, it doesn't seem to work on my Mac. In Safari (4.0.3) I get "Applet test.Applet notinited" in the status bar. I'm using OSX 10.5.7.

Re: Clojure Applets: Tutorial

2009-10-13 Thread Jon
Yes, now it works on my Mac. Good! ;-) /Jon On Oct 13, 4:46 pm, "andi.xeno...@googlemail.com" wrote: > Perhaps Java 5 was running. I forgot to compile also for Java 5 (now > updated in tutorial and in demo).Could you please try again? > So far I know from two MacOS X 10.6

Re: Clojure Applets: Tutorial

2009-10-15 Thread Jon
Hi, I get "Applet net.n01se.Tree notinited" in the status bar on my Mac. Did you compile for Java 5? /Jon On Oct 15, 11:36 am, Andreas Wenger wrote: > Fantastic news: > > - Clojure applets do not have to be signed, when reflection can be > avoided (by type hints and s

Re: Power function

2016-02-02 Thread Jon
arrays at the same time. > > Tests / patches to improve this always welcome. > > On Tuesday, 3 June 2008 16:55:15 UTC+8, Jon wrote: >> >> As I could not find a ** function in boot.clj, I wrote this one: >> >> (defn ** >> "nth power of x"

Re: offtopic - where are you come from? (poll)

2008-10-17 Thread Jon
Oslo, Norway --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Skipping AOT in ant build + clojure.lang.Main

2008-12-07 Thread User Jon
e public domain if you'd like to incorporate any parts) Worthwhile idea? Thanks, Jon (snippets from the attached files) -[snip] - + -[snip] + + + + + -[snip] package clojure.lang; public class Main{ public s

Re: Mysterious performance anomalies

2009-01-20 Thread Jon Harrop
On Tuesday 20 January 2009 08:01:19 ivant wrote: > IIRC, the only major complain Rich has about JVM is the lack > of tail-call optimization. That's a pretty major problem. :-) -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsult

Re: Mysterious performance anomalies

2009-01-21 Thread Jon Harrop
effort: > > http://openjdk.java.net/projects/mlvm/ Too late: http://mail.openjdk.java.net/pipermail/mlvm-dev/2009-January/000331.html -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message bec

Re: Clojure for Games/Simluation/Art (Optimization in Clojure)

2009-01-28 Thread Jon Harrop
e of any use for simulating a flock of > birds. People are using FMM for flocking: http://www.itk.ilstu.edu/faculty/portegys/research/ptree-PDPTA03.pdf http://litis.univ-lehavre.fr/~tranouez/publications/Cossom2007-LITIS-DutotTranouez.pdf -- Dr Jon Harrop, Flying Frog Consul

Re: Clojure for Games/Simluation/Art (Optimization in Clojure)

2009-01-28 Thread Jon Harrop
academic (in the context of dynamical matrix preconditioning). :-) Unfortunately, it does not work out well in practice despite the existence of some great Hilbert curve libraries: http://www.tiac.net/~sw/2008/10/Hilbert/moore/index.html The reason is that cache locality much prefers striping over suit

Clojure is "not a serious language"

2009-01-30 Thread Jon Harrop
Apologies if you've seen this before but I just thought it was absolutely hillarious: http://www.3ofcoins.net/2009/01/30/common-lisp-clojure-and-seriousness/ -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.c

Re: Santiago Clojurians?

2009-02-02 Thread Jon Harrop
On Tuesday 03 February 2009 00:39:45 blackdog wrote: > Hi > > If there's anyone in Santiago, Chile, who speaks Clojure and some > English (my Spanish is not very good) would be good to meet up. Perhaps a Venn diagram would help. ;-) -- Dr Jon Harrop, Flying Frog Cons

Re: Clojure speed

2009-02-03 Thread Jon Harrop
On Monday 02 February 2009 19:12:48 David Nolen wrote: > Please do the list a favor and read the very long threads about > performance. I would be interested to see a Clojure port of my ray tracer benchmark: http://www.ffconsultancy.com/languages/ray_tracer/ -- Dr Jon Harrop, Flyin

Re: Strapped to the JVM?

2009-02-07 Thread Jon Harrop
d to build such a common language run-time would dwarf the effort required to port Clojure to it. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Strapped to the JVM?

2009-02-07 Thread Jon Harrop
pile for me so I have not been able to test it). -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Static type guy trying to convert

2009-03-10 Thread Jon Harrop
that are difficult or impossible to easily capture with a static type > system (e.g., this function takes positive even integers, and returns > a number from 0 to 9). While your point is valid your example is not. Specifically, you can easily imagine a function signature: uint seq -> digit

Re: Static type guy trying to convert

2009-03-10 Thread Jon Harrop
e benefit of proving any kind of correctness because everything they have done is obvious. Concepts like parametric polymorphism are just mathematics so a math background helps. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~--

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
guages for over 25 years. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
On Wednesday 11 March 2009 15:05:39 Konrad Hinsen wrote: > On Mar 11, 2009, at 3:31, Jon Harrop wrote: > > Most of the reasons given in this thread were red herrings and many > > of static > > typing's real issues were not even touched upon: > > ... > > I&#x

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
> I know what I want: to pass an object of type B into a function f that > expects type A, because I know that B is sufficiently A-like to allow > function f to work. Another red herring: you are describing a disadvantage of nominal over structural typing. Not dynamic vs static typing.

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
in OCaml and Haskell but they have more advanced static type system features (e.g. structurally-typed objects and polymorphic variants in OCaml) that are used to solve the same problems. The obvious bad examples are Java and C++ and I don't think it is a coincidence that most of thes

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
On Wednesday 11 March 2009 18:35:46 Cosmin Stejerean wrote: > On Wed, Mar 11, 2009 at 1:03 PM, Jon Harrop wrote: > > Another red herring: you are describing a disadvantage of nominal over > > structural typing. Not dynamic vs static typing. > > You are correct, my apolo

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
productive to have Haskell or a Haskell-like DSL within Clojure if you're interested in this kind of thing (I have no idea how useful that would actually be!). -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~-

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
On Thursday 12 March 2009 00:01:43 James Reeves wrote: > On Mar 11, 2:31 am, Jon Harrop wrote: > > > 2. The whole thing does not need to be complete or even functional for > > > you to start unit testing. > > > > Apples and oranges: unit tests are not the same be

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
t of being a programmer. Yes, I can well believe that for many applications. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojur

Re: Static type guy trying to convert

2009-03-12 Thread Jon Harrop
that I would identify the bug. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Mapping a function over a map's values

2009-03-22 Thread Jon Nadal
something that might be worth putting in the contrib? -Jon --~--~-~--~~~---~--~~ 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 To unsubscribe from

Scala vs Clojure

2009-03-27 Thread Jon Harrop
uct for it. I've done a lot of commercial work with F# over the past 2 years but all Microsoft-related sales have died this year so I'm looking to diversify... Many thanks, -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.

Re: Questions about Clojure and Common Lisp

2009-04-01 Thread Jon Harrop
& more transparent than accessing C > from Common Lisp. And safe! You get an easily-debuggable exception instead of machine-level errors and silent corruption. And more efficient because your data is not crossing GC boundaries and possibly not even changing representation. -- Dr Jon Harr

Re: Clojure in "Computing in Science and Engineering"

2009-06-19 Thread Jon Harrop
alent to Microsoft's TPL? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: Clojure in "Computing in Science and Engineering"

2009-06-20 Thread Jon Harrop
On Saturday 20 June 2009 08:34:39 Konrad Hinsen wrote: > On 19.06.2009, at 10:35, Jon Harrop wrote: > > If you really do mean scientific applications in general (e.g. > > Mathematica, > > MATLAB) then I would say that they are definitely almost all > > running on >

Re: Clojure in "Computing in Science and Engineering"

2009-06-21 Thread Jon Harrop
On Sunday 21 June 2009 02:44:02 Kyle Schaffrick wrote: > On Sat, 20 Jun 2009 11:29:44 +0100 > Jon Harrop wrote: > > The Task Parallel Library. It uses concurrent wait-free work-stealing > > queues to provide an efficient implementation of "work items" than > &g

Re: Clojure in "Computing in Science and Engineering"

2009-06-21 Thread Jon Harrop
" operation. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: Clojure in "Computing in Science and Engineering"

2009-06-22 Thread Jon Harrop
or concurrent programming rather than parallel programming. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Clojure in "Computing in Science and Engineering"

2009-06-22 Thread Jon Harrop
On Monday 22 June 2009 22:33:24 Stephen C. Gilardi wrote: > On Jun 22, 2009, at 5:53 PM, Jon Harrop wrote: > > If that is spawning a new thread every time a future is created then > > it is > > really for concurrent programming rather than parallel programming. > >

Re: loneclojurian at ICFP programming contest

2009-07-03 Thread Jon Harrop
On Thursday 02 July 2009 07:58:11 you wrote: > I wonder if Jon Harrop is still planning to write Clojure for > Scientists or Scala for Scientists or both? I am certainly interested in writing both books. I reviewed Scala back in 2007 and decided that it was not ready to be advocated. P

Re: loneclojurian at ICFP programming contest

2009-07-07 Thread Jon Harrop
adation if you cock it up and it is not at all obvious when that might occur because it depends upon things like where the allocator places your data. For example, if you have cores mutating global counters then you must make sure they are spaced out enough in memory that none share cache li

Re: loneclojurian at ICFP programming contest

2009-07-07 Thread Jon Harrop
ified] example. > > Personally, I'll wait for Jon Harrop or someone to port the relevant > Shootout benchmarks or his "Ray tracing" benchmark to Clojure and see > what time they get and what the code looks like. That's a fantastic idea! Let's try porting

Re: Java STM

2009-07-12 Thread Jon Harrop
On Monday 13 July 2009 01:55:07 Mark Volkmann wrote: > Is there another STM implementation that enforces its use like this? I assume Haskell tells you at compile time. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
ulsory static typing (as opposed to optional type hints) into the > same language does require some careful thought. I haven't seen such a > combination yet... I'm not sure what you regard as "Lisp-style" macros but you may be interested in OCaml's untyped Camlp4

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
creating DSL. Additionally, OCaml's macro system is often used for general lexing and parsing or arbitrary syntaxes. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you ar

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
requires all of those unnecessary type definitions and annotations. Finally, the article failed to mention what is perhaps the single biggest concern about Scala: it is an academic language. Consequently, Scala will always be developed toward what is novel and not what is useful. A

Re: Closures in java

2009-12-29 Thread Jon Harrop
On Saturday 28 November 2009 20:58:54 eyeris wrote: > It's also important to get features into Java if you want real > substantial JVM performance tuning for them. Not if they're anything like Microsoft: F#'s closures are much faster than .NET's closures... --

Re: Closures in java

2009-12-29 Thread Jon Harrop
On Saturday 28 November 2009 17:25:58 Daniel Simms wrote: > Also, I wanted to chime in with something like "we already have > closures: use Clojure! or Jython, or... So how about TCO?" Amen, brother. PS: And value types. ;-) -- Dr Jon Harrop, Flying Frog Consu

Re: Matt Raible: "Why is Clojure better than Scala or Groovy?"

2010-01-16 Thread Jon Harrop
On Saturday 16 January 2010 18:10:15 Shantanu Kumar wrote: > The best benefit of Clojure is, I think, the power-to-weight ratio. That's a really good description for a low barrier to entry. :-) -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e -- You recei

Re: Pattern Matching

2010-02-04 Thread Jon Harrop
On Thursday 04 February 2010 14:08:44 Sean Devlin wrote: > Do we have a concise way of doing this? Is it actually useful? > > http://www.artima.com/weblogs/viewpost.jsp?thread=281160 Are you talking about the pattern matching or the "for" loop? -- Dr Jon Harrop, Flying F

Re: Pattern Matching

2010-02-04 Thread Jon Harrop
leverage a static type system to prove aspects of correctness that remove major classes of bugs from real applications. HTH. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Pattern Matching

2010-02-05 Thread Jon Harrop
allelized Fibonacci functions and rigged language comparisons. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Storing Clojure code in a data store

2013-08-15 Thread Jon Pither
Hi, I'm wondering what approaches people take if they want to have Clojure code loaded at runtime from some data store. We operate a large website and I'd like the ability to deploy our mustache templates & immediate corresponding clojure code at will, rolling back etc if need be, without having

Re: Storing Clojure code in a data store

2013-08-15 Thread Jon Pither
Hi Luc, Thanks for sharing, good to know someone is doing this. We're using Avout / ZK and are looking at Riac so this could be an option. Jon. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

clojure web framework

2013-09-13 Thread Jon Barker
anybody know the easiest way to create web applications and deploy to amazon web services? (either EC2 or elastic beanstalk) Thanks, Jon -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

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-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 messag

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" grou

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 t

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] XT16 Conference in the UK

2016-07-11 Thread Jon Pither
e the opportunity to network with similarly minded enthusiasts. We will also be providing Ukuleles. Visit our page for full details https://juxt.pro/XT16.html, Jon & Malcolm. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

[ANN] New Clojure story pages on clojure.org

2017-04-06 Thread Jon Pither
We have also maintained a set of complimentary success stories here: https://juxt.pro/clojure-in.html. The more Clojure success stories the merrier! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Clojure In London: HealthUnlocked

2017-07-06 Thread Jon Pither
Hi All, Read about Clojure being used to build a social network to help medical patients share experiences and advice: https://juxt.pro/blog/posts/clojure-in-health-unlocked.html, Regards, Jon. -- You received this message because you are subscribed to the Google Groups "Clojure"

Clojure In the UK: Yapster

2017-08-29 Thread Jon Pither
Hi All, Have a read about Clojure being used to build a corporate chat platform and the tech used: https://juxt.pro/blog/posts/clojure-in-yapster.html <https://juxt.pro/blog/posts/clojure-in-health-unlocked.html>, Regards, Jon. -- You received this message because you are subscribed

Re: Has the (left recursive blowing) concat function been fixed?

2017-09-18 Thread Jon Distad
I wrote the original patch, but now that it's been 2 years I don't really support it anymore. There are lots of ways one could build up an oversized stack with lazy seqs. Concat might be the most common, but it's only one possibility. I think it's better to have consistent behavior than to have

Clojure In Toronto: University Health Network

2017-10-06 Thread Jon Pither
Hi All, Read about Clojure being used in Toronto to help with medical research, featuring a Q&A with Dmitri Sotnikov (Yogthos). https://juxt.pro/blog/posts/clojure-in-university-health-network.html, Regards, Jon. -- You received this message because you are subscribed to the Google Gr

RE: Confused by Clojure floating-point differences (compared to other languages)

2014-02-05 Thread Jon Harrop
IIRC, Java provides unusual trigonometric functions which, I’m guessing, Clojure is using. I think the Java ones are actually more accurate (and slower) so you may well find the answer obtained on the JVM is more precise than the others. Cheers, Jon. From: clojure@googlegroups.com

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
n be annotated. > > In general when you start needing that level 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 >wrote: > >> There are many Java APIs that expect c

Re: How to go about 'proving' why dynamically typed languages are better.

2013-12-23 Thread Jon Harrop
Do you guys have any concrete examples? Sent from my iPhone On 23 Dec 2013, at 10:13, Korny Sietsma wrote: > This ties in nicely to my summary of how I feel about static typing: Static > typing is a premature optimisation. Like most optimisations, it has genuine > value, but if you apply it

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 wrote: > On Wednesday, February 27, 2013 6:28:03 PM UTC+1, Andy Fingerhut wrote: > > If you wanted to create a colle

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 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 are subscribed to the

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
y using reflection to print out what the JVM thinks the field's name > is.  This might help. > > On Sep 8, 1:23 am, Jon Seltzer wrote: > > > > > Suppose you have a class projects.test.A: > > > package projects.test; > > > public class A > > {

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ł Ma

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 u

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 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 immedi

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 wrote: > On Mon, Mar 28, 2011 at 12:39 PM, Lee Spector wrote: > > > > > On Mar 28, 2011, at 12:19 PM, Luc Prefontaine wrote: > > > "But with any other language I've ever used, at most I include a > > > library I n

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

2011-03-29 Thread Jon Seltzer
Fair enough. It would be great if Clojure tools were as mature as Java's Eclipse or IntelliJ, but hey, Java's been around for 15 years. Probably unrealistic to expect more. Perhaps we can look forward to tools created by you. On Mar 28, 10:32 pm, ultranewb wrote: > < lisp code for 40 years a

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 really

Overtone light weight ide GSoC project

2012-05-06 Thread jon rose
y feedback on features, suggestions, etc. I also wanted to say a big thanks to Jeff and Sam who have been awesome through the proposal process and tremendous resources. I look forward to hearing everyones feedback and can't wait to get hacking! jon -- You received this message because

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-05-06 Thread jon rose
sources and again to Clojure/dev and David for the opportunity. I look forward to hearing everyones feedback and can't wait to get hacking! Jon Rose On Monday, April 23, 2012 8:03:02 PM UTC-7, David Nolen wrote: > > Congratulations to the following students, their proposals have

Overtone GSoC project

2012-05-07 Thread Jon Rose
project. I also wanted to say a big thanks to Jeff and Sam who have been awesome through the proposal process and tremendous resources and again to Clojure/dev and David for the opportunity. I look forward to hearing everyones feedback and can't wait to get hacking! Jon Rose -- Yo

clojure.reflect annotations

2012-06-01 Thread Jon Rose
an], :exception-types [], :flags #{:static :public}} which works great but I am also hoping to grab method comments. Is this possible with using interop? thanks jon -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: clojure.reflect annotations

2012-06-01 Thread Jon Rose
sorry, typo. My bluetooth keyboard is geeking out. I meant, is it possible to do this with out using the Jave Reflection classes through interop. On Friday, June 1, 2012 11:38:17 AM UTC-7, Jon Rose wrote: > > Hello, > > I am wondering if anyone knows how to get method annotations f

Re: clojure.reflect annotations

2012-06-01 Thread Jon Rose
> On Friday, June 1, 2012 11:42:19 AM UTC-7, Jon Rose wrote: >> >> sorry, typo. My bluetooth keyboard is geeking out. I meant, is it >> possible to do this with out using the Jave Reflection classes through >> interop. >> >> On Friday, June 1, 2012 11:38:17

gen-class naming

2012-06-07 Thread Jon Rose
Does anyone know how to change the my-project.core name in the OSX menubar and icon tray? I have added :jvm-opts ~(if (= (System/getProperty "os.name") "Mac OS X") ["-Xdock:name=MyProject"] [])) to my project.clj file which fixes the naming issues when I run lein run. I was having iss

Re: function parameters were working, and now I suddenly get a cast error

2012-08-28 Thread Jon Boone
Command line arguments that are not strings need to be converted prior to use by your main function. Look at the code for the port number and do the same for the service. --jon On Aug 28, 2012, at 2:42, larry google groups wrote: So, this started when I read Keith Swallow's article

Re: with-open and line-seq

2012-10-28 Thread Jon Degenhardt
any of times before. Are there preferred ways to handle it? Language facilities I haven't discovered yet? --Jon -- 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 that pos

Why does re-matcher return a mutable object?

2012-11-14 Thread Jon Degenhardt
t. Or, it could be that I'm missing something basic, and if so, it'd be very useful to understand. --Jon -- 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 that p

Re: Why does re-matcher return a mutable object?

2012-11-14 Thread Jon Degenhardt
lisp experience isn't helping with this :) My expectation is that the picture will become clearer as I see more real world use cases. --Jon -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Google AI winner uses lisp

2010-12-10 Thread Jon Seltzer
CL On Dec 9, 7:09 pm, Ken Wesson wrote: > On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles 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? > > > -- is one of the only places to

  1   2   >