Re: [core.spec] Stricter map validations?

2017-11-14 Thread Greg Mitchell
Saw this thread on the REPL, interesting discussion. On Tuesday, October 3, 2017 at 10:57:34 AM UTC-7, Alex Miller wrote: > > > It's not about easier, it's about possible. Open grows, closed breaks. > > I agree with the broad brush, but it's important to listen to this usability feedback befo

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

2014-11-20 Thread Greg Mitchell
ly changing the implementation is probably unfeasible. I just want to raise these concerns and see whether other people share them. If so, maybe they can serve as patterns or anti-patterns for future libraries. -Greg Mitchell On Monday, March 25, 2013 2:51:42 PM UTC-7, Michael Cohen wrote: > >

Re: Cyclic Agents

2014-09-11 Thread Greg MacDonald
Oh that makes sense. Thanks a lot! On Thu, Sep 11, 2014 at 1:36 AM, Carlo Zancanaro wrote: > Hey Greg, > > On Thu, Sep 11, 2014 at 12:30:11AM -0700, Greg MacDonald wrote: > > So how come two agents can't contain one another? The following code > causes > > a St

Cyclic Agents

2014-09-11 Thread Greg MacDonald
Hi Everyone, So how come two agents can't contain one another? The following code causes a StackOverflowError. In the real world things can't contain other things cyclically so I suspect that's why, but if someone could explain this better to me I'd appreciate it. :) - Gre

clojure streams

2014-08-29 Thread Greg MacDonald
Hi Everyone, Does anyone know the status of clojure streams is? I would like to try them out but I can't find the svn repository mentioned on the website: http://clojure.org/streams. Thx! -Greg -- You received this message because you are subscribed to the Google Groups "Clojure&

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

2014-06-27 Thread Greg Knapp
That is cool :) On Tuesday, 24 June 2014 19:29:00 UTC+1, Mike Fikes wrote: > > (Apologies to Greg for having essentially hijacked this thread, but I > suspect he'd find this cool.) > > I have no experience with the Swift REPL yet, but I'm still finding this a >

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

2014-06-04 Thread Greg Knapp
I wasn't really pointing at performance with my post. More about native app development, for OSX we have Clojure on the JVM which is fine. I don't see Apple allowing Java on iOS anytime though. Thanks for the replies so far, this was purely food for thought. On Wednesday, 4 June 2014 16:11:56 U

Clojure on iOS devices - Swift as a host?

2014-06-04 Thread Greg Knapp
The recent release of Swift made me revisit Clojure on LLVM. This post from 2010 suggests it's a very difficult task. Swift would make this job easier? As with ClojureScript, generate Swift code / provide interop and Clojurian's

Re: Joy of Clojure example not working

2014-05-20 Thread Greg D
Yes, the examples in the book are missing some lines. I think the following log shows what they were going for: joy.udp=> (remove-method compiler ::osx) joy.udp=> (def unix (into unix {::c-compiler "/usr/bin/gcc"})) joy.udp=> (def osx (into osx {:c-compiler "gcc"})) oy.udp=> osx {:home "/Users",

Re: ArithmeticException from unchecked-add

2014-05-20 Thread Greg D
Thanks. I've got to pay more attention to the distinction between long and Long in the documentation. The docs for unchecked-add ( > http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/unchecked-add > ) > only cover the case of both arguments being primitive longs. > -- You r

ArithmeticException from unchecked-add

2014-05-19 Thread Greg D
I didn't expect this one. See the illustrative sequence below. Should I be reporting this as a bug, or re-read the docs? ; CIDER 0.5.0 (Clojure 1.6.0, nREPL 0.2.3) user> (require '[clojure.stacktrace :as st]) user> (unchecked-add (Long/MAX_VALUE) (Long/MAX_VALUE) ) -2 user> (unchecked-add ^lo

Re: Best way to pass parameters?

2014-05-19 Thread Greg D
Not an answer to your question, but you may want to check out: Datomic: The fully transactional, cloud-ready, immutable database. On Monday, May 19, 2014 10:07:15 AM UTC-7, Ivan Schuetz wrote: > > Hi, > > I'm building a webservice, have 2 layers: webservice and database.

Re: Joy of Clojure example not working

2014-05-19 Thread Greg D
The second edition of Joy of Clojure, MEAP v10 shows the same error and progressive solution about half way down pdf-page 318 in section 9.2.4. On Monday, May 19, 2014 6:39:26 AM UTC-7, gamma235 wrote: > > Hi guys, I am working through the pre-release second edition of Joy of > Clojure's section

Re: Must a page refresh fire an init event?

2014-04-28 Thread Greg Knapp
raps around your application state atom and persists it in the browser's local storage (instead of using cookies). The usual warning about the type of information you should/shouldn't store in the client applies. Regards, Greg On Sunday, 22 January 2012 15:06:24 UTC, Folcon wrote: > > H

Re: Improving pprint behavior for anonymous functions

2014-04-26 Thread Greg D
Simpler yet using metadata: (ns example.ppfn) (defn print-pf [pf] (if-let [ppf (::ppf (meta pf))] ppf pf)) (defmacro partial* [& args] `(let [m# (pr-str '(partial* ~@args)) pf# (with-meta (partial ~@args) {::ppf m#})] (defmethod print-method (class pf#) [o# w#] (print-simple (

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Greg D
/* 1 1 7) user=> p6 (partial clojure.core/+ 1 2 3) user=> (def comma-join (partial* clojure.string/join ", ")) #'user/comma-join user=> comma-join (partial clojure.string/join ", ") user=> (p6 100) 106 user=> (t7 5) 35 user=> (comma-join ['a &#x

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Greg D
om/clojure/clojure/blob/master/src/clj/clojure/core.clj#L2460 > > > On Fri, Apr 25, 2014 at 5:47 PM, Greg D > > wrote: > >> I guess I don't understand the problem, or what is meant by "different >> classes". A counter-example would be helpful. >>

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Greg D
ote: > > That's not going to work, all the return classes of partial are the same > class. > > > On Fri, Apr 25, 2014 at 5:26 PM, Greg D > > wrote: > >> I don't know if this is considered good Clojure, but you could define a >> print-method within a m

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Greg D
, all the return classes of partial are the same > class. > > > On Fri, Apr 25, 2014 at 5:26 PM, Greg D > > wrote: > >> I don't know if this is considered good Clojure, but you could define a >> print-method within a macro to set up the normal string repres

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Greg D
I don't know if this is considered good Clojure, but you could define a print-method within a macro to set up the normal string representation for the partial function: (defmacro partial* [fname arg0 & args] `(let [pf# (partial ~fname ~arg0 ~@args) cpf# (class pf#)] (defmethod pr

Re: puzzled by RuntimeException

2014-04-25 Thread Greg D
Thanks Alex and Steve, I've based a ton of work on keywords where the second character is numeric. The http://clojure.org/readers page should be the normative reference. > The work is based on *reliance* on the definitions in the readers page. I believe it is unambiguous in demanding a colon as

Re: puzzled by RuntimeException

2014-04-22 Thread Greg D
I believe this is a problem in REPL-y, which is used when using 'lein repl'. I used Cider to start a nREPL server, then used 'leing repl :connect' to get the REPL-y interface. The problem was evident in the latter, but not the former. I opened an issue for REPL-y. Thanks again, Steve -- You

Re: puzzled by RuntimeException

2014-04-21 Thread Greg D
Steve, Thanks. I did a quick check, and it seems that I don't get exceptions when I start the repl as you do. I normally start mine with 'lein repl'. You've given me a good lead to investigate. Greg -- You received this message because you are subscribed to the Go

puzzled by RuntimeException

2014-04-21 Thread Greg D
The sequence in the transcript below shows runtime exceptions when a numeric keyword is followed by a list starting with a symbol or character. Would anyone help me with a reason for the failing cases? user=> (clojure-version) "1.6.0" user=> '(:42 a) (:42 a) user=> '(:42 "a") (:42 "a") user=> '(

Re: Thoughts on bags?

2014-04-19 Thread Greg D
Added link missing in previous post. A simple multiset/bag implementation for 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 fr

Re: Thoughts on bags?

2014-04-19 Thread Greg D
;beans)) #'user/cart1 user=> cart1 (make-shopping-cart eggs carrots beans) user=> (def cart2 (make-shopping-cart 'ham 'eggs 'carrots 'beans)) #'user/cart2 user=> cart2 (make-shopping-cart ham eggs carrots beans) user=> (= cart0 cart1) true user=> (= c

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread greg r
and emacs. The above page is one of the most up-to-date. Regards, Greg On Thursday, April 17, 2014 9:45:13 PM UTC-4, Thorsten Jolitz wrote: > > > Hi List, > > just installed lein2 and can start 'lein2 repl' successfully on the > command-line. 'lein repl'

Re: Thoughts on bags?

2014-04-17 Thread Greg D
(recur items) Neither Achim's deftype, nor the above, is likely as efficient as a core collection MultiSet. In the meantime, I hope these observations are useful. Greg -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Questions regarding Map vs Record and usage

2014-04-09 Thread Greg D
key names are good documentation when - there are many fields in the defrecord, or - when adding entries not in the defrecord (eg. my-rating) Greg -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread greg r
I can't answer your question from my own experience, but there does seem to be a way to develop your own language on the JVM: https://www.eclipse.org/Xtext/index.html You could create a "DSL" to your precise specifications. Regards, Greg -- You received this message

self-evaluation of record instances

2014-04-02 Thread Greg D
; self-evaluates when non-empty map, field added #user.Fields0{:x 0} user=> (eval f1) ; self-evaluates when non-empty map, declared field #user.Fields1{:f nil} user=> Greg p.s. A little help with "not quite getting refs"<https://groups.goo

not quite getting refs

2014-03-26 Thread Greg D
I've looked, but can't find, a discussion of the choice of a history mechanism for refs. I can't understand why the transactions just don't check #'identical? for the ref value, rather than maintaining a history queue. In other words, I don't see why (dosync (ref-set foo @foo))) should cause ot

Re: STM history queues, when is a snapshot pushed

2014-03-24 Thread Greg D
Having learned a little more about refs and transactions from M. Fogus and C. Houser "The Joy of Clojure, Second Edition", I altered the stress-ref function from 10.2.4. Using Clojure 1.5.1: (defn stress-ref [r] (let [slow-tries (atom 0)] (future (dosyn

STM history queues, when is a snapshot pushed

2014-03-23 Thread Greg D
Is a new snapshot pushed onto the history queue of a ref when 1. every time the ref is a target of alter, commute, ref-set, reset, alter-meta!, or reset-meta!, or 2. only when the committed value for the ref is not identical to the value at the end of the history queue? When chec

Re: non-equality (=) of records nuance

2014-03-18 Thread Greg D
I'm on 1.5.1 I have a workaround: - instead of - (map->Foo this) - use - (map->Foo (into {} this)) On Tuesday, March 18, 2014 5:47:46 PM UTC-7, Alex Miller wrote: > > What Clojure version are you on? -- You received this message because you are subscribed to the Google

non-equality (=) of records nuance

2014-03-18 Thread Greg D
lease help me understand the underlying mechanism. I'll need to develop a workaround to avoid confounding library users. Thanks, Greg user=> ;;; Set up protocol and records user=> (defprotocol FooBar (clone [this]) (switch [this])) user=> (defrecord Foo []) user=> (defrecord

Re: Help about using clojure in org mode in Emacs with CIDER

2014-02-02 Thread greg r
The worg documentation for the Clojure language has been updated: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html The installation instructions should result in a current Clojure/CIDER/clojure-mode/Leiningen system. Regards, Greg -- You received this message because

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread greg r
Hi Bastien, yes I will post a report at the mailing list today. Regards, Greg On Tuesday, January 28, 2014 12:55:20 AM UTC-5, Bastien Guerry wrote: > > Hi Greg, > > greg r > writes: > > > I compared a computer set up with the latest of everything (org/emacs > &

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-27 Thread greg r
: #+begin_src clojure :results value raw [1 2 3 4] #+end_src New: (CIDER) #+RESULTS: [1 2 3 4] Old: (nrepl) #+RESULTS: | 1 | 2 | 3 | 4 | It appears the conversion to org table is not happening. Regards, Greg -- -- You received this message because you are subscribed to the Google Groups "Cl

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-23 Thread greg r
t the process with keys and git! Good luck with org-mode, cider and Clojure code blocks. It's a great way to code and experiment, as well as create dynamic documents. I've had very good results with the system. Regards, Greg -- -- You received this message because you are subscribe

No such namespace warning with Clojurescript repl

2013-10-19 Thread Greg Chapman
I've been working through the Clojurescript tutorial here: https://github.com/magomimmo/modern-cljs When compiling step 2, which adds a file requiring clojure.browser.repl, I get a "WARNING: No such namespace: e at line 71" (in repl.cljs). The code in repl.cljs is: (event/listen connecti

Re: How to go about 'proving' why dynamically typed languages are better.

2013-10-08 Thread Greg Bowyer
js> Array(16).join("wat" - 1) + " Batman!" "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!" js> On Tuesday, October 8, 2013 6:07:47 AM UTC-7, Laurent PETIT wrote: > > 2013/10/8 Robert Day > > >> >> On 08/10/13 13:49, Nando Breiter wrote: >> >>> >>> >>> >>> If you try and add 10 to "Hello"

Re: How to go about 'proving' why dynamically typed languages are better.

2013-10-06 Thread Greg
I support the sentiment expressed in your email. +1 Type systems are nice, just don't force them upon anyone. Keep the C++ at bay. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Oct 6, 2013, at 7:16 AM, Chris Zheng wrote: > Thanks Mike for your r

Re: Clojure for the Brave and True, an online book for beginners

2013-09-03 Thread Greg
I think it could benefit from more posts on using Clojure with IDE/Editor ___. Perhaps outsource some of that with links to existing posts on the topic. I hesitate to recommend this to anyone because I can't recommend Emacs (even though it's my primary terminal editor). - Greg --

Re: as-> macro enhancement request?

2013-08-21 Thread Greg
uuz)) >blah) That's ugly. >> Would love it if as-> allowed removing unnecessary characters, this way: >> >> (as-> <> foo >> bar >> (baz <> quux) >> blah) >> >> >> Anyway, very minor quibble, j

Re: [ANN] slothcfg - Improved version of awesome but abandoned 'configleaf' project!

2013-08-16 Thread Greg
ou are free to shoot me emails off-list. Sincerely, Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 16, 2013, at 7:14 PM, David Santiago wrote: > So, just to be clear, you thought you'd just go ahead and fork, rename, and > re

[ANN] slothcfg - Improved version of awesome but abandoned 'configleaf' project!

2013-08-16 Thread Greg
adable form" RuntimeException. Included @ninjudd's PR to configleaf to add :keyseq and :var options Restructured and updated text in README.md Grab it at Github: https://github.com/taoeffect/slothcfg Cheers! Greg -- Please do not email me anything that you are not comfortable also sharing wit

Re: Halp Clojurinoes! Cannot deploy to Clojars! :-(

2013-08-16 Thread Greg
l iyKQ4cpVJ9VPQPVYQ0Dyp+QJeZfKRpYWv/6kr3kFjY8UefZw189O =AGtu -END PGP PUBLIC KEY BLOCK- -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 16, 2013, at 3:49 PM, Greg wrote: > I've been trying for at least an hour to deploy a project

Halp Clojurinoes! Cannot deploy to Clojars! :-(

2013-08-16 Thread Greg
:no-aot [:default {:aot ^:replace []}]} My decrypted ~/.lein/credentials.clj.gpg: {#"clojars" {:username "taoeffect" :password ""}} My failed attempt to deploy: [prompt] $ lein deploy clojars Wrote /Users/gslepak/Programming/Clojure/slothcfg-git/pom.xml

Re: [ANN] Leiningen 2.3.0 released

2013-08-12 Thread Greg
led view Homebrew, should it also be upgraded via Homebrew, or can it be upgraded later via the lein upgrade command? Or could that cause problems? For safety's sake, I didn't test what would happen myself and just used Homebrew to update it. - Greg -- Please do not email me anything tha

Re: [Proposal] Simplified 'ns' declaration

2013-08-10 Thread Greg
design? Other than that, I don't personally have any ideas on how that could be simplified. I hope to respond to the other emails in this thread when I get the time to, especially Timothy's. Hopefully that'll happen once I finish one project in about a week or so. Cheers, Greg --

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
27;s the same as an import statement. If you want the var, do either: (ns user [foo]) foo/IBar Or, if you want to refer the protocol so that you don't have to qualify it as above, simply do this: (ns user [foo (IBar)]) It's the same thing as writing this at a REPL: (require '

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
ort each? If I simply say "go get foo.bar" what >> are you going to load, the .clj file, or the java interface? It would also help to have an example of how it's currently done. - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA.

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
l g (dostuff [this])) g baz=> g {:on-interface baz.g, :on baz.g, :sigs {:dostuff {:doc nil, :arglists ([this]), :name dostuff}}, :var #'baz/g, :method-map {:dostuff :dostuff}, :method-builders {#'baz/dostuff #}} baz=> (defn g [] "a") #'baz/g baz=> g # And I'm

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
you can do it explicitly with :as, like I gave in the example with "enlive-html": [net.cgrand enlive-html :as html] - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 6, 2013, at 11:39 AM, phillip.l...@newcastle.ac.uk (Phillip Lo

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
I assume there's some minor error in the example you gave, but let me try and and address your question anyway: you could either introduce a new keyword (like :as-class), or use :as to rename them to avoid conflicts. After all, it's already possible to have conflicts between just two name

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
ot;used". [one reload middleware] Is equivalent to: (:require [one.reload :as reload] [one.middleware :as middleware]) - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 6, 2013, at 11:07 AM, phillip.l...@newcastle.ac.uk (Phillip

Re: Can we please deprecate the :use directive ?

2013-08-06 Thread Greg
> Struggling a bit. Moving the keywords to the end of the vector rather > than the beginning? This reduces complexity? I changed the syntax a bit since posting that, please have a look at the "[Proposal] Simplified 'ns' declaration" thread. - Greg -- Please do not

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Greg
ly contain functions and the keyword :as to rename functions. 4) namespaces are referred by placing a space after the namespace prefix Also, an added feature/rule is that globbing-based strings can be used to save on typing (as shown in the example above). - Greg -- Please do not email me anyth

Re: [Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
e used to save on typing (as shown in the example above). - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 5, 2013, at 2:31 PM, Jonathan Fischer Friberg wrote: > I forgot to add: > > I think simplicity is really important, a

Re: [Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
[one.middleware :as middleware] [net.cgrand.enlive-html :as html]) (:import (org.apache.maven.artifact.resolver ArtifactResolver) (java.io File - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 5, 2013, at 1:4

Re: [Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
chip away at the mountain of keywords and we still have *all* of the power we had before! We got rid of :as-ns, :as-class and :all! Keep simplifying till you can't simplify anymore! That's the Lisp way! :-) - Greg -- Please do not email me anything that you are not comfortable also sh

Re: [Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
evel of the namespace? I see no reason why we couldn't just do this then: [:refer-all [core]] Or optionally, in the case where there's just one namespace in the vector: [:refer-all core] OK, that's enough from me on this for now, gotta run (lot of work to do!). - Greg -- Pl

Re: [Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
s and IDEs to integrate with Clojure. Summary: - Just one syntax to know: vectors - Keyword options handle everything else Cheers! - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 5, 2013, at 12:32 PM, Lee Spector wrote: > &

[Proposal] Simplified 'ns' declaration

2013-08-05 Thread Greg
ick the ball rolling. If the above syntax can't be made to support the old school syntax as well, another thought would be to create a new name for the declaration, calling it "include" or something like that instead of "ns". Thoughts? - Greg -- Please do not email me anyt

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Greg
olver :as-class] [java.io.File :as-class]) - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 5, 2013, at 12:10 PM, Greg wrote: > * That email was just an idea to explore, not perfection. > > Also, this is a mistake: > >

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Greg
* That email was just an idea to explore, not perfection. Also, this is a mistake: (:require [clojure.core :refer [ancestors printf]] Should read something like: (:require [clojure.core :refer-except [ancestors printf]] - Greg -- Please do not email me anything that you are not comfortable

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Greg
g are the keyword-options to available in the :require clauses, but we already had those before. > Please also explain at the same time, why (use 'core.matrix) remains > clear and why this should not change to "(require 'core.matrix :refer > :all)". I must have mi

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Greg
>> It's pretty ugly to use aliases for numerical code, e.g. with core.matrix, >> e.g. > > Agreed. It's nice that :require :refer :all is available for such instances, > isn't it? * Or for the more gentlemanly and considerate among us, just (:require ... :re

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Greg
> It's pretty ugly to use aliases for numerical code, e.g. with core.matrix, > e.g. Agreed. It's nice that :require :refer :all is available for such instances, isn't it? -Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On

Re: ANN Langohr 1.0 (final) is released

2013-07-29 Thread Greg
Thanks for the explanation! -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 29, 2013, at 4:25 PM, Michael Klishin wrote: > 2013/7/29 Greg > I'm not familiar enough with either project to understand. > > Langohr is a Rab

Re: ANN Langohr 1.0 (final) is released

2013-07-29 Thread Greg
> Langohr README answers your question pretty well. I'm not familiar enough with either project to understand. - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 29, 2013, at 3:04 PM, Michael Klishin wrote: > 2013/7/29 Greg

Re: [ANN] cljzmq-0.1.1 - A Clojure binding for ØMQ

2013-07-29 Thread Greg
Awesome! Thanks! It's nice to know this exists, might have a use for it in the future. Cheers, Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 29, 2013, at 9:00 AM, Trevor Bernard wrote: > Hello, > > I'd like to ann

Re: ANN Langohr 1.0 (final) is released

2013-07-29 Thread Greg
Neat! Bookmarked. :-) What about clamq? https://github.com/sbtourist/clamq Is there a reason you decided to write your own instead of contributing to that project? Cheers, Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 29, 2013, at 2

Re: Interest in a commercial IDE for Clojure?

2013-07-28 Thread Greg
Korny, I think there were multiple posts from me on that day. This is the one: https://groups.google.com/d/msg/clojure/fWOZ9AJzBtU/djhcj4nYVxgJ Cheers! Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 28, 2013, at 1:28 AM, Korny Sietsma

Re: [ANN] 18th tutorial of modern-cljs series

2013-07-27 Thread Greg
ombine all of the -dbg and -pre files together, just make it so that after you build with a profile, everything is set to that profile, and then to try the other version, just build with a different profile. Fewer files to update and deal with that way. Cheers, Greg -- Please do not email me any

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Greg
u see that source but in a hover/floaty/popup window so that you don't have to navigate back to where you were. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 27, 2013, at 3:10 PM, Greg wrote: > Colin: > > I think ST has a good bus

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Greg
ty, where for the selected function/method in the drop down list you are shown all the documentation for it. And, assuming you implemented all of the above, then it'd also be nice to auto-import namespaces (similar to how IntelliJ already does it for Java source). Cheers! Greg -- Please d

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Greg
port is super-crashy. That > doesn't give me a whole lot of confidence. OK, well, were they talking about the fork I was referring to? Are you sure? Did you try it yourself? I haven't experienced a single crash so far. I see you didn't comment on the jump-to-* recommendations..

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Greg
t works with nREPL. Link in the other thread. So looks like you're pretty much covered by ST already. :-) Cheers, Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 27, 2013, at 11:57 AM, Steven Degutis wrote: > I would be willin

Re: is intellij idea a good ide for clojure development?

2013-07-25 Thread Greg
, 2013, at 10:54 PM, Greg wrote: >> 'jumping to a symbol's definition (and back again)? Those didn't seem to be >> there last time, and I'd struggle to live without them on a project of any >> size.' >> >> Besides paredit, this is abso

Re: is intellij idea a good ide for clojure development?

2013-07-25 Thread Greg
> You submit patches to nonfree software?! How do you make a screwy-eyed emoticon? The plugin is free software. ST is nagware. Oh, and IntelliJ, as others have already pointed out, is also free software (community edition, which is great). -Greg -- Please do not email me anything that you

Re: is intellij idea a good ide for clojure development?

2013-07-25 Thread Greg
us, "Find Function Definition" now works on just about every symbol I try it on! :-) I might make a blog post about my ST2 Clojure setup if there's any interest in that. > 4. On Sublime Text (ST) > > > Non-free. I'd say it'

Re: is intellij idea a good ide for clojure development?

2013-07-25 Thread Greg
ime customizing Sublime Text, but the good news is that your time won't be spent in vain, and once you have it set up the way you like, there's no need to continue tinkering like crazy. 5. Conclusion - - Yes, IntelliJ is a very good IDE for Clojure development. - Sublim

Can we please deprecate the :use directive ?

2013-07-23 Thread Greg
level reason why that's not possible. :-\ Thoughts? Thanks, Greg P.S. If this has already been brought up you have my sincere apologies. -- Please do not email me anything that you are not comfortable also sharing with the NSA. -- -- You received this message because you are subscribed

Re: [ANN] - 17th tutorial - Enlive by REPLing - of the modern-cljs series

2013-07-16 Thread Greg
Excellent work as usual Mimmo! I continue to find your tutorials very helpful. Thank you very much for creating them! -Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 14, 2013, at 11:53 AM, Mimmo Cosenza wrote: > Hi all, I j

Re: --> macro proposal

2013-07-13 Thread Greg
/tmp" and a file is made out of it. 'x' is rebound again to the resulting file and a put through the 'file-seq' function, etc. - Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 7, 2010, at 9:02 AM, Laurent PETIT

Re: The case for as->> ("as-last")

2013-07-13 Thread Greg
or special characters, so I searched the list and found this thread. It turns out my wish for a generalized threading macro three years ago came true!! https://groups.google.com/forum/#!msg/clojure/6Cb8MD5EC3w/y1mNNK3ZUxYJ Thank you Rich (or whoever's responsible)!!! :-D Cheers, Greg [1]

Re: Pedestal introduction question

2013-07-04 Thread Greg
Thanks! Yeah it's probably just a mistake in the docs. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 4, 2013, at 10:08 AM, gianluca torta wrote: > right, sorry! > > I found the double role of "template" in this sample file on the pedestal >

Re: Pedestal introduction question

2013-07-04 Thread Greg
Where did you see the first :require? I can't find it in the code sample. > one deriving from: > (:require ... > [io.pedestal.app.render.push.templates :as templates] > ...) Thanks, Greg -- Sent from my mobile device. Please do not email me anything that you are not

Pedestal introduction question

2013-07-03 Thread Greg
understand how a map, in this case `templates', is also being used as a namespace: `(templates/add-template renderer ... )'. What's going on? Many thanks, Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. -- -- You received this mes

Linux Journal July "Intro to Clojure on the Web"

2013-07-01 Thread greg r
by Reuven Lerner. 10 pages. Compojure is next. http://www.linuxjournal.com/content/july-2013-issue-linux-journal-networking Regards, Greg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Is there a better way to update a map atom?

2013-06-28 Thread Greg
magical atomic moment. If I've got this wrong, please let me know! Cheers, Greg On Jun 28, 2013, at 11:19 PM, Greg wrote: > Can anyone explain the relationship between swap! and reset! ? > > Why is using swap! in this example "safe" and using reset! not? > > I

Re: Latest JOGL with Clojure in Eclipse?

2013-06-28 Thread Greg
If you haven't considered LWJGL as an alternative to JOGL, I highly recommend it. I remember preferring it over JOGL when I compared them some years ago. Many popular game engines use it (like jMonkeyEngine). http://www.lwjgl.org/ http://mybuddymichael.com/writings/using-lwjgl-from-clojure.html

Re: Is there a better way to update a map atom?

2013-06-28 Thread Greg
Can anyone explain the relationship between swap! and reset! ? Why is using swap! in this example "safe" and using reset! not? I've tried searching google for comparisons of the two but can't find anything, and the documentation doesn't help much. Thanks, Greg On

Re: Adding implicit indexing to Clojure lists and arrays?

2013-06-27 Thread Greg
ing Clojure's extend-type function? Thanks, Greg On Jun 27, 2013, at 6:45 AM, Mikera wrote: > I agree that negative indexing (and presumably also modulo indexing for the > upper index?) is very useful. Stuff like this comes up all the time in > core.matrix > > However I don&#x

Adding implicit indexing to Clojure lists and arrays?

2013-06-26 Thread Greg
(a b c) Has this been considered already? Would this be something that could be added to the language syntax? Thanks for your consideration! Sincerely, Greg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread greg r
a-analysis-cookbook/book I'm going through it (slowly) and learning a lot. It's not a beginner's book. Full blast functional programming for sure. Regards, Greg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

[ANN] clj-configurator – A powerful yet simple Clojure configuration library.

2013-03-10 Thread Greg V
Hello everyone! I made a little configuration library: https://github.com/myfreeweb/clj-configurator Supports any configuration format (TOML, YAML, JSON, EDN, whatever) -- you just parse it yourself. Supports environment variables and Java system properties. Automatically figures out types base

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-05 Thread greg r
babel is commented out, so the later versions of nrepl must have this feature included. Too many months ago, I really need to put better notes and comments in my .emacs file! Greg On Monday, March 4, 2013 4:25:23 PM UTC-5, Mark C wrote: > > Very cool. Great looking doc! I just installed LaT

  1   2   3   4   >