Re: Parallelizing tasks

2013-04-11 Thread Michael Gardner
On Apr 10, 2013, at 21:46 , Ulises ulises.cerv...@gmail.com wrote: Have you tried replacing all your calls to map for pmap yet? That will not work. He'll need to rearrange his algorithm to something like this before pmap will help: (defn iterated-difference [f a b] Yields a lazy seq of

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-11 Thread Osbert Feng
Be sure to look at neko and lein-droid, both most recently being worked on by alexander-yakushev, I believe as a previous GSOC project: http://clojure-android.blogspot.com/ https://gist.github.com/alexander-yakushev/2907442

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-11 Thread Junseok Lee
Thank you both for the helpful instruction. I'll be back once I've done a bit more research on those projects. On Thursday, April 11, 2013 12:34:00 AM UTC-7, Osbert Feng wrote: Be sure to look at neko and lein-droid, both most recently being worked on by alexander-yakushev, I believe as a

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-11 Thread BJG145
I'm hoping to find an effective way to express Android UI layouts with Clojure Are you thinking in terms of working with the standard XML layout files or replacing them with something else...? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-11 Thread BJG145
PS The Clojure-Android group is pretty much dead in the water, though Thomas Kalbe recently posted up a useful link to something he's been working on. https://groups.google.com/forum/#!topic/clojure-android/fzcX_ColRwE -- -- You received this message because you are subscribed to the Google

Re: defrecord and namespace-qualified symbols

2013-04-11 Thread Simon Katz
Yes, I agree. Thanks for helping me to clarify my thoughts on this. On Thursday, 11 April 2013 02:40:23 UTC+1, Cedric Greevey wrote: Let me clarify. If the library's designed to interoperate specifically with a particular record type, it should be designed with knowledge of the base keys.

Re: Macros in ClojureScript

2013-04-11 Thread Kevin De Valck
I'm currently building a project in clojurescript where I need to create some macros. And I don't manage to get it to work. What I'm currently doing is comparable with what you did in core.logic for clojurescript:

Re: Parallelizing tasks

2013-04-11 Thread Gary Verhaegen
The way the f function is written, there is no way to run it in parallel, since it needs the previous answer. The best you can hope for is to use two cores, one for a and one for b. What you can do if you want to make it parallel is use the closed form, and create a lazy list of that closed form

classloader and proxied classes issue

2013-04-11 Thread Jim - FooBar();
Hi all, I'm writing a tiny wrapper around apache UIMA but I'm facing some classloading issues. Before I start explaining I should point out that UIMA makes heavy use of the .class member of classes. It is practically everywhere (a small java code snippet follows for demonstration of what I

Re: [ANN] Instaparse 1.0.0

2013-04-11 Thread Stathis Sideris
Thanks, this looks fantastic! Is there any way to include comments in the syntax at all? Thanks, Stathis On Tuesday, 9 April 2013 06:18:39 UTC+1, puzzler wrote: Instaparse is an easy-to-use, feature-rich parser generator for Clojure. The two stand-out features: 1. Converts standard

Re: [ANN] Instaparse 1.0.0

2013-04-11 Thread Steven Degutis
I'm not the OP, but if you mean comments within the grammar, sure as long as comment is well defined, and if you mean comments *about* the grammar within the parser code, how about creating the grammar using (str) with one string per line, and putting your comments after each line's string?

Re: [ANN] Instaparse 1.0.0

2013-04-11 Thread Stathis Sideris
Sorry for the lack of clarity -- I meant comments about the grammar within the resource file that describes it. The (str) approach would be good for embedded grammars in Clojure code, but I'm working with a fairly bulky grammar which would be better to keep in its own file. Stathis On

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-11 Thread Daniel Solano Gómez
Hello, On Wed Apr 10 11:42 2013, Junseok Lee wrote: Hello! My name is Junseok Lee, and I'm studying CS at UC Berkeley. I was lead to Clojure through my interest in the Lisp family of languages, initiated by my studies of Scheme in my coursework. I've been lurking on this group for a while

Re: Parallelizing tasks

2013-04-11 Thread Bruno Kim Medeiros Cesar
On Thursday, April 11, 2013 10:03:51 AM UTC-3, Gary Verhaegen wrote: The way the f function is written, there is no way to run it in parallel, since it needs the previous answer. The best you can hope for is to use two cores, one for a and one for b. That was my goal at first, but your

Re: classloader and proxied classes issue

2013-04-11 Thread Jim - FooBar();
I found this on SO which seems to be related but the answer proposes deftype which is not an option for me as I need to extend a particular class with proxy... I'm completely stuck... Jim On 11/04/13 14:10, Jim - FooBar(); wrote: Hi all, I'm writing a tiny wrapper around apache UIMA but

Difficulty working with complex protobuf objects [protobuf 0.6.2]

2013-04-11 Thread David Pidcock
I have some Java classes generated elsewhere (not by the lein proto plugin) and I'm wanting to use them as the basis for the [protobuf 0.6.2] code interactions (for interdependency with an existing java project) One thing I noticed about the output in REPL is that only the first key is

Re: [ANN] Instaparse 1.0.0

2013-04-11 Thread Mark Engelberg
On Thu, Apr 11, 2013 at 7:08 AM, Stathis Sideris side...@gmail.com wrote: Thanks, this looks fantastic! Is there any way to include comments in the syntax at all? Last night I started a v1.1 branch to start work on these feature requests. The first feature I added was, in fact, support for

Re: classloader and proxied classes issue

2013-04-11 Thread Jim - FooBar();
Ok I've narrowed it down a bit and it definitely is a classloader issue...observe this: hotel_nlp.externals.uima= c #JCasAnnotator_ImplBase$0 hotel_nlp.externals.uima.proxy$org.uimafit.component.JCasAnnotator_ImplBase$0@16059e71 hotel_nlp.externals.uima= (class c)

Re: Difficulty working with complex protobuf objects [protobuf 0.6.2]

2013-04-11 Thread Alan Malloy
0.6.2 is six months old. I don't think anything about this has changed since then, but you should at least try [org.flatland/protobuf 0.7.2] and see if that does what you expect. On Thursday, April 11, 2013 8:39:12 AM UTC-7, David Pidcock wrote: I have some Java classes generated elsewhere

Zookeeper and Riak experiment

2013-04-11 Thread gerardc
Hi all, I released a simple prototype on Github of the Epochal Time model described by Rich Hickey in his talk The Language of the System. It uses Zookeeper for co-ordination and Riak as a data-store, all behind a simple Compojure app. I'd be cool to get some feedback on it if anyone is

loading proxied classes outside of clojure

2013-04-11 Thread Jim - FooBar();
since classes generated by proxy reside on memory how would the standard java.net.URLClassolader find them? is there a way to emit the class on disk? Jim -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

ANN Money 1.2.0

2013-04-11 Thread Michael Klishin
ClojureWerkz Money [1] is a Clojure library that deals with monetary amounts and currencies. It is built on top of Joda Money. Release notes for 1.2.0: http://blog.clojurewerkz.org/blog/2013/04/11/money-1-dot-2-0-is-released/ 1. https://github.com/clojurewerkz/money -- MK

Re: loading proxied classes outside of clojure

2013-04-11 Thread Cedric Greevey
You could use genclass and AOT compilation. I'm not sure of any other way. On Thu, Apr 11, 2013 at 3:30 PM, Jim - FooBar(); jimpil1...@gmail.comwrote: since classes generated by proxy reside on memory how would the standard java.net.URLClassolader find them? is there a way to emit the class

Infer state

2013-04-11 Thread Catonano
Hello people, I was wondering if Infer ( https://github.com/aria42/infer#readme ) is still developed and if it is in use somewhere. I´ve been plaiyng with Cascalog but I read that with Infer you can prototipe on a single machine and then scale up to an Hadoop cluster if needed with a reasonable

Advice on state handling for a multiplayer poker app

2013-04-11 Thread James Adams
Hi, I'm new to Clojure and trying to write a multiplayer poker web app. I'm looking for advice early on regarding state management. I'm using aleph and compojure for the communications with actions from players coming in through compojure on different threads of the netty server. When a

Re: Macros in ClojureScript

2013-04-11 Thread Colin Fleming
Hi Kevin, That message means that Clojure can't find the file containing your macros on the classpath. Looking at it, you appear to have the macro file in your src-cljs directory. I've never used ClojureScript, but maybe that should be in your src directory since it's Clojure and not

Re: Advice on state handling for a multiplayer poker app

2013-04-11 Thread Dave Sann
have a look at this for a discussion of exactly that question. http://clj-me.cgrand.net/2011/10/06/a-world-in-a-ref/ https://github.com/cgrand/megaref On Friday, 12 April 2013 07:35:03 UTC+10, James Adams wrote: Hi, I'm new to Clojure and trying to write a multiplayer poker web app.

Re: Advice on state handling for a multiplayer poker app

2013-04-11 Thread George Oliver
On Thursday, April 11, 2013 2:35:03 PM UTC-7, James Adams wrote: How would you do this? All thoughts welcome and appreciated To simplify matters you could think about decoupling the incoming game events from the state changes; for example, have a queue hold game events and then serially

Re: [ANN] Instaparse 1.0.0

2013-04-11 Thread Dmitry Kakurin
Hi Mark, Brilliant work, thank you! I was playing with your arithmetic parser from tutorial, and noticed the following definition for add and sub: expr = add-sub add-sub = mul-div | add | sub add = add-sub '+' mul-div sub = add-sub '-' mul-div ... And I realize now that the