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-
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 tinymount...@gmail.com wrote:
Sorry for the newbie question, but can someone tell me what IFn means
exactly? I keep running into it in the
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'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
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 cki...@gmail.com 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
On Jul 24, 6:17 am, Dragan Djuric draga...@gmail.com 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
of
errors 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 drewpvo...@gmail.com wrote:
On Jul 24, 6:17 am, Dragan Djuric draga...@gmail.com wrote:
Sometimes (or maybe always?) it is mentioned
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 mark.engelb...@gmail.com 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
a string a seq, but
not a collection.
Is this a proper distinction?
On Jul 27, 5:36 pm, eyeris drewpvo...@gmail.com wrote:
The docstring should also be changed by replacing seq with
collection.
On Jul 27, 12:39 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
Yeah, but this case
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
That makes sense. Thanks.
On Jul 28, 1:30 pm, David Nolen dnolen.li...@gmail.com wrote:
RunTime I believe.
On Tue, Jul 28, 2009 at 2:29 PM, eyeris drewpvo...@gmail.com wrote:
I've been browsing the Clojure code. Everything seems to depend on
clojure.lang.RT. What does RT stand
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
, 1:37 pm, eyeris drewpvo...@gmail.com wrote:
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
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 m...@kotka.de wrote:
Hi,
On Aug 27, 5:47 am, Tim Snyder tsnyder...@gmail.com wrote:
I'm trying to understand how laziness affects exception handling.
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
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
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 mefo...@gmail.com 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
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
important
feature of Clojure, but for calling libraries, not building on
frameworks.
On Sep 16, 9:50 pm, eyeris drewpvo...@gmail.com wrote:
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
What JDK/JRE version?
On Oct 8, 8:38 am, kunjaan kunj...@gmail.com 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
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 ilyas...@gmail.com 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
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
)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 3 more
On Oct 19, 10:42 pm, eyeris drewpvo...@gmail.com 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
au BufRead,Bufnewfile *.clj setfiletype
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
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
+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 mark.swanson...@gmail.com wrote:
Hello,
Someone recently posed the question: (why doesn't this work)
(into {} (map #([% (* % %)]) [1 2 3 4]))
Or you can stick (sku, quantity) pairs in a cookie. However,
personally I prefer sessions.
On Oct 27, 9:54 am, Robert Campbell rrc...@gmail.com 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
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 karmazi...@gmail.com
wrote:
Having closures in Java is important because it potentially means type
compatibility for closures across languages.
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 wmacgy...@gmail.com wrote:
I vote let's turn this into a clojure vacation, and hold it in an
exotic location.
Otherwise,
On Feb 18, 9:34 am, Rowdy Rednose rowdy.redn...@gmx.net 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
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?
On Mar 17, 7:28 am, Ben Armstrong synerg...@gmail.com 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
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 markus.gustavs...@gmail.com wrote:
Hello all.
I have had some time lately to work on my C FFI for Clojure and I
think it's pretty
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 post
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 p.f.mo...@gmail.com wrote:
Hi,
I'm new to Clojure, and looking for
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 lspec...@hampshire.edu wrote:
Starting from scratch, both to
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,
On Feb 3, 12:07 am, dmiller dmiller2...@gmail.com 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
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
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
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
that you've done this.
On Aug 4, 12:25 am, eyeris drewpvo...@gmail.com 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'm glad to lag behind the bleeding
can package an approved version
of the DLR.
-David
On Aug 4, 1:59 pm, eyeris drewpvo...@gmail.com wrote:
I tried to build the latest ClojureCLR using VS 2008. I used the DLR
1.0 release. I successfully replaced your DLR project references and
built them:
http://imgur.com/SgUmu.jpg
I am very encouraged to hear this. I'm looking forward to the binary
release.
On Sep 24, 10:24 am, dmiller dmiller2...@gmail.com 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
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 parset...@gmail.com 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
Thank you for all the work you've put into this!
On Oct 11, 5:39 pm, dmiller dmiller2...@gmail.com 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
48 matches
Mail list logo