Re: [ANN] excel-templates 0.3.2 release available

2016-03-22 Thread Tom Faulhaber
I'm glad the library is helping you, Ralf. Thanks for the feedback! -- 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

[ANN] excel-templates 0.3.2 release available

2016-03-21 Thread Tom Faulhaber
*Our Story* In this episode, our hero discovers the betrayal of his former ally, the Apache POI library, and goes to great lengths to patch things up between them, while beginning to dream of the day when they can part ways . And

Re: Does Pedestal have a future in the long run

2014-01-20 Thread Tom Faulhaber
On Monday, November 11, 2013 6:38:23 AM UTC-8, Brenton wrote: If you are looking for something that is finished and stable then do not look at Pedestal. We will indicate stability with version numbers. When you see a release of version 1.0 then you may want to have another look. A 1.0

Re: Incanter 1.5.2 has been released

2013-08-05 Thread Tom Faulhaber
, Aug 5, 2013 at 3:55 AM, Tom Faulhaber tomfau...@gmail.comwrote: Thanks for keeping the ball rolling, Alex. We appreciate it very much! Could you tag the release on github so that autodoc will build for it correctly? Thanks, Tom On Sunday, August 4, 2013 11:20:07 AM UTC-7, Alex Ott

Re: Incanter 1.5.2 has been released

2013-08-04 Thread Tom Faulhaber
Thanks for keeping the ball rolling, Alex. We appreciate it very much! Could you tag the release on github so that autodoc will build for it correctly? Thanks, Tom On Sunday, August 4, 2013 11:20:07 AM UTC-7, Alex Ott wrote: Hi all I've just pushed new release of Incanter to Clojars.

Re: Offline Clojure docs

2013-07-06 Thread Tom Faulhaber
Sorry, my second method should have been: $ curl -L https://github.com/clojure/clojure/archive/gh-pages.tar.gz | tar xvzf - Enjoy! Tom On Sunday, June 30, 2013 7:44:17 PM UTC-4, David Pollak wrote: Folks, Is there an offline package of Clojure docs (the full core.* api docs, cheat

Re: Offline Clojure docs

2013-07-05 Thread Tom Faulhaber
It's easy to pull the autodoc documentation for offline use. You can either do this: $ git clone https://github.com/clojure/clojure.git clojure-api $ cd clojure-api $ git checkout gh-pages or you can just open https://github.com/clojure/clojure/archive/gh-pages.zip; or pull the directory with

Re: ANN: lambic v. 0.1.0

2012-06-25 Thread Tom Faulhaber
+1 I've always thought that this sort of thing should be more decorative and transparent with the tools we have in Clojure, core.match, and core.logic. This is a neat way to proceed. I'll be keeping my eyes on your progress! Tom On Thursday, June 14, 2012 4:44:10 PM UTC-7, rob wrote: This

Re: Pretty-print with metadata

2012-01-22 Thread Tom Faulhaber
Chris, nice use of custom dispatch! I can't claim all the credit for this mechanism. I based my work on the old XP system that has been used in Lisp since the eighties. Standing on the shoulders of giants, as it were. :) It's been on my list to respect *print-meta* in the regular pprint dispatch,

Re: marking deprecated functions, namespaces or other?

2012-01-08 Thread Tom Faulhaber
FWIW, autodoc looks for something like {:deprecated 1.3}. See https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L201 which results in http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/agent-errors. On Jan 6, 8:19 pm, Phil Hagelberg p...@hagelb.org wrote:

ANN: Autodoc 0.9.0 (Finally!)

2012-01-05 Thread Tom Faulhaber
A new version of Autodoc (0.9.0) is now available from clojars. This version should work with all versions of Clojure that exist in the wild and is generally more robust to weird dependency relationships than previous versions. For those who aren't familiar, Autodoc is the tool that is used to

Re: ANN: Autodoc 0.9.0 (Finally!)

2012-01-05 Thread Tom Faulhaber
Daniel, Glad, it's working for you! Protocols and stuff are almost done, so I think I'm good there. I just took a swerve off that path for a couple weeks to get things into releasable form since so many were clearly feeling pain over it. Expect more news on that front in the next few weeks.

Re: Codox: an API doc generator for Clojure

2011-12-27 Thread Tom Faulhaber
Hi All, This makes me feel quite embarrassed that autodoc hasn't seen a release for non-core/contrib projects in so long. I apologize for that. (Insert all the usual life has been crazy... caveats here.) I hate seeing smart people having to recreate stuff just cause it's taking me a long time to

Re: multiple return values

2011-12-14 Thread Tom Faulhaber
, 10:47 am, Razvan Rotaru razvan.rot...@gmail.com wrote: Thanks Tom. Using proxy like this could work. But i'm worried about one thing.What happens if I have many instances? With proxy there's a new class with each instance. Could I run out of permgen space? On Dec 13, 9:38 am, Tom Faulhaber

Re: xml-zip

2011-12-13 Thread Tom Faulhaber
it, it's just takes a while to get used to it (I'll check that it's refered to the correct namespace as well). I guess next step would be making a clojar avaliable, but I have no clue on how to do that yet. /Linus 2011/12/13 Tom Faulhaber tomfaulha...@gmail.com Hi Linus, Zippers

Re: xml-zip

2011-12-12 Thread Tom Faulhaber
Hi Linus, Zippers and their associated helpers are woefully undocumented, so I'm not surprised you fell into the swamp. I think that the help you're looking for can be found in the clojure.data contrib project (see https://github.com/clojure/data.zip for the source and

Re: multiple return values

2011-12-12 Thread Tom Faulhaber
Razvan, I think that you can implement your idea of extending the class with proxy in the following way (originally suggested to me by Rich Hickey Chris Houser for use with the pretty printer): (let [extra-fields (ref {:field1 extra-value1, :field2 extra-value2}] (proxy [Writer IDeref]

Re: Is it possible to make a mirror of clojure.org?

2011-10-12 Thread Tom Faulhaber
It's also possible to pull a zip file of the API docs just by following this link: https://github.com/clojure/clojure/zipball/gh-pages. Another approach, if you're a git-head, is just to clone the clojure repo: $ git clone git://github.com/clojure/clojure.git api-docs $ cd api-docs $ git

Re: standalone indentation tool

2011-08-10 Thread Tom Faulhaber
I've tried pprint and found it lacking as it inserts newlines in awkward places apart from the medatada/comments issue mentioned. Are you using pprint with code-dispatch? That tends to work a lot better, though it will put newlines where it deems fit. This is either a good thing or a bad thing

Re: format and printf can't be used with BigInt

2011-07-28 Thread Tom Faulhaber
FWIW, clojure.pprint.cl-format handles this fine in 1.3: (cl-format nil ~d 2N) = 2 On Jul 27, 11:45 am, Andrea Tortorella elian...@gmail.com wrote: Hi everyone, I don't know where to post about bugs (if this is a bug). Anyway in clojure 1.3 with the new numerics: (format %d 2N) throws

Re: Increasing indent level in pprint

2011-07-19 Thread Tom Faulhaber
Sean's remark is right for writing code, but not really relevant for pretty printed data structures. The pretty printer will either avoid (foo a followed by a line break or fill that line full. (By default, for lists it breaks the lines and for vectors it fills them.) While there's no way to just

Re: Increasing indent level in pprint

2011-07-19 Thread Tom Faulhaber
the different structures would be most likely used when I wrote it. It still seems about right. But if folks think it should be different, it's easy to change. On Jul 19, 1:19 pm, Sean Corfield seancorfi...@gmail.com wrote: On Tue, Jul 19, 2011 at 12:03 AM, Tom Faulhaber tomfaulha...@gmail.com

Re: pretty-print by default?

2011-07-01 Thread Tom Faulhaber
To do this from a simple command line, just do: java -cp path-to-clojure-jar clojure.main -e (require 'clojure.pprint) (clojure.main/repl :print clojure.pprint/pprint) modify to taste. I once figured how to do this in Slime, too, but when I look at my (quite dated) copy, it looks like pr-str is

Re: Generating API docs for clojure 1.3 projects

2011-06-21 Thread Tom Faulhaber
Hi Tassilo, Autodoc is usually the tool you want, I think. I'm the author of that tool and I've been very busy on other stuff lately, so I haven't but together a 1.3 release. I'll try to get to that pretty soon so that you'll have something to use. I don't know why one you built should fail, but

Re: bug report : cl-format

2011-04-05 Thread Tom Faulhaber
Hi Carlos, This certainly looks like a bug. I've filed issue 768 on myself (http://dev.clojure.org/jira/browse/CLJ-768) and I'll take a look as soon as I get a chance. Thanks for bringing this up, Tom On Apr 3, 1:49 pm, Carlos Ungil carlos.un...@gmail.com wrote: Hello, I don't know if there

Re: about the repl

2010-12-22 Thread Tom Faulhaber
I have submitted a patch for pprint's tendency to mess up when exceeding *print-length*. I assume that Stuart will apply it to the 1.3 (master) branch RSN, unless he sees a problem with it. Sorry for the inconvenience. Tom On Dec 21, 12:30 am, Tom Faulhaber tomfaulha...@gmail.com wrote: Hmm

Re: REQUEST for feedback on http://clojure.org

2010-11-27 Thread Tom Faulhaber
Jason, Actually Alex was a little off the mark here. The problem was in the templates that generate the autodoc so they were pretty easy to fix for all versions. The github links are now fixed and I expect to modify the assembla pointers to the new confluence/jira stuff tonight or tomorrow.

Re: Autodoc dependencies broken?

2010-11-26 Thread Tom Faulhaber
James, I don't know why this would be true, but something may have broken in the underlying dependency chains. Autodoc hasn't been updated in clojars for a very long time and does not directly depend on super- pom.jar. Are you using autodoc standalone or as a lein plugin? Tom On Nov 26, 1:09 

Re: priority queue for scheduling events in the future

2010-11-24 Thread Tom Faulhaber
Mark, Is there a reason that you put the documentation in a comment rather than as the ns doc string so that autodoc would pick it up? Currently, priority queues are undiscoverable by autodoc users. Tom On Nov 23, 9:41 pm, Mark Engelberg mark.engelb...@gmail.com wrote: In 1.3, you can use

Re: priority queue for scheduling events in the future

2010-11-24 Thread Tom Faulhaber
: No reason other than my lack of knowledge that ns doc strings are picked up by autodoc and comments are not. :) On Wed, Nov 24, 2010 at 12:36 AM, Tom Faulhaber tomfaulha...@gmail.comwrote: Mark, Is there a reason that you put the documentation in a comment rather than as the ns doc string so

Re: string interpolation

2010-11-20 Thread Tom Faulhaber
Wow, David, that's a nice little demonstration of cl-format. I hadn't seen that before. But as Mike points out, clojure.contrib.strint/ is more precisely what the poster is asking for: true ruby-style string interpolation. It has occurred to me to extend cl-format to do real string interpolation

Re: Images in autodoc?

2010-10-26 Thread Tom Faulhaber
It's on the roadmap. I haven't really figured out a way to do it that fits in with other uses of doc strings. I do know that I want the images to be able to be embedded in the doc string so that programs like incanter can use the image as part of the narrative, but I want the markup that does it

Re: Images in autodoc?

2010-10-26 Thread Tom Faulhaber
Nah, changing the autodoc generation is easy (though we need to figure out where images go on the input and output sides and move them around, but that shouldn't be too much of a problem). The bigger problem is figuring out what to tell folks who type (doc foo) at the REPL and get a bunch of

Re: Let usage question

2010-10-20 Thread Tom Faulhaber
Dave, Yes, this is perfectly idiomatic and many people in Clojure (and also Haskell, for example) use let to help document how they're building up their computation. Stuart's suggestion is also good and it's largely a matter of personal preference which to use when. Of course, as you use

Re: clojure.java.*

2010-10-20 Thread Tom Faulhaber
Yup, it's an autodoc bug. I had fixed the bug, but forgot to pull the new version into the area where the autodoc robot runs. So the next time the robot ran, it undid the fixes. :( All fixed up now. Tom On Oct 19, 7:42 pm, Sean Corfield seancorfi...@gmail.com wrote: On Tue, Oct 19, 2010 at

Re: Documentation tools

2010-09-07 Thread Tom Faulhaber
Hey Mark, I don't know of any publicly available tools besides autodoc. My understanding is that Zack was keeping the source to clojuredocs closed, at least for now. While I assume his extraction code is in Clojure, the actual clojuredocs presentation code is a Ruby on Rails app [1] Whether

Re: Does Clojure has a compiler

2010-08-26 Thread Tom Faulhaber
As the other posters mention, Clojure does have a compiler. However, you don't always need to use it explicitly. Clojure will compile all input before executing it and once it's compiled it runs with the exact performance it would if it had been compiled ahead of time. There's no interpreted

Re: clojure-contrib master now in submodules

2010-08-22 Thread Tom Faulhaber
A couple of questions: 1) Does use of clojure-contrib now require maven or leinigen as a prerequisite or is there a place to go grab the jar files? 2) From my read of this, there is no longer a clojure-contrib.jar, just a meta dependency that causes maven to grab all the modules. Is that correct?

Re: clojure.string namespace missing from API page?

2010-07-18 Thread Tom Faulhaber
The official doc for clojure and clojure-contrib have moved as well. They are now at: http://clojure.github.com/clojure/ and http://clojure.github.com/clojure-contrib/ I have not got them completely up-to-date with the 1.2 beta split, so for the moment just look at the master branch. I expect

Re: ClojureDocs.org week 1

2010-07-18 Thread Tom Faulhaber
What I've noticed is that conventions on doc string indentation is all over the place. Combine that with the fact that folks build tables and columns by hand, and a really simplistic rule doesn't work so much. I recommend you just grab the remove-leading-whitespace function from the autodoc

Re: clojure.string namespace missing from API page?

2010-07-18 Thread Tom Faulhaber
clojure.string is now in for the master branch doc at http://clojure.github.com/clojure/ Separate 1.2 doc coming RSN. Tom On Jul 18, 11:10 am, Tom Faulhaber tomfaulha...@gmail.com wrote: The official doc for clojure and clojure-contrib have moved as well. They are now at: http

Re: ClojureDocs.org

2010-07-09 Thread Tom Faulhaber
Quick thought: You probably don't want to include private vars. On Jul 9, 1:32 am, zkim zachary@gmail.com wrote: Hi All, I'll try to keep this short. I've gotten a lot out of Clojure: I can honestly say that learning this language, and being part of this community has made me a better,

Re: Link to API document in the cheat sheet

2010-07-06 Thread Tom Faulhaber
Will Langstroth had suggested this to me in private correspondence and has built a version for his own use. I haven't (yet) had the bandwidth to investigate adding this to the autodoc cycle, but I think it's a great idea. I've also been realizing lately that the autodoc should include two other

Re: usage examples in clojure api docs

2010-06-29 Thread Tom Faulhaber
I like the idea of having example code for all the functions. However, speaking for myself only, I don't think that the doc strings are the place for a comprehensive set of examples. How about building them in some external place? (Maybe as a separate github project to begin with.) In

Re: parallel vs serial iteration in a for loop

2010-06-20 Thread Tom Faulhaber
Hi Viksit, I would suggest that the CL loop construct and the Clojure construct of the same name are, in fact, fairly different beasts, both structurally and in terms of their goals. I don't believe that Rich has any intent to extend loop towards the CL flavored loop. The for construct is more

Re: ANN: Robert Hooke

2010-06-11 Thread Tom Faulhaber
Nice! I think this kind of functionality should end up getting promoted. I have also written this a couple of times and thought about generalizing it. I'm glad you did. This could also serve as the basis for some nice tracing functionality (esp. combined the clojure.contrib.logging). You'd want

Re: Broken Link in Clojure Contrib Docs

2010-06-08 Thread Tom Faulhaber
Stu, I don't see a commit from you on this. Tom On Jun 8, 6:16 am, Stuart Halloway stuart.hallo...@gmail.com wrote: Fixed in the repos, thanks. Will show up in docs shortly. Stu Hello all, Not sure where to report this but I noticed a broken link when taking a look at the docs for

Re: new Clojure Compiler...

2010-05-15 Thread Tom Faulhaber
Fabio, Yes, there is a plan to implement Clojure in Clojure and protocols, et al., are part of this. This biggest part from a performance point of view is not the compiler itself, but rather Clojure's persistent data structures (maps, vectors, etc.). You can find more of the discussion around

Re: Trouble with Leiningen and Autodoc

2010-05-03 Thread Tom Faulhaber
Hi Joshua, Autodoc depends on clojure 1.1, which Phil has suggested might be a problem (he told me not to depend on a clojure version at all). Let me pull that dependency and see if that fixes the problem. Is this in your repo on github? Tom On May 1, 7:17 pm, joshua-choi rbysam...@gmail.com

Re: Documentation (was: Re: duck-streams missing from clojure-contrib.jar file)

2010-04-21 Thread Tom Faulhaber
Hi all, (For those who don't know, I'm the one who maintains the autodoc API documentation.) There are some great suggestions here and I'll try to pick up as many as I can. More useful branch names and having the branch in the title are no brainers and I'll try to get them in soon. One resource

Clojure API doc updated with both master and 1.1 (finally)

2010-02-17 Thread Tom Faulhaber
The autodoc robot that builds the API docs choked sometime after the merge of the new branch into master and the clojure and clojure- contrib API documents haven't been updating for the past 6 weeks or so. This has been unfortunate because it's been a time of momentous change (deftype and

Re: Clojure API doc updated with both master and 1.1 (finally)

2010-02-17 Thread Tom Faulhaber
impetus (as well as a good test case). Tom On Feb 17, 5:12 am, Sean Devlin francoisdev...@gmail.com wrote: Is the long term plan to include this multi-branch behavior in the lein pluggin too? Sean On Feb 17, 3:27 am, Tom Faulhaber tomfaulha...@gmail.com wrote: The autodoc robot that builds

Re: newbie question: Please help me stop creating constructors

2010-02-17 Thread Tom Faulhaber
You can combine let and binding like this to make this slightly more elegant: (let [a# 'expr involving *A* *B* and *C*'' b# 'expr involving *A* *B* and *C*'' c# 'expr involving *A* *B* and *C*''] (binding [*A* a# *B* b# *C* c#] ...)) Note the x#

Re: Pattern Matching

2010-02-04 Thread Tom Faulhaber
Also, check out Tim Lopez's work here: http://www.brool.com/index.php/pattern-matching-in-clojure He has a nice version that can be used for both Lisp-y and Haskell-y stuff, though it's not quite as full featured as what you'd see in traditional AI systems. Tom -- You received this message

Autodoc for the masses

2010-01-20 Thread Tom Faulhaber
code if you publish source. Documentation on how to get and use Autodoc is here: http://tomfaulhaber.github.com/autodoc/ (apologies for the fact that the doc is not yet pretty!). I hope that Autodoc helps you increase the quality of documentation for your projects. Enjoy, Tom Faulhaber -- You

Re: Autodoc for the masses

2010-01-20 Thread Tom Faulhaber
Looks great! A couple comments. Thanks! * Adding by unknown author to namespaces that have no author metadata   seems a bit superfluous. Yeah, that's on my list to clean up. I did that in the old days to shame the contrib authors into adding the metadata (and remind me to bug them), but

Re: How do I extend an existing function to take different number of params?

2010-01-10 Thread Tom Faulhaber
-hello-more Again, like Tom said, dunno why you'd need to do this... On Jan 9, 10:45 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: Actually this is possible. (seehttp://xkcd.com/386/) See the macro add-arity which I've put up here:http://gist.github.com/273349 This allows you to do

Re: How do I extend an existing function to take different number of params?

2010-01-09 Thread Tom Faulhaber
Actually this is possible. (see http://xkcd.com/386/) See the macro add-arity which I've put up here: http://gist.github.com/273349 This allows you to do things like: user (add-arity keyword [ns name suffix] (keyword ns (str name - suffix))) #user$eval__6304$fn__6309

Re: Language similarities

2010-01-01 Thread Tom Faulhaber
I can attest from personal experience that many of the folks who were working on Ada were quite familiar with everything going on with Lisp as well as Smalltalk and other language trends of the day (this was around 1980). While many of the ideas in Ada aren't so popular now (and weren't even

Re: Where is the Clojure 1.0 API documentation?

2009-12-09 Thread Tom Faulhaber
Enhancing the doc tool so that we have versions for the multiple branches (1.0, 1.1, master, new) is on my agenda. Maybe there's a way that Rich could add a link to the old 1.0 doc in the meantime. I think that the added in version metadata tag is a good idea, at least for clojure itself. Python

Re: master Clojure API doc now live

2009-12-08 Thread Tom Faulhaber
github.com/tomfaulhaber/contrib-autodoc Have fun with it! On Dec 8, 6:38 am, Tom Hickey thic...@gmail.com wrote: Hi Tom I was looking for this code as well. Thanks, Tom On Dec 8, 7:38 am, Timothy Pratley timothyprat...@gmail.com wrote: On Dec 4, 6:31 am, Tom Faulhaber tomfaulha

Re: new API webpage format

2009-12-08 Thread Tom Faulhaber
Rich applied the patch this morning. Let me know if there are any other problems. On Dec 8, 6:13 am, Sean Devlin francoisdev...@gmail.com wrote: (inc apply-219-to-1_1) On Dec 8, 1:57 am, Tom Faulhaber tomfaulha...@gmail.com wrote: It turns out the doc string for filter was dropped during

Re: new API webpage format

2009-12-07 Thread Tom Faulhaber
By golly, you're right. I'll take a look at why. On Dec 7, 2:14 pm, cej38 junkerme...@gmail.com wrote: Hi,   I am writing because there seem to be missing functions in the API webpage.  The only one that I know for sure at the moment is the filter function. -- You received this message

Re: new API webpage format

2009-12-07 Thread Tom Faulhaber
. On Mon, Dec 7, 2009 at 4:00 PM, Tom Faulhaber tomfaulha...@gmail.com wrote: By golly, you're right. I'll take a look at why. On Dec 7, 2:14 pm, cej38 junkerme...@gmail.com wrote: Hi,   I am writing because there seem to be missing functions in the API webpage.  The only one that I know

Re: new API webpage format

2009-12-07 Thread Tom Faulhaber
? Thanks for catching that, Tom On Dec 7, 4:00 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: By golly, you're right. I'll take a look at why. On Dec 7, 2:14 pm, cej38 junkerme...@gmail.com wrote: Hi,   I am writing because there seem to be missing functions in the API webpage

Re: new API webpage format

2009-12-07 Thread Tom Faulhaber
I like that too. I'll have to think about how we'd do that. On Dec 7, 8:11 pm, ataggart alex.tagg...@gmail.com wrote: While we're throwing requests at Tom, it'd be nice if the special forms were included in the api. On Dec 7, 5:21 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: Yup, I

master Clojure API doc now live

2009-12-03 Thread Tom Faulhaber
Folks, We now have an official site for API documentation on the latest master branch of Clojure, for those who aren't content to stay with the release version. It is on GitHub here: http://richhickey.github.com/clojure/ This will be kept up-to-date with the GitHub checkins to master within a

Re: API pages

2009-12-03 Thread Tom Faulhaber
Yeah, I remember seeing that on IRC, but never knew what to do about it. It's hard for me to diagnose since I'm not seeing it in Firefox 3.5.4 on my systems (1 Ubuntu, 2 Windows). If anyone who's seeing it can give me more info, I'd fix it up. More generally, if there's someone in the community

Re: AOT'd namespaces lose their metadata

2009-11-25 Thread Tom Faulhaber
. On Nov 24, 8:48 pm, Phil Hagelberg p...@hagelb.org wrote: Tom Faulhaber tomfaulha...@gmail.com writes: So, Phil, if you want to take it from there, it would be great. If you don't, I'll keep it on my list. Thanks for the notes; nice to see someone has done some detective work already. I'll

Re: AOT'd namespaces lose their metadata

2009-11-24 Thread Tom Faulhaber
I did take a little bit of a look at it and it is both simple and complex. When you're not AOT compiling code, the symbol that's creating the namespace gets wrapped with metadata when the ns macro is evaluated. This metadata is then explicitly moved on to the namespace. When the compiler runs,

Re: ANN: Autodoc for clojure core, first rev

2009-11-10 Thread Tom Faulhaber
On Nov 9, 1:28 pm, Howard Lewis Ship hls...@gmail.com wrote: It looks very nice ... still I'd love to see something like what clj-doc does (http://github.com/mmcgrana/clj-doc) ... it adds a text field that you can type into and it matches the available names against what you type, hiding the

ANN: Autodoc for clojure core, first rev

2009-11-09 Thread Tom Faulhaber
Hi all, I've been adapting my documentation robot to work for things other than contrib and the first result is now available: documentation for HEAD in clojure core. You can find it here: http://tomfaulhaber.github.com/clojure/ There are still a few bugs in the links and some of the clojure

Re: bugs in cl-format.clj

2009-10-31 Thread Tom Faulhaber
Hey Carlos, Thanks for noticing these. I'll take a look. I think cl-format has the most tests of anything in Clojure and it still has lousy test coverage of all the cases it's supposed to cover. Tom On Oct 28, 4:53 pm, carlitos carlos.un...@gmail.com wrote: Hello, I've encountered a couple

Re: bugs in cl-format.clj

2009-10-31 Thread Tom Faulhaber
I've added assembla ticket #40 for these issues: https://www.assembla.com/spaces/clojure-contrib/tickets/40-bugs-in-cl-format --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Observations from a real-world Clojure project

2009-10-30 Thread Tom Faulhaber
5. The functionality of the docs hasn't kept up with Clojure.  We often resorted to text searches of the various sources.  Need links and see-also's.  Clojure has grown/matured so much that it needs a doc system of some sort. This has been recognized for awhile now. I have promised to

Re: How to make lazy seq from socket input?

2009-10-30 Thread Tom Faulhaber
One thing to keep in mind, when using sockets, is that TCP does not guarantee to keep packetization across the network. That is, just because you're writing lines, doesn't mean that read will return lines. TCP can put writes together or break them into parts or some combination of both. So if

Re: function rebinding and logging

2009-10-22 Thread Tom Faulhaber
Hey Jeff, Craig McDaniels wrote a little trace library that does on-demand function wrapping that does pretty much what you're looking for. Look here: http://groups.google.com/group/clojure/browse_thread/thread/3ea8777880231e18/6fd1b352ac1a6744?lnk=gstq=trace#6fd1b352ac1a6744 I implemented a

Re: Another defmult VS defn query

2009-10-08 Thread Tom Faulhaber
Check out clojure.contrib.duck-streams/reader and clojure.contrib.duck- streams/writer (http://richhickey.github.com/clojure-contrib/duck- streams-api.html). They'll give you a java.io.BufferedReader or a java.io.PrintWriter which is usually what you want with a file. If you have some other use,

Re: I just posted a discussion of building webhooks in Clojure with Ring

2009-09-18 Thread Tom Faulhaber
Thanks! Corrected. On Sep 18, 1:32 am, James Reeves weavejes...@googlemail.com wrote: On Sep 17, 11:35 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: You can find it here:http://infolace.blogspot.com/2009/08/simple-webhooks-with-clojure-and... A small correction: Ring is inspired

I just posted a discussion of building webhooks in Clojure with Ring

2009-09-17 Thread Tom Faulhaber
In case this is interesting to anyone: I just posted a description of how I created the webhook system for the contrib autodoc robot using Ring. Nothing too profound, but probably useful to others. You can find it here:

Re: questions about datalog

2009-09-14 Thread Tom Faulhaber
Did you also read the overview that's part of contrib at http://richhickey.github.com/clojure-contrib/doc/datalog.html. I don't know if you already saw that, but since you didn't mention it, I thought I'd be sure. Tom On Sep 12, 6:53 pm, Robert Luo robort...@gmail.com wrote: Thank you Josh

Re: clojure-mode survey

2009-09-11 Thread Tom Faulhaber
syntax and emacs probably shouldn't barf on it. Tom On Sep 10, 2:24 pm, Phil Hagelberg p...@hagelb.org wrote: Tom Faulhaber tomfaulha...@gmail.com writes: Also, one thing that I (and others) have noticed is that clojure mode chokes on the #^{} form metadata on namespaces. (See any

Re: clojure-mode survey

2009-09-08 Thread Tom Faulhaber
Hi Phil, Speaking for myself, I only use SLIME emacs 23, though I certainly wouldn't want to force anyone to do those things. Also, one thing that I (and others) have noticed is that clojure mode chokes on the #^{} form metadata on namespaces. (See any of the files in clojure-contrib for an

ANN: clojure-contrib automatic documentation system complete

2009-08-25 Thread Tom Faulhaber
(I know this has been mentioned and referenced a number of times already in this forum, but I have crossed some imaginary line to officially done so I thought I'd put up an official announcement.) The automatic documentation for the clojure-contrib library is now up at

Re: ANN: clojure-contrib automatic documentation system complete

2009-08-25 Thread Tom Faulhaber
Rich: Glad to help, thanks for the kind words. For Clojure core, mostly what I need to do is refactor and parameterize a bunch of stuff. I'll just make a fork and start playing. When I have something, we can discuss and fine tune. Should it be similar to what we have now with all the

Re: clojure vs scala

2009-08-25 Thread Tom Faulhaber
Plus, his spelling and grammar is atrocious. If you're going to write a blog, proofread what you're writing! (I know this is harder for non-English speakers, but it does make a huge difference to the perceived quality of what you're saying.) On Aug 25, 1:36 pm, Christian Vest Hansen

Re: Proposal: Promote clojure.contrib.def to a core lib

2009-08-14 Thread Tom Faulhaber
Docs for cutting edge Clojure are on the way. Rich said he was going to think about the approach he wanted to take and we'll get it up and running when he gets back from vacation. Hang tight, Tom On Aug 14, 10:21 am, Sean Devlin francoisdev...@gmail.com wrote: As long as the documentation

Re: Current API doc (for HEAD)

2009-08-08 Thread Tom Faulhaber
Great! - I need to think about this, and will follow up after I get back from vacation. Cool. No hurry, I have plenty of other stuff to clean up in autodoc and work to do to make it non-contrib specific. Have a great vacation! Tom --~--~-~--~~~---~--~~ You

Re: Current API doc (for HEAD)

2009-08-08 Thread Tom Faulhaber
On Aug 7, 1:43 am, Daniel dan.in.a.bot...@gmail.com wrote: IIRC you can use plain HTML on the github pages. They are only processed by Jekyll, if you have the YAML front-matter in the file (http://wiki.github.com/mojombo/jekyll/usagesee index.html section). Yup, I'm skipping the Jekyll and

Re: Current API doc (for HEAD)

2009-08-07 Thread Tom Faulhaber
Tom, are you amenable? Yup, happy to. Where should it go? I'm generating real html now, not wiki-text (for a bunch of reasons, among them the ability to download a tree and use your browser offline, old version support, etc.), so the current system wouldn't post back to clojure.org very

Re: c.c Assembla wiki

2009-07-31 Thread Tom Faulhaber
Sorry, I've been meaning to post info about the new autodoc area on github, but it's not totally complete yet (and summer has been keeping my busy in other ways). All of the API documentation is on github at http://richhickey.github.com/clojure-contrib/ and is generally pretty much up to the

Re: Logging functions delegated to java logging systems

2009-07-22 Thread Tom Faulhaber
Yeah, I'd like to see something like this in clojure-contrib. One of the problems that java systems routinely have is mismatches between the assumed logging system. This is a real pain when it comes up and it would be nice to have that taken care of by an abstraction layer. Tom On Jul 21, 10:13 

Re: pprint

2009-07-10 Thread Tom Faulhaber
Hey Laurent, Making this more comprehensible is part of my plan for documenting how to create dispatch. You don't really need to understand the whole XP paper to know enough to understand how pretty print works. Let me lay out a quick overview here: High-level concepts Top-level concept: the

Re: Clojure in Clojure?

2009-07-10 Thread Tom Faulhaber
As awesome as this sounds, wouldn't it first require a native implementation to be created for each language prior to Clojure in Clojure running on the platform? No, you don't need to write a native port for each platform. Typically, you break the compiler into two broad parts: the platform

Re: print-base / print-radix?

2009-07-06 Thread Tom Faulhaber
see any problems. Enjoy! Tom On Jul 5, 7:20 pm, Parth parth.malwan...@gmail.com wrote: On Jul 5, 9:02 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: Parth, I've created a little wrapper as promised at:http://gist.github.com/141001. It gives you my-pprint: user (binding [*print-base

Re: print-base / print-radix?

2009-07-05 Thread Tom Faulhaber
-standard bases. I'll fix that soon. Also, I've started to implement *print-radix* and *print-base* for real in cl-format and the pretty printer, so those should be available soon. Enjoy, Tom On Jul 3, 3:16 am, Parth parth.malwan...@gmail.com wrote: On Jul 3, 11:25 am, Tom Faulhaber tomfaulha

Re: print-base / print-radix?

2009-07-03 Thread Tom Faulhaber
Parth, I was thinking about this a little more today and I came up with a way to extend the pretty printer easily to support *print-radix* with a little wrapper. I'll try to get a chance to write it up for you tomorrow. Tom On Jul 2, 6:29 pm, Parth parth.malwan...@gmail.com wrote: On Jul 3,

Re: print-base / print-radix?

2009-07-02 Thread Tom Faulhaber
Hi Parth, It is on the agenda to support this for pprint, but I don't know exactly when. In the meantime, arbitrary bases *are* supported in the common lisp compatible format function (cl-format) which is also part of clojure.contrib.pprint. The interesting directives are ~X, ~B, and ~bR,

Re: pprint

2009-07-01 Thread Tom Faulhaber
Laurent, Sounds like a good plan. To answer your questions: I'll play with your code. Do you have a first pass over the clojure reader to attach other meta information as you go, or do you directly consume the clojure data structures the reader passes to you ? pprint operates on clojure

Videos from the Rich Hickey special Bay Area Clojure Group meeting now online

2009-07-01 Thread Tom Faulhaber
Rathore discusses his Swarmiji distributed programming framework (soon to be open source!): http://blip.tv/file/2301166 4) Tom Faulhaber on the Clojure Object Explorer: http://blip.tv/file/2286313 (this one got cut off before I finished, but we got most of it). 5) Rich Hickey talking about chunked seqs

  1   2   >