Re: Why we cannot do this now?

2016-06-20 Thread John Wiseman
I just wanted to raise my hand as a developer who rarely uses a long-lived REPL and is glad that startup time is a priority. (I've been doing Lisp for decades and have done lots of the long-lived REPL style of development, so I know the tradeoffs involved.) John On Mon, Jun 20, 2016 at 1:51 PM,

ANN: turboshrimp 2.0.2, for control of Parrot AR.Drone

2016-04-17 Thread John Wiseman
I've released a new version of turboshrimp, my library to control the Parrot AR.Drone. https://github.com/wiseman/turboshrimp Version 2.0.2 includes the following: - A more consistent API. E.g., instead of (drone/command drone :animate :flip-left) to make the drone do a flip in mid-air, yo

Re: ANN Langohr 3.4.2 is released

2015-12-20 Thread John Wiseman
(Michael, thanks for putting an excellent summary of what each of your libraries is and does as the first sentence of your announcements. I see a lot of messages posted to this mailing list announcing a new version of tardiquox or turboshrimp or pluus that forget to mention what it actually is.)

Re: [ANN] Gorilla REPL v0.3.5

2015-11-25 Thread John Wiseman
> * Update to support CIDER-nrepl version 0.9.1. This is the part I'm most excited about :) Thanks, Jony! On Wed, Nov 25, 2015 at 10:43 AM, Fergal Byrne wrote: > Great to hear Jony. You wouldn't believe the diversity of projects using > this for exposition and explanation, and the stack trace

ANN: clj-pronouncing

2015-06-25 Thread John Wiseman
I ported Allison Parrish's Pronouncing python library, an interface to the CMU Pronouncing Dictionary, to clojure: https://github.com/wiseman/clj-pronouncing You can use it to count syllables, find rhymes, etc.: user> (require '[com.lemonodor.pronouncing :as pro]) user> (->> "literally"

Re: Using :refer 'sparingly'

2015-05-17 Thread John Wiseman
There's a close parallel in Python, where the same issue comes up of typically using several modules or packages in a source file and the language offers a way to import the functions and classes of those modules in such a way that they can be used without any syntactic marker of their origin. For

Re: Generating .clj files with content

2015-04-08 Thread John Wiseman
Since I'm not sure what your purpose is, I'll also mention yasnippet for emacs, which is a general-purpose template system for generating pieces of text, but there are sets of clojure templates like https://github.com/swannodette/clojure-snippets Basically you create a file in the right place that

Re: [ANN] Contrail: interactive tracing

2015-04-06 Thread John Wiseman
That looks interesting, thanks. I've been missing the convenience of the ACL- and SBCL-style function tracing--mostly the ability to redefine functions without having to re-trace them. On Mon, Apr 6, 2015 at 9:56 AM, Eli Naeher wrote: > https://github.com/enaeher/contrail > > Contrail is a too

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

2015-04-02 Thread John Wiseman
t; > 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 example is at the bottom): >> http://viewer.g

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-12 Thread John Wiseman
deciding on a maximum size and storing them qua ngrams--it > seems limiting. On the other hand, after a certain size, they stop being > ngrams and start being something else--"texts," possibly. > > On Tuesday, March 10, 2015 at 1:29:44 PM UTC-4, John Wiseman wrote: >> >&

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-10 Thread John Wiseman
hink the Google n-gram corpus <https://catalog.ldc.upenn.edu/LDC2006T13> uses the same format.) John On Mon, Mar 9, 2015 at 7:09 PM, Sam Raker wrote: > That's interesting. I've been really reluctant to "hard code" n-grams, but > it's probably the best way to go. &g

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-09 Thread John Wiseman
One thing you can do is index 1, 2, 3...n-grams and use a simple & fast key-value store (like leveldb etc.) e.g., you could have entries like "aunt rhodie" -> song-9, song-44 "woman" -> song-12, song-65, song-96 That's basically how I made the Metafilter N-gram Viewer

Re: Architectural doubts

2015-01-31 Thread John Wiseman
One trick I've used to speed up use of gloss is to use a lazy map so I only actually parse a piece of data if I need to. In my particular application this was an easy optimization because I was parsing a tagged data format, and I could do minimal parsing just to determine the tag of the next chunk

Re: [ANN] Amazonica: Clojure client for the entire AWS api

2014-11-20 Thread John Wiseman
I just wanted to say that while amazonica is also my AWS library of choice, and I'm so glad it exists, and "running code wins", I also run into all the same issues that Greg listed. On Thu, Nov 20, 2014 at 12:32 PM, Greg Mitchell wrote: > Thanks for creating this library, Michael. Your solution

Re: Eastwood the Clojure lint tool version 0.2.0

2014-11-18 Thread John Wiseman
Excellent, thank you. The unwieldy default output format was the main thing stopping me from investigating eastwood. On Tue, Nov 18, 2014 at 8:41 AM, Andy Fingerhut wrote: > Eastwood is a Clojure lint tool. It analyzes Clojure (on the JVM) source > code, reporting things that may be errors. >

Re: Programmable drones with Clojure/Java support?

2014-10-13 Thread John Wiseman
Hi, JPH. I'm interested in clojure + drones too. I'll try to describe the relevant parts of the current landscape as I see it. Unless you're writing your own firmware, at the moment most higher level drone programming is done with libraries that communicate with a remote drone, over a comms link

Re: [ANN] Marginalia 0.8.0 and lein-marginalia 0.8.0 released (now supports javascript literals)

2014-09-04 Thread John Wiseman
Two quick questions: 1. Are there change/release notes anywhere? 2. What are some of the "things that have come out recently that will make this library easier to maintain"? On Thu, Sep 4, 2014 at 8:24 AM, Gary Deer wrote: > > Please update your profiles.clj to point to lein-marginalia 0.8.0

Re: What to use for serializing reference types?

2014-08-11 Thread John Wiseman
Interestingly, it looks like early versions of clojure.pprint had *print-circle* to handle printing of cyclic data structures: http://clojuredocs.org/clojure_contrib/clojure.contrib.pprint/*print-circle* Maybe something along the lines of Common Lisp's reference syntax was considered and rejected?

Re: Instaparse - thank you!

2014-06-12 Thread John Wiseman
Yes, instaparse is awesome. (I use it to parse the grammar definitions of my own natural language parser, which is a little funny). On Thu, Jun 12, 2014 at 4:23 PM, Daniel Kersten wrote: > I started playing with Instaparse recently too and its by far the nicest > parsing library I've used (aft

Re: problem creating lein uberjar of my cascalog +clojure project

2014-05-02 Thread John Wiseman
Hi, Sindhu. The problem is in how you've specified the org.apache.hadoop/hadoop-core dependency (I just ran into this myselfvery recently). It shouldn't be in the :dev profile, it should be in the :provided profile. This should work for you: (defproject to

Re: Style question (predicates)

2014-04-17 Thread John Wiseman
In the Common Lisp world it's common for predicates to return a useful value instead of T, when applicable. It seems possible the same principle could apply to clojure. >From CLtL2 : Often a predicate will return nil if it ``fails'' and

Re: threading operators

2014-03-21 Thread John Wiseman
A generalized threading macro, as->, is built into clojure as of 1.5 (I wonder if clojuredocs.org having so much googlejuice while also being so out of date makes this sort of thing harder to find): (as-> "/tmp" x (foo x) (bar 1 2 x) (baz x 3 4) (quux 5 x 6)) On Fri, Mar

Re: Good quick reference screencasts

2014-03-11 Thread John Wiseman
FYi the videos at pluralinsight.com require you to sign up for a free trial, including giving them billing information. On Mon, Mar 10, 2014 at 11:36 PM, The Dude (Abides) wrote: > Found a good set of screencasts as quick references for functions, > namespaces, collections, destructuring, seque

Re: Is it possible to get Clojure files in Spotlight search?

2014-02-19 Thread John Wiseman
2014 at 11:25 AM, John Wiseman wrote: > I've written a Spotlight plugin that indexes Common Lisp code and lets you > search by function, variable, class, etc.: > https://web.archive.org/web/20101125184356/http://lemonodor.com/archives/001232.html > > The source code for the p

Re: Is it possible to get Clojure files in Spotlight search?

2014-02-19 Thread John Wiseman
I've written a Spotlight plugin that indexes Common Lisp code and lets you search by function, variable, class, etc.: https://web.archive.org/web/20101125184356/http://lemonodor.com/archives/001232.html The source code for the plugin is in the .dmg file linked from that blog post, and it might be

Defining test cases at runtime

2014-02-19 Thread John Wiseman
I think I'd like to be able to define test cases at run-time. For example, I have some data files that define the tests I want to run (tuples of [program input, class name, program output]). I've looked at clojure.test and midje but they only seem to have macro interfaces to their testing engines

Re: range-sum

2014-02-12 Thread John Wiseman
2014 at 3:32 PM, Mars0i wrote: > > > On Wednesday, February 12, 2014 5:14:42 PM UTC-6, Mars0i wrote: > >> On Wednesday, February 12, 2014 2:33:34 PM UTC-6, John Wiseman wrote: >> >>> Is that a potential issue with clojure? >>> >> >> (range 100

Re: range-sum

2014-02-12 Thread John Wiseman
In the olden lisp days, reduce was often preferred to apply because apply could hit limits on the number of arguments that could be passed to a function. Is that a potential issue with clojure? Thanks, John On Wed, Feb 12, 2014 at 12:06 PM, Vincent wrote: > On Wednesday, February 12, 2014 2:

Re: Security implications of code is data/data is code

2014-01-21 Thread John Wiseman
I don't think homoiconicity is the issue, except in a very indirect way. Note that Common Lisp does have a rather annoying, insecure default that did allow the kind of attack you're talking about: *read-eval* defaults to T , which enables the #. reader macro

Re: string/replace regex help

2014-01-16 Thread John Wiseman
(clojure.string/replace myText #"(?s)START.*?END" "==") ;; "a==\nee\nff\nggg\n==\n\n" (?s) specifies multi-line mode, *? is the non-greedy form of *. On Thu, Jan 16, 2014 at 1:02 PM, Kuba Roth wrote: > Hi, > This is more of a regex specific question the clojure,

Re: Who is "doing something worthwhile" in Clojure?

2013-12-19 Thread John Wiseman
Suggestions of endeavors using clojure for something worthwhile itself seems like an entirely worthwhile discussion if people can resist the temptation to debate what worthwhile means and to disagree with other people's concept of worthwhile. For example, here's a recipe for a useful discussion: I

Re: Implementation options for auto-complete and symbol resolution while coding

2013-12-18 Thread John Wiseman
Just for background, Steve Yegge's grok project seems relevant. It is a cross-language static analysis system intended to be useable on a large scale. (And is intended to be open sourced, when it's done.) http://www.youtube.com/watch?v=KTJs-0EInW8 On Wed, Dec 18, 2013 at 8:27 AM, juan.facorro w

Re: [ANN] projars.com

2013-11-29 Thread John Wiseman
On Thu, Nov 28, 2013 at 2:53 AM, Bastien wrote: > > I'm working on a website where people will be able to ask donations > more easily for their FLOSS achievements and future projects, I'd love > to see both directions (more commercial options and more crowdfunded > FLOSS libraries) encouraged at