Re: project docs

2014-04-18 Thread Gregg Reynolds
On Thu, Apr 17, 2014 at 1:18 PM, Brian Craft craft.br...@gmail.com wrote: Is there a standard workflow, lein plugin, or such, for building/serving a project's README.md, doc/*.md, etc.? During development, I mean, to preview the docs while working on them. There is a google chrome browser

DITA-OT clojurage

2014-04-20 Thread Gregg Reynolds
Hi folks, I've started hacking away at a project to replace Ant by Leiningen in DITA-OT https://github.com/dita-ot/dita-ot. For what it's worth, DITA is an excellent tech documentation solution; when you're ready to move past markdown and wikis to a real tech doc system, DITA is the way to go

appengine-magic leiningen plugin and template

2013-03-28 Thread Gregg Reynolds
. windows. The contraband may be found at https://github.com/greynolds/gaem-template and https://github.com/greynolds/gaem Cheers, Gregg Reynolds -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure

Re: Names and clojure.core

2013-03-28 Thread Gregg Reynolds
On Thursday, March 28, 2013 8:51:15 AM UTC-5, Mark wrote: I'm still just a Clojure hobbyist, but I have a question for folks who are using Clojure professionally or for larger scale projects. Recently, I've been finding that it's difficult to come up with names for variables and functions

Re: appengine-magic leiningen plugin and template

2013-03-29 Thread Gregg Reynolds
On Thursday, March 28, 2013 5:29:54 AM UTC-5, Gregg Reynolds wrote: Hi, People working with appengine--magic might be interested in a template-and-plugin pair I've put together over the past week. This is my first crack at leiningen (and I'm fairly new to Clojure as well), so comments

xslt extension functions in clojure

2013-05-15 Thread Gregg Reynolds
)}: Cannot find a matching 1-argument function named {java:saxon.ext}saxfoo() Xalan: java.lang.NoSuchMethodException: For extension function, could not find method xalan.ext.xalfoo([ExpressionContext,] #NUMBER). Thanks, Gregg Reynolds -- -- You received this message because you are subscribed

defrecord and namespace

2011-06-25 Thread Gregg Reynolds
Hi, I'm trying to use appengine-magic's datastore api, but I can't get defentity to work across files. I can do (ds/defentity Author [^:key name, birthday]) in core.clj, but if I try to use Author in my test core.clj I get Unable to resolve classname: Author. This is using the standard

Re: defrecord and namespace

2011-06-25 Thread Gregg Reynolds
On Sat, Jun 25, 2011 at 12:07 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 25.06.2011 um 18:35 schrieb Gregg Reynolds: This is using the standard clojure-test stuff. I've tried every way I can think of to get Author into the namespace with no luck. Since the defentity statement

Re: defrecord and namespace

2011-06-25 Thread Gregg Reynolds
On Sat, Jun 25, 2011 at 2:11 PM, David Nolen dnolen.li...@gmail.com wrote: On Sat, Jun 25, 2011 at 2:06 PM, Gregg Reynolds d...@mobileink.com wrote: (ns gae-lex.test.dataServiceTests (:use [gae-lex.core]) (:import (gae-lex.core.Author)) ...) (ns gae-lex.test.dataServiceTests (:use

Re: defrecord and namespace

2011-06-25 Thread Gregg Reynolds
On Sat, Jun 25, 2011 at 4:17 PM, Phil Hagelberg p...@hagelb.org wrote: I suspect part of your problem comes from using records where you should be using maps. Records are a relatively advanced feature; I have been using Clojure for two years without ever finding a use for them. Learn to walk

slime and utf-8

2011-06-26 Thread Gregg Reynolds
Hi, This seems to be an emacs problem. I'm trying to read a file with utf-8 text using (slurp foo.txt) in an emacs slime session. It chokes and says: error in process filter: Autoloading failed to define function debug Furthermore if I use utf-8 in the file name, I get: Coding system

Re: slime and utf-8

2011-06-26 Thread Gregg Reynolds
On Sun, Jun 26, 2011 at 6:55 AM, Max Penet zcams...@gmail.com wrote: Hi, Try adding this line to your .emacs: (setq slime-net-coding-system 'utf-8-unix) Perfect! Thanks! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: Please stand firm against Steve Yegge's yes language push

2011-07-01 Thread Gregg Reynolds
On Fri, Jul 1, 2011 at 2:59 PM, James Keats james.w.ke...@gmail.com wrote: ... Whereas when Steve Yegge writes: Who? -- 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

Java interop: casting

2011-06-16 Thread Gregg Reynolds
Hi, I'm trying to make the GAE local testing stuff (http://code.google.com/ appengine/docs/java/tools/localunittesting.html) work with Clojure and running into a cast problem. Specifically, the example shows private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new

Re: Java interop: casting

2011-06-17 Thread Gregg Reynolds
On Thu, Jun 16, 2011 at 6:12 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: Hi Gregg, It appears that LocalServiceTestHelper's constructor takes an array of LocalServiceTestConfig. Try (def bar (LocalServiceTestHelper. (into-array LocalServiceTestConfig [foo]))) Stu Hi Stu, Would

Re: Java interop: casting

2011-06-17 Thread Gregg Reynolds
On Fri, Jun 17, 2011 at 10:17 AM, Mark Rathwell mark.rathw...@gmail.com wrote: In Java, varargs are actually converted to arrays at compile time.  It is really just some syntactic sugar allowing you to use nicer syntax for array arguments, and you can pass the arguments as an array, or as a

clojure-test-mode

2011-06-19 Thread Gregg Reynolds
Hi folks, I somehow managed to get clojure-test-mode working, so I can execute C-c C-, from a test file and see the test results in the slime repl. However, in the mini-buffer I get the following message: error in process filter: Invalid read syntax: # Any idea what that means? It doesn't

Re: Why should I use emacs instead of netbeans?

2011-06-20 Thread Gregg Reynolds
On Sun, Jun 19, 2011 at 8:57 AM, James Keats james.w.ke...@gmail.com wrote: On Jun 18, 4:08 pm, Stefan Kamphausen ska2...@googlemail.com wrote: Hi, these modern IDEs really do a tremendous job at organizing projects and providing additional information at programming time. It's just, their

Re: function creation, partial or #()

2013-08-16 Thread Gregg Reynolds
On Tue, Aug 13, 2013 at 1:50 PM, John D. Hume duelin.mark...@gmail.com wrote: Though in some cases the performance impact could be significant, my concern is readability. My understanding of the concept of partial function application is that it's about supplying some but not all of the

[ANN] migae-examples: Clojure, servlets, Google App Engine

2013-08-27 Thread Gregg Reynolds
Hi list, migae-examples https://github.com/greynolds/migae-examples is a series of examples demonstrating the use of Clojure to implement servlets for both standard servlet containers and Google App Engine. The purpose is not so much to explain how to code as to show what's going on behind the

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

2014-04-30 Thread Gregg Reynolds
On Tue, Apr 29, 2014 at 7:44 PM, Phil Hagelberg p...@hagelb.org wrote: On Saturday, April 26, 2014 9:21:26 PM UTC-7, Mars0i wrote: I like the general idea of the Valentin's proposal, but I don't understand every bit of it. It sounds complicated. Personally, I'd rather see something

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

2014-05-02 Thread Gregg Reynolds
On Thu, May 1, 2014 at 9:49 PM, Sean Corfield s...@corfield.org wrote: On Apr 30, 2014, at 4:08 PM, Val Waeselynck val.vval...@gmail.com wrote: As for what Gregg and Sean objected - that Clojure code is self-sufficient as documenting itself - I have to simply disagree. That is NOT what I

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

2014-05-02 Thread Gregg Reynolds
On Fri, May 2, 2014 at 4:00 AM, Val Waeselynck val.vval...@gmail.comwrote: That is NOT what I said. Please go back and read my response more carefully. Apologies, guess I disagree only with Gregg on that point then. I guess this illustrates a point that is usually overlooked: no matter

Code Genres

2014-05-03 Thread Gregg Reynolds
The recent threads on documentation lit a small fire under my butt so I started a Code Genres https://github.com/mobileink/codegenres repo. For the moment it is there mainly for the wiki, which I offer as a place for any interested parties to contribute ideas, requirements, etc. I've posted a

Re: Functional programming and security

2014-05-05 Thread Gregg Reynolds
On Mon, May 5, 2014 at 5:05 AM, Magnus Therning mag...@therning.org wrote: On Mon, May 5, 2014 at 10:09 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2014-05-04 23:40 GMT+02:00 Magnus Therning mag...@therning.org: On Sun, May 04, 2014 at 09:24:08AM +0200, Cecil Westerhof wrote: I

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

2014-05-05 Thread Gregg Reynolds
On Mon, May 5, 2014 at 9:32 AM, Mars0i marsh...@logical.net wrote: ... the end, there are no fixed rules. Just figure out what your readers or students need, however you do it. That's exactly what good documentation involves: Figuring out what other programmers will need when they read your

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

2014-05-06 Thread Gregg Reynolds
On Tue, May 6, 2014 at 4:53 AM, Phillip Lord phillip.l...@newcastle.ac.ukwrote: Gregg Reynolds d...@mobileink.com writes: That sounds about right to me; communication (writing) skills, mainly. Of course, my degree is in the humanities, so I would say that. Now I think of computation

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

2014-05-06 Thread Gregg Reynolds
On Tue, May 6, 2014 at 10:11 AM, Phillip Lord phillip.l...@newcastle.ac.ukwrote: Gregg Reynolds d...@mobileink.com writes: I think that the counter argument to that is that many other programming languages have a richer documentation system than Clojure, and many programmers use them

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

2014-05-06 Thread Gregg Reynolds
On Sat, May 3, 2014 at 3:46 PM, Val Waeselynck val.vval...@gmail.comwrote: All right, I'll give it a try, here are some thoughts : I think it's too hard make precise requirements for advanced features in advance; I'd rather find a way to let usage drive us in the right direction. However,

Re: Functional programming and security

2014-05-06 Thread Gregg Reynolds
If you want a friend, get a dog. If you want security, get a big mean-looking dog who barks a lot. Sorry, couldn't resist. On Tue, May 6, 2014 at 11:04 AM, Gary Trakhman gary.trakh...@gmail.comwrote: My 'Network Security' Professor once said to the class, 'There is no security without

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

2014-05-06 Thread Gregg Reynolds
On Tue, May 6, 2014 at 2:22 PM, Tim Daly d...@axiom-developer.org wrote: Gregg, My original comment on litprog (bad bad bad) was admittedly a little strong. I think its bad for some things, fine for others. And it's possible litprog conventions will evolve to address the problems some

Rethinking Literate Programming

2014-05-08 Thread Gregg Reynolds
The thread on documentation that Val started ( https://groups.google.com/forum/?hl=en#!topic/clojure/oh_bWL9_jI0) is getting a little long so I'm starting a related one specific to litprog. I've made a start on rethinking LP at

Re: Rethinking Literate Programming

2014-05-08 Thread Gregg Reynolds
PS. Just to be clear, my purpose is neither to attack nor to defend LP, just to get clear about exactly what it is, what its presuppositions are, what its implications are, etc. -G On Thu, May 8, 2014 at 7:57 AM, Gregg Reynolds d...@mobileink.com wrote: The thread on documentation that Val

Re: Rethinking Literate Programming

2014-05-09 Thread Gregg Reynolds
On Fri, May 9, 2014 at 8:33 AM, Erlis Vidal er...@erlisvidal.com wrote: In the past I've used a java tool to write acceptance tests. Concordion [ http://concordion.org/]. The idea is simple yet effective. You write your documentation in HTML, and later you can run your code that will interact

Re: [ANN] tools.analyzer(.jvm) 0.1.0-alpha1

2014-05-13 Thread Gregg Reynolds
On Friday, January 10, 2014 7:23:56 PM UTC-6, Nicola Mometto wrote: Today I released the first version of the tools.analyzer[1] and tools.analyzer.jvm[2] contrib libraries, here are the leiningen coordinates: [org.clojure/tools.analyzer 0.1.0-alpha1] [org.clojure/tools.analyzer.jvm

Re: [ANN] tools.analyzer(.jvm) 0.1.0-alpha1

2014-05-13 Thread Gregg Reynolds
On Tue, May 13, 2014 at 2:16 PM, Max Kreminski maxkremin...@gmail.comwrote: Hi Greg, I wrote a quickref to the AST node structures that also describes a generic method for traversing an arbitrary AST. It can be found here: http://mkremins.github.io/clojure-ast-ref Max - perfect! That's

Re: [ANN] tools.analyzer(.jvm) 0.1.0-alpha1

2014-05-13 Thread Gregg Reynolds
On Tue, May 13, 2014 at 2:17 PM, Timothy Baldridge tbaldri...@gmail.comwrote: My Clojure/West talk covers how to write such a pass, and the comments on this video include a link to the source code. https://www.youtube.com/watch?v=KhRQmT22SSg Just watched, very helpful. Thanks. -- You

Re: Heidegger, literate programming, and communication

2014-05-21 Thread Gregg Reynolds
Hi Tim, I'm glad you're continuing the conversation, which has helped me at least to clarify my thinking about not just LP but about the nature of programming and the sort of tools we (or I at least) need to support good programming. I end up in a very different place than you, but I don't think

xsl:clj-ext : Live test documentation (or: Illiterate Programming I)

2014-05-21 Thread Gregg Reynolds
Hi list, xsl.clj-ext https://github.com/mobileink/xsl.clj-ext is a very simple implementation of an XSL extension function that evaluates Clojure code. It's just proof-of-concept stuff at the moment but it works well enough to play around with it. The provided minimal example shows how to embed

Re: Heidegger, literate programming, and communication

2014-05-21 Thread Gregg Reynolds
On Wed, May 21, 2014 at 4:39 PM, Mars0i marsh...@logical.net wrote: Tim, From my point of view there are at least a few things that seem clear: 1. I think that Gregg Reynolds and I agree on a lot, but I would add to his remarks that there is almost always a human audience for source code

Re: Heidegger, literate programming, and communication

2014-05-22 Thread Gregg Reynolds
. ... 1. I think that Gregg Reynolds and I agree on a lot, but I would add to his remarks that there is almost always a human audience for source code, as well as the compiler/interpreter. Sometimes, the audience is just the originally programmer, perhaps at a later date. (If I missed something

Re: Code Poetry

2014-05-23 Thread Gregg Reynolds
On Fri, May 23, 2014 at 8:23 AM, d...@axiom-developer.org wrote: Ok, so I'm a bit over the edge about how good code should be written, as many of you might have guessed... but it could be worse: http://sourcecodepoetry.com good code reads well, best code rhymes and, best of all, it is a

symbol grammar

2014-05-24 Thread Gregg Reynolds
Hi, In working on an ANTLR grammar for Clojure I came across this regex in clojure.lang.LispReader which is used in matchSymbol: symbolPat == [:]?([\\D[^/]].*/)?(/|[\\D[^/]][^/]*) Look at the first part of the second group: /|[\\D[^/]] Am I missing something or is that equal to \\D? In Java

Re: symbol grammar

2014-05-24 Thread Gregg Reynolds
On Sat, May 24, 2014 at 3:14 PM, Benjamin R. Haskell cloj...@benizi.com wrote: On Sat, May 24, 2014 at 3:09 PM, Gregg Reynolds d...@mobileink.com wrote: Hi, In working on an ANTLR grammar for Clojure I came across this regex in clojure.lang.LispReader which is used in matchSymbol

Re: symbol grammar

2014-05-24 Thread Gregg Reynolds
On Sat, May 24, 2014 at 2:21 PM, Mike Fikes mikefi...@me.com wrote: Hey Greg, did your benchmark compare /|[\\D[^/]] to \\D or did it compare the existing Clojure regex to a shortened one, making your substitution? (If it was the former, perhaps the existing regex is more efficient owing to

dynamic java obj construction from classname string

2014-05-25 Thread Gregg Reynolds
Hi, I'm trying to construct a Java obj from a from a classname string. I've managed to import the thing using a macro: (defmacro import-by-name [name] `(import [~name])) (let [klass-name foo.bar.Baz the-ns (import-by-name klass-name) the-obj (new foo.bar.Baz arg)] ...)

Re: dynamic java obj construction from classname string

2014-05-25 Thread Gregg Reynolds
On Sun, May 25, 2014 at 2:00 PM, Shantanu Kumar kumar.shant...@gmail.com wrote: On Sunday, 25 May 2014 22:45:27 UTC+5:30, Gregg Reynolds wrote: Hi, I'm trying to construct a Java obj from a from a classname string. I've managed to import the thing using a macro: (defmacro import-by-name

rsch.antlr: formal Clojure grammar project

2014-05-26 Thread Gregg Reynolds
Howdy list, As a first step in producing a complete formal grammar of Clojure I've put together some machinery and documentation for developing ANTLR grammars in a leiningen/Clojure environment. I think there is enough there that you can get directly to writing and testing grammars. rsch.antlr

Re: Registering commands in a command language

2014-05-29 Thread Gregg Reynolds
On Wed, May 28, 2014 at 8:05 PM, Will Duquette w...@wjduquette.com wrote: If there's a better place to ask this kind of question, please point me in the right direction! I'm learning Clojure, and part of the project I'm making is a command language: the user can type commands at the

Re: ANN: [R User Conference]

2014-05-29 Thread Gregg Reynolds
On Thu, May 29, 2014 at 1:22 AM, A aael...@gmail.com wrote: I hope it's allright to mention here that the R User Conference is happening June 30-July 3 in Los Angeles. There are a number of ways Clojure and R can be used together for statistical programming and data analysis. Observing the

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 6:22 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: Well, the law determines which part of a contract are actually binding; so whether the choice of law clause actually means anything at all, depends on the jurisdiction in which the law is being judged. Having

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 12:27 AM, Atamert Ölçgen mu...@muhuk.com wrote: This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. This is a very peculiar clause for me. I have just checked GPL text and it doesn't

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 8:24 AM, Atamert Ölçgen mu...@muhuk.com wrote: On Fri, May 30, 2014 at 1:09 PM, Gregg Reynolds d...@mobileink.com wrote: On Fri, May 30, 2014 at 12:27 AM, Atamert Ölçgen mu...@muhuk.com wrote: This Agreement is governed by the laws of the State of New York

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 8:51 AM, Atamert Ölçgen mu...@muhuk.com wrote: On Fri, May 30, 2014 at 1:38 PM, Gregg Reynolds d...@mobileink.com wrote: On Fri, May 30, 2014 at 8:24 AM, Atamert Ölçgen mu...@muhuk.com wrote: Define rational. To me, it looks like absence of a choice of law

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 10:52 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: Gregg Reynolds d...@mobileink.com writes: On Fri, May 30, 2014 at 6:22 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: Well, the law determines which part of a contract are actually binding

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 11:00 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: Gregg Reynolds d...@mobileink.com writes: Are you saying the corrupt judges of the corrupt legal system will act differently just because you have chosen a license with a choice of law clause that's

Re: help with the lawyers?

2014-05-30 Thread Gregg Reynolds
On Fri, May 30, 2014 at 8:56 AM, Gregg Reynolds d...@mobileink.com wrote: On Fri, May 30, 2014 at 8:51 AM, Atamert Ölçgen mu...@muhuk.com wrote: On Fri, May 30, 2014 at 1:38 PM, Gregg Reynolds d...@mobileink.com wrote: On Fri, May 30, 2014 at 8:24 AM, Atamert Ölçgen mu...@muhuk.com wrote

Re: Top-down code in namspaces

2014-06-03 Thread Gregg Reynolds
On Sun, Jun 1, 2014 at 9:36 AM, Glen Mailer glenja...@gmail.com wrote: Hi everyone, I'm looking to get some opinions on code style. Specifically, I like to write my code in a top-down. What I mean by that is that within a file the highest-level functions sit at the top, and are implemented

Re: Is it the right Clojure group for a newbie

2014-06-03 Thread Gregg Reynolds
On Mon, Jun 2, 2014 at 4:36 PM, sharma...@gmail.com wrote: All, If this is the right Clojure group for a newbie, I would like to ask for the best online resources to begin with. I am new to programming, having recently switched from a non technical field. I have started looking at

Re: Top-down code in namspaces

2014-06-03 Thread Gregg Reynolds
On Tue, Jun 3, 2014 at 9:51 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: Gregg Reynolds d...@mobileink.com writes: 4. Put your helper funcs (defn- stuff) in helpers.clj, without a call to ns at the top, then (load helpers) at the top of the file that uses them. You still get

Re: Top-down code in namspaces

2014-06-03 Thread Gregg Reynolds
On Tue, Jun 3, 2014 at 8:32 AM, Gregg Reynolds d...@mobileink.com wrote: On Sun, Jun 1, 2014 at 9:36 AM, Glen Mailer glenja...@gmail.com wrote: Hi everyone, I'm looking to get some opinions on code style. ... 4. Put your helper funcs (defn- stuff) in helpers.clj, without a call to ns

Re: Clojure on iOS devices - Swift as a host?

2014-06-12 Thread Gregg Reynolds
On Thu, Jun 12, 2014 at 8:14 AM, Mike Fikes mikefi...@me.com wrote: Hi Devin, A great place to start is http://web.cecs.pdx.edu/~cpinera/javascriptcore-integration-with-clojurescript-in-ios.html (some slight modifications are required to get that blog post examples working with the latest,

into still losing metadata (CLJ-916)

2015-04-03 Thread Gregg Reynolds
Hi, http://dev.clojure.org/jira/browse/CLJ-916 reports that into loses metadata; it is marked closed and fixed in 1.5. However, into still seems to be losing metadata. The relevant code from 1.7-alpha6 (core.clj) is: (if (instance? clojure.lang.IEditableCollection to) (with-meta

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Gregg Reynolds
On May 4, 2015 7:16 AM, Eric MacAdie emaca...@gmail.com wrote: I think what Clojure needs is a default. It doesn't matter if it is a web framework like Rails, or libraries strung together like Luminus. What Clojure needs is, well nothing. What the market MAY need is an entrepreneur who will

Re: A Petition for Supporting our On-going Research

2015-05-07 Thread Gregg Reynolds
On May 7, 2015 3:38 PM, Timur timurha...@gmail.com wrote: Dear Clojure Community, We are doing a research for supporting human-centric ad-hoc processes in organizations. Who is we? To analyze these processes better, we are trying to collect as many such processes as possible. As the

Re: clojure, not the go to for data science

2015-04-07 Thread Gregg Reynolds
On Apr 6, 2015 4:20 PM, A aael...@gmail.com wrote: Thanks for taking the initiative :) Looks good. My two cents is to prefer something instead of the word goto though, which could imply an archaic coding semantic. into? Perhaps ...a growing resource to consolidate links to Clojure Data

Re: into still losing metadata (CLJ-916)

2015-04-03 Thread Gregg Reynolds
On Fri, Apr 3, 2015 at 8:06 AM, Alex Miller a...@puredanger.com wrote: The CLJ-916 commit ( https://github.com/clojure/clojure/commit/b5d0e84f92038449312bea4c31dcdedd499e28b8) looks like it preserved meta on the to collection but did not merge meta from the from collection, so as far as I can

Re: Clojure Truck Factor

2015-08-17 Thread Gregg Reynolds
On Aug 17, 2015 12:29 PM, Gary Verhaegen gary.verhae...@gmail.com wrote: On 17 August 2015 at 07:25, Jorge Branco jorge.d.f.bra...@gmail.com wrote: If a file has not been touched in two years, does it really matter who wrote it? ... It may be just me and my bad memory, but I'm not sure I

Re: [ANN] core.async-0.2.371

2015-10-29 Thread Gregg Reynolds
On Oct 29, 2015 4:10 PM, "Alex Miller" > > The buffer is not unbounded - it is of size 1. Is it correct or reasonable to think of it as a constant channel? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: [ANN] Neanderthal, a fast, native matrix and linear algebra library for Clojure released + call for help

2015-10-23 Thread Gregg Reynolds
I'm glad to see that you and Mike are making a productive dialog out of what could have gone the other way. It's a credit to you both. Simple question wrt documentation. The Great White Whale of open source software. Suppose core.matrix had insanely great documentation. What difference would

Re: Largest Clojure codebases?

2015-11-15 Thread Gregg Reynolds
I'm reminded of the old joke: to err is human; to really screw up you need a computer (read: OO). On Nov 15, 2015 3:27 PM, "Timothy Baldridge" wrote: > It's funny, because most of the larger OOP projects I worked on were large > because of class bloat, not because of

tools.analyzer help

2015-10-11 Thread Gregg Reynolds
I'm trying to figure out how to use tools.analyzer.jvm but not getting very far. My web searches didn't turn up much. Anybody know of tutorials or howtos? Specifically, I can get the basic examples at https://github.com/clojure/tools.analyzer.jvm#ast-quickref to work, but not this: (pp/pprint

[off topic] Leiningen Lives?

2015-10-13 Thread Gregg Reynolds
FYI http://www.cnn.com/2015/10/13/asia/australia-desert-hunter-survival-ants/ -- 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

Re: tools.analyzer help

2015-10-13 Thread Gregg Reynolds
On Mon, Oct 12, 2015 at 7:27 AM, benedek fazekas wrote: > hi Gregg, > > I am not aware of any extensive documentation apart from the qiuckref and > the readmes. However can point you to two projects using tools.analyzer > extensively: >

migae: clojure on Google App Engine

2015-08-29 Thread Gregg Reynolds
Hi list, If you have any interest in Clojure on Google App Engine you might want to take a look at migae https://github.com/migae/migae. Currently it just contains several basic demos showing how to structure Clojure apps on GAE, running from raw java interop, to ring, to compojure, to

supporting metadata caret reader syntax with deftype

2015-09-04 Thread Gregg Reynolds
I have a deftype that supports with-meta, but I can't figure out how to support caret reader syntax. To support with-meta, I include a "meta" field and implement IObj methods "meta" and "withMeta". Seems to work just fine: (with-meta (entity-map [:A/B] {:a 1}) {:foo "metadata here"}) But

Re: supporting metadata caret reader syntax with deftype

2015-09-04 Thread Gregg Reynolds
On Fri, Sep 4, 2015 at 11:30 AM, Gregg Reynolds <d...@mobileink.com> wrote: > I have a deftype that supports with-meta, but I can't figure out how to > support caret reader syntax. > > To support with-meta, I include a "meta" field and implement IObj methods >

Re: supporting metadata caret reader syntax with deftype

2015-09-04 Thread Gregg Reynolds
On Fri, Sep 4, 2015 at 7:51 PM, Mike Rodriguez wrote: > This has came up numerous times in other posts here. I can't hunt them > down currently but the quoted symbol issue you showed is just a > misunderstanding of how the reader macro for metadata works. > > Try (meta '^{:foo

:refer-clojure broken?

2015-09-13 Thread Gregg Reynolds
Just to be perverse, in my library I'm defining `print`. So I get the usual warning: WARNING: print already refers to: #'clojure.core/print in namespace: migae.datastore, being replaced by: #'migae.datastore/print So I add a clause to my (ns...) form: (:refer-clojure :exclude [print]) This

Re: :refer-clojure broken?

2015-09-13 Thread Gregg Reynolds
PS. REPL-y 0.3.5, nREPL 0.2.10 Clojure 1.7.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 On Sun, Sep 13, 2015 at 6:21 PM, Gregg Reynolds <d...@mobileink.com> wrote: > Just to be perverse, in my library I'm defining `print`. So I get the > usual warning: > > WARNING: pr

Re: deftype code reload oddity

2015-09-16 Thread Gregg Reynolds
On Sat, Sep 12, 2015 at 10:21 AM, Gregg Reynolds <d...@mobileink.com> wrote: > > > On Sat, Sep 12, 2015 at 7:17 AM, Alex Miller <a...@puredanger.com> wrote: > >> This is a tricky area and one that has seen changes lately - what version >> of Clojure are you using?

Re: :refer-clojure broken?

2015-09-16 Thread Gregg Reynolds
Never mind. For some reason I had (:require [clojure.core :refer :all] ...) after(:refer-clojure :exclude [print println print-str]) . Sorry about the bother. Gregg On Tue, Sep 15, 2015 at 1:22 PM, Gregg Reynolds <d...@mobileink.com> wrote: > > > On Sun, Sep 13, 2015 a

deftype code reload oddity

2015-09-11 Thread Gregg Reynolds
Here's something a little perplexing that I discovered by trial and error: if you reload (using require :reload) a clj file containing a deftype implementing clojure interfaces (e.g. ISeq, etc.) plus some functions, the functions will be reloaded but not the deftype implementation code. That is,

Re: :refer-clojure broken?

2015-09-15 Thread Gregg Reynolds
ore. Thanks, Gregg > > I can't reproduce this with a pure Clojure repl or with a Leiningen repl > on Clojure 1.7 or 1.8. > > On Sunday, September 13, 2015 at 6:23:37 PM UTC-5, Gregg Reynolds wrote: >> >> PS. >> >> REPL-y 0.3.5, nREPL 0.2.10 >> Clojur

Re: deftype code reload oddity

2015-09-12 Thread Gregg Reynolds
nterface. Thanks, Gregg > > > On Friday, September 11, 2015 at 10:42:32 PM UTC-5, Gregg Reynolds wrote: >> >> Here's something a little perplexing that I discovered by trial and >> error: if you reload (using require :reload) a clj file containing a >> deftype i

Re: Building mixed Clojure/Java project

2015-09-27 Thread Gregg Reynolds
Looks like Ant to me. On Sat, Sep 26, 2015 at 7:01 PM, wrote: > Hi, I'm trying to run/compile the project at > https://github.com/mikera/ironclad, with Leiningen, and no luck. > > My first attempt was trying to run it with

defprotocol/deftype namespacing

2015-09-24 Thread Gregg Reynolds
Is there some compelling reason why deftype and defprotocol do not allow specification of a namespace? They install their products in the current namespace, in contrast to gen-class and gen-interface. Thanks Gregg -- You received this message because you are subscribed to the Google Groups

lambda detector?

2015-12-08 Thread Gregg Reynolds
Hi folks, Doing a little meta-programming. I need a way to determine if an argument passed to a function is a lambda, i.e. created by #() or (fn...). Alternatively, I need a way to get at the metadata of a function's associated var, given only the function. The only method I've come up with so

Re: lambda detector?

2015-12-08 Thread Gregg Reynolds
On Tue, Dec 8, 2015 at 7:16 AM, Angel Java Lopez wrote: > Hi! > > Sorry, this is not an answer, but a question: Why you need to know if an > argument is a lambda? What is your use case? > A simple use case (somewhat different from my actual case, but clearer) would be

Re: Extend ns macro?

2015-12-02 Thread Gregg Reynolds
On Wed, Dec 2, 2015 at 8:11 AM, gianluca torta wrote: > for some reason, it looks like the implementation of the ns macro assumes > that the macro itself is being defined in namespace clojure.core > > try defining myns in the namespace clojure.core, and it should work >

Extend ns macro?

2015-12-01 Thread Gregg Reynolds
I'm trying to extend ns, to add some functionality, but it's not working. Is it even possible? If not, is there a way to implement a custom version? I can defmacro my-ns in namespace foo and then start a file with (foo/my-ns ...), but I can't get it to behave like ns (I copied the ns code from

Re: Naming convention for atoms, refs, etc.?

2015-12-06 Thread Gregg Reynolds
Postfix @? Haven't pondered this before but I like the idea. Why should perl have all the fun? On Dec 5, 2015 3:47 PM, "Mars0i" wrote: > &, $, and ! might be good to use as special naming characters for > atoms/refs/agents, either as an initial char, a final char, or

Re: Naming convention for atoms, refs, etc.?

2015-12-06 Thread Gregg Reynolds
Ps. Note the nice symmetry between *foo* and @foo@. On Dec 6, 2015 2:42 PM, "Gregg Reynolds" <d...@mobileink.com> wrote: > Postfix @? Haven't pondered this before but I like the idea. Why should > perl have all the fun? > On Dec 5, 2015 3:47 PM, "Mars0i

Re: [ANN] 2015 State of Clojure Community survey

2015-12-06 Thread Gregg Reynolds
I take to to mean "Who's paying for it?" A departmental app could have one dev and no users. On Dec 5, 2015 7:36 PM, "Leif" wrote: > I took it to mean "How many people are *using* your Clojure app?" > > On Friday, December 4, 2015 at 3:33:10 PM UTC-5, puzzler wrote: >>

Re: Naming convention for atoms, refs, etc.?

2015-12-06 Thread Gregg Reynolds
low @ in symbols. Would it mess anything up? > > On 6 Dec 2015, at 20:44, Gregg Reynolds <d...@mobileink.com> wrote: > > > > Ps. Note the nice symmetry between *foo* and @foo@. > > > > On Dec 6, 2015 2:42 PM, "Gregg Reynolds" <d...@mobileink.com>

Re: Compare between clojure and Java

2016-01-05 Thread Gregg Reynolds
On Jan 5, 2016 7:49 AM, "gvim" wrote: > > On 05/01/2016 13:44, Josh Kamau wrote: >> >> Here is an extremely simple example: >> >> Problem: add a list of numbers >> >> java: You put something like this in a class in a method >> >> int[] numbers = {1,2,3,4,5,6,7,7,8,4,3} ; >>

Re: Why "some-fn" is not called "some-pred" or "every-pred" is not called "every-fn" and vicer-versa.

2015-12-21 Thread Gregg Reynolds
On Dec 20, 2015 7:20 PM, "Mike Rodriguez" wrote: > > The distinction between names is important when one is a predicate and the other is not. However I think it would be more useful if it were every-fn since it is often more useful to have the final return value vs just true

[RSCH] miraj.markup - rethinking web programming proof-of-concept

2015-12-22 Thread Gregg Reynolds
an attributes, void and empty elements, etc. It also understands Polymer binding annotations; see the readme. This is proof-of-concept software. I'm not a Clojure wizard by any stretch, so I welcome any feedback on the code as well as the concepts. Gregg Reynolds -- You received this messag

Re: [RSCH] miraj.markup - rethinking web programming proof-of-concept

2015-12-22 Thread Gregg Reynolds
I guess a link might help: https://github.com/mobileink/miraj.markup/tree/miraj <https://github.com/mobileink/miraj.markup/tree/miraj> On Tue, Dec 22, 2015 at 1:41 PM, Gregg Reynolds <d...@mobileink.com> wrote: > miraj.markup and its companion libraries are designed t

Re: What exactly is a form in Clojure?

2015-12-28 Thread Gregg Reynolds
On Dec 28, 2015 6:58 AM, "Ray Toal" wrote: > > Throughout the Clojure documentation there are many references to forms. > > I know about special forms, macros, vars, symbols, keywords, integers, doubles, ratios, sets, maps, lists, vectors, booleans, nil, etc. > > What exactly,

  1   2   3   >