Re: [ANN] Graclj 0.1.0 -- New Gradle Plugin for Clojure

2016-02-16 Thread 'Sven Richter' via Clojure
I wanted to thank you for stepping up on this. As gradle is getting more and more used in a lot of environments a working clojure plugin for gradle would be awesome. Best Regards, Sven Am Montag, 15. Februar 2016 03:11:00 UTC+1 schrieb Andrew Oberstar: > > I just released the first version of G

Command Interpreter in Clojure?

2016-02-16 Thread Nick Vargish
My current project requires a command-line interpreter with limited functionality... For various non-technical reasons we can't expose bash to our users. Our plans call for writing a console shell that will accept some limited command set, and Clojure would be the natural implementation languag

Re: Command Interpreter in Clojure?

2016-02-16 Thread Alan Thompson
Have you seen this: https://github.com/clojure/tools.cli https://github.com/clojure-cookbook/clojure-cookbook/blob/master/03_general-computing/3-07_parse-command-line-arguments.asciidoc Alan On Tue, Feb 16, 2016 at 5:06 AM, Nick Vargish wrote: > My current project requires a command-line inter

A doubt about core.matrix

2016-02-16 Thread Sunil S Nandihalli
Hi Everybody, I am newbie to core.matrix .. I have the following expression W -> a large spare matrix of size MxN U -> a dense matrix of size MxK V -> a dense matrix of size KxN and K << (M,N) (require [clojure.core.matrix :as m]) I want to compute (m/mul W (m/* U V)) m/mul c

Re: Trouble replacing deprecated map< function

2016-02-16 Thread James Reeves
Thanks for the reply. Now that you point it out, I see what you mean about channels being queues, rather than generic communication streams. Perhaps rather than return a bidirectional channel, Chord should instead return two channels, one for input and one for output. Or perhaps it should take the

Re: Command Interpreter in Clojure?

2016-02-16 Thread Jonah Benton
Hey Nick, tools.cli is great for interpretation of command line arguments to a program; to actually provide a user with your own limited-functionality shell, take a look at wrapping JLine: https://github.com/jline/jline2 along the lines of what Reply did: https://github.com/trptcolin/reply/tree/

Re: Command Interpreter in Clojure?

2016-02-16 Thread Jason Felice
Here are some thoughts from having done similar things: 1. Don't invent a syntax, as we already have lisp. If the parens intimidate people, just inserting the outermost set for each line will get you a long way. e.g. (clojure.edn/read-string (str "(" line ")")) 2. Make a multimethod to dispatc

Datascript return values

2016-02-16 Thread Derek Frost
I need some advice about return values please. I'm using Datascript on the console with clojure and I'm doing this to get values from the d/b (println(d/q q-list @conn)) which gives me a hash-map of arrays. I'm trying to put values in a text file to convert to pdf - this is a bit mad but it's

Re: Datascript return values

2016-02-16 Thread Jonah Benton
Hey Derek- Your datascript query is actually returning a set- syntax is #{}- of array elements, also called "tuples". You can treat the set as a sequence, use doseq to visit each item, and destructuring on the items to assign individual array/tuple members to symbols. For instance, say that each

[ANN] Clojure/west 2016 speakers list now available!

2016-02-16 Thread Alex Miller
Clojure/west 2016 will be held Apr 15-16 in Seattle, WA. http://clojurewest.org You can now find the full list of speakers at http://clojurewest.org/speakers! We had a fantastic set of proposals (115) this year and an excellent program as a result. I also want to highlight our keynote speaker,

Re: A doubt about core.matrix

2016-02-16 Thread Mikera
Hi Sunil, You are correct that the naive code will eagerly produce the full matrix UxV, which may be very large :-) I think your strategy of extracting rows and columns from U and V is the best one. Row and column extraction for dense matrices in vectorz-clj is very efficient since it just use