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

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

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

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

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

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&q

[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

[ANN] XT16 Conference in the UK

2016-07-11 Thread Jon Pither
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 this group, send em

Re: Power function

2016-02-02 Thread Jon
t; 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" &g

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

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

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 ko...@sietsma.com 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

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 to clojure

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 email to clojure

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

Why does re-matcher return a mutable object?

2012-11-14 Thread Jon Degenhardt
. 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 posts from new members

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

2012-11-14 Thread Jon Degenhardt
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@googlegroups.com Note

Re: with-open and line-seq

2012-10-28 Thread Jon Degenhardt
. 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 posts from new members are moderated - please

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 lawrencecloj...@gmail.com wrote: So, this started when I read Keith

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 issues

clojure.reflect annotations

2012-06-01 Thread Jon Rose
[], :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 group, send email to clojure

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 from a method

Re: clojure.reflect annotations

2012-06-01 Thread Jon Rose
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 AM UTC-7, Jon Rose wrote: Hello, I am wondering if anyone knows how to get method

Overtone GSoC project

2012-05-07 Thread Jon Rose
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 -- You received this message because you

Overtone light weight ide GSoC project

2012-05-06 Thread jon rose
. 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 you are subscribed to the Google Groups Clojure

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

2012-05-06 Thread jon rose
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 been accepted for Clojure/dev's Google Summer

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

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: 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: 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: 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: 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: $'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ł

$'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)

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,

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

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: Pattern Matching

2010-02-05 Thread Jon Harrop
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.com Note that posts from new members are moderated - please

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 Frog Consultancy Ltd. http

Re: Pattern Matching

2010-02-04 Thread Jon Harrop
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.com Note that posts from new members are moderated - please be patient

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 received

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... -- Dr Jon Harrop, Flying Frog

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 Consultancy Ltd. http

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 andi.xeno...@googlemail.com wrote: Fantastic news: - Clojure applets do not have to be signed, when reflection can be avoided (by type hints and so

Re: Clojure Applets: Tutorial

2009-10-14 Thread Jon
Yes, now it works on my Mac. Good! ;-) /Jon On Oct 13, 4:46 pm, andi.xeno...@googlemail.com 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-13 Thread Jon
/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. /Jon The bad news: It took me some time

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

2009-10-01 Thread jon
On Sep 29, 10:31 pm, Rich Hickey richhic...@gmail.com wrote: On Tue, Sep 29, 2009 at 4:04 PM, jon superuser...@googlemail.com 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

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

2009-09-29 Thread jon
? Or is there something fundamentally wrong with the idea? Thanks for reading, 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 posts from new

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
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 macros and Template Haskell's typed macros. -- Dr Jon Harrop, Flying

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
, 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 are subscribed to the Google

Re: clojure vs scala

2009-08-26 Thread Jon Harrop
biggest concern about Scala: it is an academic language. Consequently, Scala will always be developed toward what is novel and not what is useful. At least for me, that is seriously off-putting. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e

lazy-seq problems

2009-08-19 Thread jon
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 should be lazy and fail in the same way? Cheers, Jon. --~--~-~--~~~---~--~~ You

Bug? (keyword ...)

2009-07-13 Thread jon
) = :a/b (name (keyword a/b)) = a/b (namespace (keyword a/b)) = nil --- It would seem cleaner if the java Keyword.intern() and Symbol.intern() methods were symmetrical and used the same way in core.clj. Cheers, Jon

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/?e

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 because you

Re: loneclojurian at ICFP programming contest

2009-07-07 Thread Jon Harrop
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 lines. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http

Re: loneclojurian at ICFP programming contest

2009-07-07 Thread Jon Harrop
. 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 my ray tracer to Clojure. Incidentally, Java's performance was extremely

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 but looks

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. Perhaps

Re: Clojure in Computing in Science and Engineering

2009-06-22 Thread Jon Harrop
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 group. To post to this group, send email to clojure@googlegroups.com Note

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. The thread is from a cached thread pool

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 j...@ffconsultancy.com wrote: The Task Parallel Library. It uses concurrent wait-free work-stealing queues to provide an efficient implementation of work items than can spawn other work

Re: Clojure in Computing in Science and Engineering

2009-06-21 Thread Jon Harrop
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.com Note that posts from

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 multicore desktops and not distributed

Scala vs Clojure

2009-03-27 Thread Jon Harrop
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.ffconsultancy.com/?e

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 paul.drumm...@iode.co.uk 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

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 konrad.hin...@laposte.net 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 to do this in Clojure

Mapping a function over a map's values

2009-03-22 Thread Jon Nadal
? If not, is this 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 this group, send

Re: Static type guy trying to convert

2009-03-12 Thread Jon Harrop
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 email to clojure

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
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 email to clojure

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'd add two more: - Metaprogramming is a lot more

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
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. -- Dr Jon Harrop

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
the same problems. The obvious bad examples are Java and C++ and I don't think it is a coincidence that most of these red herring examples seem to be drawn from problems specific to those two languages. -- 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 Wednesday 11 March 2009 18:35:46 Cosmin Stejerean wrote: On Wed, Mar 11, 2009 at 1:03 PM, Jon Harrop j...@ffconsultancy.com wrote: Another red herring: you are describing a disadvantage of nominal over structural typing. Not dynamic vs static typing. You are correct, my apologies. I

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
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 --~--~-~--~~~---~--~~ You received this message

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 j...@ffconsultancy.com 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 between dynamic

Re: Static type guy trying to convert

2009-03-11 Thread Jon Harrop
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 Clojure group. To post

Re: Static type guy trying to convert

2009-03-10 Thread Jon Harrop
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 -- Dr Jon Harrop, Flying Frog

Re: Static type guy trying to convert

2009-03-10 Thread Jon Harrop
. Concepts like parametric polymorphism are just mathematics so a math background helps. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Strapped to the JVM?

2009-02-07 Thread Jon Harrop
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 Groups Clojure group

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, Flying Frog

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 Consultancy Ltd. http

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.com/?e

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

2009-01-28 Thread Jon Harrop
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 Consultancy Ltd. http://www.ffconsultancy.com

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

2009-01-28 Thread Jon Harrop
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 suitably-sized tiles rather than fancy curves. -- Dr Jon Harrop, Flying Frog

Re: Mysterious performance anomalies

2009-01-21 Thread Jon Harrop
://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 because you are subscribed

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.ffconsultancy.com/?e

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