Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread Henrik Eneroth
Cool! I presume you're restricted to EDN on the channels though, right? On Saturday, November 30, 2013 5:23:17 PM UTC+1, James Henderson wrote: https://github.com/james-henderson/chord Chord is a library for making WebSockets look like simple core.async channels in Clojure (using http-kit)

Import dbpediad data into Neo4j using clojure

2013-12-02 Thread Himakshi Mangal
Hi.. I am using clojure to import dbpedia dat into neo4j.. Here's the code: (ns opal.dbpedia (:use [clojure.tools.logging :only [log]]) (:require [clojure.java.io :as io]) (:import [uk.ac.manchester.cs.owl.owlapi.turtle.parser TurtleParser] [org.neo4j.unsafe.batchinsert

Import dbpedia data into neo4j using clojure

2013-12-02 Thread Himakshi Mangal
Hi... I am using clojure to import dbpedia data into neo4j. Here's the code: (ns opal.dbpedia (:use [clojure.tools.logging :only [log]]) (:require [clojure.java.io :as io]) (:import [uk.ac.manchester.cs.owl.owlapi.turtle.parser TurtleParser] [org.neo4j.unsafe.batchinsert

Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread James Henderson
Unfortunately Chord only accepts raw strings on the channel at the moment - I've been using pr-str and read-string around EDN messages until now. It's a great idea to be able to format/parse different message formats automatically though and something that IMO Chord should provide. I've added

Re: Clojure for the Brave and True, an online book for beginners

2013-12-02 Thread Daniel Higginbotham
Thanks, Paddy! It's very encouraging to hear such positive feedback :) I'm glad it was useful for you! Daniel On Sunday, December 1, 2013 7:51:35 PM UTC-5, Paddy Gallagher wrote: Daniel, I've just finished reading this series and thought it was superb. The Emacs chapters in particular

Re: graphs library?

2013-12-02 Thread keeds
Plenty here?: http://clojurewerkz.org/ On Monday, 2 December 2013 14:01:12 UTC, Paweł Rozynek wrote: hello quick question: is there any good graphs related library? the one that implements data structures and search/traverse or some other algorithms in a nice fashion. googling found me

Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread Henrik Eneroth
Since we don't really care what the data looks like while it's on the wire, it could even be byte code in order to compress data. But it's certainly nice if it's possible to use EDN in any case. Also, you could consider whether it'd be worthwhile interacting with something like SockJS in order

[ANN] lein-sync 0.2

2013-12-02 Thread Phillip Lord
This is the second release of lein sync. It includes a major bugfix, and updates for Cider. https://github.com/phillord/lein-sync From the readme! A leiningen plugin to enable syncing an existing Clojure REPL to the current leiningen project using pomegranate. Sometimes, when you do not

Re: graphs library?

2013-12-02 Thread Thomas Heller
https://github.com/aysylu/loom is pretty neat. On Monday, December 2, 2013 3:54:25 PM UTC+1, keeds wrote: Plenty here?: http://clojurewerkz.org/ On Monday, 2 December 2013 14:01:12 UTC, Paweł Rozynek wrote: hello quick question: is there any good graphs related library? the one that

reduce vs fold

2013-12-02 Thread cloverethos
Hi everyone, Let d be some map, says {1 3/5, 2 1/5, 3 1/5} why (reduce + (map #(% 1) d)) = 1 while (fold + (map #(% 1) d)) = ArityException Wrong number of args (2) passed to The reduce,fold, and map are those in the reducers namespace. Can someone explain to me? Thanks - Caleb -- -- You

clojure.zip branch? and next behaviour

2013-12-02 Thread Milton Silva
I was trying to write a function next-branch. I wrote somthing like: (use 'clojure.zip) (def zp (seq-zip '(+ 1 2 (+ 3 4) (+ 5 6 (defn next-branch [loc] (second (filter branch? (iterate next loc (next-branch (next-branch (next-branch zp))) this results in: NullPointerException

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-12-02 Thread Howard M. Lewis Ship
On Wednesday, 27 November 2013 11:11:56 UTC-8, Magnar Sveen wrote: On Wednesday, November 27, 2013 1:08:34 PM UTC+1, Stefan Kamphausen wrote: Howard has quite some experience with this and I'd expect he put a great deal of that into the new library. :-) Indeed. There's certainly a

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-12-02 Thread Howard M. Lewis Ship
On Monday, 25 November 2013 18:12:28 UTC-8, Paul Biggar wrote: [FYI: I'm the author/forker of stefon] These libraries aren't bad, but to be honest, I think we've done it all wrong. We're just all scratching our own itches, not writing reusable components (unlike most of the rest of the

Re: 2013 State of Clojure ClojureScript survey results

2013-12-02 Thread Alex Miller
Two follow-ups categorizing results from the missing language and weaknesses questions: http://tech.puredanger.com/2013/11/19/state-of-clojure-language-features/ http://tech.puredanger.com/2013/12/01/clj-problems/ Alex On Monday, November 18, 2013 1:32:56 PM UTC-6, Chas Emerick wrote:

Re: [ANN] Slamhound 1.5.0 + screencast + Vim plugin

2013-12-02 Thread guns
On Mon 2 Dec 2013 at 12:42:46AM -0800, Patrick Kristiansen wrote: On Sun, Dec 1, 2013, at 05:16 PM, guns wrote: I hope you find this information useful. Exactly one year ago I became very unsatisfied with Vim for working with Clojure, and toyed with Emacs for a bit (evil-mode). It was

Re: [ANN] Buffy The ByteBuffer Slayer, Clojure library to working with binary data

2013-12-02 Thread Alex P
It's different in a way we manipulate the data: We've opted out for default-lazy way (you're getting and setting separate values instead of serialising/deserialising an entire payload). Another difference is that we don't have Lamina as a loaded artifact (which may not be an issue for majority

Re: I need a vector not a list?

2013-12-02 Thread Alex Miller
Actually, I'd say seqs are very much *unlike* iterators in other languages (Java in particular). Iterators - stateful cursors that conflate iteration with a check for whether more elements exist Seqs - immutable persistent views of a collection that separate iteration from checking for more

Recruiter claims to be Rick Hickey's sister

2013-12-02 Thread Alan Shaw
Can I get a quick reality check on this? Thanks! -A -- -- 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

Recruiter claims to be Rich Hickey's sister

2013-12-02 Thread Alan Shaw
Can I get a quick reality check on this? Thanks! -A -- -- 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

Re: Recruiter claims to be Rick Hickey's sister

2013-12-02 Thread Robert Levy
Yes Alan, Jenn Hillner is Rich Hickey's sister. I've worked with her on finding a job before, and highly recommend. -Rob On Mon, Dec 2, 2013 at 2:18 PM, Alan Shaw noden...@gmail.com wrote: Can I get a quick reality check on this? Thanks! -A -- -- You received this message because you

Re: Recruiter claims to be Rick Hickey's sister

2013-12-02 Thread Alan Shaw
Great, thanks a lot Robert! On Mon, Dec 2, 2013 at 3:06 PM, Robert Levy r.p.l...@gmail.com wrote: Yes Alan, Jenn Hillner is Rich Hickey's sister. I've worked with her on finding a job before, and highly recommend. -Rob On Mon, Dec 2, 2013 at 2:18 PM, Alan Shaw noden...@gmail.com wrote:

Re: I need a vector not a list?

2013-12-02 Thread James Reeves
Perhaps I should have said that seqs fulfil the same role as iterators do, rather than claiming they're alike :) - James On 2 December 2013 21:42, Alex Miller a...@puredanger.com wrote: Actually, I'd say seqs are very much *unlike* iterators in other languages (Java in particular).

Re: Import dbpedia data into neo4j using clojure

2013-12-02 Thread Joel Holdbrooks
I'm not certain where the Transient error is coming from but as far as Neo4J is concerned have you considered using the neocons library to help you with your import? It provides a decent wrapper for working with Neo4J and perhaps it will spare you some headache. IIRC it does batch inserts.

Re: I need a vector not a list?

2013-12-02 Thread Andy Smith
Great point... -- -- 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 post. To unsubscribe from this group,