[ANN] mustache.clojure 0.3.0

2016-06-13 Thread Bill Robertson
Hello, I've released 0.3.0 of mustache.clojure. It's a Clojure adapter for mustache.java, which performs well and has good adherence to the mustache spec (with the exception of whitespace). Version 0.3.0 adds mustache spec compliance equal to mustache.java.

Re: Attempt at rethrow macro

2013-04-01 Thread Bill Robertson
-symbol, not as part of the try special form. Macro-experts, please correct me :) Tried to quickly catch up with http://www.infoq.com/presentations/Clojure-Macros, but infoq seems slow. Cheers, Alf On 1 April 2013 17:21, Bill Robertson billrob...@gmail.com javascript:wrote: I was all

Re: Attempt at rethrow macro

2013-04-01 Thread Bill Robertson
While it may violate the principle of least surprise (until you realize/learn that try/catch is a special form), I don't think it's a bug. On Monday, April 1, 2013 4:00:31 PM UTC-4, Cedric Greevey wrote: IMO, the real problem here is try not macroexpanding its body before looking for its

Distributing Clojure 1.5 to Java 6 and Java 7 JVMs

2013-03-01 Thread Bill Robertson
If I want to distribute Clojure 1.5 to Java 1.6 JVMs, and I am not using the reducer code, do I need to include the fork join library? If I do use the reducers library, and I need to distribute to both JVM versions, should I include the fork/join lib with the distribution and then will it work

Re: ANN: a Clojure docs site, and github organization

2012-10-08 Thread Bill Robertson
Giant +1 to moving clojuredocs.org forward. I've been getting concerned about the longevity of the site, and I would really miss it if it were gone. On Thursday, October 4, 2012 4:35:33 PM UTC-4, Michael Klishin wrote: 2012/10/5 Bronsa brob...@gmail.com javascript: Wouldn't it be better for

Re: genuine help needed to speed up minimax algorithm!

2012-09-03 Thread Bill Robertson
Did you figure out what was going on? -- 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

Re: new with clojure, need help!

2012-04-30 Thread Bill Robertson
Hello, I put together a presentation that will help you. http://www.tekbot.com/clojure-simple-start.pdf It teaches you a few things for working with the repl that will help you whether or not you're working with Emacs, Eclipse etc... It also discusses a little bit about using leiningen, which

Why don't these two functions produce equivalent results?

2012-01-27 Thread Bill Robertson
I don't understand why the two functions below (recurs and transi) do not produce the same result. To the best of my understanding doseq will consume an entire sequence as demonstrated here: user= (doseq [x (range 0 10)] (print x)) 0123456789nil user= *clojure-version* {:major 1, :minor 3,

Re: Why don't these two functions produce equivalent results?

2012-01-27 Thread Bill Robertson
use transients unless you read and understand the documentation. On Jan 27, 2012 12:41 PM, Bill Robertson billrobertso...@gmail.com wrote: I don't understand why the two functions below (recurs and transi) do not produce the same result. To the best of my understanding doseq

Re: Why don't these two functions produce equivalent results?

2012-01-27 Thread Bill Robertson
use transients unless you read and understand the documentation. On Jan 27, 2012 12:41 PM, Bill Robertson billrobertso...@gmail.com wrote: I don't understand why the two functions below (recurs and transi) do not produce the same result. To the best of my understanding doseq

Re: Why don't these two functions produce equivalent results?

2012-01-27 Thread Bill Robertson
to a transient map, adds mapping of key(s) to val(s) in the resulting map. Thanks -Bill On Jan 27, 4:13 pm, David Nolen dnolen.li...@gmail.com wrote: On Fri, Jan 27, 2012 at 3:08 PM, Bill Robertson billrobertso...@gmail.comwrote: I have read (doc transient), (doc assoc!) and (doc persistent

Re: topoged-hibernate 1.0.0

2012-01-06 Thread Bill Robertson
On Jan 3, 4:26 pm, Matthew O. Smith m0sm...@gmail.com wrote: There is a mismatch between hibernate maps and clojure maps which means that there is some translating between them. Hopefully, this will be smoothed over in the future What is the mismatch? -- You received this message because

defrecord based on runtime metadata?

2011-12-18 Thread Bill Robertson
I'm trying to define records based on meta data read in at runtime, and I'm attempting to write a function that extracts name and attrs and passes them to defrecord, but I don't understand how to dynamically create the symbol for the record name. e.g. user= (defrecord (symbol foo bar) [a b])

Re: Proposal: libraries should have type hints

2011-11-22 Thread Bill Robertson
I think there is another reasonable case for a type hint. If you've written a function that is not generic, where one type and only one type will do, then why not add a type hint as a form of documentation if nothing else? On Nov 21, 1:58 pm, Nicolas bousque...@gmail.com wrote: Hi ! An

How do I store/read data with function references in it?

2011-11-11 Thread Bill Robertson
If I use pprint and read-string to serialize and deserialize data w/o function references it works o.k. This is clojure 1.3. e.g. save something to disk, restart the vm, read it in ok. user= (def foo {:a 1 :b 2 :c [more stuff]}) user= (def output (java.io.FileWriter. foo.clj)) user=

Re: How do I store/read data with function references in it?

2011-11-11 Thread Bill Robertson
So far its looking like I can't. I will just have to work around it then. NBD. Thanks On Nov 11, 12:02 pm, Chris Perkins chrisperkin...@gmail.com wrote: It looks like your (:foo d) is a symbol.  ((:foo d) 4 5) is trying to look itself up as a key in the map you provided, which is 4. Since

Re: Please try the alphas and betas!

2011-10-30 Thread Bill Robertson
I'm new, so forgive me if this is a bad question. Are the snapshots announced here? Or is it a continuous process? I cloned the repo from github, and it built as 1.4.0 snapshot, if a maven/ivy/lein user wanted that they should target the same thing correct? Then the next questions are, how would

Re: modern clojure summary

2011-10-30 Thread Bill Robertson
On Oct 27, 9:10 pm, falcon shahb...@gmail.com wrote: In Rich's most recent talk, Simple Made Easy, he mentioned that clojure for javascript was built from the ground up using protocols and other modern clojure constructs. Is there a resource which describes clojure using modern concepts,

Re: Clojure in Emacs Seemingly Impossible

2011-10-30 Thread Bill Robertson
Which is exactly the problem with Clojure in Emacs. There are N sets of instructions out there, and N-1 of them are out of date. And even the Nth one is incomplete. Step 1: Install clojure-mode either from Marmalade or from git. What if you don't know how to do that? So you click through to the

Re: Clojure in Emacs Seemingly Impossible

2011-10-30 Thread Bill Robertson
I've never seen that. Good stuff there. Yes, I agree that the wiki should refer to that page. Thanks! On Oct 30, 8:47 pm, Phil Hagelberg p...@hagelb.org wrote: On Sun, Oct 30, 2011 at 5:43 PM, Bill Robertson billrobertso...@gmail.com wrote: Which is exactly the problem with Clojure in Emacs

Re: ClojureScript Presentation - video

2011-08-02 Thread Bill Robertson
Didn't for me. I was pretty surprised. On Aug 2, 10:05 am, Claudia Doppioslash claudia.doppiosl...@gmail.com wrote: Trying to get the avi to play on the mac... vlc? Works for me :) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: ClojureScript on Windows

2011-07-31 Thread Bill Robertson
You can also add the setlocal command to the .bat file. It will make all variable set commands local to the process (and sub-procs iirc). Better this way because you're not littering in the user's environment. -Bill On Jul 30, 8:14 pm, Benny Tsai benny.t...@gmail.com wrote: Brenton, thank you

Re: ClojureScript Presentation - video

2011-07-30 Thread Bill Robertson
blip.tv is still wrapped around a tree. I've tried several times over the last several days. I tried a few random other videos too, but no luck. Trying to get the avi to play on the mac... -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: better community docs: getting started

2011-07-28 Thread Bill Robertson
Hello Stu, I think the clear no options getting started path should include a tutorial and focus on the repl and using a *generic* text editor. A downloadable archive file (zip and tar) that included things like jline, clojure jars, and some scripts (.sh *and* .bat) to just start it would allow

Re: Java 7 is out!

2011-07-28 Thread Bill Robertson
The new JVM really starts fast. Clojure users will like that. I also noticed that (at least for 64-bit) that the Windows version only comes with the hotspot compiler. No client jvm. I haven't checked 32-bit. This is a big change, because previous 32-bit JRE's only came w/ client. I had never

Re: Ok, so code is data...

2011-05-10 Thread Bill Robertson
      #(not= ::eof %)       (repeatedly #(read pbr false ::eof)) (read-all /some/clojure/file.clj) = ((foo :bar) (baz)) Justin On May 9, 11:36 pm, Bill Robertson billrobertso...@gmail.com wrote: How do I actually manipulate it?  I have some complicated logic that I would like

Re: Ok, so code is data...

2011-05-10 Thread Bill Robertson
Thanks for the feedback and pointers. On May 10, 11:37 am, Timothy Baldridge tbaldri...@gmail.com wrote: On Tue, May 10, 2011 at 10:26 AM, Jonathan Fischer Friberg odysso...@gmail.com wrote: How do I actually just load code w/o evaluating it? mostly when you want something like this,

Ok, so code is data...

2011-05-09 Thread Bill Robertson
How do I actually manipulate it? I have some complicated logic that I would like to transform into html (or maybe xml) for display purposes. I'm generating the Clojure code by parsing some nasty Java and outputting s-expressions. The Java is basic, but quite deeply nested. I want to generate

Re: The Joy of Closure

2011-02-07 Thread Bill Robertson
Programming Clojure is also a good book, but it is now somewhat dated as to what is happening in the language. In what ways? I am reading the book now, and I would like to know if there are any sections that might be superseded by newer language features. -- You received this message because

Re: osx + clojure + emacs + leiningen blog posts

2011-01-03 Thread Bill Robertson
the path issues inside of Emacs: Is fixing the path related to the information about ~/.emacs.d/ username.el? If not then I would suggest a new paragraph. If it is, then will you please explain how? Thanks, Bill Robertson On Dec 28 2010, 11:31 pm, gaz jones gareth.e.jo...@gmail.com wrote: thanks

Re: Loading JNI

2011-01-03 Thread Bill Robertson
I would suggest working through simple a example in just java, just so you can figure out how to get your dlls loaded and then calling them. Once you work out the configuration/setup kinks I would add clojure on top of that. I would also suggest you use jna instead of straight up jni. If it fits

Re: osx + clojure + emacs + leiningen blog posts

2011-01-03 Thread Bill Robertson
Yes. Very helpful. Thanks Gaz. Also, thanks to Phil for all of his hard work. -Bill On Jan 3, 10:50 am, Neo neo@gmail.com wrote: Very useful info, really thanks for that. Will try later and give feedback. gaz jones wrote: oh hi, i put together a couple of blog posts around