[ANN] Gorilla REPL v0.4.0

2017-01-30 Thread Jony Hudson
Hi All, it's a pleasure to announce a new release of Gorilla REPL :-) For those that haven't seen it before, Gorilla REPL is a browser-based notebook environment for Clojure that lets you make interactive documents with tables, graphs etc. The most important thing to note about this release i

[ANN] Gorilla REPL v0.3.6

2016-02-24 Thread Jony Hudson
Hi All, I'm happy to point you to a new Gorilla REPL release. I can't take any credit for this, as all of the work was done by contributors in this release :-) From the changelog: ## Version 0.3.6 - Axis labels on plots (thanks to @dtolpin). - Bump to latest CIDER-nrepl version 0.10.2. - Undo

Re: How do threads work in command-line REPL?

2016-02-09 Thread Jony Hudson
Ahem. "method" -> "message" Jony On Wednesday, 10 February 2016 00:35:16 UTC, Jony Hudson wrote: > > I'm pretty fuzzy on how nREPL works, so I might be getting it wrong here > ... but I think it processes each method through a `future`. See: > > &g

Re: How do threads work in command-line REPL?

2016-02-09 Thread Jony Hudson
I'm pretty fuzzy on how nREPL works, so I might be getting it wrong here ... but I think it processes each method through a `future`. See: https://github.com/clojure/tools.nrepl/blob/master/src/main/clojure/clojure/tools/nrepl/server.clj#L28 All of the nREPL operations are async, AFAIK, and I th

Re: How to save gorilla plots to file

2016-01-17 Thread Jony Hudson
Nice. In case you're not already familiar with it, this (https://github.com/JonyEpsilon/gg4clj) might be useful as well if you want to be able to make more complex plots. Jony On Saturday, 16 January 2016 18:20:25 UTC, jandot wrote: > > Hi all, > > I have found the gorilla REPL (http://gorilla

Re: How to save gorilla plots to file

2016-01-17 Thread Jony Hudson
It's not very elegant, but if you want a high-quality version you can open the web inspector or equivalent in your browser and copy the SVG node into a text file. You can then render the SVG to PNG using a variety of tools at whatever resolution you need. I very rarely do this (as you can proba

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Jony Hudson
This is probably just a copy and paste problem, rather than the solution to your real problem, but ... the namespace declaration you've got in your OP is missing a couple of closing ). Jony On Sunday, 10 January 2016 07:28:00 UTC, Laws wrote: > > I've been staring at this for awhile, and movin

Re: Practical ways to deal with 'bag-of-properties' syndrome, AKA dynamic typing?

2015-12-01 Thread Jony Hudson
On Monday, 30 November 2015 21:49:09 UTC, Jonathon McKitrick wrote: how to go about finding out exactly what those maps contains without > slogging through source code. > Poke at them in the REPL! I don't think I *ever* write anything that isn't immediately ran and inspected at the REPL. I'd s

[ANN] Gorilla REPL v0.3.5

2015-11-25 Thread Jony Hudson
There's a new release of Gorilla REPL available on Clojars. The biggest change - which should make the lives of students of Clojure a tiny bit better - is that exceptions are now displayed with their stack traces (thanks to cider-nrepl's stacktrace middleware). There are a number of other small

Re: Pareto's Clojure

2015-11-14 Thread Jony Hudson
Hah, I was just sitting down to do exactly the same thing! Very interesting looking down the list ... clearly other people write a lot more tests than I do :-o Jony On Saturday, 14 November 2015 21:00:53 UTC, Eric Normand wrote: > > Hi Sayth, > > > You're welcome. You may also be interested i

Re: hawk got no events during file watching

2015-10-28 Thread Jony Hudson
Is it possible it's related to this? : http://feedback.livereload.com/knowledgebase/articles/86239-os-x-fsevents-bug-may-prevent-monitoring-of-certai You could try renaming and renaming back the folder and see if that makes any difference. Jony On Wednesday, 28 October 2015 16:05:37 UTC, Jiy

Re: State Change Listener in Clojure on a Database

2015-10-21 Thread Jony Hudson
Postgres has LISTEN/NOTIFY that you can use for triggering something like this: http://www.postgresql.org/docs/9.4/static/sql-notify.html http://www.postgresql.org/docs/9.4/static/sql-listen.html The Java JDBC drivers support listening, although you have to do it by polling: https://jdbc.postg

Re: Library suggestions requested for clojure-toolbox.com

2015-10-05 Thread Jony Hudson
Not exactly a library, but Gorilla REPL could fit in there. http://gorilla-repl.org . Maybe in the REPL category, although it's not really quite that. Probably a bit much to have its own 'notebook' category though! Jony On Monday, 5 October 2015 20:41:11 UTC+1, James Reeves wrote: > > If you

Re: Oxford (UK) Clojure Group

2015-09-16 Thread Jony Hudson
You might ping Frank Wood who runs a research group in the engineering department at Oxford. I know they use Clojure heavily for their Anglican probabilistic programming system. http://www.robots.ox.ac.uk/~fwood/ Jony On Tuesday, 15 September 2015 22:04:49 UTC+1, Kévin Etienne wrote: > > Hi,

Re: feedback about solutions

2015-09-01 Thread Jony Hudson
You might find kibit interesting too: https://github.com/jonase/kibit In its own words "kibit is a static code analyzer for Clojure, ClojureScript, cljx and other Clojure variants. It uses core.logic to search for patter

Re: Is any place to share articles about Clojure?

2015-08-24 Thread Jony Hudson
The Clojure reddit often has interesting articles linked, so you could post it there as well, perhaps: https://www.reddit.com/r/Clojure/ Jony On Monday, 24 August 2015 13:19:28 UTC+1, Krzysztof Władyka wrote: > > Hello, > > From time to time i am writing article on http://clojure.wladyka.eu/,

[ANN] darwin and algebolic - genetic algorithms, and evolving mathematics

2015-05-15 Thread Jony Hudson
Hi All, it's my pleasure to share with you two libraries: darwin and algebolic. Algebolic is a library for evolving mathematical expressions. You can use it to perform what's known as symbolic regression, where a symbolic mathematical expression is found that fits a given dataset. More general

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-15 Thread Jony Hudson
@puzzler -server is the default mostly, but Leiningen overrides some of the important options that -server enables, as detailed by Alex. @Lee the first 15 minutes of this talk by Tom Crayford has some useful info about performance and JVM options in it: https://skillsmatter.com/skillscasts/6148

Re: flip in clojure

2015-04-30 Thread Jony Hudson
Another option is to use `as->` https://clojuredocs.org/clojure.core/as-%3E . It's more verbose ... I kind of like that aspect of it, but it may not be to everyone's taste. Jony On Friday, 1 May 2015 00:31:05 UTC+1, Vagmi Mudumbai wrote: > > Hi, > > I was introducing one of my colleagues to c

Re: Lein repl and Cider repl

2015-04-05 Thread Jony Hudson
Relevant bit of code here: https://github.com/trptcolin/reply/blob/69c4c6ffe0c8903a193c1e127337832e225335b0/src/clj/reply/initialization.clj#L179 Jony On Sunday, 5 April 2015 09:47:04 UTC+1, Bozhidar Batsov wrote: > > Maybe reply interns `clojure.repl/doc` in every namespace. I can tell you >

Re: clojure, not the go to for data science

2015-04-02 Thread Jony Hudson
I think the credit here has to go to RStudio for doing such a good job of making an easy to install complete development environment. I'd say just comparing base Clojure to base R, it's a wash. Install java and either download the Clojure jar, or the leiningen script, and you're good to go. Sim

Re: clojure, not the go to for data science

2015-04-02 Thread Jony Hudson
On Monday, 30 March 2015 14:46:53 UTC+1, Christian Weilbach wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I have started working on R integration with the help of rinancanter > (1) and it was nice to have dedicated R code cells with at least > syntax highlighting that I can mix

Re: [ANN] leaflet-gorilla 0.1.2 released with GeoJSON support

2015-04-02 Thread Jony Hudson
This is lovely. Am now inspired to get around to learning PostGIS over the easter break! Jony On Wednesday, 1 April 2015 23:19:31 UTC+1, John Wiseman wrote: > > I've add GeoJSON support to leaflet-gorilla, which makes it easy to use > with PostGIS. > > Example worksheet online (the PostGIS exa

Re: clojure, not the go to for data science

2015-03-30 Thread Jony Hudson
I propose, instead of this discussion, everyone channels their energy into writing an open-source data-science library, or blog post/article promoting Clojure for data science. In their favourite editor, of course! Jony On Sunday, 29 March 2015 10:55:34 UTC+1, Sayth Renshaw wrote: > > Hi > >

Re: clojure, not the go to for data science

2015-03-29 Thread Jony Hudson
First, let me shamelessly plug Gorilla REPL http://gorilla-repl.org . It's a notebook type REPL, which I think works well as an environment for the sort exploratory programming of that's common when analysing data. We use it for science-involving-data every day in our research group, and I think

Re: Adding directory to classpath in leiningen

2015-03-12 Thread Jony Hudson
Putting them in the working directory does not add them to the classpath. Leiningen used to have an 'escape hatch' to allow local libraries to be added to the classpath, but that was removed. The right way to do it now is to make the artefacts you want on the classpath available to Maven. The e

Re: Name of a function

2015-02-14 Thread Jony Hudson
if I enter in the REPL: > (round :dummy 12.4) > I only get: > Exception ERROR: round [:high|:low|:normal] user/round > (repl-startup.clj:30)​ > > > ​So it is very useful to have it in the message. ;-) > > > On Saturday, 14 February 2015 18:45:12 UTC, Cecil Westerhof wro

Re: Name of a function

2015-02-14 Thread Jony Hudson
5-02-14 18:58 GMT+01:00 Jony Hudson >: > >> There might be a neater way, but >> >> (name (:name (meta (var reduce >> >> => "reduce" >> > > ​That is not what I meant. I have the following function: > (defn roun

Re: Name of a function

2015-02-14 Thread Jony Hudson
There might be a neater way, but (name (:name (meta (var reduce => "reduce" Jony On Saturday, 14 February 2015 16:11:48 UTC, Cecil Westerhof wrote: > > In Bash I use the following construct: > printf "${FUNCNAME} needs an expression\n" > > In this way I do not have to change the print

Re: OO Programmer trying to move to Clojure: Encapsulation

2015-02-08 Thread Jony Hudson
To put take a different angle on it: you might soon get to *like* that it's usual to pass in everything as a parameter explicitly. It has the advantage that it's easy to reason about what a function does just by looking at the function. In the example above, when reading AccountRepository.Save y

Re: [ANN] Introducing semantic-csv, a tool for higher-level CSV parsing/processing functionality

2015-02-06 Thread Jony Hudson
This is great - just what I need! Jony On Tuesday, 27 January 2015 09:24:21 UTC, Christopher Small wrote: > > Hi everyone > > I’m pleased to announce the release of semantic-csv > , a humble library for > working with CSV data. > > Existing Clojure

Re: alternatives to component (like) systems

2015-01-28 Thread Jony Hudson
You don't need a global reference that lives in your code to be able to interact with the scheduler at the REPL. I'd do it by breaking stuff into more bits - it looks convoluted for this simple example, but hopefully the idea makes sense: (defn make-scheduler [] (qs/initialize)) (defn start-sc

Re: remote nrepl/gorilla + port forwarding

2015-01-15 Thread Jony Hudson
Hi Sam, I think `lein gorilla :ip 0.0.0.0 :port 5` should work (it works on my machine). And if your router is forwarding 5 to that machine correctly then it should be accessible from outside. `lein gorilla :ip ROUTER_IP :port 5` shouldn't work because ROUTER_IP isn't an IP address

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Jony Hudson
I have a set of micro-benchmarks on a project that is compute-heavy (symbolic regression, genetic programming). I see no performance regressions :-) 1.6.0 http://viewer.gorilla-repl.org/view.html?source=gist&id=3e943292b03755681e50&filename=expression-1.6.0.clj 1.7.0-alpha5 http://viewer.gorill

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread Jony Hudson
I can't claim to know anything about it, but I did read this a while back which was interesting: https://blogs.oracle.com/nashorn/entry/nashorn_performance_work_in_the Jony On Saturday, 3 January 2015 14:02:29 UTC, Max Gonzih wrote: > > Any idea why Nashorn is slower? Is it related to type che

Re: [ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-30 Thread Jony Hudson
m trying to figure out how to get core.matrix to load much faster - I > think it's actually some kind of Clojure issue with protocols but I'm not > *exactly* sure what is causing > > On Tuesday, 30 December 2014 05:13:24 UTC+8, Jony Hudson wrote: >> >> @Mike Thinking

Re: [ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-29 Thread Jony Hudson
@Mike Thinking out loud here ... one option would be to put the core.matrix dependent stuff in gg4clj in a separate ns, like gg4clj.datasets or similar. This would then avoid the loading time for users just wanting to use gg4clj.core. I'm not sure I think this as good a solution, ultimately, as

Re: [ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-29 Thread Jony Hudson
> depend on the API in clojure.core.matrix (which are mostly just simple > functions that delegate to the right protocols) > > On Sunday, 28 December 2014 23:42:18 UTC+8, Jony Hudson wrote: >> >> @Chris Thanks, hope it's useful for you. I might have a play with ggvi

Re: [ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-28 Thread Jony Hudson
use it. Do you think it would work to just have gg4clj depend on the 'protocols' ns in core.matrix? Would be very happy to take a PR if you've got time to look at it :-) Jony On Friday, 26 December 2014 15:36:42 UTC, Jony Hudson wrote: > > Hi all, > > from the README

Re: [ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-26 Thread Jony Hudson
nders it output in vega. So it should ouput render also nicely in gorrila > (I guess) > http://ggvis.rstudio.com/ > > Greetz > > Op vrijdag 26 december 2014 16:36:42 UTC+1 schreef Jony Hudson: >> >> Hi all, >> >> from the README: >> >> gg4clj is

Re: Charting Data Format Feedback Requested

2014-12-26 Thread Jony Hudson
So, something of a tangent, I tried this, which works better than I thought: https://groups.google.com/d/msg/clojure/Mcq3CwSa8lY/93lPjeeDBxMJ At the moment its dataset support it just the most minimal Clojure-map-of-columns. It would be interesting to think about supporting other dataset format

[ANN] gg4clj 0.1.0 - ggplot2 in Clojure and Gorilla REPL

2014-12-26 Thread Jony Hudson
Hi all, from the README: gg4clj is a lightweight wrapper to make it easy to use R's ggplot2 library > from Clojure. It provides a straightforward way to express R code in > Clojure, including easy mapping between Clojure data and R's data.frame, > and some plumbing to send this code to R and

Re: parsing and chunking large xyz files

2014-12-26 Thread Jony Hudson
I think clojure.csv reads CSV files lazily, line-by-line, so might be useful to take a look at: https://github.com/clojure/data.csv Jony On Friday, 26 December 2014 14:49:59 UTC, cej38 wrote: > > In molecular dynamics a popular format for writing out the positions of > the atoms in a system i

[ANN] Gorilla REPL 0.3.4

2014-12-17 Thread Jony Hudson
Hi all, I'm happy to let you know about a new release of Gorilla REPL. No real big features in this release, but a number of small changes. From the changelog (not the changeling as my computer keeps correcting it to): ## Version 0.3.4 - Keeping up with the Batsovs. Support CIDER version 0.8.

Re: Charting Data Format Feedback Requested

2014-12-14 Thread Jony Hudson
of course). > > From the responses thus far, it appears that ggplot is the gold > standard for composable, customizable charts. Once we get the > dataframe format right, I'll invest some time into learning what I can > from it. We certainly want any implementation to be as d

Re: Charting Data Format Feedback Requested

2014-12-13 Thread Jony Hudson
P.s. another compelling argument for a Clojure based ggplot alike emitting SVG would be - assuming it was done so that it could be compiled with ClojureScript - it would be a great addition to client-side plotting, especially if it was wrapped to give a clean JS API as well. -- You received th

Re: Charting Data Format Feedback Requested

2014-12-13 Thread Jony Hudson
I think it would be great, and a very useful contribution to the Clojure world, to have a flexible plotting library. My perspective, at risk of going a bit off-topic, and from the biased position of a Gorilla REPL author ... When I think about the sort of programming I do as a scientist - d

Re: Newbie's confusion

2014-12-05 Thread Jony Hudson
I made a couple of videos that might have some useful information in them. The first one covers setting up Cursive and Intellij, which it sounds like you've already done: https://vimeo.com/103808402 The second looks a little at what sort of workflow you might use. It doesn't go very far, but i

Re: Need advice on algorithm performance

2014-12-03 Thread Jony Hudson
If I understand right, I think you might be able to use the existing replace functions in clojure.walk. I find that this is about twice as fast: (time (dotimes [_ 10] (walk/postwalk-replace {"exp_1" 100 "exp_2" 20 "exp_3" 5} [:DIV [:ADD [:ID "P1" "exp_1"] [:ID "P2" "exp_2"] "

Re: CCW bug [SEVERE]

2014-10-26 Thread Jony Hudson
You should demand your money back. Oh, wait ... Jony On Sunday, 26 October 2014 02:38:11 UTC, Fluid Dynamics wrote: > > Would somebody mind explaining to me why I just had CCW 0.28.1.STABLE001 > hang with 100% CPU usage when I edited this line: > > := (= v cr > > to t

Re: Demoralising experience trying to install on Win 7

2014-10-25 Thread Jony Hudson
I recently installed leiningen on some Windows machines, with success, although there was a little bit of fiddling. I used the .bat approach. Did you manage to note the error message that the .bat generated when it crashed? That would be the first step (i.e. run it from a command prompt window

Re: [ANN] Arcadia, the integration of Clojure and Unity3D

2014-10-24 Thread Jony Hudson
On Friday, 24 October 2014 16:20:41 UTC+1, Fluid Dynamics wrote: > > > Really? .NET running on iOS? That'll be the day. :) > http://xamarin.com/faq#q5 :-) Jony -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Adding up numbers, quickly

2014-10-17 Thread Jony Hudson
Thanks all again for the advice. For the record, I ended up writing the loop in Java - being constrained on the type of the data (it ultimately comes from Java code), and not wanting to pay the (newly reduced!) price of converting to vectorz for just this operation, this seemed like the best wa

Re: Adding up numbers, quickly

2014-10-16 Thread Jony Hudson
Thanks @Mikera. I had a look at using core.matrix, but what I couldn't figure out is how to quickly get the data into core.matrix form. For instance, if I take my PersistentList of Doubles from the example then getting it into a vectors array takes: (criterium/quick-bench (array :vectorz a)) E

Re: Adding up numbers, quickly

2014-10-15 Thread Jony Hudson
Thanks, that's really useful! Jony On Wednesday, 15 October 2014 20:53:40 UTC+1, Jony Hudson wrote: > > Hi all, > > another performance question ... this time about arithmetic on vectors > :-) Let's say I have two vectors of numbers (speci

Adding up numbers, quickly

2014-10-15 Thread Jony Hudson
Hi all, another performance question ... this time about arithmetic on vectors :-) Let's say I have two vectors of numbers (specifically, things with type clojure.lang.PersistentVector, containing things of type java.lang.Double). And let's say I want to sum the differences [1] between corresp

Re: Keyword comparison performance

2014-10-11 Thread Jony Hudson
Thanks all, that makes a lot of sense. To summarise, if I understand correctly, (on the JVM) comparing with = : - first checks if the objects are one and the same, returns true if so - if not, checks whether they are numbers or persistent collections, which have special-case checks - if neither o

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-10 Thread Jony Hudson
If this is the unofficial survey post of academics using Clojure then I'd better add myself to the list :-) @Bruce do you know what course they're going to be teaching Clojure on at Birkbeck? Jony On Friday, 10 October 2014 08:08:28 UTC+1, Bruce Durling wrote: > > I also know that Birkbeck C

Keyword comparison performance

2014-10-10 Thread Jony Hudson
Hi All, I've been optimising a piece of code lately, and have come to wonder about the performance of keyword comparison. Specifically, I'm not sure whether the performance I'm seeing is what is expected. The data structures page on clojure.org [1] indicates that keywords "provide very fast eq

Re: count occurrences of a char in a string or a collection

2014-10-03 Thread Jony Hudson
frequencies : http://clojuredocs.org/clojure.core/frequencies Jony On Friday, 3 October 2014 15:22:49 UTC+1, empt...@gmail.com wrote: > > Hi, > > Is there a higher-order function(s) that count occurrences of characters > in either a string or a collection? > > Thanks > > Paul > -- You receiv

Re: [PSA] Clojars scp disabled until further notice

2014-09-26 Thread Jony Hudson
FWIW, I followed the "lein deploy clojars" instructions (around March this year) and it did work for me. I recall being a bit confused by the GPG stuff, but following the notes on the wiki did do the trick. Jony On Friday, 26 September 2014 04:21:41 UTC+1, Phil Hagelberg wrote: > > Carlos Font

Re: Feeding a list of clauses to core.match/match

2014-09-23 Thread Jony Hudson
wing board ... Jony On Tuesday, 23 September 2014 15:49:45 UTC+1, Jony Hudson wrote: > > OK, this is probably simple, but I can't seem to figure it out. Maybe > someone who understands macros better than me can help :-) > > I'd like to be able to write something like t

Feeding a list of clauses to core.match/match

2014-09-23 Thread Jony Hudson
OK, this is probably simple, but I can't seem to figure it out. Maybe someone who understands macros better than me can help :-) I'd like to be able to write something like the following: (def some-clauses '[[false _] :f [true _] :t]) (match-clauses [[false 3]] some-clauses) but I can't

Re: Productivity tip for code transformations with cider

2014-09-14 Thread Jony Hudson
Why did I never think of using that! Nice :-) Jony On Sunday, 14 September 2014 08:35:16 UTC+1, Stathis Sideris wrote: > > Hello all, > > There is some functionality in cider (C-c C-w) that can potentially save > you a lot of typing when transforming Clojure code and I haven't seen many > peop

Re: Designing API for a Markov Model

2014-09-14 Thread Jony Hudson
It's nice if the function returns the same sort of data as it consumes, because then it's easy to repeat it with `iterate` or `reduce`. So, if you take your first example, then you could write: (take 100 (iterate (partial progress-state markov-model) initial-state)) to get the next 100 states

Re: Interop nightmare

2014-09-08 Thread Jony Hudson
This worked for me: http://viewer.gorilla-repl.org/view.html?source=gist&id=5baef8ac0f42706e4940&filename=parser.clj I had to download the parser distribution from the Stanford NLP site and copy the stanford-parser-3.4.1-models.jar file into the root of my Leiningen project, as I couldn't find

Re: Interop nightmare

2014-09-08 Thread Jony Hudson
Not the answer, but might have some useful clues in ... here's a snippet to make a tagger from the Stanford library: (ns processor.tagger (:require [clojure.data.xml :as xml] [clojure.string :as string]) (:import (edu.stanford.nlp.tagger.maxent TaggerConfig MaxentTagger))) ;; Co

Re: How to use Java library from sources

2014-09-02 Thread Jony Hudson
I think if you're going to distribute a Leiningen plugin then you'll either need to publish pecoff4j to maven/clojars, or include the source in your build. Jony On Tuesday, 2 September 2014 16:07:32 UTC+1, Wilker wrote: > > Hello, > > I'm trying to use this Java library on my project: > http

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-02 Thread Jony Hudson
On Tuesday, 2 September 2014 01:36:49 UTC+1, Beau Fabry wrote: > Just a little bit of showing off of the previous post :-) > http://i.imgur.com/zpfP9Ja.png > Nice! Would love to hear more about how you use it. I've only tinkered with Hadoop locally, so I'm very fuzzy on the concepts - you need

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-01 Thread Jony Hudson
Ahh, nice, yes that's a simple way to do it if you can manage to add the code somewhere. Regarding the dependencies - Leiningen adds both of the dependencies you list. I did declare them explicitly at one point, but I recall having some odd error, so I decided to take them back out rather than

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-01 Thread Jony Hudson
Beau, Lee - thanks for the kind words - glad you're enjoying it! Stu - I've no experience of running Clojure under either maven or gradle, but my guess is that it won't work out-of-the-box yet. Currently, Gorilla launches by using Leiningen to run its own server process in the classpath of the

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-01 Thread Jony Hudson
On Monday, 1 September 2014 13:16:36 UTC+1, Bozhidar Batsov wrote: > Thanks! :-) You might also find the var-info middleware quite useful - > cider and fireplace use it for code navigation and enhanced documentation > (eldoc and a replacement for (doc something) that works for both > Clojure(

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-01 Thread Jony Hudson
Ohh, and there are some new docs on how to use Gorilla alongside your favourite editor/IDE: http://gorilla-repl.org/editors.html Jony -- 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 Not

[ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-01 Thread Jony Hudson
Hi all, there's a new version of Gorilla REPL out :-) The headline feature is that the autocomplete UI now shows the docs for the function you're typing/lets you browse the docs. It's really handy! Autocomplete itself is also much improved, courtesy of the compliment library. This version als

[videos] Getting started with Clojure, IntelliJ, Cursive and Gorilla REPL

2014-08-19 Thread Jony Hudson
Thought I'd share the links to a couple of videos I made for my students on how to set up a nice development environment for Clojure with IntelliJ, Cursive and Gorilla. Part 1 on setting up software: https://vimeo.com/103808402 Part 2 on basic workflow:https://vimeo.com/103812557 Probably no

[ANN] Gorilla REPL 0.3.2 - Important security fix

2014-08-12 Thread Jony Hudson
Hi All, there's a new version of Gorilla REPL, version 0.3.2, available on clojars that contains an important security fix. I would recommend upgrading immediately, if possible. Many thanks to @silasdavis for initially reporting this issue, and for @foogoof for highlighting that it was more i

Re: [ANN] Gorilla REPL 0.3.1

2014-07-27 Thread Jony Hudson
The save interface should still work as before, as in it will save to any path (that exists) relative to the project directory. So typing "ws/test.clj" will save the worksheet in the ws directory, assuming it exists. I'll have a bit think on how I can make the UI for the new load/save behaviour

Re: [ANN] Gorilla REPL 0.3.1

2014-07-25 Thread Jony Hudson
Hi Paul, glad you're finding it useful! As for the problem: I think it's a good example of why I should stick to science and not dabble in UI design :-) The idea is that the text-box simply filters the list of options below it - it doesn't allow you to type in an arbitrary path. I'm guessing

Re: Is Korma still a good current choice for DB backend?

2014-07-24 Thread Jony Hudson
Pressed send to eagerly! Relevant code: https://github.com/krisajenkins/yesql/blob/master/src/yesql/types.clj Jony On Thursday, 24 July 2014 12:58:27 UTC+1, Jony Hudson wrote: > > > It passes the queries through clojure.java.jdbc, so provides the same > level of protection as tha

Re: Is Korma still a good current choice for DB backend?

2014-07-24 Thread Jony Hudson
It passes the queries through clojure.java.jdbc, so provides the same level of protection as that, as far as I am aware. Jony On Thursday, 24 July 2014 12:08:52 UTC+1, Paul Butcher wrote: > > I wasn’t aware of yesql - thanks for the pointer. > > My concern with “write your queries in pure SQL

[ANN] Gorilla REPL 0.3.1

2014-07-23 Thread Jony Hudson
Hi All, it's my pleasure to announce a new version of Gorilla REPL, v0.3.1. The focus of this release has been usability and taking off some of the rough edges. This version is now much friendlier to those: who like to use the mouse; who have short screens; who hate multi-press keyboard shortc

Re: Moving average from Java to Clojure

2014-07-20 Thread Jony Hudson
On Sunday, 20 July 2014 12:48:19 UTC+1, Cecil Westerhof wrote: > or is there a better way? > Probably not the answer you're looking for, but the exponentially-weighted moving average doesn't require any state other than the current value: (defn ewma [alpha] (fn [avg new] (+ (* (- 1 alpha) avg)

Re: futures and atoms and bears, oh my!

2014-07-15 Thread Jony Hudson
I think that's what you'd expect. This will also evaluate just fine: (defn foo [x y] (bar x y)) but will fail at run-time too. Jony On Tuesday, 15 July 2014 13:07:43 UTC+1, edw...@kenworthy.info wrote: > > Creating a new project in Lein then opening it in Light Table and with > minimal ed

Re: Protocol equivalent of Python's `repr`?

2014-07-13 Thread Jony Hudson
You might also enjoy looking at Gorilla REPL [1], which has an easily extensible renderer [2] for just this sort of thing. Disclosure: I'm one of its authors! Jony [1] http://gorilla-repl.org [2] http://vimeo.com/89532785 On Sunday, 13 July 2014 18:51:40 UTC+1, Sam Raker wrote: > > I'm workin

Re: When to prefer keywords as functions?

2014-07-03 Thread Jony Hudson
One thing to note is that while it's true "keywords can be used as functions" they can only really do one thing, which is get values from maps. That is to say, the keyword-function :foo is equivalent to the function #(get % foo). The function :foo has no relationship with the function foo, if i

Re: What's clojure killer app? I don't see any.

2014-06-03 Thread Jony Hudson
On Monday, 2 June 2014 18:42:32 UTC+1, douglas smith wrote: > A killer app for me and I think MANY others like me would be something > very similar to a Kovas' 'Session' 'pretty like Light Table' and beefy > like IPythons Notebooks. > Hope you'll excuse a shameless plug, but have you seen

Re: citing Clojure and EDN?

2014-05-16 Thread Jony Hudson
On Thursday, 15 May 2014 14:58:50 UTC+1, Phillip Lord wrote: > > > Again, based on the dubious ID that an DOI "makes things citable". > > A URL is already citable! > Well, there's no shortage of broken links out there to suggest that people have trouble keeping content associated with stable

Re: Tools.nrepl middleware-dependency sorting issues

2014-05-05 Thread Jony Hudson
I'm not sure it's relevant, but one thing that caught me out is that the "interruptible-eval" middleware has a hard dependency on the "pr-values" middleware (i.e. it depends on #'clojure.tools.nrepl.middleware.pr-values/pr-values). I found this caused trouble when I was trying to insert my own

Re: Proposing a new Clojure documentation system (in Clojure)

2014-04-30 Thread Jony Hudson
On Wednesday, 30 April 2014 19:03:24 UTC+1, Gregg Reynolds wrote: > > The one thing that I think would be genuinely useful and developer > friendly with respect to Clojure is a means of making type signatures > explicit. Clojure may be dynamically typed, but everything has an intended > type,

Re: lein uberjar much faster as lein run

2014-04-22 Thread Jony Hudson
I recall reading that `lein run` uses JVM options optimised for startup time, not performance - as it's intended for use in development, not production. I can't seem to find where I read that though ... Jony -- You received this message because you are subscribed to the Google Groups "Clojure

Re: browser lisp editor

2014-04-22 Thread Jony Hudson
Codemirror is good too for this. http://codemirror.net Jony On Tuesday, 22 April 2014 05:30:23 UTC+1, Brian Craft wrote: > > Slightly off topic. > > Anyone know of a simple browser-based lisp editor that can be embedded in > a page? Indenting & matching parens would be sufficient. I don't nee

Re: [ANN] Gorilla REPL 0.2.0 - all new extensible renderer

2014-04-16 Thread Jony Hudson
On Wednesday, 16 April 2014 06:26:33 UTC+1, Andrew Chambers wrote: > Is there a way to rerun the whole notebook top to bottom with a hotkey? > Coming soon :-) https://github.com/JonyEpsilon/gorilla-repl/issues/93 Jony -- You received this message because you are subscribed to the Google Gro

Re: [ANN] Gorilla REPL 0.2.0 - all new extensible renderer

2014-04-15 Thread Jony Hudson
Thanks for the kind words chaps - glad you like it! @Steve Are you sure your Leiningen is up to date? I've only seen this problem when accidentally trying to run Gorilla with Lein 1.7 (as Debian seems to have that version as its default install). @Andrew Probably not what you're looking for, bu

Re: Online Gorilla REPL worksheet viewer

2014-04-07 Thread Jony Hudson
Hi Paul, the viewer code is pretty much all in the main project, as it shares much of its code with the editor. You can run your own instance of the viewer just by serving up the (static) files in the 'resources/public' directory of the gorilla-repl jar - no server side code is needed - and vi

Re: Leiningen: referring to another project on local disc

2014-04-06 Thread Jony Hudson
Or, you could make a directory called 'checkouts' inside the poker project directory, and put a symlink in there to the testgen project directory. Lein will look in the checkouts directory before it looks to any repository. See here: https://github.com/technomancy/leiningen/blob/master/doc/TUT

Online Gorilla REPL worksheet viewer

2014-04-04 Thread Jony Hudson
Hi folks, I've got a very simple online viewer for Gorilla REPL worksheets going here: http://gorilla-repl.org/viewer.html It's free, with no registration or other burdensome business. You use it by uploading your worksheet to GitHub, either as part of a project, or to a Gist, and then const

Re: Function from a symbolic expression

2014-04-01 Thread Jony Hudson
Thanks all :) @A. Webb: I knew it must be something dopey, thanks for the advice! @Lee That is indeed exactly what I'm trying to do, and that method is much more elegant and straightforward. In fact, precisely what I'm trying to do is write some notes on symbolic regression for some students, w

Function from a symbolic expression

2014-03-31 Thread Jony Hudson
Hi all, I've gotten myself stuck with what is probably a simple question, and wonder if someone can advise. What I want to be able to do is to take a symbolic expression, like '(+ 1 x) say, and turn it in to a function programmatically, so that I can call something like: (def ex '(+ 1 x)) (de

Re: [ANN] Session 0.1.3 - A live-coding environment for Clojure

2014-03-25 Thread Jony Hudson
ations being stored as database transactions is what's really exciting about Session. I've deliberately aimed with Gorilla to break no new ground, and keep stuff simple (in the Jony Hudson sense of simplicity, meaning simple enough that Jony Hudson can implement a working version in

[ANN] Gorilla REPL 0.2.0 - all new extensible renderer

2014-03-19 Thread Jony Hudson
Hi all, I'm happy to announce a new release of Gorilla REPL. The number one comment I got from people on the original release was that it looked good, but they'd like to see it extended to some library or other. Jeff Rose hit the nail on the head with: "Being able to render values of differen

  1   2   >