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

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 wrote: > Is there a clojure-based webserver that uses non-blocking IO like > Node.js, or any effort like tha

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 wrote: > In the vein of FP for Java programmers, these two libraries might be > of i

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

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 wrote: ... > expect that story to be completely done.

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 wrote: > Is there a clojure json library that works in clojure 1.3? > I tried danlarkin/clojure-json but it gives me error:

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" wrote: > that means , if i write a clojure program using javax.swing to build windows > based appl. manipulating database at backend ( all written in clojure) > , this wi

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 t

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 tutor

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 wrote: > I am looking for a build tool that fulfill

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 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 soon "de

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 Goog

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 jodatime

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 wrote: > Hi, > > On 10 Feb., 07:42, Wilson MacGyver wrote: > >> Is vimclojure/server 2.2.0 in clojar? > > Yes. http://clojars.org/repo/v

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 wrote: > Hi, > > On 9 Feb., 11:38, Wolodja Wentland wrote: > >>         [vimclojure/server "2.3.0-SNAPSHOT"] > > As

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

Re: which IDEs are you all using?

2011-01-12 Thread Wilson MacGyver
On Wed, Jan 12, 2011 at 1:49 AM, Meikel Brandmeyer 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 > third-party pl

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 http://plugins.in

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 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 "Clojure" group. To post

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 wrote: > > I'm using IntelliJ Idea 10 with the La Closure plugin version 0.3.15 > and Java 6  I've added Clojure 1.2

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 wrote: > user> (- 0 -9223372036854775808) > -92233

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 wrote: > What is FFI? > > On Dec 9, 10:47 pm, Ken Wesson wrote: >> On Fri, Dec 10, 2010 at 12:43 AM, javajosh wrote: >>> It does beg the question, though: what is a reasonable bare minimum >>> function set

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 valu

Re: ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-23 Thread Wilson MacGyver
On Tue, Nov 23, 2010 at 5:34 AM, LauJensen wrote: > And finally, I've just refurbished the compiler so that its not a > 25 line beast of a recursive machine that automatically spawns > subselects for aggregates, limit/offset and predicates: > > cql.core> (to-sql (-> (table {} :users) >            

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 wrote: > One call away but rarely persistent or even immutable. > > On Fri, Nov 19, 2010 at 4:

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 wrote: > awesome.. :) i keep for

Re: From jetty to war?

2010-11-02 Thread Wilson MacGyver
On Tue, Nov 2, 2010 at 12:49 PM, Luke VanderHart 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 standardized way, then > Spring d

Re: Improving Contrib

2010-10-19 Thread Wilson MacGyver
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 wrote: >> On Oct 19, 12:04 pm, Wilson MacGyver wrote: >> >

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 m

Re: VimClojure 2.2.0 released

2010-10-08 Thread Wilson MacGyver
at 3:13 AM, Meikel Brandmeyer wrote: > Hi, > > On 6 Okt., 17:31, Wilson MacGyver wrote: > >> If the STOMP support happens with nREPL as Rich was pushing for, >> you'd have the windows solution. There are plenty of STOMP client >> that works on windows. > &

Re: VimClojure 2.2.0 released

2010-10-06 Thread Wilson MacGyver
On Wed, Oct 6, 2010 at 11:04 AM, Meikel Brandmeyer 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 just pipe inp

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 wrote: > It's a noob question... I know > > But in my studies I use REP

Re: CLR questions

2010-09-23 Thread Wilson MacGyver
e it's exactly a requirement for an acceptable Clojure variant. > > Timothy Baldridge > > [1] http://www.software-lab.de/radical.pdf > > > > On Thu, Sep 23, 2010 at 9:27 AM, Wilson MacGyver wrote: >> On xbox, you can't alter running code in memory, wh

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: 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" 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 performance - to reduce

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 wrote: > Is there a disk-backed memoize available? I have an application where > I would like the cache of values to survive resta

Re: Simple things should be simple

2010-09-09 Thread Wilson MacGyver
On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer 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 with w

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 reall

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 f

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 f

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 N

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 wrote: > I was wondering if anyone has used clojure for image/video processing > and how that has worked out. -- You received this message because yo

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 roun

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 f

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 wrote: > Hey, > I finished reading "Programming Clojure" and "Practical Clojure"

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 Corfield

Re: Why Jetty? (web development)

2010-09-01 Thread Wilson MacGyver
On Wed, Sep 1, 2010 at 10:46 PM, Sean Corfield 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 wrote something up on th

Re: AOT compilation newbie mistakes

2010-08-22 Thread Wilson MacGyver
On Sun, Aug 22, 2010 at 2:39 PM, Isaac Gouy 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 diem tibi diluxisse

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 .sayhello() without the - you also need to define your sayhello differently I think. it needs to be (defn -sayhello [this] (println "Hello from cl

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 wrote: > Hey, > I don't understand what "references" are. > (ref #{}) > This creates a reference to an empty set but what is "reference" any > way? > Thanks f

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

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 wrote: . > > I discussed two prob

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
On Fri, Aug 13, 2010 at 4:51 PM, Brian Carper 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 Java2D and OpenGL.  Pe

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 recen

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 Carp

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 %) (partit

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 wrote: > Hello all, long time listener first time caller. > > I've got a situation where I'm trying to apply some Groovy code >

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 h

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 wrote: > Hi!  I want to process a collect

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 JV

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 wrote: > I tried to run Jame's code, but the compiler (1.2 beta) squawked at me: > Unable to resolve symbol: indexed in this con

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 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 without downloading

Re: Building mixed clojure and java code

2010-07-14 Thread Wilson MacGyver
We use gradle and clojuresque to do this. Our code has java, groovy And clojure. It works very well for us. On Wednesday, July 14, 2010, Martin DeMello wrote: > What are people using to build mixed clojure/java code? Currently just > using lein {uber,}jar to build and distribute. > > martin > > -

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 because

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 wrote: > On Thu, Jul 8, 2010 at 3:02 PM, Wilson MacGyver wrote: >> >> for the hello world test, you are using the helloworld from >> front page of node.js at http://nodejs.org/ >> right? >> >> how did

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

2010-07-06 Thread Wilson MacGyver
On Tue, Jul 6, 2010 at 2:36 PM, Greg wrote: > On Jul 6, 2010, at 2:26 PM, Wilson MacGyver wrote: > >> On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway >> wrote: >>> In my experience, unneeded versatility == support headache. >> >> I couldn't agree m

Re: --> macro proposal

2010-07-06 Thread Wilson MacGyver
On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway 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 supremum. -- You received th

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 wrote: > One of the things I like about Clojure is it is a way to get lisp and > functional programming into workaday programming wor

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 : > With 1.2-master-SNAPSHOT: > >

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 commun

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 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 on here also http://www

Re: State of Clojure web development

2010-06-24 Thread Wilson MacGyver
On Wed, Jun 23, 2010 at 5:23 PM, James Reeves 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 versions? > we are usi

Re: Enhanced Primitive Support

2010-06-22 Thread Wilson MacGyver
On Tue, Jun 22, 2010 at 1:43 PM, Mike Meyer 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 don't think we would've ever used cloju

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

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 wrote: > Hi! > I'm

Re: Upgrade from 1.1 to 1.2

2010-06-17 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 wrote: > I've noticed a few issues upgrading from 1.1 to 1.2; I see tha

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 wrote: > My understanding may be wrong, but I think JavaFX is intended more as > a competitor to Flash or Silverlight than a GUI toolkit. It'd probably > be great

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 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 message becaus

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 mo

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,

Re: clojure.contrib.prxml output control?

2010-04-15 Thread Wilson MacGyver
il > > user> (binding [*prxml-indent* 0] (prxml [:field {:name "id"} [:foo > 1]] [:field {:name "name"} [:foo "me"]])) > > 1 > > > > me > > > user> (binding [*prxml-indent* 2] (prxml [:field {:name "id"} [:foo &g

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 1me which becomes very hard to read when you have a bunch of fields. How do I at least add a newline after each of them, or maybe even ind

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 We

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 wrote: > People getting started with Clojure have struggled to find an up-to-date > source for information on getting their editor of choice

Re: towards definitive "getting started" assistance

2010-03-30 Thread Wilson MacGyver
Hi, I wrote an blog post on how to use clojure in gradle. That may be of use as part of the "getting started" http://m.3wa.com/?p=464 Thanks, On Tue, Mar 30, 2010 at 1:12 PM, Stuart Halloway wrote: > The labrepl now has much better "getting started" instructions, thanks to > everyone who pitc

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 die

Re: Name suggestions

2010-03-17 Thread Wilson MacGyver
hashi, means bridge in japanese On Wed, Mar 17, 2010 at 3:08 AM, mac wrote: > After just a little more test and polish I plan on calling clj-native > 1.0. But clj-native is a *really* boring name so I want to change it > before 1.0 and I don't have very good imagination when it comes to > these t

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, Mar

Re: collections within collections

2010-03-11 Thread Wilson MacGyver
takes one argument, whereas a fcn like + > takes 2 arguments.  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 wrote: >> you can define a function to fi

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 wrote: > I have started working on a Clojure library for working with physical > quantities that have units and dimensions. While there are still som

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 wrote: > I am working on the following proble

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 wrote: > Hiccup is a library for generating a string of HTML from a tree of > Clojure vectors. It supports dynamically generating HTML, but since >

Re: clojure slides

2010-03-07 Thread Wilson MacGyver
rpoint email me. >    regards, >    -tom > > On Mar 3, 8:58 pm, 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? :) >> >> -- >> Omnem cred

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

Re: clojure slides

2010-03-04 Thread Wilson MacGyver
thank you very much! On Thu, Mar 4, 2010 at 8:02 AM, Stuart Halloway wrote: > http://github.com/stuarthalloway/clojure-presentations > > Creative Commons License. Enjoy. > > Stu > >> Looks like I'll be doing a talk on clojure next week at the local java >> user group. >> >> Any recommendations on

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, sen

  1   2   >