Re: ClojureScript: how to call a js method when you have the method-string?

2012-10-17 Thread Frank Siebenlist
It seems you're refering to CLJS-353 - besides supporting a possible Lua backend, it also feels semantically cleaner not to overload array and object access - I'd vote for an additional oget/oset or obj-get/set. Also, the aget and aset interface have this multi-dimensional support thru the

Re: A/B testing in Clojure?

2012-10-17 Thread Simon Holgate
I was thinking of something along the lines of django-lean ( https://bitbucket.org/akoha/django-lean/wiki/Home) - clean perhaps :) I haven't implemented any A/B testing yet so I just wanted to get a feel for what other people are doing. The silence seems to indicate that people aren't! Having

Re: Hiccup - HTML - PNG

2012-10-17 Thread Pablo
Hi Nick, I used Flying Saucer to convert XHTML to PDF and was very happy with it. It can apparently render to PNG as well: http://flyingsaucerproject.github.com/flyingsaucer/r8/guide/users-guide-R8.html#xil_29 Cheers, Pablo On Wednesday, October 17, 2012 1:29:57 AM UTC+2, nchurch wrote: Has

Re: Clojure turns 5

2012-10-17 Thread James Qiu
Thanks Rich for having bring such a great gift to us. 在 2012年10月17日星期三,Rich Hickey 写道: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Clojure, and its community, great. Rich -- You received this message because you

Re: Clojure turns 5

2012-10-17 Thread Bruce Durling
Thanks Rich and Happy Birthday Clojure! cheers, Bruce On Wed, Oct 17, 2012 at 2:54 AM, Rich Hickey richhic...@gmail.com wrote: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Clojure, and its community, great. Rich --

Re: Clojure turns 5

2012-10-17 Thread eniotna
Thanks Rich, the community too! Happy birthday Clojure May the repl be with you :D Antoine 2012/10/17 Bruce Durling b...@otfrom.com Thanks Rich and Happy Birthday Clojure! cheers, Bruce On Wed, Oct 17, 2012 at 2:54 AM, Rich Hickey richhic...@gmail.com wrote: I released Clojure 5 years

Re: Correct usage of data-readers

2012-10-17 Thread Dave Sann
when I wrote a tag out, I did the same as Justin in his ordered lib, (defmethod print-method OrderedSet [o ^java.io.Writer w] (.write w #ordered/set ) (print-method (seq o) w)) so the tag is defined by this library and has specific meaning in the data written by this lib. A matched

Re: Correct usage of data-readers

2012-10-17 Thread David Powell
I had assumed that including data-readers.clj in a library was ok... I hadn't considered the issue of clashes with an application. Maybe some tags are intended to be concrete, and some abstractions. If you are defining a concrete tag, then including data-readers is ok, and clients just have to

Re: ClojureScript: how to call a js method when you have the method-string?

2012-10-17 Thread Dave Sann
Correct me if I am wrong but, string lookup will cause problems with advanced compilation - if you are not also setting the property or method by string name. On Wednesday, 17 October 2012 18:01:56 UTC+11, FrankS wrote: It seems you're refering to CLJS-353 - besides supporting a possible

Re: Clojure turns 5

2012-10-17 Thread Herwig Hochleitner
Happy birthday Clojure! Big thanks to Rich and the whole community! -- 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

Re: Clojure turns 5

2012-10-17 Thread Jim foo.bar
WOW! Has it been 5 years already? Thanks a lot Rich for this beautiful gift to all of us...You rock and Clojure rules!!! Jim On 17/10/12 02:54, Rich Hickey wrote: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Clojure,

Re: Hiccup - HTML - PNG

2012-10-17 Thread David Powell
I'm using PhantomJS http://phantomjs.org/ It is a headless WebKit build that can render webpages as png or pdf, amongst other stuff. It isn't a java lib though - it is a command-line executable. Not HTML, but possibly useful, I also use Batik http://xmlgraphics.apache.org/batik/ to render svg

Re: Clojure turns 5

2012-10-17 Thread Eric Thorsen
I remember having lunch discussing what a great world it would be if we could earn a living coding in a lisp. You not only made that happen but started something that I could never have imagined at the time. Thanks for Clojure and thanks to the incredible community that continues to inspire me

Re: Clojure turns 5

2012-10-17 Thread Niels van Klaveren
(take 5 (range)) Many happy return values, Rich ! On Wednesday, October 17, 2012 3:53:55 AM UTC+2, Rich Hickey wrote: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Clojure, and its community, great. Rich -- You

Midje popularity?

2012-10-17 Thread Andreas Liljeqvist
Hi. A couple of weeks ago I ported midje-mode over to nrepl. I did a post on the midje-group and made a pullrequest to the Midje-mode maintainer. Since I haven't got any response either on the mailinglist or the pullrequest I will ask here. Does anyone use Midje currently? Is there any other

Re: Midje popularity?

2012-10-17 Thread Ulises
Does anyone use Midje currently? I most definitely do! And thanks for porting midje-mode to nrepl. I've recently been migrating to nrepl and friends and I was missing my midje-mode! U -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Clojure turns 5

2012-10-17 Thread Timothy Washington
On Tue, Oct 16, 2012 at 10:02 PM, XPherior madrush...@gmail.com wrote: Thanks to everyone. This community is transforming software engineering in a great way. I was just thinking that the other day. Language of course is a tool that helps us humans communicate with each other, and describe

Re: Interest in Scribble for Clojure?

2012-10-17 Thread Eli Barzilay
Gary Johnson gwjohnso at uvm.edu writes: I see. After taking a closer look, I can see that you could do LP in Scribble (Yeah, but again -- that's really not its main goal.) as well as also outputting some different kinds of documentation formats, such as Javadocs or standalone documents.

ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread Jonathan Fischer Friberg
Hi, As I were unable to find a way to indent lisp code in jEdit, I decided to write a plugin for this purpose. It's called LispIndent and can be found here: https://github.com/odyssomay/LispIndent Please report if you have any problems! Jonathan -- You received this message because you are

Re: Clojure turns 5

2012-10-17 Thread Gary Johnson
You have made my dissertation not only bearable but an absolute blast, Rich. Thank you for your pioneering spirit, endless calls for incorporating higher principles in programming, and just being that awesome, humble guy with the crazy hair. ~Gary On Tuesday, October 16, 2012 9:53:55 PM

Re: Clojure turns 5

2012-10-17 Thread Timothy Baldridge
The one thing that has excited me the most about Clojure, is how it blends old and new ideas so well. Clojure is a language based ideas originally created in 1958. It runs on a VM created in 1990. It has a concurrency model never seen before, and it's data structures are based on concepts created

Re: ClojureScript: how to call a js method when you have the method-string?

2012-10-17 Thread David Nolen
On Wed, Oct 17, 2012 at 6:14 AM, Dave Sann daves...@gmail.com wrote: Correct me if I am wrong but, string lookup will cause problems with advanced compilation - if you are not also setting the property or method by string name. That is correct. Doing so would only make sense in the context

Re: Clojure turns 5

2012-10-17 Thread Jim foo.bar
On 17/10/12 15:41, Timothy Baldridge wrote: So thank you Rich...thank you for ruining all other languages for me. +1 very well put... Jim -- 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

Re: Midje popularity?

2012-10-17 Thread Armando Blancas
Does anyone use Midje currently? I do; and expect to use more of its features. -- 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

Re: Midje popularity?

2012-10-17 Thread Ben Mabey
On 10/17/12 7:31 AM, Andreas Liljeqvist wrote: Hi. A couple of weeks ago I ported midje-mode over to nrepl. I did a post on the midje-group and made a pullrequest to the Midje-mode maintainer. Since I haven't got any response either on the mailinglist or the pullrequest I will ask here.

Re: Midje popularity?

2012-10-17 Thread Andreas Liljeqvist
Are you implying that some people doesn't use Emacs? Heretic! Seems like there are a bunch of people interested. The features I am considering at the moment is: Making check-fact refer to actual linenumbers instead of [no-source]:3 or whatever. Migrating from comments to some other sort of

Re: Midje popularity?

2012-10-17 Thread Bruce Durling
Andreas, On Wed, Oct 17, 2012 at 4:26 PM, Andreas Liljeqvist bon...@gmail.com wrote: The features I am considering at the moment is: Making check-fact refer to actual linenumbers instead of [no-source]:3 or whatever. Migrating from comments to some other sort of marker.(raise your hand if

Re: Correct usage of data-readers

2012-10-17 Thread Robert Luo
Is #db/id defined in datomic library? -- 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: Midje popularity?

2012-10-17 Thread Brian Marick
On Oct 17, 2012, at 8:31 AM, Andreas Liljeqvist wrote: Since I haven't got any response either on the mailinglist or the pullrequest I will ask here. I apologize. I've been single-tasking on my book for the past months (monomaniacal about it, to be honest). The good news is that I'm now

Re: ANN: Minderbinder v0.2.0

2012-10-17 Thread Stathis Sideris
Very nice, thanks. Is the intent for this to eventually be as complete as Frink [1] or are you going to keep its scope to time, length and information? Thanks, Stathis [1] http://futureboy.us/frinkdocs/ On Tuesday, 16 October 2012 16:50:34 UTC+1, Fogus wrote: Minderbinder is a Clojure

core.logic : facts and functions with same name

2012-10-17 Thread JvJ
I'd like to be able to define facts and functions in a single relation. For example: (defrel friends x y) (facts friends [['Kaylen 'Holly] ['John 'Jim]]) ;; Here I want to put something that says friends(x,y) == friends(y,x) ;; Or perhaps Jack is everyone's friend ;; How

Re: core.logic : facts and functions with same name

2012-10-17 Thread David Nolen
On Wed, Oct 17, 2012 at 12:59 PM, JvJ kfjwhee...@gmail.com wrote: I'd like to be able to define facts and functions in a single relation. For example: (defrel friends x y) (facts friends [['Kaylen 'Holly] ['John 'Jim]]) ;; Here I want to put something that says

Re: Core.logic performance of looping over a list with tabling

2012-10-17 Thread David Nolen
On Mon, Oct 8, 2012 at 10:00 AM, Reinout Stevens reste...@vub.ac.be wrote: Another question: is it possible to manually reset the contents of the tables? Thanks a lot Reinout After some more thinking, I agree that the current behavior is not only counter intuitive, but simply awful :)

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread John Gabriele
On Wednesday, October 17, 2012 10:26:01 AM UTC-4, Jonathan Fischer Friberg wrote: Hi, As I were unable to find a way to indent lisp code in jEdit, I decided to write a plugin for this purpose. It's called LispIndent and can be found here: https://github.com/odyssomay/LispIndent Please

Re: Clojure turns 5

2012-10-17 Thread Paul deGrandis
Whoa, five years?! So awesome. Congrats! -- 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

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread Jonathan Fischer Friberg
Not currently, no. I'm not really sure how to detect when to use 2 spaces, and when to align arguments. I also feel that no editor really has nailed it, when it comes to deciding that. (it's also personal preference) For example, I personally think that do, - and - should use vertically aligned

Re: ANN: Minderbinder v0.2.0

2012-10-17 Thread Michael Fogus
Very nice, thanks. Is the intent for this to eventually be as complete as Frink [1] or are you going to keep its scope to time, length and information? Frink is a general purpose programming language, so by default I get that for free via Clojure. ;-) Seriously though, this is in no way meant

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread John Gabriele
On Wednesday, October 17, 2012 2:17:50 PM UTC-4, Jonathan Fischer Friberg wrote: Not currently, no. I'm not really sure how to detect when to use 2 spaces, and when to align arguments. I also feel that no editor really has nailed it, when it comes to deciding that. (it's also personal

Re: Cdr car

2012-10-17 Thread Curtis
Cons seems to be strange How do i use Cons with an atom to make a list? (cons 1 1) On Tuesday, October 16, 2012 5:08:26 PM UTC-7, Baishampayan Ghose wrote: `car` is called `first` here and `cdr` could mean either `rest` or `next` depending on what you mean/need. And oh, `cons` is not

Coming from Common Lisp to Clojure

2012-10-17 Thread Curtis
I do hope this is an appropriate topic. I am very excited by the power and capability in clojure and amazed at the rapid quality of tooling that exists so early in the projects life. I would like to admit that i am feeling like the simplicity and elegance that I experienced writing in lisp

Re: Cdr car

2012-10-17 Thread Curtis
On Tuesday, October 16, 2012 5:09:02 PM UTC-7, Andy Fingerhut wrote: Curtis: You can do this if you want: (def car first) (def cdr rest) but most people accustomed to Clojure would be much more familiar with first and rest. The Content of the Address and Data Registers haven't

Re: Cdr car

2012-10-17 Thread Curtis
On Tuesday, October 16, 2012 5:40:54 PM UTC-7, kovasb wrote: A number of classic lisp books have been translated to clojure, for instance http://juliangamble.com/blog/2012/07/20/the-little-schemer-in-clojure/ Thank you for the link! Personally I felt relieved when I saw that

Re: Clojure turns 5

2012-10-17 Thread Curtis
HAPPY BIRTHDAY!! thank you Rich for the fyi! On Tuesday, October 16, 2012 6:53:55 PM UTC-7, Rich Hickey wrote: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Clojure, and its community, great. Rich -- You

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread Jack Moffitt
I don't know if the Emacs clojure-mode is user-configurable in that way. I haven't needed to change it. Most Clojure users seem to indent in pretty much the same way, fwict, which is probably pretty close to how Emacs does it automatically. I haven't tried Eclipse. All the lisp and scheme

Re: Cdr car

2012-10-17 Thread Andy Fingerhut
This works just fine, and as you would expect from Common Lisp: user= (cons 1 '()) (1) Clojure does not have improper lists as Scheme and Common Lisp allow. You can't have a cons pair of arbitrary pairs of things, but you can create vectors of 2 arbitrary things if you want such a pair.

Re: Coming from Common Lisp to Clojure

2012-10-17 Thread Alex Ott
Hi I don't know about style guides, but I can recommend to look to 2 books: The Joy of Clojure Clojure Programming - they provide a lot of interesting information, including tips on writing idiomatic Clojure code On Wed, Oct 17, 2012 at 8:14 PM, Curtis cur...@ram9.cc wrote: I do hope this is

Re: Cdr car

2012-10-17 Thread Jeff Heon
If I may suggest the following presentation: http://blip.tv/clojure/clojure-for-lisp-programmers-part-1-1319721 http://blip.tv/clojure/clojure-for-lisp-programmers-part-2-1319826 There used to a transcript available on the newsgroup until Google decided to remove all files from newsgroup 8) On

Re: Cdr car

2012-10-17 Thread Curtis
Thank you so much! On Tuesday, October 16, 2012 5:08:26 PM UTC-7, Baishampayan Ghose wrote: `car` is called `first` here and `cdr` could mean either `rest` or `next` depending on what you mean/need. And oh, `cons` is not exactly the same one from Common Lisp, etc. Regards, BG On

Re: Midje popularity?

2012-10-17 Thread Andreas Liljeqvist
Hi Brian. No need to apologize, you are doing this in your free time. It's highly appreciated whatever we can get. Just to clear something up: Are you maintaining midje-mode? I thought it was Dmitri? That's where I left my pull request anyway. Bruce: I haven't actually used clojure-test-mode,

Re: Cdr car

2012-10-17 Thread Matthew O. Smith
I came to Clojure from a similar background and posted my thoughts of car, cdr, and cons here http://software-ninja-ninja.blogspot.com/2011/08/clojure-patterns-cons-car-and-cdr.html On Wednesday, October 17, 2012 1:10:15 PM UTC-6, Jeff Heon wrote: If I may suggest the following presentation:

Re: Cdr car

2012-10-17 Thread Softaddicts
My first lisp was UCI lisp in the 80s. There were not many data structures available aside from linked lists and trees. Of course a computer as powerful as today's pocket calculators would have required an entire building if built with the available technology in these years. I used common lisp

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread Jonathan Fischer Friberg
The plugin has been updated to support function argument indenting. It is configurable in the plugin options. Next, I think I will implement presets. The idea is that each preset corresponds to one language. That way, LispIndent can still be language-independent. Users will also be spared of

Re: Intern a var from outside namespace

2012-10-17 Thread David Jacobs
I can see the potential problems with this pattern, but it also seems like a nice way to metaprogram things like controllers or models in a web app. (In non-web Clojure dev, I haven't ever run into this issue.) Will have to think about this some more... On Friday, October 12, 2012 at 11:33 AM,

code design in clojure

2012-10-17 Thread Brian Craft
I'm finding the books on clojure to be very focused on low-level language features. Are there any good references for how to design code in clojure (or perhaps in functional languages more generally)? For example, knowing when to use a data type or a protocol, knowing when and how to separate

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-17 Thread John Gabriele
On Wednesday, October 17, 2012 7:39:26 PM UTC-4, Jonathan Fischer Friberg wrote: The plugin has been updated to support function argument indenting. It is configurable in the plugin options. Oooh, this is nice. :) I selected the indent to function arguments by default radio button, checked