Re: [ANN] Nightcode 2: Total Rewrite

2016-07-13 Thread Keith Irwin
Now a simple question… How do you evaluate a form into the running repl? > On Jul 13, 2016, at 7:12 PM, Zach Oakes wrote: > > If I get desperate I may do that, but the main users I care about are > beginners, and they generally have trouble installing CLI tools. I'm hoping

Re: Cells aka Dataflow aka FRP now pure CLJC

2016-05-25 Thread Keith Irwin
I remember you from the olden days as a colorful personality on comp.lang.lisp. Having spent this time with Clojure the language, and the community, any interesting impressions compared to Common Lisp or, well, just any general thoughts? > On May 24, 2016, at 9:24 AM, hiskennyness

Re: [ANN] clojure.tools.cli 0.3.2 (was: Next release for clojure.tools.cli? Is it dead?

2015-07-30 Thread Keith Irwin
to Maven Central today. Thank you Sung for all your work on tools.cli so far! This release includes all of Sung’s work to date, including TCLI-9 which Keith Irwin asked about last week: • Release 0.3.2 on 2015-07-28 • Add :no-defaults to parse-opts: Returns sequence of options

Next release for clojure.tools.cli? Is it dead?

2015-07-23 Thread Keith Irwin
There are some handy additions committed to the tools.cli project at: https://github.com/clojure/tools.cli but there hasn’t been a release in ~1.5 years (not even a snapshot release). In fact, these commits have been sitting there for over a year. I’m especially interested in this one:

Re: Accessing static fields

2015-05-20 Thread Keith Irwin
abonnaireserge...@gmail.com wrote: Macros won't work because they are expanded at compile-time. We want to choose the method at runtime. Thanks, Ambrose On Thu, May 21, 2015 at 9:02 AM, Keith Irwin ke...@zentrope.com mailto:ke...@zentrope.com wrote: Not sure if this helps, but: user = (eval

Re: Accessing static fields

2015-05-20 Thread Keith Irwin
Not sure if this helps, but: user = (eval (symbol Math PI”)) 3.141592653589793 user = (eval `(. ~(resolve (symbol String)) ~(symbol format) %s (to-array [adasd]))) “adasd Maybe a macro of some sort? (defmacro invoke-static [c meth args] `(. ~(resolve (symbol c)) ~(symbol meth) ~@args))

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-23 Thread Keith Irwin
Sean— Personally, the DSL doesn’t bother me at all. (Just a data point.) I get where you’re going with it, and support the idea, FWIW, but if it were gone, I wouldn’t notice. My needs are 1) so simple, strings work, or 2) so complicated, a (or any) DSL is just extra headache. (Reading them out

Re: Weird core.async/ClojureScript not workings...

2013-09-17 Thread Keith Irwin
I'm having the same issue. Here's a project with a timeout loop demonstrating the problem: https://github.com/zentrope/clock Using core.async SNAPSHOT and any clojurescript release after 1859 seems to break along the same lines as the OP. Other elements I have going: - cljsbuild 0.3.3 -

Re: clojure.java.jdbc, idiomatic way to use a connection

2013-08-14 Thread Keith Irwin
I think you can use db-connection, something like: (let [conn (db-connection spec) meta (.getMetaData conn)] (doall (.getTables meta nil schema %s nil)) (.close conn)) Or what have you. I wrote a little macro `with-meta-data` that was something like that, with added

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Keith Irwin
On Jul 21, 2013, at 10:01 PM, Colin Fleming colin.mailingl...@gmail.com wrote: I'm a fan of static generators too, but one large con for a lot of people is lack of commenting. Personally I like the article-with-no-comments format, but it's not for everyone. You can use Disqus or similar, but

Re: seancorfield /clj-soap

2013-05-18 Thread Keith Irwin
On May 18, 2013, at 5:32 PM, Marc Boschma marc.bosc...@gmail.com wrote: Well understood Sean! If I work out away to up lift the code I'll contribute that back. I was just checking to see if anyone else had tried. If, like you, I need to find another way is Axis 1.x an easier platform

Re: [ANN] swank-clojure 1.3.4 released

2011-12-28 Thread Keith Irwin
Hi-- The only way I could get the colorized stack-trace was to use M-x clojure-jack-in. Normally, I type lein swank on a command line, then use M-x slime-connect from Emacs. This is so that I can see the clojure.tools.logging output. (I've no idea where it goes when you use clojure-jack-in.

clojure libs and logging

2011-11-22 Thread Keith Irwin
Folks-- I'm working on an experimental library which interfaces with external resources (i.e., not purely functional) and I'd like the library to log things when stuff goes wrong (say, with network connections). I don't want to throw exceptions and let clients handle it because I want to build

Re: clojure libs and logging

2011-11-22 Thread Keith Irwin
I'm guessing that removing the non-project classes and then just declaring a dependency should work well enough. Couldn't find :disable-implicit-clean in the sample project file technomancy maintains on his github repo, but did use :clean-non-project-classes, which removed the compiled logging

Re: Another newbie question

2011-11-07 Thread Keith Irwin
I'm new to all this, too. The kinds of teams I've worked on, generally, favor breaking down a problem into separate processes such that we each get to work on our own apps which communicate via messaging or http, so I may not have quite the experience you have with big shared-code libraries

Re: Another newbie question

2011-11-07 Thread Keith Irwin
Oops. I somehow it some magic key. Soon as that post makes it through review I'll rewrite it to something short and useful. Moral of the story is to not use the web form on Google Groups. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Matt Raible: Why is Clojure better than Scala or Groovy?

2010-01-17 Thread Keith Irwin
I don't think you can really answer the question because it being asked in the way it that precludes a good enough answer. The tone of Matt Raible's request suggests that he'd really rather not learn it, and that there's no possible reason to overcome that reluctance. Why travel? There's plenty

Re: AbstractMethodError question

2009-12-12 Thread Keith Irwin
to write some Java that wrapped an inner subclass of the offending class, and used Clojure to implement an interface which the inner class can use. Keith On Fri, Dec 11, 2009 at 4:18 PM, Keith Irwin keith.ir...@gmail.com wrote: On Dec 11, 3:31 pm, ataggart alex.tagg...@gmail.com wrote: On Dec 11, 12

AbstractMethodError question

2009-12-11 Thread Keith Irwin
Folks-- I've got a class I can't change which has an abstract method I'd like to override using the proxy macro in Clojure. The class looks something like: public abstract class Foo {    private Map stuff;    private void initStuff() {        stuff = new HashMap();        stuff.put(a, new

Re: AbstractMethodError question

2009-12-11 Thread Keith Irwin
On Fri, Dec 11, 2009 at 12:27 PM, Keith Irwin keith.ir...@gmail.com wrote: public abstract class Foo {    private Map stuff;    private void initStuff() {        stuff = new HashMap();        stuff.put(a, new Object());        addStuff(stuff);    }    protected void abstract addStuff

Re: AbstractMethodError question

2009-12-11 Thread Keith Irwin
On Dec 11, 3:33 pm, ataggart alex.tagg...@gmail.com wrote: On Dec 11, 12:44 pm, Keith Irwin keith.ir...@gmail.com wrote: On Fri, Dec 11, 2009 at 12:27 PM, Keith Irwin keith.ir...@gmail.com wrote: public abstract class Foo {    private Map stuff;    private void initStuff

Re: AbstractMethodError question

2009-12-11 Thread Keith Irwin
On Dec 11, 3:31 pm, ataggart alex.tagg...@gmail.com wrote: On Dec 11, 12:27 pm, Keith Irwin keith.ir...@gmail.com wrote: Folks-- I've got a class I can't change which has an abstract method I'd like to override using the proxy macro in Clojure. The class looks something like