[ANN] getclojure.org

248 views
Skip to first unread message

Devin Walters

unread,
May 16, 2013, 9:12:11 PM5/16/13
to clo...@googlegroups.com
Hey All,

I put this ( http://getclojure.org ) together and wanted to share it with all of you. It's a nifty way to search for example usage of clojure. It's far less curated than ClojureDocs, so you may pick up some interesting ideas by simply browsing.

It supports boolean queries like: "comp AND juxt" and will let you search for "->>" (but you must quote it).

If you're interested in contributing: https://github.com/devn/getclojure is the place to do it.

Thanks,
-- 
{:∂evin :√valters}

atkaaz

unread,
May 16, 2013, 9:18:21 PM5/16/13
to clo...@googlegroups.com
is it supposed to show the \n inline? it's a bit uncomfy to have to read those on one line


--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Devin Walters

unread,
May 16, 2013, 9:28:22 PM5/16/13
to clo...@googlegroups.com
At the moment, yes. The docstrings are not pretty, but in the end I decided that seeing the literal \n was better than pretty printing captured output.

That being said, I'm not strongly opposed to changing it (patches welcome), but right now I think not pretty printing output is good in the 80-90% case.

Cheers,
-- 
{:∂evin :√valters}

atkaaz

unread,
May 16, 2013, 9:32:46 PM5/16/13
to clo...@googlegroups.com
Ok fair enough. I was wondering however how hard would it be to add a button maybe? or a var to the url? (or a button which adds the var to the url - not sure how these are called) which would switch between the default(as it is now) and the pretty printed output (for all the results not just one of them)

Devin Walters

unread,
May 16, 2013, 9:35:00 PM5/16/13
to clo...@googlegroups.com
Not difficult, feel free to submit an issue on the repo.

Thanks,
-- 
{:∂evin :√valters}

Leon Talbot

unread,
May 16, 2013, 10:55:56 PM5/16/13
to clo...@googlegroups.com
This project is actually very useful for learning clojure one (or two!) function at a time. Thanks a lot!

Devin Walters

unread,
May 16, 2013, 11:04:51 PM5/16/13
to clo...@googlegroups.com
Thanks for trying it out!

One hint to people trying it out would be to not put too much stock into the first page of results. The plan is to add user ratings to augment search results in a meaningful way. At the moment searching for "comp" will give you the most "relevant" examples like: (comp comp comp comp comp comp), which is far from idiomatic or useful. Once ratings are added and weighted appropriately the first page of results should start to turn into a more idiomatic/instructive stew.

Cheers,
-- 
{:∂evin :√valters}

On Thursday, May 16, 2013 at 9:55 PM, Leon Talbot wrote:

This project is actually very useful for learning clojure one (or two!) function at a time. Thanks a lot!

Alex Baranosky

unread,
May 16, 2013, 11:26:12 PM5/16/13
to clo...@googlegroups.com
Really cool.  Thanks!

Mark Engelberg

unread,
May 16, 2013, 11:36:23 PM5/16/13
to clo...@googlegroups.com
Where is it getting the examples from?

Ramesh

unread,
May 16, 2013, 11:36:35 PM5/16/13
to clo...@googlegroups.com
Looks like "->>" is not supported. I quoted it!

atkaaz

unread,
May 16, 2013, 11:37:55 PM5/16/13
to clo...@googlegroups.com

atkaaz

unread,
May 16, 2013, 11:39:13 PM5/16/13
to clo...@googlegroups.com
nevermind :) it acts the same as ->> even when -\>\>
so I don't know what I was talking about :D

Devin Walters

unread,
May 16, 2013, 11:40:00 PM5/16/13
to clo...@googlegroups.com
IRC logs from the last 5 years and clojuredocs' DB. The examples were run through a sandbox against 1.5.1.

-- 
{:∂evin :√valters}

On Thursday, May 16, 2013 at 10:36 PM, Mark Engelberg wrote:

Where is it getting the examples from?

--

Devin Walters

unread,
May 16, 2013, 11:41:59 PM5/16/13
to clo...@googlegroups.com
There are some tweaks required on the analyzer/filter/tokenizer to allow certain queries. I wish Michael Klishin of ClojureWerkz fame was here to take a peek and offer his elasticsearch advice. ;)

-- 
{:∂evin :√valters}

Timothy Baldridge

unread,
May 17, 2013, 12:07:42 AM5/17/13
to clo...@googlegroups.com
This is awesome! I remember you mentioning this project last year at the Madison Clojure Meetup, it's cool to see it in action. 

This would make a pretty cool test framework for a new Clojure implementation. 

Timothy
“One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.”
(Robert Firth)

Ramesh

unread,
May 17, 2013, 1:21:11 AM5/17/13
to clo...@googlegroups.com
This is great, and will make clojure adoption wider. I hope its ranked higher in google results!

Also, it would be great if it supports regular expressions like these: "->[a-zA-Z]*", "\*[a-z]\*", etc. as well. I was reading clojure code for a while, and I remembered "->Obj" to be a valid IFn, but couldn't even search for it.


-ramesh

Manuel Paccagnella

unread,
May 17, 2013, 6:32:53 AM5/17/13
to clo...@googlegroups.com
Nice! Thank you Devin.

Jason Toy

unread,
May 18, 2013, 7:21:35 AM5/18/13
to Clojure
Great job!

On May 17, 6:32 am, Manuel Paccagnella <manuel.paccagne...@gmail.com>
wrote:
> Nice! Thank you Devin.
>
> Il giorno venerdì 17 maggio 2013 03:12:11 UTC+2, Devin Walters (devn) ha
> scritto:
>
>
>
>
>
>
>
>
>
> >  Hey All,
>
> > I put this (http://getclojure.org) together and wanted to share it with
Reply all
Reply to author
Forward
0 new messages