Re: A* Graphe implementation

2013-06-16 Thread Marc Haemmerle
There's also: http://nakkaya.com/2010/06/01/path-finding-using-astar-in-clojure/ Sent from my iPhone On 17.06.2013, at 00:59, Mark Engelberg wrote: > http://clj-me.cgrand.net/2010/09/04/a-in-clojure/ > -- > -- > You received this message because you are subscribed to the Google > Groups "Cloj

Re: [ClojureScript] ANN: core.match 0.2.0-beta2

2013-06-16 Thread Ambrose Bonnaire-Sergeant
Fantastic news! On Mon, Jun 17, 2013 at 1:04 PM, David Nolen wrote: > At long last I've come around to overhauling core.match. > > Changes/Fixes/Enhancements are documented here: > http://github.com/clojure/core.match/blob/master/CHANGES.md > > core.match should no longer have AOT issues as far

ANN: core.match 0.2.0-beta2

2013-06-16 Thread David Nolen
At long last I've come around to overhauling core.match. Changes/Fixes/Enhancements are documented here: http://github.com/clojure/core.match/blob/master/CHANGES.md core.match should no longer have AOT issues as far as I know and many long outstanding bugs have been eliminated. The ClojureScript

Re: Hotspot JIT optimisations

2013-06-16 Thread Colin Fleming
Interesting - thanks. On 17 June 2013 16:39, Cedric Greevey wrote: > On Mon, Jun 17, 2013 at 12:34 AM, Colin Fleming < > colin.mailingl...@gmail.com> wrote: > >> My bad - I assumed this didn't work anyway for non-dynamic vars, but it >> does indeed work. So the only difference with dynamic vars

Re: Hotspot JIT optimisations

2013-06-16 Thread Cedric Greevey
On Mon, Jun 17, 2013 at 12:34 AM, Colin Fleming wrote: > My bad - I assumed this didn't work anyway for non-dynamic vars, but it > does indeed work. So the only difference with dynamic vars is that you can > use thread-local bindings? > Yep. -- -- You received this message because you are sub

Re: Hotspot JIT optimisations

2013-06-16 Thread Colin Fleming
My bad - I assumed this didn't work anyway for non-dynamic vars, but it does indeed work. So the only difference with dynamic vars is that you can use thread-local bindings? On 17 June 2013 16:25, Cedric Greevey wrote: > Hot function replace by redefn'ing it at the REPL wouldn't work anymore. >

Re: Hotspot JIT optimisations

2013-06-16 Thread Cedric Greevey
Hot function replace by redefn'ing it at the REPL wouldn't work anymore. Such an optimization would have to be a deployment-time option rather than forced. On Mon, Jun 17, 2013 at 12:05 AM, Colin Fleming wrote: > Interesting, thanks for the pointer. I'll read up a little more on the > technical

Re: Hotspot JIT optimisations

2013-06-16 Thread Colin Fleming
Interesting, thanks for the pointer. I'll read up a little more on the technicalities of invokedynamic. Can anyone answer the other question about why, in the 95% case of non-dynamic vars we still need the var indirection? It seems like caching the IFn (or even the concrete derived class, since we'

Re: Hotspot JIT optimisations

2013-06-16 Thread Ben Mabey
On Sun Jun 16 16:51:41 2013, Colin Fleming wrote: Hi all, This is slightly tangential to the current discussion on unnecessary type checks - does anyone have any good links to information about the JIT optimisations performed by Hotspot? One question I've been interested in recently is how well

Re: translating Common Lisp to Clojure?

2013-06-16 Thread Håkan Råberg
Deuce translates Emacs Lisp to Clojure and has to deal with some similar issues. Doing 80% and deal with the rest by hand wasn't an option here (but at times tempting). Initially I tried generating mildly "idiomatic" Clojure, but gave up in favor of getting it to work first. For example, Emacs

Re: [ANN] Instaparse 1.1.0

2013-06-16 Thread Zack Maril
That is what I meant, should have been clearer. Those reasons make sense. Thank you! -Zack On Saturday, June 15, 2013 10:41:49 PM UTC-4, puzzler wrote: > > On Sat, Jun 15, 2013 at 7:21 PM, Zack Maril > > wrote: > >> Why does instaparse not throw errors? Curious about the reasoning behind >> thi

Re: In what OS do you code?

2013-06-16 Thread Robert Levy
There's the "State of Clojure Survey": http://cemerick.com/2012/08/06/results-of-the-2012-state-of-clojure-survey/. I think Chas usually asks for ideas on what the questions should be, so that might be a good question to suggest next time around. The Leiningen survey asks that question and finds 7

Re: A* Graphe implementation

2013-06-16 Thread Mark Engelberg
http://clj-me.cgrand.net/2010/09/04/a-in-clojure/ -- -- 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 your first pos

Hotspot JIT optimisations

2013-06-16 Thread Colin Fleming
Hi all, This is slightly tangential to the current discussion on unnecessary type checks - does anyone have any good links to information about the JIT optimisations performed by Hotspot? One question I've been interested in recently is how well it can optimise Clojure function calls. The compiled

Re: A* Graphe implementation

2013-06-16 Thread Gary Trakhman
What do you need to do, more specifically? For a basic clojure introduction, check out: http://dev.clojure.org/display/doc/Getting+Started On Sun, Jun 16, 2013 at 5:42 PM, Clojurist wrote: > Hey everyone, I'm having a project where i have to create an app for A* > algorithm, and the thing is t

A* Graphe implementation

2013-06-16 Thread Clojurist
Hey everyone, I'm having a project where i have to create an app for A* algorithm, and the thing is that i'm a begginer so i would appreciate if you'd like to give me some instructions about the way of doing it : -- -- You received this message because you are subscribed to the Google Groups "

Re: cannot import namespace reducers

2013-06-16 Thread László Török
Then you are having a path problem. Your lein is still using java6 Check your $PATH and $JAVA_HOME env. variables. As this not strictly clojure related, let's not spam the list, im happy to help off list Sent from my phone On Jun 16, 2013 11:22 PM, "Johannes Brauer" wrote: > I am on clojure 1.

Re: cannot import namespace reducers

2013-06-16 Thread Johannes Brauer
I am on clojure 1.5.1 and I use lein repl. But after (require '[clojure.core.reducers :as r]) I still get the same error message as with Java 6: CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21) A second input of (require '[cl

Re: cannot import namespace reducers

2013-06-16 Thread László Török
are you on clojure 1.5+ ? If I launch the REPL using "lein repl" and then (require 'clojure.core.reducers) it works ok for me. 2013/6/16 Johannes Brauer > now, I've Java 7 installed and get another error message: > Exception namespace 'clojure.core.reducers' not found > clojure.core/load-

Re: cannot import namespace reducers

2013-06-16 Thread Johannes Brauer
now, I've Java 7 installed and get another error message: Exception namespace 'clojure.core.reducers' not found clojure.core/load-lib (core.clj:5380) any further hints? Johannes Am 16.06.2013 um 22:43 schrieb Johannes Brauer mailto:bra...@nordakademie.de>> : thank you, Las, for the quick tip.

Re: Clojure generates unnecessary and slow type-checks

2013-06-16 Thread Jason Wolfe
On Sat, Jun 15, 2013 at 4:37 AM, Mikera wrote: > On Friday, 14 June 2013 18:15:34 UTC+1, Jason Wolfe wrote: >> >> Hey Mikera, >> >> I did look at core.matrix awhile ago, but I'll take another look. >> >> Right now, flop is just trying to make it easy to write *arbitrary* >> array operations compac

Re: cannot import namespace reducers

2013-06-16 Thread László Török
I'm on Java7 and OS X 10.8.4, no problem over here. :) 2013/6/16 Johannes Brauer > thank you, Las, for the quick tip. I will give Java 7 a try. I hope there > are no problems on Mac OS 10.8.4 > > Johannes > Am 16.06.2013 um 22:15 schrieb László Török > : > > .. sorry, gmail's new annoying

Re: Clojure generates unnecessary and slow type-checks

2013-06-16 Thread Jason Wolfe
On Fri, Jun 14, 2013 at 5:46 PM, Mikhail Kryshen wrote: > JIT will probably remove unnecessary checkcast instructions. What looks > suspicious to me is that i and asize are converted to longs (notice i2l > opcodes). I noticed earlier that loops with long counters are measurably > slower for the sa

Re: cannot import namespace reducers

2013-06-16 Thread Johannes Brauer
thank you, Las, for the quick tip. I will give Java 7 a try. I hope there are no problems on Mac OS 10.8.4 Johannes Am 16.06.2013 um 22:15 schrieb László Török mailto:ltoro...@gmail.com>> : .. sorry, gmail's new annoying keyboard shortcut b) include the dependency to the forkjoin library [1] t

In what OS do you code?

2013-06-16 Thread Gregory Graham
I use Windows 8 at work, with Emacs and Windows Power Shell and bash when needed. It was easy to set up. I've been a long time Unix/Linux lover, but I've come to terms with the need to use Windows at work, and versions 7 and 8 are not bad. At home I have an old MacBook with OS X, and although it

Re: DBM libraries

2013-06-16 Thread Cedric Greevey
On Sun, Jun 16, 2013 at 12:19 PM, Ray Miller wrote: > Hi, > > Is there a maintained and widely-adopted Clojure interface to any of > the Java DBM libraries (jdbm, jdbm2, BerkeleyDB or MapDB) ? > There's a Clojure wrapper for jdbc, which should get you all the major relational databases. If not,

Re: cannot import namespace reducers

2013-06-16 Thread László Török
(require '[clojure.core.reducers :as r]) is correct. (:require '[clojure.core.reducers :as r]) only works within the ns macro: (ns 'yournamespace (:require '[clojure.core.reducers :as r])) Las 2013/6/16 Mayank Jain > Try > > (:require '[clojure.core.reducers :as r]) > > > i.e. :require > >

Re: cannot import namespace reducers

2013-06-16 Thread László Török
.. sorry, gmail's new annoying keyboard shortcut b) include the dependency to the forkjoin library [1] that is not included in Java6 Las [1] http://mavenhub.com/mvn/central/org.coconut.forkjoin/jsr166y/070108 2013/6/16 László Török > Hi, > > there are two ways to deal with this: > > a) use J

Re: cannot import namespace reducers

2013-06-16 Thread Mayank Jain
Try (:require '[clojure.core.reducers :as r]) i.e. :require On Mon, Jun 17, 2013 at 1:38 AM, Johannes wrote: > Hi, > > trying > (require '[clojure.core.reducers :as r]) > at the repl prompt the error message > CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, > compil

Re: cannot import namespace reducers

2013-06-16 Thread László Török
Hi, there are two ways to deal with this: a) use Java 7 2013/6/16 Johannes > Hi, > > trying > (require '[clojure.core.reducers :as r]) > at the repl prompt the error message > CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, > compiling:(clojure/core/reducers.clj:56:2

cannot import namespace reducers

2013-06-16 Thread Johannes
Hi, trying (require '[clojure.core.reducers :as r]) at the repl prompt the error message CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21) What is going wrong? Johannes -- -- You received this message because you are subsc

[GSoC] NDArray project: week 0 report

2013-06-16 Thread Dmitry Groshev
This message is a copy of a blog post [1]. All my GSoC posts will be available under tag "gsoc" [2]. As I've announced in my Twitter some time ago, I was selected to participate in Google Summer of Code of this year. My particular assignment will be to implement N-Dimensional array in Clojure s

Re: Database migrations

2013-06-16 Thread Shantanu Kumar
On Friday, 14 June 2013 21:54:39 UTC+5:30, Reginald Choudari wrote: > > Hello all, > > I am trying to implement database migrations with Clojure. So far I have > been looking at Drift (https://github.com/macourtney/drift) as a > candidate for implementing this. My question is, does anyone have

Re: DBM libraries

2013-06-16 Thread josh rotenberg
> Is there a maintained and widely-adopted Clojure interface to any of > the Java DBM libraries (jdbm, jdbm2, BerkeleyDB or MapDB) ? I'm not sure how widely adopted it is, but Cupboard has a high and low level Berkeley DB API: https://github.com/gcv/cupboard -- -- You received this message beca

DBM libraries

2013-06-16 Thread Ray Miller
Hi, Is there a maintained and widely-adopted Clojure interface to any of the Java DBM libraries (jdbm, jdbm2, BerkeleyDB or MapDB) ? If not, is there a preferred alternative for persisting a large hash-map to disk? (Ideally I'd like random access to records without reading the whole thing into me

Re: simple brute-force password cracker runs out of memory

2013-06-16 Thread David Pollak
If there was a Clojure -> LLVM -> CUDA pipeline... Sorry just thinking about possibilities On Jun 16, 2013 3:19 AM, "Jim - FooBar();" wrote: > Hi guys, > > I tried for fun to write a parallel brute-force password cracker. I > particularly thought that if I can generate lazily all the possible >

Re: simple brute-force password cracker runs out of memory

2013-06-16 Thread Kelker Ryan
Have you tried wrapping recursive calls with lazy-seq? (defn brute-force "..." ([...] ...) ([check-pred possibilities] (lazy-seq (apply brute-force 4 check-pred possibilities Here's a token-types rewrite (def token-types (let [-chars #(map char (range (int %1) (-> %2 int inc

Re: In what OS do you code?

2013-06-16 Thread Eric MacAdie
OT: Is there a way to download OpenJDK directly? It looks like the download page only has directions on using package managers. Perhaps I missed a link somewhere. - Eric MacAdie On Sat, Jun 15, 2013 at 8:59 PM, John Gabriele wrote: > On Saturday, June 15, 2013 9:40:13 PM UTC-4, Korny wrote: >>

Re: translating Common Lisp to Clojure?

2013-06-16 Thread Lee Spector
On Jun 16, 2013, at 8:27 AM, Rich Morin wrote: > This is undoubtedly an open-ended (and probably naive) question, but I'm > wondering > how much of the task of translating Common Lisp code into Clojure could be > done by > a program and how useful (eg, idiomatic) the result would be. > > I ca

Re: translating Common Lisp to Clojure?

2013-06-16 Thread Rich Morin
On Jun 16, 2013, at 05:27, Rich Morin wrote: > ... Common Lisp implementations on the JVM (eg, ABCL, Kawa, SISC), ... Oops, my bad. Kawa and SISC are actually Scheme implementations. -r -- http://www.cfcl.com/rdmRich Morin http://www.cfcl.com/rdm/resume r...@cfcl.com http://ww

translating Common Lisp to Clojure?

2013-06-16 Thread Rich Morin
This is undoubtedly an open-ended (and probably naive) question, but I'm wondering how much of the task of translating Common Lisp code into Clojure could be done by a program and how useful (eg, idiomatic) the result would be. I can think of various kinds of differences that would need to be a

simple brute-force password cracker runs out of memory

2013-06-16 Thread Jim - FooBar();
Hi guys, I tried for fun to write a parallel brute-force password cracker. I particularly thought that if I can generate lazily all the possible combinations, I'll have no trouble finding the match (memory-wise). something like this: (def token-types "All the possible characters grouped." {