Gin card game with Datomic

2014-06-13 Thread Gijs S.
Hi all, I wrote a web app where you can play a card game with Clojure, ClojureScript and Datomic. Background on the design is here: http://thegeez.net/2014/06/12/gin_datomic.html The game is playable here: http://gin.thegeez.net/ The code is on github: https://github.com/thegeez/gin -Gijs

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Dave Della Costa
I'm not sure what the problem is here. I've posted personal blog links before that were Clojure related; I sincerely thought that it was potentially useful to the group, and I more or less got responses that supported that. That being the case, I'm having a hard time understanding what is so

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Josh Kamau
If i were to be asked, i would restrict the group to: 1. Any type of question that is related to clojure 2. Any type of announcement on clojure core library 3. Any new library/version 4. Any link to a narration on real life usages (e.g how we did xyz with clojure) or benchmarks (generally hard

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Atamert Ölçgen
On Fri, Jun 13, 2014 at 9:34 AM, Dave Della Costa ddellaco...@gmail.com wrote: So it seems to me that some folks simply don't like the content; It's not because we don't like the content. I didn't even read the content. You haven't made a post and linked to your blog since February, right? (I

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Dave Della Costa
Divyansh has posted 3 links in the last 3 months. So? It's not because we don't like the content. I didn't even read the content. I have seen another post by Gijs. He links to his blog. But he's also announcing an open source project. I see no problems with that. I even posted it to

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Dave Della Costa
You raise a good point, which is that I don't know what the group policy is or where it's posted. I just see this in the header on the google groups page: Welcome to the Clojure mailing list. Please note that posts by new members are moderated to prevent spam. Anyone know better than this?

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Atamert Ölçgen
On Fri, Jun 13, 2014 at 10:03 AM, Dave Della Costa ddellaco...@gmail.com wrote: Divyansh has posted 3 links in the last 3 months. So? It's not because we don't like the content. I didn't even read the content. I have seen another post by Gijs. He links to his blog. But he's also

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Jonas
I found this post from 2011 which probably is still relevant: https://groups.google.com/d/msg/clojure/t0pGIuoyB7I/RQtuuAOhes8J On Friday, June 13, 2014 1:05:47 PM UTC+3, David Della Costa wrote: You raise a good point, which is that I don't know what the group policy is or where it's posted.

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Bob Hutchison
On Jun 13, 2014, at 6:58 AM, Jonas jonas.enl...@gmail.com wrote: I found this post from 2011 which probably is still relevant: https://groups.google.com/d/msg/clojure/t0pGIuoyB7I/RQtuuAOhes8J And just for fun, from that thread... Rich Hickey wrote: There will be times, yes, when the most

[ANN] Version 4.3.1 of Rete for Frames Rule Engine (CLIPS-like Expert System Shell)

2014-06-13 Thread ru
Hello all, What's new: - Java interface moved to separate namespace; - reworked fact memory implementation. Simplified and more Clojure-like code. As a result is a little loss of performance (hope, gain in reliability); - fixed bug in Waltz example. Reference:

Re: Instaparse - thank you!

2014-06-13 Thread Daniel Janus
I'd like to join the thank-you chorus -- Instaparse rocks, period. I'm using it to integrate my concordancing utility, Smyrna [1] with a POS-tagging engine for Polish originally written in C++; specifically, to parse the rules generated by the latter. I've given a talk on it this year at

Re: core.logic API confusion

2014-06-13 Thread Norman Richards
On Mon, Jun 9, 2014 at 2:11 AM, JD jesus.diama...@gmail.com wrote: When I try to use core.logic's fact function I am getting a symbol not found error. What is the idiomatic way to do something like: (logic/fact Orbits :mercury :sun) Orbits here was previously bound in a defrel, which I

Re: raspberry pi and clojure

2014-06-13 Thread Andre Perez
Hi Atamert, Thanks for your response. I get the looping message and then it just sits there. This is what I see in my console: pi@raspberrypi /opt/pi4j/examples $ runclojure clojure/examples.clj Start running blinkio hello looping Then it just sits there. After a certain amount of

Clojure and Maven

2014-06-13 Thread Mark Watson
Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not

Re: raspberry pi and clojure

2014-06-13 Thread Atamert Ölçgen
Can you fix the two issues I've pointed out and post the code somewhere with highlighting (a gist maybe)? Maybe I can't see the real issue and someone else more experienced than me can provide the answer. They may not bother reading it if it's not properly formatted and highlighted. On Fri, Jun

Re: Clojure and Maven

2014-06-13 Thread Atamert Ölçgen
Not sure if this would help; but there's a `lein pom` command. I've just run it on a project and it seems to produce a somewhat different pom. On Fri, Jun 13, 2014 at 3:34 PM, Mark Watson mkw5...@gmail.com wrote: Hey guys, New to Maven and need to convert my leiningen project to Maven to

Re: Clojure and Maven

2014-06-13 Thread Mark Watson
Oh, and I have a function: (defn -main []...) In my-namespace.core -- 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 with

Re: raspberry pi and clojure

2014-06-13 Thread Andre Perez
I've also done this in place of the infinite call : (while true (Thread/sleep (* 10 1000))) In this case, it sits there, as it should, but I'm not seeing the events kick off still. This is more along the lines of the for (;;) { Thread.sleep(500)} java code. Should this have still

Re: Clojure and Maven

2014-06-13 Thread Alex Miller
Not sure if this is the only thing to change, but : mainClassmy-namespace.core/mainClass should be: mainClassmy_namespace.core/mainClass While Clojure uses -'s in namespace names, they are always _'s in the output package/class names. On Friday, June 13, 2014 10:34:54 AM UTC-5, Mark

Re: Gin card game with Datomic

2014-06-13 Thread blake
Cool! On Fri, Jun 13, 2014 at 12:49 AM, Gijs S. gijsstuur...@gmail.com wrote: Hi all, I wrote a web app where you can play a card game with Clojure, ClojureScript and Datomic. Background on the design is here: http://thegeez.net/2014/06/12/gin_datomic.html The game is playable here:

Re: Clojure and Maven

2014-06-13 Thread Mark Watson
Ah, forgot about that. Still having the same issue with that resolved unfortunately. On Friday, June 13, 2014 12:08:00 PM UTC-4, Alex Miller wrote: Not sure if this is the only thing to change, but : mainClassmy-namespace.core/mainClass should be:

Re: Clojure and Maven

2014-06-13 Thread Mark Watson
Ah, forgot about that. Still having the same issue with that resolved unfortunately. -- 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

[ANN] Loom 0.5.0 released

2014-06-13 Thread Aysylu Greenberg
Hi everyone, I've released version 0.5.0 of Loom https://github.com/aysylu/loom, graph algorithms and visualization library: https://clojars.org/aysylu/loom/versions/0.5.0 What's new: - Multigraphs support (Mark Engelberg) - DAG ancestry (Aaron Brooks) - Prim's MST (Guru Devanla) - A* (Guru

Clojure Full Time or Contract to Hire Job - REMOTE

2014-06-13 Thread luke . hartson
I am reaching out to this group with a new full time or contract to hire job opening I have with my direct client in MA. They are looking for a strong Clojure Developer. I have included the project description below. If you are interested please feel free to shoot me an email at

Re: Clojure and Maven

2014-06-13 Thread Mark Watson
There are no .class files in my jar I assume some file-path is messed up, I just can't figure out where. -- 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

[ANN] Quil 2.1.0 released

2014-06-13 Thread Nikita Beloglazov
Friday the 13th and a full moon is ideal time for a release! Happy to announce release of Quil 2.1.0. It is available on clojars: https://clojars.org/quil Here is the list of changes: - Middleware https://github.com/quil/quil/wiki/Middleware support. - Functional mode

Re: Clojure and Maven

2014-06-13 Thread henry w
Hi mark, I am curious about why you need to convert. I am thinking of using TC again myself soon. Currently in hudson I just do lein commands and use lein test-out plugin so the test reports can be shown as they would do from junit tests. you could do the same with TC or failing that have a

ANN: ClojureScript 0.0-2234

2014-06-13 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2234 Leiningen dependency information: [org.clojure/clojurescript 0.0-2234] This release fixes a critical bug around the `case`

Mathematica like eval

2014-06-13 Thread Dilvan
Hi all, I'm a novice to Clojure (but not to programming). I'm looking for an implementation of an eval function to eval expression like Mathematica does. For instance, in Mathematica the expression: 8 + a + 9 (2 + b) + 2 if a and b are not bound, translates to Plus[10, a,

Re: time expression of clojure produces different results on cascalog queries

2014-06-13 Thread sindhu hosamane
Thanks a ton for ur reply's Andy and Thomas . I used Criterium and got results like below : Evaluation count : 240 in 60 samples of 4 calls. Execution time mean : 265.359848 ms Execution time std-deviation : 25.544031 ms Execution time lower quantile : 229.851248 ms ( 2.5%)

[ANN] data.json 0.2.5

2014-06-13 Thread Stuart Sierra
data.json: parsing and generating JSON in pure Clojure https://github.com/clojure/data.json Leiningen dependency information: [org.clojure/data.json 0.2.5] This is a bugfix release. Changes: - DJSON-17: do not print Infinity or NaN floating-point values This is a clojure-contrib

Re: [ANN] Quil 2.1.0 released

2014-06-13 Thread Boris Kourtoukov
Awesome update, thanks! Loads to digest :) On Friday, June 13, 2014 3:48:41 PM UTC-4, Nikita Beloglazov wrote: Friday the 13th and a full moon is ideal time for a release! Happy to announce release of Quil 2.1.0. It is available on clojars: https://clojars.org/quil Here is the list of

RE: Gin card game with Datomic

2014-06-13 Thread Chris Sells
Very cool! From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of Gijs S. Sent: Friday, June 13, 2014 12:49 AM To: clojure@googlegroups.com Subject: Gin card game with Datomic Hi all, I wrote a web app where you can play a card game with Clojure, ClojureScript and

Re: Mathematica like eval

2014-06-13 Thread Christopher Small
There is a nice example of something similar to this in Joy of Clojure (2nd edition anyway; not sure about first). It only shows you how to do contextual-evaluation, and doesn't return a function if some set of the symbols are not mapped in the context, but I'll bet you could modify the

using hidden parameters?

2014-06-13 Thread Christopher Howard
This might be kind of perverse, but I was wondering if it was possible to write a function or macro that takes hidden parameters, i.e., uses symbols defined in the scope of use, without passing them in explicitly. For example, function next-number takes hidden parameter x, so = (let [x 12]

Re: using hidden parameters?

2014-06-13 Thread James Reeves
It is possible with macros: (defmacro next-number [] '(+ x 1)) Note that I'm using ' and not ` here, so the x isn't resolved. If I wanted to use backticks, I'd need to write: (defmacro next-number [] `(+ ~'x 1)) Macros also get an implicit env binding that gives them access to the local

Re: using hidden parameters?

2014-06-13 Thread Mars0i
Here's a way to do it. Not sure if this is what you want. (let [x (atom 12)] (defn next-number [] (swap! x inc))) Functions are clojures, which means that next-number can retain a pointer to a variable that it can see when it's defined. If some of the ideas here are unfamiliar: The atom

Re: Gin card game with Datomic

2014-06-13 Thread Dry Jin
Great, but I couldn't play this game. Do I need something else to play this? I am using IE8. 2014년 6월 13일 금요일 오후 4시 49분 19초 UTC+9, Gijs S. 님의 말: Hi all, I wrote a web app where you can play a card game with Clojure, ClojureScript and Datomic. Background on the design is here: