Re: Migrating nREPL out of Clojure Contrib

2017-07-18 Thread Dan Larkin
for me: > specifically, if I'm going to maintain the project outside of contrib, I > will reboot it as previously described. > > Thanks, > > - Chas > > On 7/18/2017 13:19, Dan Larkin wrote: >> Hi Chas! >> >> This is great news, I'm glad to hear developmen

Re: Migrating nREPL out of Clojure Contrib

2017-07-18 Thread Dan Larkin
Hi Chas! This is great news, I'm glad to hear development will resume. What's the downside to just forking? aka why bother rebooting from scratch? > On Jul 18, 2017, at 05:48, Chas Emerick wrote: > > Hi all, > > I've been approached many, many times over the years (and

Re: a handy little function I haven't seen before

2011-02-02 Thread Dan Larkin
George this is super cool! I can't wait to see this show up in swank-clojure *ahem* Phil. On Feb 2, 2011, at 12:03 PM, George Jahad wrote: show's a very cool function, but has a different purpose, (afaik). It displays the structure of an instance, but not it's contents. get-

Re: agents sending-off to other agents blocks?

2010-06-16 Thread Dan Larkin
Ah thanks for pointing out release-pending-sends, I didn't know about that; it's exactly what I need in my case. On Jun 16, 2010, at 9:52 AM, YD wrote: Yeah, it's intended, just like what Ulrich showed. The same comment appears on the doc of release-pending-sends. In your case, the inner

agents sending-off to other agents blocks?

2010-06-12 Thread Dan Larkin
Hey all, I've cooked up this example code to demonstrate a point: (send-off (agent nil) (fn [_] (send-off (agent nil) (fn [_] (println Hey!))) (Thread/sleep 4000))) ; Hey! isn't printed for 4 seconds (when the outer agent finishes). Which is that actions sent to an agent

Re: agents sending-off to other agents blocks?

2010-06-12 Thread Dan Larkin
. On Sat, Jun 12, 2010 at 9:43 PM, Moritz Ulrich ulrich.mor...@googlemail.com wrote: I'm not sure why it's doing this, but I read about this in the api documentation - It's intended On Sat, Jun 12, 2010 at 9:41 PM, Dan Larkin d...@danlarkin.org wrote: Hey all, I've cooked up this example code

Re: Trait-like behavior with Protocols

2010-02-08 Thread Dan Larkin
On Feb 8, 2010, at 6:13 PM, aria42 wrote: Is it possible to have default implementations associated with functions in a protocol? This is most useful when some protocol functions are defined in terms of other. For instance, (defprotocol Span (start [self]) (stop [self]) (span-length

Re: how 'bout a debug-repl?

2009-12-11 Thread Dan Larkin
On Dec 11, 2009, at 3:04 PM, Sean Devlin wrote: Wouldn't ::quit do the same thing? It wouldn't, because the repl is evaluating in the context of wherever you put the (debug-repl) call, so its namespace won't be dr. What about instead of using keywords for commands, we use functions for

Re: Hiring clojure devs again :)

2009-12-02 Thread Dan Larkin
On Dec 2, 2009, at 5:04 PM, dysinger wrote: We need to hire another two full-time devs (!) to work on a clojure project (distributed backend on clojure). Don't be nervous about that old job - take a risk! Wake up and work in your PJs with interesting code and get paid to code in clojure!

Re: New string utilities library ready

2009-08-19 Thread Dan Larkin
On Aug 19, 2009, at 2:22 PM, Chouser wrote: I use (require '[clojure.contrib.str-utils2 :as str2]) for now and would recommend just 'str' if the lib name changes. Except, of course, since there is already a str function, 'str' would be a bad alias. 'strutils' or 'str-utils' sound fine to

Re: Clojure at JavaOne

2009-05-18 Thread Dan Larkin
On May 18, 2009, at 9:23 AM, Laurent PETIT wrote: 2009/5/18 Mark Volkmann r.mark.volkm...@gmail.com: On Mon, May 18, 2009 at 7:36 AM, Rich Hickey richhic...@gmail.com wrote: I'll be doing two sessions involving Clojure at JavaOne this June. One is a traditional talk (TS-4164), the

Re: error-kit + test-is

2009-05-17 Thread Dan Larkin
Sorry for the necro, but I just started using error-kit and read this thread for the first time today. Both error-kit (errors no longer inherit from *error* AFAICT) and test- is (the report function syntax) have changed since David last posted a working function, so I've updated it work with

Re: alternate syntax

2009-02-23 Thread Dan Larkin
But.. but... macros? code is no longer data? On Feb 23, 2009, at 10:42 AM, Mark Volkmann wrote: I have an idea I'd like to float to see if there are reasons why it's a bad idea. What if Clojure had an alternate surface syntax that was translated into standard Clojure syntax by a kind of

Re: generic functions update

2009-02-21 Thread Dan Larkin
On Feb 21, 2009, at 2:23 PM, mikel wrote: If there's interest in having models and generic functions in contrib, I'll get a contributor agreement to Rich. Aye there is, from me at least. --~--~-~--~~~---~--~~ You received this message because you are

Circular Dependancy Question

2009-02-14 Thread Dan Larkin
So I've got a circular dependency problem. There's a few ways to move functions and (require )s around but the problem remains -- these three files fundamentally depend on one another: parser.clj - lexer parser (using joshua choi's excellent fnparse library) defaulttags.clj - multimethods

Re: Circular Dependancy Question

2009-02-14 Thread Dan Larkin
On Feb 14, 2009, at 2:14 PM, Stephen C. Gilardi wrote: On Feb 14, 2009, at 1:40 PM, Dan Larkin wrote: But as an aside, does this seem to anyone else like a wart on an otherwise great language? Thinking about file layout should not be one of my priorities... the language should

Re: Parsec style library

2009-02-04 Thread Dan Larkin
On Feb 3, 2009, at 9:42 PM, sbkogs wrote: Parsec is a very powerful parsing library for Haskell. I was mainly attracted to Haskell because of this library (ala Pugs project which used Parsec to create a Perl6 parser). I am wondering if there is an ongoing effort to write similar library

Re: somehow (quote foo) came back from the REPL

2009-02-02 Thread Dan Larkin
On Feb 2, 2009, at 8:32 PM, Terrence Brannon wrote: I was fooling around in the REPL and from the looks of the transcript, I typed the very same thing, yet in one case the REPL returned (quote foo) and in the other case it returned foo. Transcript follows: user= \newline \newline

Re: Got a Clojure library?

2009-01-29 Thread Dan Larkin
Name: clojure-json URL: http://github.com/danlarkin/clojure-json/ Author: Dan Larkin Tags: parsing, web, data-interchange License: BSD Dependencies: clojure-contrib (only for running tests) Description: A JSON encoder/decoder for clojure. Supports reading/writing from strings and files, pretty

Re: Alternatives to contains?

2009-01-29 Thread Dan Larkin
On Jan 29, 2009, at 2:55 PM, Cosmin Stejerean wrote: On Thu, Jan 29, 2009 at 1:06 PM, Paul Mooser taron...@gmail.com wrote: I know this has been discussed on the list before to some extent, but does clojure by default have any operations which actually do what contains? sounds like it

Re: Alternatives to contains?

2009-01-29 Thread Dan Larkin
On Jan 29, 2009, at 5:23 PM, Cosmin Stejerean wrote: If in? was to be added how would it behave when given a map as the first argument? I would rather have contains? do the right thing for list/vectors/sets and keep its current behavior for maps. If we do actually need a function like

Re: fit for contribution to clojure.contrib.ns-utils?

2009-01-26 Thread Dan Larkin
On Jan 17, 2009, at 6:29 PM, Stephen C. Gilardi wrote: I think it's interesting experimental code. Please do send in a CA and let's get something like this into ns-utils. I am now listed on http://clojure.org/contributing so feel free to commit resolve* (or something like it).

Re: What's best way to get rid of #File?

2009-01-20 Thread Dan Larkin
On Jan 20, 2009, at 8:42 PM, wubbie wrote: Hi I would just print the files, excluding #File and . what's the best way? user= (filter recently-modified? (file-seq (File. .))) (#File . #File ./.my-hints.clj.swn #File ./my-hints.clj)

fit for contribution to clojure.contrib.ns-utils?

2009-01-17 Thread Dan Larkin
(defn require-resolve [id] (let [sym (symbol id) ns-symbol (symbol (namespace sym)) var-symbol (symbol (name sym))] (require ns-symbol) (ns-resolve (find-ns ns-symbol) var-symbol))) The name is terrible, I know. You can pass a symbol or a string

Re: fit for contribution to clojure.contrib.ns-utils?

2009-01-17 Thread Dan Larkin
On Jan 17, 2009, at 6:29 PM, Stephen C. Gilardi wrote: Hi Dan, That's interesting. I've given it some thought and I've come to see it as a version of resolve that tries harder than the default. Here's an implementation that makes its capabilities purely a superset of those of

Re: [ANN] Ring: A Web application library for Clojure.

2009-01-12 Thread Dan Larkin
I'm incredibly impressed! Have only looked at the code briefly but I read the whole post and I'm really excited for where this is going. On Jan 12, 2009, at 11:45 PM, Mark McGranaghan wrote: Hi All, I'm happy to announce the alpha release of 'Ring', a library inspired by Python's WSGI

python style triple-double-quotes

2008-12-13 Thread Dan Larkin
Fellow clojurecrats, I'm here to ask for python style triple-double-quotes syntax in clojure. For those unfamiliar they're documented here: http://docs.python.org/reference/lexical_analysis.html#strings This is also a nice summary:

Re: clojure.contrib.test-is: first major rewrite

2008-12-08 Thread Dan Larkin
Hey this looks great! On Dec 7, 2008, at 10:51 AM, Stuart Sierra wrote: Hi folks, ... 2. each= and all-true are gone, replaced by the new macro are, which works with any predicate: (are = 2 (+ 1 1) 4 (+ 2 2)) Just one bone to pick, though. The are macro doesn't work so

Re: Surprise effect

2008-12-04 Thread Dan Larkin
For what it's worth SBCL has this same behavior (although I don't like it). On Dec 4, 2008, at 5:45 AM, Konrad Hinsen wrote: On Dec 4, 2008, at 10:50, Meikel Brandmeyer wrote: On 4 Dez., 10:08, Konrad Hinsen [EMAIL PROTECTED] wrote: user= a' 2 user= a a a' is parsed as: a = symbol

Re: newby problems running clojure on Mac OS X

2008-11-10 Thread Dan Larkin
ant and svn are in /usr/bin/ on my leopard install, which means they either came with OS X itself or the OS X development tools. I'd check if you've got them already before installing. On Nov 10, 2008, at 11:15 AM, Justin Henzie wrote: I am using the svn version 1086 and this works fine