seeking a lazy way to interleave a constant

2012-04-09 Thread Andrew
Given a lazy sequence of numbers is there a way to interleave a constant and get another lazy sequence? Say the first sequence is 1 2 3 4 ... I'd like the second sequence to be 1 0 2 0 3 0 4 0 Thanks in advance! -- You received this message because you are subscribed to the Google Groups

xml: parse -- edit -- emit

2012-04-17 Thread Andrew
1. It seems build.clojure.org now uses Java 6 so clojure.data.xml is available for use (vs February 20 2012 -- correct me if I'm wrong) 2. Using clojure.zip I'm able to make my desired edits. Then I call zip/root and I have my result. I'm not sure what the next steps are to get

Re: xml: parse -- edit -- emit

2012-04-18 Thread Andrew
Ah ... After zip/edit comes zip/root ... xml/emit-str ... spit. On Tuesday, April 17, 2012 3:29:01 PM UTC-4, Andrew wrote: > > >1. It seems build.clojure.org now uses Java 6 so clojure.data.xml is >available for use (vs February 20 2012 -- correct me if I'm wro

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-08 Thread Andrew
Cool... Do you use kilns at Akamai, and to what extent? Another question: you set up coals and clays and eventually kilns are fired. When you're setting up the coals and clays in code, you're telling the system about dependencies. Are these dependencies laid out explicitly enough to be always u

Re: Clojure and the Anti-If Campaign

2012-05-29 Thread Andrew
Thanks for sharing your blog post. Is there an Anti-If alternative to loop/recur in a situation where you have to poll for a condition to be true? (Seems to me that this necessitates some kind of conditional statement) On Thursday, May 24, 2012 5:57:47 AM UTC-4, Dominikus wrote: > > Three weeks

Re: Light Table on Windows XP

2012-07-05 Thread Andrew
fwiw, here's what I see on Windows XP. There are instructions for running LightTable without Powershell? What are they? --- PS C:\Documents and Settings\user\lighttable> .\light.ps1 table Security Warning Run only scripts that you trust. While scripts from the Internet can be useful, this scri

(let [a 0] (eval 'a)))

2012-07-31 Thread Andrew
I have a value and a string. The string contains valid Clojure code and it mentions a variable. I'd like to let-bind that variable to the value and then evaluate the string. Can this be done? As a small example, I thought this would work: (let [a 0] (eval 'a))) Or maybe this: user> (let [a 0]

Re: array literal syntax

2012-09-18 Thread Andrew
In my ClojureScript unit tests, the following doesn't evaluate to true (= (array 1 2) (foo)) even though all foo does is return (array 1 2). What should I do differently? On Tuesday, January 10, 2012 2:51:06 PM UTC-5, David Nolen wrote: > > There is no array literal syntax yet, but (array 22 33

Re: array literal syntax

2012-09-18 Thread Andrew
I tried this but it didn't work. (identical? (array 1 2) (foo)) Did you mean this? On Tuesday, September 18, 2012 5:08:11 PM UTC-4, David Nolen wrote: > > On Tue, Sep 18, 2012 at 4:54 PM, Andrew > > wrote: > > In my ClojureScript unit tests, the following d

optimized clojurescript->js file throws exception but debug version does not?

2012-10-04 Thread Andrew
Please see https://github.com/achengs/subpar/issues/1 which links to two demo pages. One page uses the debug (non-optimized non-munged) js version and seems to work fine. The other uses the optimized version and throws an exception. Details are in the github issues page and on the demo pages th

Re: optimized clojurescript->js file throws exception but debug version does not?

2012-10-04 Thread Andrew
/subpar.js for reindenting lines also makes the issue go away On Thursday, October 4, 2012 1:02:08 PM UTC-4, David Nolen wrote: > > On Thu, Oct 4, 2012 at 12:40 PM, Andrew >wrote: > >> Please see https://github.com/achengs/subpar/issues/1 which links to two >> demo pages. One

Re: optimized clojurescript->js file throws exception but debug version does not?

2012-10-05 Thread Andrew
Oh. I'm pretty sure it's because in the broken case I use two blobs of js which were minified at *separate* times thus allowing for name conflicts. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: optimized clojurescript->js file throws exception but debug version does not?

2012-10-05 Thread Andrew
"resources/public/js/subpar.core.js" :optimizations :advanced :pretty-print false}}} On Friday, October 5, 2012 8:21:09 AM UTC-4, David Nolen wrote: > > On Fri, Oct 5, 2012 at 8:16 AM, Andrew >wrote: > >> O

Re: optimized clojurescript->js file throws exception but debug version does not?

2012-10-05 Thread Andrew
After I read the link you provided and another page, I discovered that wrapping my compiled stuff in an anonymous function keeps Google Closure's output symbols from colliding wi

Re: optimized clojurescript->js file throws exception but debug version does not?

2012-10-06 Thread Andrew
What about the --output_wrapper part? My clojurescript js never calls the minified foreign library directly: What I have is [1] some plain non-optimized javascript that calls [2] CodeMirror for the code and position, then calls [3] my clojurescript js to find out how to do the requested paredi

ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
A ParEdit approximation for use in CodeMirror. https://github.com/achengs/subpar Could conceivably benefit Light Table. *In other news, I'm in the market for a job...* -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
x bindings. Maybe I can figure it out. > > > On Fri, Oct 12, 2012 at 4:21 PM, Andrew > > wrote: > > A ParEdit approximation for use in CodeMirror. > > https://github.com/achengs/subpar Could conceivably benefit Light > Table. In > > other news, I'

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
output? > > > > On Fri, Oct 12, 2012 at 5:04 PM, Andrew > > wrote: > > I forgot to add that the README.md has a link to a demo page (here) > > > > > > On Friday, October 12, 2012 4:47:47 PM UTC-4, kovasb wrote: > >> > >> This is g

Re: ANN subpar (paredit for codemirror)

2012-10-13 Thread Andrew
Anthony: Great! What needs to happen on my end for that to happen? -- 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 patient with yo

Re: ANN subpar (paredit for codemirror)

2012-10-13 Thread Andrew
Marc, could you send me an email directly? It's available on my github page. I have some questions I'd like to ask you offline and wasn't sure whether mslimotte@... would get to you or a stranger... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

A couple questions about the language

2009-11-01 Thread Andrew
1. Can I have compile time evaluation forms like in Lisp? For example, I want to obtain current namespace during macro expansion, or make Java imports in compile time. Is it possible? 2. Can I precompile Clojure code (not generated classes) and load precompiled version instead of text script? Th

seeking advice for reducing boilerplate

2011-09-28 Thread Andrew
While trying out clj-webdriver (for testing web pages), I got the impulse to reduce some of my boilerplate. I'd like your advice on best practices. Here's the original code. (deftest test-login (let [b (start :firefox "https://github.com";)] (try (implicit-wait b 6) (-> b (

unable to resolve symbol: doc

2011-09-30 Thread Andrew
When I do M-x clojure-jack-in on one project.clj which uses clojure 1.2.1, I'm able to evaluate (doc map). But with another project.clj which uses clojure 1.3.0-RC0, the repl is unable to resolve symbol: doc. I also changed it to use clojure 1.3.0, ran lein deps... M-x clojure-jack-in repl

Re: seeking advice for reducing boilerplate

2011-09-30 Thread Andrew
Thanks (both) for the advice! -- 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 patient with your first post. To unsubscribe from t

Re: unable to resolve symbol: doc

2011-09-30 Thread Andrew
Oh **that's** what was meant by the blurb below. Thanks.2.26 doc & find-doc moved to REPL Adds special form docs to the REPL -- 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 post

Re: newbie, installation problem

2011-10-14 Thread Andrew
Sagar, I had trouble on Windows until Mark Rathwell suggested following the instructions at http://sourceforge.net/apps/wordpress/codesounding/tag/emacs -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

ultra-noob read-line question

2011-10-27 Thread Andrew
At the REPL in Emacs, shouldn't the following code allow me to type something followed by [Enter] and then shouldn't it print my input back out? (println (read-line)) When I enter this at the prompt, I immediately see the following. It doesn't wait for input. user> (println (read-line)) nil ni

Re: ultra-noob read-line question

2011-10-27 Thread Andrew
What does the exception below mean? Does trampoline require something to be defined/included that the usual way doesn't? Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :make-writer of protocol: #'clojure.java.io/IOFactory found for class: nil (NO_SOU

Re: ultra-noob read-line question

2011-10-28 Thread Andrew
I should be more specific. I see the exception only with trampoline. Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :make-writer of protocol: #' clojure.java.io/IOFactory found for class: nil (NO_SOURCE_FILE:0) -- You received this message because yo

start-process-shell-command: Spawning child process: invalid argument

2011-11-16 Thread Andrew
Having trouble setting up Clojure/Emacs on Windows again. Earlier Mark Rathwell helped meby pointing out a recipe for Windows

Re: start-process-shell-command: Spawning child process: invalid argument

2011-11-16 Thread Andrew
The attempt revealed the need to install the slime package. After that, the two commands succeed. However, M-x clojure-jack-in still fails in a fresh emacs session with the same error. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: start-process-shell-command: Spawning child process: invalid argument

2011-11-17 Thread Andrew
Thanks Do I need Cygwin at all for Clojure work on Windows/Emacs/Swank/clojure-mode/lein? Or can I remove Cygwin from my machine? And are these two functionally equivalent? - clojure-jack-in - lein swank and slime-connect -- You received this message because you are subscribed

repl dodges ns :use :only ?

2011-11-18 Thread Andrew
I'm surprised that I can do the following. Am I wrong about namespaces? 1. M-x clojure-jack-in 2. at the repl, execute (ns my-proj.core) 3. compile my core.clj (see ns snippet below) 4. back in the repl, use a function from a library that wasn't included in the :only clause from my

Re: repl dodges ns :use :only ?

2011-11-18 Thread Andrew
Oh, thanks. Is there a way to "import" some functions and not others such that the others cannot be used at all? -- 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 m

Re: repl dodges ns :use :only ?

2011-11-19 Thread Andrew
And how can I get what I originally wanted? (Import only function bar from library foo - renaming foo to f - requiring my own code to say f/bar and ensuring that foo/baz and f/baz and baz don't work since baz is not imported?) -- You received this message because you are subscribed to the Goog

Literate Programming in Emacs?

2011-11-22 Thread Andrew
For those who do Literate Programming in Emacs, what do you use? I was looking at org-babel-clojurewhich says: > You will need to install the following packages: clojure-mode, > swank-clojure, slime, slime-repl But wh

Re: Literate Programming in Emacs?

2011-11-22 Thread Andrew
I should add that I am starting with a working setup (able to M-x clojure-jack-in and compile and execute stuff in the REPL as expected). -- 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 No

Re: Literate Programming in Emacs?

2011-11-23 Thread Andrew
Here's my attempt at following the steps at http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html. *The result is org-babel-execute-src-block: No org-babel-execute function for clojure * 1. The recommendation was to follow "Connecting with SLIME" from https://github.

Re: Literate Programming in Emacs?

2011-11-23 Thread Andrew
Thanks! Next step: org-babel-execute:clojure:Cannot open load file: swank-clojure ... -- 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 - pleas

Re: Literate Programming in Emacs?

2011-11-29 Thread Andrew
Thanks -- it does help somewhat... 1. How is it that you have swank-clojure in your elpa directory? M-x list-packages does not have swank-clojure as an option. 2. Why does your elpa directory have 1.1.0 and your project file have 1.3.0? 3. Is there a choice between SLIME and infer

Re: Errors w/ dynamic symbols in macro-utils or monads?

2011-12-02 Thread Andrew
Does this still happen for you? It appears to still be the case in my environment. Dropping back to Clojure *1.2.1* seems to work but in addition to trying out monads, I need to use a library (clj-webdriver) that relies on Clojure *1.3.0* What to do? -- You received this message because y

Re: Errors w/ dynamic symbols in macro-utils or monads?

2011-12-02 Thread Andrew
ah: http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go clojure.contrib.monads - Migrated to clojure.algo.monads - lead Konrad Hinsen . - Status: latest build status

delayed recursive macro expansion?

2011-12-02 Thread Andrew
Is there a way for a macro m to expand into code that includes another "delayed" use of m such that this second use of m is only expanded if needed (and thus avoiding a stack overflow)? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: delayed recursive macro expansion?

2011-12-02 Thread Andrew
(defmacro interactive-try "If expr results in an exception, prompt the user to retry or give up. The user can execute arbitrary code somewhere else or fiddle with a DB before retrying. Returns nil if the user gives up." [expr] `(try ~expr (catch Exception e# (-> (ui/dialog :o

Re: delayed recursive macro expansion?

2011-12-02 Thread Andrew
Well, I found a way to dodge that need. But still interested in whether it's possible. Here's my dodge. Ugly and proud. (defmacro itry "If expr results in an exception, prompt the user to retry or give up. The user can execute arbitrary code somewhere else or fiddle with a DB before retrying. R

Re: delayed recursive macro expansion?

2011-12-03 Thread Andrew
Aren't the calls to itry-the-fn different from the calls to itry-the-macro? For example, let's say my expr is (/ a b) where b is currently zero and maybe the user decides to set a new value for b when prompted. itry-the-macro can be called this way: (itry (/ a b)) and is able to print out the s

Re: delayed recursive macro expansion?

2011-12-03 Thread Andrew
There's no light on in my attic. It's hollow and dark. :-P (itry (/ 5 0)) ==> exception (itry (fn [] (/ 5 0))) ==> # But that's ok. I have my ugly macro that uses loop-recur. And I'll be fine. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-12-06 Thread Andrew
I get the same thing on Windows XP with Leiningen 1.6.2 on Java 1.7.0 Java HotSpot(TM) Client VM - copied tools.jar manually to my lib/ just to see if it would work - it did, and still gave a warning about tools.jar - tried the test drive and when I type v I get this: *clojure\set.clj -

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-12-06 Thread Andrew
user> (require 'clojure.set) nil user> (set-bp clojure.set/difference) nil nil user> (clojure.set/difference #{1 2} #{2 3}) CDT buffer appears CDT BreakpointEvent in thread Swank REPL Thread >From here you can: e/eval, v/show source, s/step, x/next, o/exit func Restarts: 0: [QUIT] Quit to t

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-12-06 Thread Andrew
Thanks for taking the time Sean! You're right... - I'm on Windows XP - I had to copy tools.jar to my projects lib manually after lein deps (not sure how to change the classpath) - My emacs setup is munged -- I can run M-x eshell but not M-x shell; I have to do lein swank and M-x s

getting inside another dynamic scope?

2011-12-06 Thread Andrew
Is there a way (without swank-cdt) to get inside some other dynamic scope that's blocked in order to evaluate some arbitrary code? Let's say a thread has paused waiting for some UI input. Earlier a dynamic var binding happened. You know the name of that var ... you know that thread is waiting

Re: getting inside another dynamic scope?

2011-12-07 Thread Andrew
(Sorry, I'll read this first http://clojure.org/vars#Vars%20and%20the%20Global%20Environment) -- 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

question from wikibooks page on macros?

2012-01-06 Thread Andrew
http://en.wikibooks.org/wiki/Learning_Clojure/Macros The page says the following: (def pointless (fn [n] n)) "Whatever is passed to this macro---a list, a symbol, whatever---will be returned unmolested and then evaluated after the call. Effectively, calling this macro is pointless:" (pointles

Re: question from wikibooks page on macros?

2012-01-06 Thread Andrew
I see. That section is just horribly written, calling something a macro when it isn't one yet. Here's my thinking in **bold**, inlined. Simple Macro If you understand the reader and evaluator, there actually isn't all that much more to understand about the operation and creation of macros, for

where's let* ?

2012-01-06 Thread Andrew
I have spent a little time trying to find the source code for let* and have so far failed :-P Can someone help me? (source let) points to a use of let* I can see the definition of let at github in clojure/clojure ... src core.clj... But I can't find let* Thanks in advance! -- You

does symbol completion work after 2nd slime-compile-and-load-file ?

2012-01-10 Thread Andrew
If you do these steps, do you get a better result for #5? If so, what might be wrong with my setup? 1. in emacs shell, lein swank & 2. M-x slime-connect (I have to do these as two separate steps vs M-x clojure-jack-in because of my broken environment) 3. M-x slime-compile-and-load-fi

Re: does symbol completion work after 2nd slime-compile-and-load-file ?

2012-01-10 Thread Andrew
or is M-x slime-compile-and-load-file the wrong command to use? -- 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 patient with your

Re: Literate Programming in Emacs?

2012-01-11 Thread Andrew
As you know, now I get org-babel-execute:clojure:Cannot open load file: swank-clojure The method org-babel-execute:clojure in my .emacs.d/elpa/org-2029/ob-clojure.el file says (require 'swank-clojure). Given that the swank-clojure elisp package is deprecated and should not be used what sho

Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
I found [1] from Eric Schulte which says to add certain package archives such that ELPA finds swank-clojure... But what about the swank-clojure elisp package being deprecated? (By the way, I do get further now... the clojure code evaluates) (setq package-archives '(("original". "ht

Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
Eric asks: The only function ob-clojure uses from swank-clojure is `swank:interactive-eval-region' (used with `slime-eval') in the `org-babel-execute:clojure' function. Which function would now be used to evaluate a region of clojure code? Would `slime-eval-region' suffice? -- You received thi

why is assert-args private?

2012-02-03 Thread Andrew
In clojure's core.clj, assert-args is marked with ^{:private true}. Why? Seems like something that would be useful in any macro definition, not just the ones in core.clj... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

what stack traces include / exclude regarding monads

2012-02-13 Thread Andrew
I've been experimenting with a state monad. Below is a list of what is included in my stack trace [+] and what isn't [-]. I've noticed that a call to a symbol that is bound to the result of a domonad (not sure if that's the right way to describe it) doesn't end up in my stack trace. I was plann

Re: what stack traces include / exclude regarding monads

2012-02-13 Thread Andrew
Here's the code if the list in the original post was too cryptic. None of the items beginning with "cc" show up in the stack trace by name -- m_bind shows up instead. (defn ee [] (show-stack)) (def dd (fn [s] [ (show-stack) s])) (def cc2 (with-monad sim-m (domonad [_# dd]

Re: what stack traces include / exclude regarding monads

2012-02-14 Thread Andrew
I guess the use of domonads leaves behind do statements with m_bind's and m_result's... and since these expressions are not fn's, they don't count as method calls and are thus not part of the stack trace. But if I'm mistaken or if anyone has figured out how to use monads and still get detailed s

Re: Lisp newbie seeks (macro?) wisdom - instrumentation and app metadata

2013-08-09 Thread Andrew Stine
For a pretty decent cover of when and how to use macros, On Lisp[1] is a pretty good book. It's written mainly for Common Lisp but most of it translates to Clojure well enough. I find that for common code, writing macros isn't so useful as most of the goods ones are already part of clojure.core

Re: Lisp newbie seeks (macro?) wisdom - instrumentation and app metadata

2013-08-09 Thread Andrew Stine
macros already which handle most of the things I would do with them in Common Lisp. On Friday, August 9, 2013 11:13:44 AM UTC-4, Lee wrote: > > > On Aug 9, 2013, at 11:01 AM, Andrew Stine wrote: > > > For a pretty decent cover of when and how to use macros, On Lisp[1] is a > p

Re: [ANN] Compliment - a completion library you deserve

2013-08-09 Thread Andrew Stine
Looks *very* cool. I like the drop-down list in ac-nrepl-compliment. On Friday, August 9, 2013 12:19:40 PM UTC-4, Alexander Yakushev wrote: > > Dear community, > > I've just released the initial version of my clojure-complete fork, > Compliment. I decided to move it into a separate project after

Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Andrew Voron
Good job. First thing that start and running from description in wiki. It seems like next evolution step in path: pure cljs -> Piggieback -> austin -> cljs-start May be for newcomers like me it will be good to add some integraional tips for emacs(others) editors.. Thx. Andrew --

Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Andrew Voron
Well, Im not sure if I expressed myself correctly when asked for tips about editor - I thought about how to get Emacs (or may be other editor which support nrepl workflow) "work" with cljs-start. Now I see that it works good when I'm testing it. I use emacs-live for clojure work with emacs, and

"Easier" Idempotent Component Lifecycles?

2015-03-15 Thread Andrew Oberstar
em functions. Maybe this is better suited to an issue/pr on his repository, but I wanted to see if there were any comments from the community. Is there a better way to do this? Andrew Oberstar -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: "Easier" Idempotent Component Lifecycles?

2015-03-15 Thread Andrew Oberstar
and update-system-reverse may be the key piece for implementing something like the LifecycleStatus solution in my original email without requiring any change to component itself. The big weakness is that it would require using a custom start-system stop-system function rather than the standard one.

Re: "Easier" Idempotent Component Lifecycles?

2015-03-15 Thread Andrew Oberstar
Sure, that makes sense. I'll give that a go along with a few other ideas, and see what works out best. Thanks for the help! Andrew Oberstar On Sun, Mar 15, 2015 at 1:22 PM Colin Yates wrote: > I don't have one at hand (as I literally wrote my first macro last > week ;)) but

Re: "Easier" Idempotent Component Lifecycles?

2015-03-15 Thread Andrew Oberstar
ementation inheritance. Is that the more general Clojure approach to reach for when an OO-programmer would usually reach for an abstract class? Andrew Oberstar On Sun, Mar 15, 2015 at 1:36 PM Andrew Oberstar wrote: > Sure, that makes sense. I'll give that a go along with a few other ideas, &g

Re: Announcing oolong: a config-based glue for `component`

2015-03-17 Thread Andrew Oberstar
Just a quick look so far, but it looks pretty interesting. I'm working on a multi-module project and I'd like to have the flexibility to run those modules separately or together. Extracting the component structure out into a config file could be pretty helpful in that regard. Nice wor

Re: test.check :autotest ?

2015-03-27 Thread Andrew Forward
Hey boz, You probably found your post, but just in case someone lands here from a search there are a few options, but take a look at lein-autotest https://github.com/dakrone/lein-autotest Here's the stackoverflow page, which might have more (or better) answers too http://stackoverflow.com/que

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread Andrew Rosa
en templates could become unnecessary, despite being very helpful to lower the entry point for new developers. IMHO *that* is the power of data driven architectures that we like to sell, isn't? []'s Andrew On Sunday, May 3, 2015 at 11:51:36 AM UTC-3, Plinio Balduino wrote: > > Mr Her

Re: [ANN] Clojure 1.7.0-beta3

2015-05-13 Thread Andrew Keedle
Looks good for current project. Project compiles and runs with clojure "1.7.0-beta3", clojurescript "0.0-3269", figwheel "0.3.1" + core.async core.match + om + ... Figwheel repl still works from within Cursive. Thanks, Andrew -- You received this message bec

Re: [ANN] Demo of the Holy Grail workflow

2015-05-23 Thread Andrew Oberstar
I can play the video, but there's no sound. Looks interesting though. Andrew Oberstar On Fri, May 22, 2015 at 3:06 PM Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > Sorry about that. Some countries are prevented from watching this video on > Youtube. I've uploa

Re: [ANN] Demo of the Holy Grail workflow

2015-05-23 Thread Andrew Oberstar
Silly me, my computer was muted... I'll watch it again. On Sat, May 23, 2015 at 8:27 AM Andrew Oberstar wrote: > I can play the video, but there's no sound. Looks interesting though. > > > Andrew Oberstar > > On Fri, May 22, 2015 at 3:06 PM Daniel Szmulewicz <

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-23 Thread Andrew Oberstar
Haven't tried it yet, but looks good. Nice work! Andrew Oberstar On Tue, Jun 23, 2015 at 12:39 PM W. David Jarvis wrote: > Hello everyone. > > I'm happy to announce the initial release of Yagni, a Leiningen plugin for > finding unused code. > > At a high level, Ya

Re: [ANN] Replete ClojureScript REPL iOS app available

2015-07-21 Thread Andrew Keedle
Brilliant Mike. Well done with this. Very impressive. On Monday, 20 July 2015 21:28:51 UTC, Mike Fikes wrote: > Replete 1.0 is now in the App Store > > > http://blog.fikesfarm.com/posts/2015-07-20-ios-clojurescript-repl-available-in-app-store.html -- You received this message because you a

Java 8 Lambda Interop

2015-07-26 Thread Andrew Oberstar
unction or macro to reify a wrapper around a Clojure function to implement all of the usual interfaces from java.util.function. Anyone have any better ideas? Andrew Oberstar -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Java 8 Lambda Interop

2015-07-27 Thread Andrew Oberstar
ve functions as second-class citizens for interop. Granted, there may be a simplicity argument against this (maybe that's why Java varargs require an explicit array?). Andrew Oberstar On Mon, Jul 27, 2015 at 4:16 AM Gary Verhaegen wrote: > On Sunday, 26 July 2015, Andrew Oberstar wr

Re: Java 8 Lambda Interop

2015-07-27 Thread Andrew Oberstar
a Java API that expects something implementing a single-method-interface (Predicate in this case). Right now I need to do something like this: (defn lambda [f] (reify Predicate (test [x] (f x (-> (IntStream/range 0 100) (.filter (lambda odd?)) (.limit 5) (.collect Collectors/toList)) Andrew

Re: Java 8 Lambda Interop

2015-07-28 Thread Andrew Oberstar
s the case, it seems like a beneficial thing to support in Clojure. Though it depends on the impact to the compiler. I can see the argument either way. Andrew Oberstar On Mon, Jul 27, 2015 at 9:49 PM Sean Corfield wrote: > I think Mike was suggesting something like this: > > (-> (IntS

Re: Clojure beyond Java 6 ?

2015-08-08 Thread Andrew Oberstar
doesn't become an excuse for Clojure to stay moored to the JVM's past for the long-term. Andrew Oberstar On Fri, Aug 7, 2015 at 7:12 AM Morten Christensen wrote: > I am new to Clojure which I am evaluating using Clojure for a Java 8 based > framework with code in clojure, j

[ANN] ike.cljj 0.1.0

2015-08-12 Thread Andrew Oberstar
java.util.function ones). * Wrappers for java.lang.invoke (MethodHandles API) since it was used for the SAM conversion. Any feedback is welcome. Thanks! Andrew Oberstar -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Decomplecting Clojure

2015-08-12 Thread Andrew Cristina
Hi Sebastian, Thanks for sharing! I'm enjoying read this document, and I plan to share it with a few teammates. I do have a question about one section however: Near the end, under "Principles and Community" you list three questions, and then state that if the answer to any of the questions is

Re: Durable atom

2015-08-16 Thread Andrew Chambers
Datomic is basically what you want. when you get a db instance from the connection it is equivalent to dereffing an atom - You get an immutable reference to the data at that point in time. On Monday, August 17, 2015 at 2:59:09 AM UTC+12, Jeremy Vuillermet wrote: > > Hello, > > With the rise of O

Re: Durable atom

2015-08-16 Thread Andrew Chambers
UTC-4, Andrew Chambers wrote: >> >> Datomic is basically what you want. >> > > What if he wants open source? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Clojure Truck Factor

2015-08-17 Thread Andrew Chambers
>From my outside observation you would need to hit Rich Hickey, Timothy Baldridge, David Nolen, Stuart Halloway + other cognitect staff all at once. This wouldn't exactly "kill" clojure. But may put it into maintenance only mode for a while. On Saturday, August 8, 2015 at 4:21:40 AM UTC+12, Gu

[ANN] ike.cljj 0.2.2

2015-08-25 Thread Andrew Oberstar
://github.com/ike-tools/ike.cljj Andrew Oberstar -- 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 patient with your firs

Re: ANN: Om 0.5.0-rc1

2014-02-19 Thread Andrew Keedle
On Wednesday, 19 February 2014 03:51:15 UTC, David Nolen wrote: > In order to stay in sync with React 0.9.0-rc1 I've cut Om 0.5.0-rc1. There > are a couple of small breaking changes due to React but otherwise the > differences between 0.4.2 and 0.5.0-rc1 are minor. One big enhancement is > that

Re: [ClojureScript] Re: Test G.Closure lib release 0.0-20140226-71326067

2014-03-13 Thread Andrew Keedle
ime and thanks for all your efforts on all of the wonderful things you create that I get to use everyday. Andrew On Thursday, 13 March 2014 12:32:37 UTC, David Nolen wrote: > Andrew, > > > I've tried the new JARs on a couple of projects and I have not encountered > these i

lein2 - lein version fails due to org.apache.http.impl.client.DefaultRequestDirector

2014-03-31 Thread Andrew Xue
my lein started not working mysteriously. i can't even get lein version to work w/o a weird error: lein version Mar 31, 2014 3:11:38 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host:

Extending a data model

2014-04-14 Thread Andrew Chambers
Hi everyone, I'm new to clojure and in order to learn I'm working on making some compiler tools which converts a lightweight IR code into assembly. My data model for an IR function is along the lines of (def code { :entry [[:loadaddr :x "global_label"] [:loadconst 1 :y]

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-14 Thread Andrew Chambers
Clojure logic programming with core.logic (something akin to a sudoku solver https://gist.github.com/swannodette/3217582 is a good example) or using datomic to have a database with a time machine and datalog for queries might be cool (perhaps visualizing the data in the database at arbitrary ti

Re: Extending a data model

2014-04-14 Thread Andrew Chambers
methods may be another solution. On Tuesday, April 15, 2014 11:59:17 AM UTC+12, Reid McKenzie wrote: > > Hey Andrew, I actually built something very much along these lines a few > months ago if you care to cheat off of it: > > http://github.com/arrdem/toothpick is an assembler g

Re: Extending a data model

2014-04-14 Thread Andrew Chambers
An update, I read about protocols and multimethods. I think multimethods are a decent way to go (cant use protocols without a defrecord) provided they work across namespaces. On Tuesday, April 15, 2014 11:52:36 AM UTC+12, Andrew Chambers wrote: > > Hi everyone, > > I'm new

Clojure compiletime vs runtime

2014-04-14 Thread Andrew Chambers
Is there an explanation of how clojure deals with scoping and its static checking. It seems to be a hybrid of a static language and a dynamic language when it comes to compilation. I'll elaborate. The following code wont compile: (defn x [] nil) (defn y[]) ((x)) however this code will compile:

  1   2   3   4   >