Re: why would this statement java -server ???

2011-12-15 Thread Wilson MacGyver
It means to use the server version of JVM On Dec 15, 2011, at 11:48 PM, jayvandal s...@ida.net wrote: I was looking at the installation in Learning clojure and the batch file had this statement: java -server -cp .;%CLOJURE_JAR% clojure.main why is the server in the line and what is

Re: Lunhy Bin challenge

2011-11-15 Thread Wilson MacGyver
I've looked at this a bit this afternoon in both clojure and groovy. I couldn't come up with an interesting way to solve the problem. In both cases I end up take the numbers into a list/vector of digits, and solving it that way. It works, but boring. :) I figure I'll ponder on it some more. On

Re: clojure-based non-blocking webserver like Node.js

2011-09-02 Thread Wilson MacGyver
look at https://github.com/ztellman/aleph it supprorts async, websocket, server side and client side, plus has redis support. very happy with it. On Fri, Sep 2, 2011 at 2:20 PM, billh2233 bill.har...@gmail.com wrote: Is there a clojure-based webserver that uses non-blocking IO like Node.js, or

Re: Good book on migrating from (Java) OO to FP

2011-07-29 Thread Wilson MacGyver
for java, I use google guava quite a bit. (formerly known as google collections). http://code.google.com/p/guava-libraries/ there is quite a bit of FPish things in it. On Fri, Jul 29, 2011 at 9:49 PM, Jeff Heon jfh...@gmail.com wrote: In the vein of FP for Java programmers, these two libraries

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread Wilson MacGyver
Given that google closure library has a fairly decent size UI elements, and the pitch about how clojurescript makes google closure usable for mortals. I think that's probably where it will start. On Jul 24, 2011, at 1:15 PM, Frank Gerhardt f...@gerhardtinformatics.com wrote: ... expect that

Re: clojurescript and external libs

2011-07-24 Thread Wilson MacGyver
You use js* like here https://gist.github.com/1098417 See how jquery is being pulled in On Jul 24, 2011, at 12:35 PM, Jack Moffitt j...@metajack.im wrote: I'm exploring clojurescript and wondering how to use an external library? In my particular case, I was trying to use Soy from Closure

Re: [ANN] ClojureScript

2011-07-22 Thread Wilson MacGyver
No I don't think so. Clojurescript doesn't have java libs, so your swing calls will nit work On Jul 22, 2011 1:49 PM, Vincent vincent@gmail.com wrote: that means , if i write a clojure program using javax.swing to build windows based appl. manipulating database at backend ( all written in

Re: JSON library for clojure 1.3

2011-07-22 Thread Wilson MacGyver
I'm still using https://github.com/mmcgrana/clj-json with 1.2, it's worth a try though, since it's just a wrapper for jackson. On Fri, Jul 22, 2011 at 5:05 PM, Islon Scherer islonsche...@gmail.com wrote: Is there a clojure json library that works in clojure 1.3? I tried danlarkin/clojure-json

Re: Odp: Re: FleetDB or other NoSQL store for Clojure?

2011-07-17 Thread Wilson MacGyver
For redis, aleph's lib is worth trying too. I've had good luck with it. http://ztellman.github.com/aleph/aleph.redis-api.html I believe it's used in production at runa. Zachary Tellman has done a great job with aleph/lamina and friends. -- You received this message because you are subscribed

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Wilson MacGyver
FYI, here is how to add jar deps in gradle for local files, either as a file or a dir of files http://stackoverflow.com/questions/2572811/gradle-make-a-3rd-party-jar-available-to-local-gradle-repository and getting started is at https://bitbucket.org/kotarak/clojuresque/wiki/Home while the

Re: Build tool for mixed Clojure/Java projects

2011-07-03 Thread Wilson MacGyver
I recommend gradle clojuresque. Our clojure code deploys to WAR. so it's always AOTed. but we use features 2,3,4,5 on your list easily. the project has java, clojure and groovy code. it just works. On Sun, Jul 3, 2011 at 3:57 PM, Konrad Hinsen konrad.hin...@fastmail.net wrote: I am looking for

Re: Future of clojure.contrib.core/-? macro

2011-04-18 Thread Wilson MacGyver
I use -? quite often. On Mon, Apr 18, 2011 at 11:47 AM, Laurent PETIT laurent.pe...@gmail.com wrote: Hello, The -? and -? macros are currently inside old, soon to be deprecated clojure contrib. They have proven useful to me a number of times, and I personnally wouldn't see them stay in the

Clojure 1.2.1 download?

2011-04-16 Thread Wilson MacGyver
Now that 1.2.1 is released, will clojure.org download be updated too? Or is this a release we should only consume via mvn repo? Thanks -- 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: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Wilson MacGyver
Since you want a graph db with search, and you want to use it with clojure which means at least a decent java API. I recommend you check out http://neo4j.org/ It's a graph db with search ability, and has a very good java API. -- You received this message because you are subscribed to the

Re: ANN: Clojure Toolbox (Early Beta)

2011-02-25 Thread Wilson MacGyver
I like to suggest clj-json https://github.com/mmcgrana/clj-json a fast JSON encoder/decoder that uses jackson. clojuresque https://bitbucket.org/kotarak/clojuresque/src clojure plugin for gradle (a very good build system) clj-time https://github.com/getwoven/clj-time clojure binding for

Re: VimClojure omnicompletion woes

2011-02-09 Thread Wilson MacGyver
Is vimclojure/server 2.2.0 in clojar? I searched and all I saw are http://clojars.org/vimclojure/server which is 2.3.0-SNAPSHOT On Wed, Feb 9, 2011 at 7:38 AM, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 9 Feb., 11:38, Wolodja Wentland babi...@gmail.com wrote:         [vimclojure/server

Re: VimClojure omnicompletion woes

2011-02-09 Thread Wilson MacGyver
ah, it looks like clojars doesn't show older version in the search result. On Thu, Feb 10, 2011 at 1:56 AM, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 10 Feb., 07:42, Wilson MacGyver wmacgy...@gmail.com wrote: Is vimclojure/server 2.2.0 in clojar? Yes. http://clojars.org/repo/vimclojure

Re: which IDEs are you all using?

2011-01-12 Thread Wilson MacGyver
On Wed, Jan 12, 2011 at 1:49 AM, Meikel Brandmeyer m...@kotka.de wrote: 2.  An easy way to load all the relevant code and dependencies into a REPL. Check. Vim itself does not provide that. But it is easy to use lein, cake or gradle to fire up the backend server. For lein there exists a

Re: which IDEs are you all using?

2011-01-12 Thread Wilson MacGyver
ah, ok. just wanted to make sure. On Wed, Jan 12, 2011 at 2:22 PM, Meikel Brandmeyer m...@kotka.de wrote: Hello Wilson, Am 12.01.2011 um 17:18 schrieb Wilson MacGyver: I think you meant the next release of Clojuresque. No. I really meant VimClojure. I think the plugin does not fit

Re: which IDEs are you all using?

2011-01-11 Thread Wilson MacGyver
easiest way to do this is, Go to Run- Edit Configuration. under clojure script, you'll see options for VM parameters, and a checkbox on run script in REPL. the plugin is actively being developed. in fact, it has been rewritten in clojure. Most recent release was on Dec 29th

Re: Soap Client

2010-12-29 Thread Wilson MacGyver
give apache cxf a shot http://cxf.apache.org/ On Wed, Dec 29, 2010 at 11:55 AM, Sean Devlin francoisdev...@gmail.com wrote: Anyone know of a good soap client for Java? -- Omnem crede diem tibi diluxisse supremum. -- You received this message because you are subscribed to the Google Groups

Re: Debugging with IntelliJ Idea 10 and La Closure Plugin version 0.3.15

2010-12-14 Thread Wilson MacGyver
you may want to also post this on the jetbrains la clojure forum http://devnet.jetbrains.net/community/idea/clojure?view=discussions On Wed, Dec 15, 2010 at 12:00 AM, HiHeelHottie hiheelhot...@gmail.com wrote: I'm using IntelliJ Idea 10 with the La Closure plugin version 0.3.15 and Java 6  

Re: Basic integer-overflow error: (- 0 -9223372036854775808)

2010-12-12 Thread Wilson MacGyver
I can only reproduce this using 1.2 release. under 1.3 master. I get user= (- 0 -9223372036854775808) ArithmeticException integer overflow clojure.lang.Numbers.throwIntOverflow (Numbers.java:1575) On Sun, Dec 12, 2010 at 9:00 PM, James Koppel darmanith...@gmail.com wrote: user (- 0

Re: Google AI winner uses lisp

2010-12-10 Thread Wilson MacGyver
Foreign function interface. To call C/C++ libs. On Dec 10, 2010, at 6:52 PM, javajosh javaj...@gmail.com wrote: What is FFI? On Dec 9, 10:47 pm, Ken Wesson kwess...@gmail.com wrote: On Fri, Dec 10, 2010 at 12:43 AM, javajosh javaj...@gmail.com wrote: It does beg the question, though: what

Re: memcache, redis connection pooling

2010-11-24 Thread Wilson MacGyver
I highly recommend jedis for redis java lib. It supports connection pooling, pub/sub. and works with the 2.0 protocol. https://github.com/xetorthio/jedis Any reason why you want to use both memcached and redis at the same time? redis is basically memcached++, with collection/queue support as

Re: bimaps in clojure

2010-11-19 Thread Wilson MacGyver
In guava, there is an immutable version of bimap. http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/ImmutableBiMap.html On Fri, Nov 19, 2010 at 3:24 AM, Christophe Grand christo...@cgrand.net wrote: One call away but rarely persistent or even immutable. On Fri,

Re: bimaps in clojure

2010-11-18 Thread Wilson MacGyver
Actually if you want to use java lib. Look at guava, formerly known as google collection. It's one of my fav java lib. http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/BiMap.html On Nov 18, 2010, at 10:55 PM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote:

Re: From jetty to war?

2010-11-02 Thread Wilson MacGyver
On Tue, Nov 2, 2010 at 12:49 PM, Luke VanderHart luke.vanderh...@gmail.com wrote: fanvie, two comments: 2. You don't need 99% of the special crap that Spring/Grails gives you. Clojure's abstractions are smaller, yes, but the're just as powerful, and give you more control, in a more

Re: Improving Contrib

2010-10-19 Thread Wilson MacGyver
How should we as users consume the libs under the new umbrella? Is it fair to assume that most of these would be also uploaded by the creator into clojars as new versions become available, thus using build tools like mvn, gradle, lein, etc to pull them in as we need them? since I assume we are

Re: Improving Contrib

2010-10-19 Thread Wilson MacGyver
what Gradle uses and does dependency management better than Maven does. http://ant.apache.org/ivy/ http://ant.apache.org/ivy/features.html Thanks, Luke On Oct 19, 12:12 pm, Rich Hickey richhic...@gmail.com wrote: On Oct 19, 12:04 pm, Wilson MacGyver wmacgy...@gmail.com wrote: How should

Re: VimClojure 2.2.0 released

2010-10-06 Thread Wilson MacGyver
On Wed, Oct 6, 2010 at 11:04 AM, Meikel Brandmeyer m...@kotka.de wrote: The future will probably be nREPL which was started recently by Chas Emerick. It will provide a common backend server for all (participating) IDEs. One main problem is - surprise - Windows. I have no simple solution to

Re: How often do you use REPL?

2010-09-27 Thread Wilson MacGyver
I use REPL quite a bit. Especially if I'm quickly trying to throw something together. I'd use vimclojure and REPL. In intelliJ, I use REPL for brain storm and testing. On Mon, Sep 27, 2010 at 3:14 PM, Christian Guimaraes cguimaraes...@gmail.com wrote: It's a noob question... I know But in

Re: CLR questions

2010-09-23 Thread Wilson MacGyver
On xbox, you can't alter running code in memory, which means JIT basically doesn't work. So imagine you are running java code on JVM in interpreted mode, it's too slow for any serious game. This is a common issue in most game consoles. -- You received this message because you are subscribed to

Re: CLR questions

2010-09-23 Thread Wilson MacGyver
] http://www.software-lab.de/radical.pdf On Thu, Sep 23, 2010 at 9:27 AM, Wilson MacGyver wmacgy...@gmail.com wrote: On xbox, you can't alter running code in memory, which means JIT basically doesn't work. So imagine you are running java code on JVM in interpreted mode, it's too slow

Re: Timed caches?

2010-09-18 Thread Wilson MacGyver
Check out http://kotka.de/blog/2010/03/The_Rule_of_Three.html for a very flexible implementation of memoiz On Sep 18, 2010 1:40 PM, Sean Corfield seancorfi...@gmail.com wrote: Working in the web dev world, I'm fairly used to systems offering ways to cache data for a period of time to improve

Re: disk-backed memoize?

2010-09-17 Thread Wilson MacGyver
I highly recommend using redis for this. There is even a clojure redis client. http://github.com/ragnard/redis-clojure On Fri, Sep 17, 2010 at 9:00 PM, David McNeil mcneil.da...@gmail.com wrote: Is there a disk-backed memoize available? I have an application where I would like the cache of

Re: Simple things should be simple

2010-09-09 Thread Wilson MacGyver
I'm not sure what your point is. If I want to write a hello world php script on a unix system, but apache and mod_php weren't setup. I'd first have to install them and configure them. This is only easy these days because most linux come with apache installed, php installed, mod_php preconfigured

Re: Simple things should be simple

2010-09-09 Thread Wilson MacGyver
I'm not sure what your point is. If I want to write a hello world php script on a unix system, but apache and mod_php weren't setup. I'd first have to install them and configure them. This is only easy these days because most linux come with apache installed, php installed, mod_php preconfigured

Re: Simple things should be simple

2010-09-09 Thread Wilson MacGyver
How are you going to handle session? How are you going to handle database from a echo script? I mean, I can counter by just create a hello.html in apache and put hello world in there. It's 1 line, 0 to deploy. And it's FAST. It's even cached and uses no cpu time being served. that doesn't really

Re: Simple things should be simple

2010-09-09 Thread Wilson MacGyver
On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer m...@mired.org wrote: On Thu, 9 Sep 2010 11:30:51 -0400 Now it's true that there are some overhead to make sure your webapp produce a war file and can be deployed to ANY containers. It's not 3/1/0 as you claimed. A) I didn't claim I could do this

Re: clojure Image/video processing?

2010-09-06 Thread Wilson MacGyver
If by processing image you mean like resizing, etc. I use jmagick http://www.jmagick.org/index.html On Sep 6, 2010, at 5:57 PM, Robert McIntyre r...@mit.edu wrote: I was wondering if anyone has used clojure for image/video processing and how that has worked out. -- You received this message

JSON lib of choice?

2010-09-06 Thread Wilson MacGyver
I figure enough time has passed that I want to bring this up again. For JSON, are you using clojure.contrib.json or clj-json? Why? Thanks -- 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

Re: Typical usage of Compojure

2010-09-05 Thread Wilson MacGyver
For me, I'm using compojure/ring mostly for building web services. I use html whenever I need some simple html templates. But since it's a web service, I use XML and JSON far more often. So in the end, compojure/ring just serves as a way to invoke the functions to get output. There isn't AJAX

Re: clojure-conj registration is now open!

2010-09-03 Thread Wilson MacGyver
I too was very excited till I found out the date. I'm giving a talk on riak in Detroit on that Saturday. Maybe next year. -- 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

Re: Thinking in Clojure

2010-09-02 Thread Wilson MacGyver
I highly recommend Joy of Clojure. It's a good 2nd book on clojure. It shows you the why things are the way they are, and how to do things the clojure way as much as possible. On Thu, Sep 2, 2010 at 9:29 PM, HB hubaghd...@gmail.com wrote: Hey, I finished reading Programming Clojure and

Re: Why Jetty? (web development)

2010-09-01 Thread Wilson MacGyver
On Wed, Sep 1, 2010 at 10:46 PM, Sean Corfield seancorfi...@gmail.com wrote: (so the underlying question is: what's the raw Servlet implementation that folks use to power Clojure-based web apps on containers other than Jetty?) I use ring.util.servlet, and gen-class to create a servlet. I

Re: Java app invoking Clojure dynamically

2010-09-01 Thread Wilson MacGyver
if you must dynamic load it. you can do it from a file and use the clojure runtime import clojure.lang.RT; import clojure.lang.Var; full code example at http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java On Wed, Sep 1, 2010 at 10:51 PM, Sean

Re: AOT compilation newbie mistakes

2010-08-22 Thread Wilson MacGyver
On Sun, Aug 22, 2010 at 2:39 PM, Isaac Gouy igo...@yahoo.com wrote: 2) How can I AOT compile Clojure files without using the REPL? on this point, I think most people use build tools to do it. gradle with clojuresque plugin, lein and mvn with clojure plugin will all do this. -- Omnem crede

Re: AOT compilation and calling Clojure from Java

2010-08-16 Thread Wilson MacGyver
you'd import semantic.hello then in your java code, you would first create it by doing new semantic.hello() then you can call it form java by doing objectNameYouCreated.sayhello() without the - you also need to define your sayhello differently I think. it needs to be (defn -sayhello [this]

Re: RFC: New Clojure launcher

2010-08-15 Thread Wilson MacGyver
This still requires JDK installed right? On the OSX version, does it create DMG file? Since for an end user OSX app, that's what people expect. On turning jars into .exe on windows, have you looked at jsmooth? http://jsmooth.sourceforge.net/index.php On Sun, Aug 15, 2010 at 11:51 AM, mac

Re: What is reference?

2010-08-15 Thread Wilson MacGyver
It's clojure's STM(Software Transaction Memory). More info at http://clojure.org/concurrent_programming On Aug 15, 2010, at 11:26 PM, HB hubaghd...@gmail.com wrote: Hey, I don't understand what references are. (ref #{}) This creates a reference to an empty set but what is reference any

Re: Game development in Clojure

2010-08-13 Thread Wilson MacGyver
I assumed he didn't use OpenGL because it's a 2d tile game? Using OpenGL for 2d or 2.5d (isometric) is really only a good idea if you can assume the target has hardware OpenGL acceleration. Even then you may not want to do that, due to battery concerns. On Fri, Aug 13, 2010 at 2:06 PM, Brian

Re: Game development in Clojure

2010-08-13 Thread Wilson MacGyver
Paradigms of artificial intelligence programming: case studies in Common LISP By Peter Norvig has a full chapter on this (ch18), complete with code in Common LISP. his Artificial Intelligence: A Modern Approach is also a good book if you are interested in game AI. 3rd edition just came out

Re: Game development in Clojure

2010-08-13 Thread Wilson MacGyver
On Fri, Aug 13, 2010 at 4:51 PM, Brian Carper briancar...@gmail.com wrote: But there are some good OpenGL 2D game engines for Java, e.g. Slick[1].  There's also Penumbra[2] which nicely wraps LWJGL for Clojure.  I ask this mostly because I'm making my own 2D game and somewhat torn between

Re: Game development in Clojure

2010-08-13 Thread Wilson MacGyver
I rarely run into this. The few times I have, I just do (def g) ;creates a var g that is unbound (defn f [] (g)) ;ok (defn g [] ;f will call this nil) as shown by Rich at http://markmail.org/message/vuzvdr4xyxx53hwr#query:+page:1+mid:tzsd3k6tvvc4ahoq+state:results On Fri, Aug 13,

Re: Game development in Clojure

2010-08-13 Thread Wilson MacGyver
I realize that. I was pondering why I don't run into the the 2nd problem. In your code, how many files/name spaces are you creating? And how many lines of code are in each file? I'm curious how you organize your code. On Aug 14, 2010, at 12:39 AM, Eric Lavigne lavigne.e...@gmail.com wrote: .

Re: drop-while for noobs

2010-08-09 Thread Wilson MacGyver
you can do this using partition. let's assume I first define a user= (def a [:w :n :e :s]) #'user/a user= (partition 2 1 (conj a (first a))) ((:w :n) (:n :e) (:e :s) (:s :w)) gives you the pairs you need. then you just need to turn it into hash-map by doing (map #(apply hash-map %)

Re: Error trying to use a GroovyShell from clojure

2010-08-05 Thread Wilson MacGyver
can you compile the groovy script to .class via groovyc? then you can use the groovy code within clojure via java interop. On Thu, Aug 5, 2010 at 2:33 PM, Chris Goellner cgoell...@gmail.com wrote: Hello all, long time listener first time caller. I've got a situation where I'm trying to apply

Re: Why no tail call optimization

2010-08-02 Thread Wilson MacGyver
as Rich Hickey stated question: Is it fundamentally impossible to do TCO on JVM due to current JVM lack of primitives to do so? Would TCO ever be possible on the JVM without a new JVM design? rhickey: TCO is easy if you are an interpreter - see SISC Scheme. Using Java's call stack, the JVM would

Re: gobble up a collection 2 at a time

2010-07-21 Thread Wilson MacGyver
you have to partition it first. user= (partition 2 [1 2 3 4 5 6 7 8]) ((1 2) (3 4) (5 6) (7 8)) let's say we want to add the numbers. user= (map #(apply + %) (partition 2 [1 2 3 4 5 6 7 8])) (3 7 11 15) On Wed, Jul 21, 2010 at 10:20 PM, Glen Rubin rubing...@gmail.com wrote: Hi!  I want to

Re: Haskell?

2010-07-19 Thread Wilson MacGyver
1 word. JVM. the amount of java libs to be tapped is amazing. My experience with haskell libs has been mixed bag. In the case of clojure, XML parsing, database connection, kicking up a web server, natural language parsing. There is a Jar for that OTH, there are situations where we can't use

Re: A functional, efficient, convolution function. Is imperitive-style the answer?

2010-07-17 Thread Wilson MacGyver
It's in contrib.seq-utils http://richhickey.github.com/clojure-contrib/seq-utils-api.html#clojure.contrib.seq-utils/indexed On Jul 17, 2010, at 1:41 PM, David Cabana drcab...@gmail.com wrote: I tried to run Jame's code, but the compiler (1.2 beta) squawked at me: Unable to resolve symbol:

Re: Clojure REPL prompt Java applet

2010-07-14 Thread Wilson MacGyver
there is already http://www.try-clojure.org though it's not an applet. On Wed, Jul 14, 2010 at 11:26 AM, Paul Richards paul.richa...@gmail.com wrote: Does there exist a Java applet on the web which just presents an interactive Clojure REPL prompt? It would be a nice way to tinker with Clojure

DataLog

2010-07-12 Thread Wilson MacGyver
Has anyone used clojure.contrib.Datalog for anything serious? What kind of problem did you run into if any? What is the performance like? Is there a sweet spot beyond that it's completely in memory only? Thanks, -- Omnem crede diem tibi diluxisse supremum. -- You received this message

Re: ANN: Aleph, an asynchronous web server

2010-07-08 Thread Wilson MacGyver
for the hello world test, you are using the helloworld from front page of node.js at http://nodejs.org/ right? how did you setup the clojure one? was it what you posted before? (defn hello-world [request] (future (Thread/sleep 1) (respond! request {:status 200

Re: ANN: Aleph, an asynchronous web server

2010-07-08 Thread Wilson MacGyver
thank you! On Thu, Jul 8, 2010 at 3:09 PM, David Nolen dnolen.li...@gmail.com wrote: On Thu, Jul 8, 2010 at 3:02 PM, Wilson MacGyver wmacgy...@gmail.com wrote: for the hello world test, you are using the helloworld from front page of node.js at http://nodejs.org/ right? how did you setup

Re: Getting Clojure into the workplace, how do you do it?

2010-07-06 Thread Wilson MacGyver
my story isn't a very interesting one. I simply told everyone on the team to learn it, because we are going to use it :) On Tue, Jul 6, 2010 at 4:50 AM, Nick Mudge mud...@gmail.com wrote: One of the things I like about Clojure is it is a way to get lisp and functional programming into workaday

Re: -- macro proposal

2010-07-06 Thread Wilson MacGyver
On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: In my experience, unneeded versatility == support headache. I couldn't agree more. I'm happy to see selection of what goes into core and contrib has become more selective. -- Omnem crede diem tibi diluxisse

Re: -- macro proposal

2010-07-06 Thread Wilson MacGyver
On Tue, Jul 6, 2010 at 2:36 PM, Greg g...@kinostudios.com wrote: On Jul 6, 2010, at 2:26 PM, Wilson MacGyver wrote: On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: In my experience, unneeded versatility == support headache. I couldn't agree more. I'm happy

Re: Clojure 1.2: Unicode string length bug?

2010-07-01 Thread Wilson MacGyver
I assume you are doing this from command line? it's very likely your terminal is escaping non-ASCII characters for you. I get 27 using 1.1 and 1.2 snapshot using command line REPL but if I run it from a source file, it's fine. and I get 9. 2010/7/1 ngocdaothanh ngocdaoth...@gmail.com: With

Re: Clojure's n00b attraction problem

2010-06-29 Thread Wilson MacGyver
I still have to re-evaluate the current versions of the IDEs to decide which to use in the fall, and if the recent past is prologue they may get even better before the semester starts. Just want to point out that intellij's la clojure plugin works just fine with the free opensource

Re: State of Clojure web development

2010-06-24 Thread Wilson MacGyver
On Wed, Jun 23, 2010 at 5:23 PM, James Reeves weavejes...@googlemail.com wrote: 1. Have you written, or are you writing, a web application that uses Clojure? What does it do? we are currently developing a game server backend using clojure. 2. Which libraries or frameworks are you using? Which

Re: New Primitive data types (equal branch) - impact on optimized code.

2010-06-24 Thread Wilson MacGyver
On Jun 24, 2010, at 10:50 PM, Mark Engelberg mark.engelb...@gmail.com wrote: When exactly did people start expecting Clojure to be as fast as Java and/or Scala? One of the earlier talk/video, the claim was clojure is between 1x to 3x of java performance. Fast math performance was touched

Re: Enhanced Primitive Support

2010-06-22 Thread Wilson MacGyver
On Tue, Jun 22, 2010 at 1:43 PM, Mike Meyer mwm-keyword-googlegroups.620...@mired.org wrote: Would it be Clojure if it didn't run on the JVM? Personally, I could live without the JVM. And the more I learn about the JVM, the more I could live without it! I just want to add my two cents here. I

Re: [ANN] Calx, a wrapper for OpenCL

2010-06-21 Thread Wilson MacGyver
I noticed you are importing com.nativelibs4java.opencl in src/clax/data.clj, looking at your project.clj I see a dep on clax/javacl is that where you are pulling the native lib for OpenCL? Can you explain a bit on your approach of getting this to work on various platforms? Esp on OSX and Linux.

Re: Learning Clojure Offline

2010-06-20 Thread Wilson MacGyver
Other than downloading clojure and clojure.contrib itself, I'd suggest you get the progmraming in clojure book by Stuart Halloway. Book in hand, try out the examples in clojure REPL. That's good enough to get started. Welcome! On Sun, Jun 20, 2010 at 3:50 AM, Martin Larsson

Re: Upgrade from 1.1 to 1.2

2010-06-18 Thread Wilson MacGyver
^ was deprecated in 1.1 as per release note below The ^ reader macro has been deprecated as a shortcut for meta in the hopes that it can eventually replace the #^ reader macro. On Jun 18, 2010, at 2:20 AM, Howard Lewis Ship hls...@gmail.com wrote: I've noticed a few issues upgrading from 1.1

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-30 Thread Wilson MacGyver
JavaFx has one other major issue. The scene graph isn't accessible outside of JavaFx script. On Friday, May 28, 2010, Luke VanderHart luke.vanderh...@gmail.com wrote: My understanding may be wrong, but I think JavaFX is intended more as a competitor to Flash or Silverlight than a GUI toolkit.

Re: Comparing Cycle

2010-05-25 Thread Wilson MacGyver
since cycle is an infinite sequence, it will keep running forever. On Tue, May 25, 2010 at 11:05 AM, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi : (def a (cycle '(1 2 3 4))) and (= a (drop 4 a)) I suppose it would return true, but it cannot return. -- You received this

Re: ANN: try clojure

2010-05-13 Thread Wilson MacGyver
Great work, but the tryhaskell link is wrong. It should be http://tryhaskell.org/ Sent from my iPad -- 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

Re: Help: Rephrasing an English statement into questions.

2010-05-04 Thread Wilson MacGyver
I'm not sure how simple this is. If you want the code to be able to take any English sentence as input, parse it, and reword them as question. It's far more work than a simple email can convey. :) You can probably start with the clj-opennlp as the first step to parse the input. On Monday, May 3,

clojure.contrib.prxml output control?

2010-04-15 Thread Wilson MacGyver
Is it possible to have customize clojure.contrib.prxml's output? the following (prxml [:field {:name id} 1] [:field {:name name} me]) produces field name=id1/fieldfield name=nameme/field which becomes very hard to read when you have a bunch of fields. How do I at least add a newline

Re: clojure.contrib.prxml output control?

2010-04-15 Thread Wilson MacGyver
name=name  foome/foo /field -Per On Fri, Apr 16, 2010 at 11:54 AM, Wilson MacGyver wmacgy...@gmail.com wrote: Is it possible to have customize clojure.contrib.prxml's output? the following (prxml [:field {:name id} 1]       [:field {:name name} me]) produces field name=id1/fieldfield

Re: Erlang like environment

2010-04-14 Thread Wilson MacGyver
the closest thing I know is the remote REPL for clojure. but if you are looking for erlang's style of distributed environment, it doesn't exist as far as I know. clojure was designed to solve single machine many-core problems. while erlang is designed to solved distributed system problems. On

Re: let's all link to the getting started pages!

2010-04-07 Thread Wilson MacGyver
I noticed there is no section or link on using clojure with gradle. What can I do to help make that happen? On Tue, Apr 6, 2010 at 11:55 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: People getting started with Clojure have struggled to find an up-to-date source for information on

lazy-xml returns 503 from w3.org

2010-03-19 Thread Wilson MacGyver
Hi, In trying to use clojure.cotrib.lazy-xml to parse a xml file. I get java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd because w3c blocks access to that dtd now. Is there any work around? Thanks, -- Omnem crede

Re: Web Programming with clojure

2010-03-16 Thread Wilson MacGyver
there is a good screencast that deal with compojure + emacs. http://www.bestinclass.dk/index.php/2009/12/dynamic-interactive-webdevelopment/ compujure is a route based webframework, very much like ruby's sinatra. I figure with your emacs background, this will feel very much at home. On Mon,

Re: collections within collections

2010-03-11 Thread Wilson MacGyver
.  Sorry, I am a little bit confused.  The other responses seemed very helpful too, but have not yet tried to figure them out.  thx! On Mar 10, 12:18 pm, Wilson MacGyver wmacgy...@gmail.com wrote: you can define a function to filter the result like (defn answer? [x] (filter #(every? integer

Re: collections within collections

2010-03-10 Thread Wilson MacGyver
you can define a function to filter the result like (defn answer? [x] (filter #(every? integer? %) x)) and then just call it by doing user= (map #(answer? %) (trips (range 1 7))) (() () ([3 4 5]) () ()) On Wed, Mar 10, 2010 at 1:20 PM, Glen Rubin rubing...@gmail.com wrote: I am working on

Re: Library for physical quantities, units, and dimensions

2010-03-10 Thread Wilson MacGyver
great! That's one thing I miss from time to time from Haskell. Haskell has a physical unit library. On Wed, Mar 10, 2010 at 3:08 PM, Konrad Hinsen konrad.hin...@fastmail.net wrote: I have started working on a Clojure library for working with physical quantities that have units and dimensions.

Re: Hiccup 0.2.1 release

2010-03-08 Thread Wilson MacGyver
where is the library? I followed the link http://gist.github.com/326028 but it says it's been deleted. On Mon, Mar 8, 2010 at 8:44 PM, James Reeves weavejes...@googlemail.com wrote: Hiccup is a library for generating a string of HTML from a tree of Clojure vectors. It supports dynamically

Re: clojure slides

2010-03-07 Thread Wilson MacGyver
me.    regards,    -tom On Mar 3, 8:58 pm, Wilson MacGyver wmacgy...@gmail.com wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) -- Omnem crede diem tibi diluxisse supremum. -- You received

Re: clojure slides

2010-03-04 Thread Wilson MacGyver
thank you, going though it now. :) On Thu, Mar 4, 2010 at 2:56 PM, Baishampayan Ghose b.gh...@ocricket.com wrote: Wilson MacGyver wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) Feel free to use mine

clojure slides

2010-03-03 Thread Wilson MacGyver
Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) -- Omnem crede diem tibi diluxisse supremum. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: clojure-contrib on build.clojure.org

2010-02-27 Thread Wilson MacGyver
Thank you! On Sat, Feb 27, 2010 at 12:14 AM, Cosmin Stejerean cstejer...@gmail.com wrote: On Fri, Feb 26, 2010 at 12:34 PM, Wilson MacGyver wmacgy...@gmail.com wrote: Hi, Does build.clojure.org have the release version of the clojure-contrib? I only see the release version of clojure

clojure-contrib on build.clojure.org

2010-02-26 Thread Wilson MacGyver
Hi, Does build.clojure.org have the release version of the clojure-contrib? I only see the release version of clojure itself at http://build.clojure.org/snapshots/org/clojure/clojure/1.1.0/ but for clojure-contrib I only see snapshots at

Re: generalize distinct

2010-02-21 Thread Wilson MacGyver
Any reason why you can't use distinct? http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/distinct On Feb 21, 2010 10:24 AM, Eugen Dueck eu...@dueck.org wrote: Hi, Clojure is great! The gain in productivity from more low level languages like Java, but also more functional

Re: generalize distinct

2010-02-21 Thread Wilson MacGyver
let me expand on my comment. What I meant is, the type of functionality you are adding into distinct, makes it feel less distinct. to me. If I read what you are saying correctly, you want to be also be able to pass a set, so in addition to filter duplicate elements, it also will filter out

Re: Code Review: how can I make this socket code more functional?

2010-02-16 Thread Wilson MacGyver
assuming you are doing this using java servlet. you may want to look at how compojure does this. http://github.com/weavejester/compojure/blob/master/src/compojure/http/servlet.clj it turns the request into a map. and then various other parts of compojure can do different things based on the

Re: Clojure Dev Environment

2010-02-13 Thread Wilson MacGyver
With the latest intelliJ 9.0.1, la clojure now just works. It's back to click on plugins, pick la clojure, install and restart. Done. On Feb 13, 2010 10:40 AM, Carl Smotricz carl.smotr...@gmail.com wrote: La Clojure is working fine for me. The problem seems to be simply one of version numbering.

  1   2   >