I'm considering implementing a small web app using Compojure. I don't
have much experience with Jetty or any other web server save Apache.
While testing Compojure, I've been using the embedded Jetty API. This
has been convenient for getting up and running quickly. However I
don't like having to r
You are wrong. Many writings use ,, as a place-holder for where -> is
placing the argument. Take Meikel's example above:
(foo (bar (baz (frobnicate a-thing)) bla))
Becomes
(-> a-thing frobnicate baz (bar bla) foo)
So bar is a function of more than one argument. Re-written with place-
h
Generally, if you see this in a runtime exception, you tried to call
something that does not implement the IFn interface.
On Apr 18, 11:37 pm, tmountain wrote:
> Sorry for the newbie question, but can someone tell me what IFn means
> exactly? I keep running into it in the docs particularly in th
>From a practical position, anonymous functions of the #(+ 5 %) flavor
*are* partial application. The ubiquity of these anonymous functions
in clojure code is evidence that partial application is just as needed
in clojure as it is in haskell. #(+ 5 %) is not much more succinct
than (\x -> x + 5).
I ran the code you pasted here. It didn't throw an IOException for me.
I am running 1.0.
On Jul 9, 5:10 am, Mike wrote:
> I wanted to grab bytes out of a stream, and didn't see an analogue to
> reader from duck-streams, so I made my own:
>
> (defn byte-seq
> "Returns the bytes from stream as
On Jul 24, 6:17 am, Dragan Djuric wrote:
> Sometimes (or maybe always?) it is mentioned in the doc. In my
> opinion, this is one of the cases where dynamic languages do not
> excel. If we had typing, that would be solved by implementing Lazy
> "interface".
We do have types and we do have a lazy
rrors could be discovered by the compiler. How am I going to see if I
> get an ISeq in my clojure code? I would have to dig...
>
> On Jul 24, 3:37 pm, eyeris wrote:
>
> > On Jul 24, 6:17 am, Dragan Djuric wrote:
>
> > > Sometimes (or maybe always?) it is mentioned in
I want to implement ISeq to provide a sequence over an Excel file. I
plan to implement it in Java. I see that Range extends ASeq for its
default implementation of cons() and more(). Is extending ASeq the
recommended way to implement a sequence?
--~--~-~--~~~---~--~~
The docstring should also be changed by replacing "seq" with
"collection".
On Jul 27, 12:39 pm, Mark Engelberg wrote:
> Yeah, but this case is different because nth is much faster if the
> input is a vector, and calling seq on the input will actually degrade
> the performance for vector inputs.
I personally consider a string a seq, but
> not a collection.
>
> Is this a proper distinction?
>
> On Jul 27, 5:36 pm, eyeris wrote:
>
> > The docstring should also be changed by replacing "seq" with
> > "collection".
>
> > On Jul 27, 12:3
I've been browsing the Clojure code. Everything seems to depend on
clojure.lang.RT. What does RT stand for?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@
That makes sense. Thanks.
On Jul 28, 1:30 pm, David Nolen wrote:
> RunTime I believe.
>
> On Tue, Jul 28, 2009 at 2:29 PM, eyeris wrote:
>
> > I've been browsing the Clojure code. Everything seems to depend on
> > clojure.la
I favor using a map as the state because I think the information in
your example is an integral part of most parsing goals, not meta-data
retained to serve an auxiliary purpose. An example of what I would
consider meta-data for a parser would be the number of calls to
consumption functions the par
g Lisp, I think you've moved beyond beginner status, and
> expecting a basic familiarity of a regex is fair.
>
> My $.02
>
> Sean
>
> On Aug 27, 1:37 pm, eyeris wrote:
>
> > I have the same urge, to want to use regexps as predicates. However I
> > definitel
When you say "the original" do you mean the outer-most
RuntimeException or the inner-most exception?
On Aug 27, 8:33 am, Meikel Brandmeyer wrote:
> Hi,
>
> On Aug 27, 5:47 am, Tim Snyder wrote:
>
>
>
> > I'm trying to understand how laziness affects exception handling. I
> > keep finding my e
I have the same urge, to want to use regexps as predicates. However I
definitely would not like to read such code. I can only imagine having
to try to read such code if I didn't understand regexps. E.g. (filter
#"\d+" maybe-numbers) is clear enough to someone who understands
regexps. However (filt
Thanks for the link. I've tried and tried to understand monads, with
little success. It's lead me to the conclusion that monads won't
easily become one of the dominating approaches to program
organization. This is because, as the document says, without an
understanding of category theory, "it's li
I'm pretty sure that you need to either name each class you want to
import inside your :import form or you need to import the package and
then each use of the classes in that package need to be manually
resolved (e.g. org.eclipse.jface/IDocument). Though I never have been
able to use the ns macro
Why did you define the problem as you did rather than simply "The
largest prime factor of n?"
On Sep 9, 1:39 pm, Fogus wrote:
> ;; largest prime factor
> (defn lpf
> "Takes a number n and a starting number d > 1
> and calculates the largest prime factor of n
> starting at number d.
>
>
If you already have a data model mapped to an object model via
Hibernate (or similar Java-based product), you could simply wrap a
clojure API around those classes via the Java interop. However, I
don't know of an example of published code that does this.
On Sep 14, 4:34 pm, Brenton wrote:
> I a
k that Java interop is the most important
> feature of Clojure, but for calling libraries, not building on
> frameworks.
>
> On Sep 16, 9:50 pm, eyeris wrote:
>
> > If you already have a data model mapped to an object model via
> > Hibernate (or similar Java-based produc
What JDK/JRE version?
On Oct 8, 8:38 am, kunjaan wrote:
> java.lang.ClassFormatError: Unknown constant tag 52 in class file
> queries__init (Trial.clj:0)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" grou
Once I build the plugin with the latest clojure, can I use it to write
code targeting 1.0?
On Oct 17, 11:21 am, Ilya Sergey wrote:
> Hi all.
>
> After the long silence we resume work on `La Clojure' plugin for IntelliJ
> IDEA. It is still open-source and available now for IntelliJ IDEA 9
> Com
I've installed the latest VimClojure. I've added to my .vimrc:
let g:clj_want_gorilla = 1
let vimclojure#NailgunClient = ".../path/to/ng"
au BufRead,Bufnewfile *.clj setfiletype clojure
au BufRead,Bufnewfile *.clj setl lisp
The ng client is executable. Yet when I open a .clj file, echo
b:vimcloj
java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 3 more
On Oct 19, 10:42 pm, eyeris wrote:
> I've installed the latest VimClojure. I've added to my .vimrc:
>
> let g:clj_want_gorilla = 1
> let vimclojure#NailgunClient = ".../path/to/ng"
&g
I don't know how detailed of an explanation you want. The most basic
explanation is that not everything is compiled to byte code in the
manner that a C compiler usually generates machine code. Instead the
runtime, which would interpret most lisps, is bundled with the code as
a library.
On Oct 2
It's difficult to provide advice without more information about your
current code. You say that you want a part of your system, which
manipulates a lot of objects, to run in parallel. Do you mean that you
want this part of the system to run parallel to the other parts -or-
do you mean that this pa
+1, This would have helped me a lot when I first came to Clojure (from
a non-lisp background).
On Oct 25, 11:57 am, MarkSwanson wrote:
> Hello,
>
> Someone recently posed the question: (why doesn't this work)
> (into {} (map #([% (* % %)]) [1 2 3 4]))
>
> (reference:http://groups.google.com/gro
Or you can stick (sku, quantity) pairs in a cookie. However,
personally I prefer sessions.
On Oct 27, 9:54 am, Robert Campbell wrote:
> Wow, thank you very much. That's definitely a lot simpler. I'm going
> to try reimplementing it via your suggestions and see how it goes.
>
> I like your idea
I used clojure to write an application that interpolates SQL results
(from clojureql) into Excel spreadsheets (using Java interop to
Apache's POI lib). I have a two users putting this to use for their
project progress reporting.
On Nov 23, 5:00 pm, Raoul Duke wrote:
> hi,
>
> i'd be interested t
It's also important to get features into Java if you want real
substantial JVM performance tuning for them.
On Nov 28, 11:58 am, Christian Vest Hansen
wrote:
> Having closures in Java is important because it potentially means type
> compatibility for closures across languages. I don't think ther
Exotic? You got it! Madison, WI! Seriously, we have the best bars. See
you guys in the fall! :)
I would prefer it during the week.
On Jan 22, 3:15 pm, Wilson MacGyver wrote:
> I vote let's turn this into a clojure vacation, and hold it in an
> exotic location.
>
> Otherwise, hey, Columbus Ohio
On Feb 18, 9:34 am, Rowdy Rednose wrote:
> better-unique is not too far off from my initial approach, but still,
> why no side effects?
> Even though I do not know when the side-effects happen (lazily,
> eagerly), shouldn't the order be fixed in case of filter?
I think the term "must" in the doc
You can use a map as a key in another map. The clojure.set namespace
has a function index that does this:
user=> (doc index)
-
clojure.set/index
([xrel ks])
Returns a map of the distinct values of ks in the xrel mapped to a
set of the maps in xrel with the corresponding
One aspect of your question that makes it difficult to answer is that
you don't explain what the repercussions should be (in terms of
synchronization) when a new applicant or job enters the pool or a new
skill is attributed to an applicant. Should the job<->applicant
matching function be restarted?
I don't follow your logic. Modifications of refs within a transaction
retry too.
On Mar 5, 11:56 am, Mark Engelberg wrote:
> On Wed, Mar 3, 2010 at 5:20 PM, Rick Moynihan wrote:
>
>
>
> > If you have a single value representing the whole world, then it seems
> > that protecting it with an atom w
On Mar 17, 7:28 am, Ben Armstrong wrote:
> Or should I just ignore threads like "Why do functions in the state monad
> only accept one value?"
Yes, ignore those for now. Write an entire program in Clojure before
you read anything about monads. They aren't required. When I first
dipped my toes in
clj-segfault
j/k :)
Seriously though, thank you for working on this. I'm sure it will
remove a serious barrier to entry for some people.
On Mar 13, 1:14 pm, mac wrote:
> Hello all.
> I have had some time lately to work on my C FFI for Clojure and I
> think it's pretty much feature complete no
> I agree with Stuart that the user experience should be friendly on all
> supported platforms.
I also agree. The best setup experience I've had so far is using
NetBeans with the Enclojure plugin.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
The Full Disclojure video series is targeted more toward the lisp
newbie, but it contains a series of videos touring different
development environments. http://vimeo.com/channels/fulldisclojure
On May 27, 6:53 am, Paul Moore wrote:
> Hi,
> I'm new to Clojure, and looking for the best way to get
Which version of NetBeans did you install? Version 6.9 (the version
linked to on the netbeans.org front page) was released very recently.
It's unlikely that Enclojure has been updated for NetBeans 6.9.
On Jun 16, 5:29 pm, Lee Spector wrote:
> Starting from scratch, both to try it myself and to kn
I really wish that ClojureCLR had a binary distribution. I like
clojure a lot but I have a .Net background and a lot of .Net code to
interact with. If ClojureCLR had a stable, dependable binary
distribution I would be able to use it at work much more than I
already do. I don't care much about 1.2 f
I would like a zip of DLLs that are as widely compatible as possible
across CLR/DLR versions accompanied by a clear list of which versions
are compatible.
Regarding releases, I'm glad to lag behind the bleeding edge by a lot
in order to have a stable platform. What I want to be able to do is
grab
in the
commit history to suggest that you've done this.
On Aug 4, 12:25 am, eyeris wrote:
> I would like a zip of DLLs that are as widely compatible as possible
> across CLR/DLR versions accompanied by a clear list of which versions
> are compatible.
>
> Regarding releases, I
es/48032":here to get version 48032.'
>
> With a binary distribution, at least I can package an approved version
> of the DLR.
>
> -David
>
> On Aug 4, 1:59 pm, eyeris wrote:
>
>
>
> > I tried to build the latest ClojureCLR using VS 2008. I used th
I am very encouraged to hear this. I'm looking forward to the binary
release.
On Sep 24, 10:24 am, dmiller wrote:
> I tagged a 1.2 release on the site.
>
> I have not put a separate 1.2 download or a binary release out there
> yet. Someone has contributed an entirely new build process for
> Cl
This sounds fantastic! Integrating the (doc) function with the F1 help
system in some way would be helpful.
On Sep 23, 3:20 pm, Will Kennedy wrote:
> Some background: I've been spending some of my free time providing by
> basic Clojure support in VS 2010. To be honest, I'm a bit of a Clojure
> n
Thank you for all the work you've put into this!
On Oct 11, 5:39 pm, dmiller wrote:
> Check out the downloads area onhttp://github.com/richhickey/clojure-clr.
> Grabclojure-clr-1.2.0.zip. Unzip, start up Clojure.Main.exe and you
> should be running. The zip also contains Clojure.Compile.exe, w
Thank you for working on this! I wanted to create an extension with
just syntax highlighting and AOT compilation but I gave up while
reading through the VS extension API. Your patience must be never-
ending to use that API :) I will download and test this later today.
On Dec 30 2010, 10:30 pm, j
On Feb 3, 12:07 am, dmiller wrote:
> Completely arbitrarily, ClojureCLR names the AOT-compilation generated
> files whatever.clj.dll. The .clj. is superfluous, but does serve as
> a visual indication of the assembly's origin. Question: Useful, or
> just annoying?
The extra .clj in the .dll f
If you only intend to support border and flow layouts, you could
reduce the verbosity by maps implying border layout and vectors
implying flow layouts. That approach would limit you to simpler
layouts, but your example would become something like this:
(deflayout frame
{:west gamepanel
:east
51 matches
Mail list logo