On Jul 28, 4:50 pm, Anthony Grimes wrote:
> Oh! I apologize. I was replying via the google interface and didn't realize
> it wasn't quoting. Here is a link to the topic for
> context:https://groups.google.com/d/topic/clojure/ZyVrCxmOFTM/discussion
>
> I've also filed a bug here:http://dev.clojur
I'm very excited to say that Clojure is now an officially supported
deployment option on Heroku:
http://blog.heroku.com/archives/2011/7/5/clojure_on_heroku/
A big thanks to everyone in the Clojure community that helped us make
this a reality - especially James Reeves, Phil Hagelberg, Chris
Re
working on it, but let us
know if you end up doing something like that yourself.
- Mark
> Regards,
> ~Avram
>
> On Jul 24, 12:30 am, Mark McGranaghan wrote:
>
>
>
> > Hi All,
>
> > I recently posted to my blog on the process of developing and
> > deploying
Hi All,
I recently posted to my blog on the process of developing and
deploying a simple Clojure web application:
http://mmcgrana.github.com/2010/07/develop-deploy-clojure-web-applications.html
The purpose of this post is twofold. The first is to provide some
documentation in the form of a compl
Hi Martin,
http://github.com/mmcgrana/clj-json is a simple example of a Clojure
+Java library that you could use as a working example. See in
particular project.clj the Development section of README.md.
Hope this helps,
- Mark
On Jul 14, 6:16 am, Martin DeMello wrote:
> On Wed, Jul 14, 2010 at
> Basically because wrap-reload is a function, so app is evaluated
> before it is passed to wrap-reload.
Right. To elaborate, the code "(reload/wrap-reload app '(ns1 ns2))"
invokes the wrap-reload function with the current value of the "app"
Var, which is a specific and immutable function. The rel
Hi Vagif,
On Feb 3, 4:27 pm, Vagif Verdi wrote:
> Whatever you guys chose, do not go the immutable road. Compojure took
> that approach and now many people (including me) are stuck with
> situations where they need to update session in a middle and pass it
> somewhere else, and they can't. Sessio
I've posted the slides here:
http://fleetdb.org/talks/2010_01_07_ba_clojure_user_group.pdf
On Jan 4, 6:35 pm, Mark McGranaghan wrote:
> Sure; if someone at the meetup wanted to record the talk that would be
> great. I'll probably publish my slides as well.
>
> - Mark
>
> Ok. After a second look: compact is asynchronous. How do I find out whether
> it is finished or whether there is still a compaction going on? And related:
> how do I shut down the server gracefully?
There is currently no query for checking whether compaction is going
on, though I am working on
tion.
The key point is that you don't need to implement indexes in the
application layer and suffer the corresponding complexity and possible
non-atomicity, as you need to with some other non-sql datastores.
- Mark
On Jan 5, 12:56 am, Anders Rune Jensen
wrote:
> On Tue, Jan 5, 201
Hi Meikel,
Yep, what you're looking for is compaction:
http://fleetdb.org/docs/queries/compact.html
- Mark
On Jan 5, 2:59 am, Meikel Brandmeyer wrote:
> Hello Mark,
>
> On Jan 5, 1:12 am, Mark McGranaghan wrote:
>
> > I'm happy to announce the alpha release
FleetDB is designed
for datasets that fit in RAM. I'll be adding a FAQ page soon that
addressees this question in more detail, as it comes up a lot.
- Mark
On Jan 5, 4:26 am, Rick Moynihan wrote:
> 2010/1/5 Mark McGranaghan :
>
> > Hi All,
>
> > I'm happy to annou
Sure; if someone at the meetup wanted to record the talk that would be
great. I'll probably publish my slides as well.
- Mark
On Jan 4, 6:18 pm, Sean Devlin wrote:
> Would you be comfortable recording & publishing the talk?
>
> On Jan 4, 7:12 pm, Mark McGranaghan wrote
Hi All,
I'm happy to announce the alpha release of 'FleetDB', a schema-free
database implemented in Clojure and optimized for agile development.
>From the homepage at http://fleetdb.org: "FleetDB offers a flexible
and expressive data model designed for the needs of modern application
developers;
Hi Amitava,
You can se clj-html.helpers/doctype, which is from the clj-html-
helpers project:
http://github.com/mmcgrana/clj-html-helpers
I hope this helps,
- Mark
On Oct 15, 8:26 pm, Amitava wrote:
> Hello all,
>
> Does anyone know how to generate the html doctype using clj-html? I am
> tryi
I am happy to release version 0.1 of Ring, a Clojure web applications
library. This version of Ring incorporates several new features and
changes, includes improved documentation, and some several structural
changes to support ongoing development. I hope that this release
provides a useful referen
You might consider using clj-stacktrace for parsing, filtering, and or
formatting Clojure stacktraces:
http://github.com/mmcgrana/clj-stacktrace
For example, if you want to differentiate between Java, core Clojure,
and user Clojure stack trace frames in a terminal session, you could
try:
(use '
+ 1 for literal using literal Clojure data structures for configuration.
On Wed, Mar 25, 2009 at 5:50 PM, Laurent PETIT wrote:
> And why not just use clojure source code literal datastructures as the
> persistence format ?
>
> With the pretty print function released by Tom Faulhaber, it's even p
; did you mean like:
#doc-items {
margin-left: 17.5em;
position: fixed;
}
What does this change for you? Is it an IE rendering fix (I haven't
tested clj-doc at all in IE)?
- Mark McGranaghan
On Tue, Mar 10, 2009 at 9:26 AM, rb wrote:
>
>
>
> On Mar 10, 11:47 am, Chas Emerick
t of
Clojure code and a simple text editor + shell scripts + vanilla repl
worked well for me.
- Mark McGranaghan
On Fri, Mar 6, 2009 at 11:35 AM, levand wrote:
>
> As my Clojure application is now getting quite complex, I was curious
> as to what "workflow" people are using
Hi Mark,
Stuart might be referring to clj-backtrace:
http://github.com/mmcgrana/clj-backtrace
This library parses the Java exception information and renders it for
better readability, especially for elements in the trace corresponding
to Clojure code.
user=> (try ("foo") (catch Exception e (pst
You can use the Early Access version of YourKit: it does not require a
license key and in my experience works great:
http://www.yourkit.com/eap/index.jsp
- Mark
On Thu, Feb 5, 2009 at 10:47 PM, Sergio wrote:
>
> I have been trying out the YourKit profiler and I think it's great.
> However, my
I frequently use a more general version of this function that reduces
a seq to a map, mapping each element in the seq to a [key value] pair
for the map. I use this in several different libs:
(defn mash
"Reduce a seq-able to a map. The given fn should return a 2-element tuple
representing a ke
e function I'm looking for. Are you
> still keeping that up to date, or has it stagnated since you first
> announced it?
>
> Mark McGranaghan writes:
>> Hi Kevin,
>>
>> You should try clj-doc:
>>
>> http://github.com/mmcgrana/clj-doc
>>
>&g
or
various documentation-related features to find their way into core,
especially the ns docstrings. Now that we have most of those (though
(def foo "docstring" :bar) is noticeably missing) I'm going to be
working more on clj-doc.
Hope you find it useful,
- Mark McGranaghan
On Fri
My name: Mark McGranaghan
Lib name: Ring
Home page: http://github.com/mmcgrana/ring
Category: Web
License: MIT
Description: A Clojure web application library inspired by Python's
WSGI and Ruby's Rack; abstracts the details of HTTP into a simple,
unified API and enables web application
Joda Time is also a good fit for Clojure because all features in the
library have a functional implementation, whereas the current built-in
Java classes tend to use non-functional/non-threadsafe mechanisms.
- Mark M.
On Fri, Jan 23, 2009 at 9:14 AM, Mark Volkmann
wrote:
>
> On Fri, Jan 23, 2009
I'd suggest using Compojure for your first project - its fairly widely
used, is easy to pick up, and has a growing set of docs.
I'm not sure that Webjure is maintained anymore (i.e. no commits to
its repo in a few months).
Weld is still a work in progress - I'm trying to stabilize it now but
it
> It seems to me that Ring's approach works well if there's the
> possibility of implementing Ring using technology other than Servlets.
> In this case, it makes sense for Ring to act as a minimum common
> interface. But if this isn't your goal, then you're just removing
> functionality for aesthe
eeves
wrote:
>
> On Jan 13, 4:45 am, Mark McGranaghan wrote:
>> In terms of Clojure web frameworks, I think that there is a lot to be
>> gained by leveraging the Ring interface, especially from the modular
>> functionality provided by Ring middleware. I'd like in p
map with the parts you want and pass that
> to your function. Great Work!
> On Tue, Jan 13, 2009 at 1:13 AM, Paul Barry wrote:
>>
>> What's does the req object that is passed into the function have in it?
>>
>> On Mon, Jan 12, 2009 at 11:45 PM, Mark McGranaghan
&
Hi All,
I'm happy to announce the alpha release of 'Ring', a library inspired
by Python's WSGI and Ruby's Rack for developing web applications in
Clojure.
I've made it as easy as humanly possible for you to try it out:
git clone git://github.com/mmcgrana/ring.git
cd ring
java -Djava
:blue
:else
:default))
On Thu, Jan 8, 2009 at 7:17 PM, Phil Hagelberg wrote:
>
> Mark McGranaghan writes:
>
>> I'd also be happy to answer any questions you have about using the
>> library and to hear any general comments.
>
> This looks great! I love t
Hi all,
A little while ago I released clj-backtrace, a library that produces
more readable backtraces for Clojure programs. I originally conceived
of the library as just a better (.printStackTrace *e) for use at the
REPL, but I've since found some other neat uses. I'd just like to
share some scre
Clojure revision 1193 introduces metadata handling for namespaces and
other Reference types. I was thinking this could be used to add
support for ns-level docstrings such as we currently have for vars.
Such support would allow programatic access to namespace
documentation.
I was thinking of somet
> ("foo")
user=> (pst)
It prints the cleaned backtrace. Could you provide REPL sessions like
these that indicate the unexpected behavior?
- Mark
On Sat, Jan 3, 2009 at 11:55 AM, Konrad Hinsen
wrote:
>
> On 03.01.2009, at 15:46, Mark McGranaghan wrote:
>
>> Thanks fo
Konrad,
Thanks for trying the library, I'm glad you found it useful. It should
not redefine any existing behaviour - could you share a REPL session
showing the behavior that seemed to change?
- Mark
On Jan 3, 2009, at 7:31 AM, Konrad Hinsen
wrote:
>
> On 02.01.2009, at
gt;
> My one concern with this is how brittle is this with respect to
> Clojure's development? Have you had any trouble getting reasonable
> output on various revisions of Clojure?
>
> /mike.
>
>
>
> On Thu, Jan 1, 2009 at 9:30 PM, Mark McGranaghan wrote:
>>
Hi all,
I'm happy to announce an alpha release of clj-backtrace, a library for
processing backtraces generated by Clojure programs. The library works
by separating useful backtrace information from the noise generated by
the Clojure compilation process, and also provides functions for
pretty-prin
d not Clojure.
I'm not using Compujre here, but looking quickly at Compojure it seems
like it uses (.start server) as well from scripts.
- Mark
On Sun, Dec 21, 2008 at 3:59 PM, Mark McGranaghan wrote:
> Steve,
>
> Your version of repl_ln.clj works for me:
>
> 1:1 user=> (+
Steve,
Your version of repl_ln.clj works for me:
1:1 user=> (+ 1 2)
3
1:2 user=> (throw (Exception. "test"))
java.lang.Exception: test (repl-1:2)
Thanks again,
- Mark
On Sun, Dec 21, 2008 at 3:47 PM, Stephen C. Gilardi wrote:
> Hi Mark,
>
> Thanks for your work on polishing up Clojure's entry
Hi Steve,
Thanks for your work on polishing up Clojure's entry point situation.
I've applied your patch and tried a series of typical entry point
scenarios; all but one of them worked for me. Just for the record,
here is what did work:
- Using "-h" to get help
- Using no options to boot into a r
I've likewise though a fair bit about this, but haven't been able to
come up with a particularly satisfying solution.
One approach I've considered is a watcher-type system where
persistence is defined in terms of immutable snapshots and append-only
journals: you snapshot the data to disk occasion
I don't recall a histogram-like method, though I may just be forgetting.
(defn frequencies [coll]
(reduce
(fn [map val] (assoc map val (inc (get map val 1
{}
coll))
On Thu, Dec 11, 2008 at 9:33 AM, Dave Griffith
<[EMAIL PROTECTED]> wrote:
>
>
> (defn frequencies [coll]
>
I generally like the various def* macros from clojure.contrib.def. I
was wondering though if it would make sense unify the syntax of all
the def* macros from both clojure.contrib.def and clojure.core,
especially with respect to doc strings and attr-maps.
For example in clojure.core we have defn w
This is indeed the definition used in the clojure.contrib.pred library:
http://github.com/kevinoneill/clojure-contrib/tree/master/src/clojure/contrib/pred.clj#L45
- Mark M.
On Fri, Dec 5, 2008 at 8:07 AM, Arie van Wingerden <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am learning Clojure by working th
Konrad,
You might find this group post on a "recursive macroexpand" useful:
http://groups.google.com/group/clojure/browse_thread/thread/bba604cee3b232d9/28837d55525306d8?lnk=gst&q=recursive+macroexpand#28837d55525306d8
- Mark
On Mon, Dec 1, 2008 at 9:25 AM, Konrad Hinsen <[EMAIL PROTECTED]> wro
I've added the license notices to the bottom of each var's
documentation per the discussion in #clojure - sorry about the
ommision.
- Mark
On Sun, Nov 23, 2008 at 9:10 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
>
> On Nov 21, 3:17 am, Mark McGranaghan <[E
that.
> * If this supported annotations, that would be fantastic, but
> obviously that's a whole 'nother level.
>
> On Fri, Nov 21, 2008 at 3:17 AM, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
>>
>> I've created some experimental HTML do
I've created some experimental HTML docs for Clojure. You can see them
on S3:
http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html
Or, just for kicks, on Amazon's new Cloud Front CDN:
http://d2nbqsesuabw8o.cloudfront.net/tmp/doc-1116/index.html
You can see the code I used to generate them on
Hi all,
I'm happy to release clj-html, an HTML compilation library.
clj-html tries to combine the functional interface and expressive
literal vector syntax of compojure's HTML library[1] with the
compilation model of cl-who[2]. The goal is to start with easy-to-read
and concise templates, proces
Mark,
You can read some about destructuring in the documentation for the
special form "let":
http://clojure.org/special_forms#let
You can also explore the functionality at the repl:
user=> (destructure '[{x :x, y :y, :or {y 3}} given])
[map__59 given y (clojure.core/get map__59 :y 3) x (clojure
I really like being able to find and check documentation in the REPL
with find-doc and doc, but I often would like to see the source code
of a function or macro to be able to understand it better or learn
from the implementation. To do this I switch into an editor with
boot.clj, find and read the
Now that we have "remove" (and "sequential?"), perhaps we should
redefine flatten and separate:
(defn flatten
"Takes any nested combination of sequential things (lists, vectors,
etc.) and returns their contents as a single, flat sequence."
[x]
(remove sequential? (tree-seq sequential? seq
)
- Updated looping methods to use clojure/loop
- Added a link on the wikibook
Best,
- Mark M.
On Fri, Oct 17, 2008 at 2:19 AM, mb <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On 17 Okt., 00:14, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
>> When I first started working with Cloju
When I first started working with Clojure a while back I tried to get
my bearings by figuring out how to do some basic things in Clojure
that I had previously done in Ruby. With all the recent talk about
the seq api, I thought I'd clean up my notes on Ruby => Clojure for
the Enumerable and Array
I was just wondering what the intended use is for
TransactionalHashMap. Its a Java class defined in the Clojure source,
but not used anywhere else in the core code. How does this class fit
in with Clojure's PersistentHashMap and Java's ConcurrentHashMap?
- Mark
--~--~-~--~~--
Thanks Rich,
This is exactly the "there must be a simple way to do this that I am
overlooking" answer that I was hoping for.
- Mark
On Fri, Sep 19, 2008 at 8:25 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
>
> On Sep 18, 8:49 pm, Mark McGranaghan <[EMAIL PROTEC
l result) coll))
[]
[(fn [a b] (if (> a 2) (* a b)))
(fn [a b] (if (> b 2) (+ a b)))
(fn [a b] (if (> a b) (- a b)))]))
(build-coll 3 1)
Does anyone have any better ideas about how to go about this?
Thanks,
- Mark McGranaghan
--~--~-~--~~~-
59 matches
Mail list logo