Re: What's clojure killer app? I don't see any.

2014-06-16 Thread John Chijioke
Beautiful beautiful answer. I couldn't have said my mind any better. Thanks for taking the time to construct this expression. One day Clojure will be so dynamic that targeting any platform becomes just a paltry effort. Cheers! -- You received this message because you are subscribed to the Goog

Re: Mathematica like eval

2014-06-16 Thread Dilvan
Hi, Thanks for both answers. I will try to find the relevant text in Joy of Clojure (I have access to the first edition). I followed the expresso link, but I am not interested in mathematical expressions. Refining my question: I am more

Usage docstrings as example source & test samples

2014-06-16 Thread Vladimir Bokov
Hi, I'm quite new to clojure community, came from Python & Ruby. I see the most relevant documentation for the language is kept at http://clojuredocs.org/ I like examples listed there and idea of docstring, upon which some docs are generated. But, honestly, adding examples to docs by hand, updat

Re: Usage docstrings as example source & test samples

2014-06-16 Thread Andy Fingerhut
I cannot answer for the Clojure core committers, but from past experience it seems unlikely that they will enhance the doc strings in the way you suggest. Fortunately, it is not true that "this decision must be taken by core committers". Anyone can add one dependency in Leiningen and replace all

Re: RFC: dynamic-object, a library for working with Clojure data in Java

2014-06-16 Thread Ryan Schmitt
I'll look into it, I'm just sort of reluctant because I don't think people take beta warnings seriously. In the meantime, if all you want is a .jar file, you can just clone the git repo and run the Gradle build. You should also be able to open up the repo as an IntelliJ project. (Let me know if

Re: Mathematica like eval

2014-06-16 Thread kovas boguta
So I've thought about this quite a bit (as have some other people, like Brandon Bloom), and started working on a library a while back exploring some ideas https://github.com/kovasb/term The main idea of term is to take any expression and turn unbound symbols into datatypes that satisfy mathematica

56 second GC on Heroku - seems a bit long

2014-06-16 Thread Brian Marick
We have a small Clojure app on Heroku that performs backend tasks for a Rails app. Low traffic (like a request a minute). Heap is 400M. We've been having long (10 sec) GC pauses using both the default and G1 GC (both untuned). Browsing our logs today, I found: [GC pause (young) 156M->36M(

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Timothy Baldridge
Something I would ask your co-worker is if he has ever run heaps of that size on Heroku. From what I can tell, Heroku runs on AWS. Not sure if they are using dedicated boxes under the sheets, but the fact is you are probably running on a provisioned device. One that may have many other users. I've

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Brian Marick
On Jun 16, 2014, at 1:19 PM, Timothy Baldridge wrote: > The rules for debugging this sort of thing are always 1) assume nothing. Yes, but. The plural of anecdote is data*. If there are five responses saying "we run Clojure on Heroku [or a Heroku-like environment], didn't tune GC, and we've ne

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Daniel Compton
You didn't mention whether this was on the free tier or a paid dyno. I would expect the paid dynos to not be as heavily provisioned and could possibly alleviate this. --- Daniel > On 17/06/2014, at 5:47 am, Brian Marick wrote: > > We have a small Clojure app on Heroku that performs backend t

Clojure/conj 2014 CFP is now open!

2014-06-16 Thread Lynn Grogan
Hey All, I'm excited to announce that the Clojure/conj call for proposals opened today! Details are below. Feel free to email me or Alex Miller at eve...@cognitect.com if you have any questions. Thanks! Lynn from Cognitect Speak at the Conj! Clojure/conj 2014 is a single track, three d

macro question

2014-06-16 Thread Christopher Howard
Disclosure: I'm rather fascinated with macros (the things they are supposed to allow us to do), but I'm still rather mystified about how they actually work. It seems like every time I try to write one, it rarely behaves anything like I expect. Question: Is there any obvious problems with this seem

Re: macro question

2014-06-16 Thread Gary Trakhman
Yes, you need to revisit the fundamentals of macros. Macros are functions that take in data (the forms), and return data (possibly altered forms). In your example, you're checking if the expression itself, a list or some kind of value or something is equal to the value 0, at compile-time, then yo

Re: macro question

2014-06-16 Thread James Reeves
Macros differ from functions in two ways: 1. They're executed at compile-time, rather than run-time. 2. Their arguments are unevaluated. Your if-zero function probably doesn't act the way you expect it to, because you're expecting test-expr to be evaluated. If all of the arguments to your macro

Re: Usage docstrings as example source & test samples

2014-06-16 Thread Vladimir Bokov
Thanks for reply, thalia looks very close for what i'm looking for, and i find cool being able to inject arbitrary docstrings :) But there is always some kind of unc

Re: Usage docstrings as example source & test samples

2014-06-16 Thread Andy Fingerhut
Vladimir, I would be happy to review anything you care to write in this area. I would recommend that you start by assuming that whatever you produce might not be incorporated into the Clojure core code base. Assume that it will be distributed as a separate project, perhaps something like thalia,

Re: Usage docstrings as example source & test samples

2014-06-16 Thread Vladimir Bokov
BTW, just searched through topics and found these about obsolete docstrings: core.match incorrect docstring? https://groups.google.com/forum/#!searchin/clojure/docstring/clojure/sC16eTtVaCQ/bXC0e91wx_gJ docstrings of if-let and when-let incorrect https://groups.google.com/forum/#!searchin/clojure

Re: RFC: dynamic-object, a library for working with Clojure data in Java

2014-06-16 Thread Atamert Ölçgen
Absolutely. I don't believe consumers (of open source projects) are entitled to anything anyway. I think it's a cool project and I hope it gets the attention. On Tue, Jun 17, 2014 at 1:02 AM, Ryan Schmitt wrote: > I'll look into it, I'm just sort of reluctant because I don't think people > tak

Re: Mathematica like eval

2014-06-16 Thread Brandon Bloom
Since my ears are ringing, I'll chime in. There's a few things to separate out here: 1) Symbolic math 2) Term rewriting 3) Staged computation Mathematica can provide all three to varying degrees. Espresso targets symbolic mathematics. Kovas' work is about term rewriting as a computational para

Re: Usage docstrings as example source & test samples

2014-06-16 Thread Mike Thompson
Tim Peters invented the idea of doctest in python. He had a great love of using the REPL (sound familiar to anyone in Clojure?). He felt that "throwing away" a constructive REPL session was a huge waste. He'd often tested some code via the REPL, particularly the edge cases. His REPL work,