Hi,
Create use dotopdown (or doreverse, name it as you like):
user= (defmacro dotopdown [ body] `(do ~@(reverse body)))
#'user/dotopdown
user= (dotopdown (defn abstract [a] (helper a)) (defn helper [a] (str a)))
#'user/abstract
user= (abstract 30)
30
;)
2011/2/9 jkrueger
Hi George,
That's correct. I briefly mention the JVM's standard hot swapping
capabilities when running in debug mode. Unfortunately this hot
swapping is mostly limited to changing method bodies and not class
signatures (add/remove method, etc).
Normally this is not even a problem because - as
http://shootout.alioth.debian.org/u32/benchmark.php?test=fastalang=all
The fastest program shown here is in Java and runs in 1.72 seconds.
However, at the bottom of the page (under interesting alternative
programs) there is a C++ program that runs in 0.25 seconds; it seems
to work basically the
Hi All,
Is there a list of languages that had a big influence on the development of
clojure and how this influence manifests itself?
E.g. What language or design decisions were derived from from Haskell or
Prolog, etc.?
Kind Regards
Andreas
--
“There is a strong correlation between being smart
This :
http://www.amazon.com/Clojure-Bookshelf/lm/R3LG3ZBZS4GCTH/ref=cm_lm_byauthor_title_full
HTH,
--
Laurent
2011/2/10 Andreas Kostler andreas.koestler.le...@gmail.com
Hi All,
Is there a list of languages that had a big influence on the development of
clojure and how this influence
I am aware of that list. I would be interested in what influence those
languages had on clojure. E.g. what language features Rich borrowed from which
language when he designed Clojure.
Cheers
Andreas
On 10/02/2011, at 9:18 PM, Laurent PETIT wrote:
On Wed, Feb 09, 2011 at 04:33 -0800, Meikel Brandmeyer wrote:
Hi,
omni completion is aware of the namespace of the file you are
currently editing. It only provides completions which make sense for
this namespace. Example:
Great, this makes sense and works as expected.
Feel free to ask
On Feb 10, 8:36 am, Jozef Wagner jozef.wag...@gmail.com wrote:
One question, If I search for some entries, you return results as a sequence
of maps. How do I get dn of some result? It seems that your entry-as-map
converts attributes but strips away entry dn.
I've solved this by adding :dn key
Hi,
On 10 Feb., 13:22, Wolodja Wentland babi...@gmail.com wrote:
Ok, that works. The reason for my decision to use 2.3.0-SNAPSHOT are
manifold, among them:
* It not clear how to setup vimclojure and hard to find relevant and
complete information on how to do this. It took me some
That's an awesome solution Meikel!
I forgot to specify that I want the bindings to have lexical scope
only. But I think I can get that to work easily by modifying your
solution.
Thanks!
-Patrick
On Feb 10, 2:09 am, Meikel Brandmeyer m...@kotka.de wrote:
Whoops. Misclick. Sorry
Here again:
Hi,
On 10 Feb., 14:58, CuppoJava patrickli_2...@hotmail.com wrote:
That's an awesome solution Meikel!
You are welcome. :)
I forgot to specify that I want the bindings to have lexical scope
only. But I think I can get that to work easily by modifying your
solution.
Haha. In fact that was my
Hi Meikel,
That's what I original thought I might have to do. But it seemed
overly complicated. Perhaps there's no way around it.
I have a small question about the with-bindings function that you
used.
That one establishes dynamically scoped variables. Can't there be
another Clojure function
While the speaker at the video linked below is no absolute authority
in the matter, he does talk (well, mostly gibber) about some of
Clojure's influences.
http://clojure.blip.tv/file/4501296/
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Hi,
On 10 Feb., 15:54, CuppoJava patrickli_2...@hotmail.com wrote:
That one establishes dynamically scoped variables. Can't there be
another Clojure function that provides lexically scoped variables?
I actually don't know of any lisp/scheme system that provides a way to
introduce lexically
Hi,
We're going to be doing a dojo in the future that will create an XMPP bot.
I've found a couple of clojure xmpp projects out there, but I was
wondering if anyone on the list could recommend a particular project
in clojure or failing that a good Java library to base our work on.
I've seen
hi meikel,
thank you for this ...
i have published a gist that showcases a clojure-based webapp
and uses gradle/clojuresque for the build.
http://gist.github.com/815806
gruesse
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group,
Dear all,
what are in your opinion 3 biggest advantages that Clojure and
functional languages have over .NET, with focus on LINQ?
E.g. I thought of set functions, but this is supported in LINQ.
Any help is more than welcome for this student research.
--
You received this message because you
On Wed, 9 Feb 2011 20:34:56 -0800 (PST)
CuppoJava patrickli_2...@hotmail.com wrote:
Description: (bind-later bindings body) and (do-binding body)
(bind-later) is used like a let-form, except that it doesn't
*immediately* make the bindings available.
The bindings become available only
Here's an error I just got that could be improved upon. It shows an
error in a file core.clj, but my current project uses many libraries
and there are multiple files named core.clj. How about putting the
full path to the file somewhere so we can jump straight to it?
Thanks,
Jeff
I just created my own clojure wrappers around the jive (igniterealtime) java
libraries. Created an xmpp client library with their Smack library, and a
server component library with Tinder (you will need to build from source
with this one). They are fairly solid java xmpp libraries.
Thanks for all your help everyone!
So I came up with an elegant solution. It was a combination of
Meikel's codwalker solution gave me the idea to bootstrap off of
Clojure's macroexpand system to get it to work.
;;This is a convenience method for expanding macros. It recursively
;;macroexpands
Mark,
Smack looks delightfully straightforward. I think I'll give it a shot thanks!
cheers,
Bruce
On Thu, Feb 10, 2011 at 15:58, Mark Rathwell mark.rathw...@gmail.com wrote:
I just created my own clojure wrappers around the jive (igniterealtime) java
libraries. Created an xmpp client
reporting issue: pre and post conditions. They are a great feature
and I'd like to use them more often, but the error messages they
produce are virtually useless in comparison to just writing your own
check with a custom exception. How about having optional error
messages for the
See the clojure.walk namespace. It has macroexpand-all and walk/
prewalk functions which would make this much simpler.
That said: yes, of course there is a form that introduces lexical
bindings; it's called let (as shown in Mike Meyers's solution).
On Feb 10, 8:01 am, CuppoJava
what are in your opinion 3 biggest advantages that Clojure and
functional languages have over .NET, with focus on LINQ?
Do you mean .NET or C#? There are several functional languages that
run on .NET, such as F#.
- James
--
You received this message because you are subscribed to the Google
On Feb 9, 6:48 pm, Bojan Jovicic bojan.jovi...@gmail.com wrote:
Dear all,
what are in your opinion 3 biggest advantages that Clojure and
functional languages have over .NET, with focus on LINQ?
.NET is not a language, it's a runtime with explicit multi-language
support. There's even a clojure
Alternatively, records could have an enforced mapping {:type
TheRecordsClass} that does not actually take up storage space, but
appears when records are queried and automatically imposes the desired
equality semantics if records were simply treated as maps -- other
than that a plain map with
On 10 February 2011 17:05, Jeff Rose ros...@gmail.com wrote:
Sorry for the reply spam, but I've just remembered another error
reporting issue: pre and post conditions. They are a great feature
and I'd like to use them more often, but the error messages they
produce are virtually useless in
On Thu, Feb 10, 2011 at 08:21, Bruce Durling b...@otfrom.com wrote:
Mark,
Smack looks delightfully straightforward. I think I'll give it a shot
thanks!
Smack has a bunch of oddities once you start wanting to do anything past
simple message processing. The predominate issue (this as of smack
I know talked a bit about this when you e-mailed me personally on the
subject, but perhaps I'll take another stab at it.
But back to the subject at hand of C# vs Clojure. For me the biggest
thing comes down to immutability and functions with zero side effects.
I tend to code very functionally
I am required to process a huge XML file with 300,000 records. The
structure is like this:
root
header
/header
body
record.../record
record.../record
... 299,998 more
/body
/root
Obviously, it is of key importance not to allocate memory for all the
records at once.
Sure. I'm not saying that you can't write it yourself. My point was,
that
a) This is essential to writing understandable code, so it would be
nice if the language supported it out of the box
b) A namespace feels to me like a set of functions (ns-publics
actually returns a map). That Clojure
Hi,
I got the impression that you don't know .Net.
.Net is a VM similar to what the JVM offers, there are many functional
languages that
target .Net as well.
Microsoft's own functional language F#
Currently VB.Net and C# provide functional programming constructs
LINQ is actually an
Hi,
Jeff correct me if I'm wrong but I think you are after something along the
following lines.
Instead:
(defn f [x] {:pre [(some-fancy-validation x)]} ..)
To have something like this:
(defn f [x] {:pre [^{:msg here goes description of what has not been valid}
(some-fancy-validation x)]} ..)
(defn f [x] {:pre [^{:msg ...} (some-fancy-validation x)]} ..)
That idea (or some variation) is actually kinda nice.
Additionally, I've always hoped for separate
PreConditionAssertionError and PostConditionAssertionError types, but
keep forgetting to discuss it.
--
You received this message
Hi,
Am 10.02.2011 um 16:27 schrieb jkrueger:
a) This is essential to writing understandable code, so it would be
nice if the language supported it out of the box
Is that so? I'd rather say that this a personal opinion of yours. There are
different ways to organise code and neither is
On Feb 10, 1:17 am, Bill James w_a_x_...@yahoo.com wrote:
http://shootout.alioth.debian.org/u32/benchmark.php?test=fasta〈=all
The fastest program shown here is in Java and runs in 1.72 seconds.
However, at the bottom of the page (under interesting alternative
programs) there is a C++ program
It would be easier for submitters to answer that question if it was
more obvious *why* a program is in the interesting alternative
program section. Even a brief note in comments at the top of such
programs explaining the reason for their alternative status would be
enlightening.
Thanks,
I like it when people talk about themselves in third person ;)
Thanks Michael
On 11 February 2011 01:00, Fogus mefo...@gmail.com wrote:
While the speaker at the video linked below is no absolute authority
in the matter, he does talk (well, mostly gibber) about some of
Clojure's influences.
On Feb 10, 2:47 pm, Isaac Gouy igo...@yahoo.com wrote:
On Feb 10, 1:17 am, Bill James w_a_x_...@yahoo.com wrote:
http://shootout.alioth.debian.org/u32/benchmark.php?test=fasta〈=all
The fastest program shown here is in Java and runs in 1.72 seconds.
However, at the bottom of the page (under
Dear all,
I wish to thank you for your answers.
I am sorry for confusion because of my generic questions. We are
learning Clojure at University, and are looking for some nice example
of integrating it with one ERP system that has .NET integration
capability, so my question was directed at getting
On Thu, 10 Feb 2011 07:22:55 -0800 (PST)
Marko Topolnik marko.topol...@gmail.com wrote:
I am required to process a huge XML file with 300,000 records. The
structure is like this:
root
header
/header
body
record.../record
record.../record
... 299,998 more
I think it comes down to the following:
1) STM, for many applications, STM is a major plus (F# doesn't have
STM currently)
2) The LISP syntax can be quite freeing once you learn it
3) Clojure is a dynamic language, unlike F# and C#
Now here's the kicker. Depending who you talk to, all of these
On Feb 10, 9:33 pm, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 10.02.2011 um 16:27 schrieb jkrueger:
a) This is essential to writing understandable code, so it would be
nice if the language supported it out of the box
Is that so? I'd rather say that this a personal opinion of yours.
Please note that I don't want to start a big argument either.
On Feb 10, 11:01 pm, Timothy Baldridge tbaldri...@gmail.com wrote:
The LISP syntax can be viewed as a bad thing. I for one struggle with
it from time to time. I personally haven't decided if I think the LISP
syntax is a pro or a
On Feb 10, 4:27 pm, jkrueger jan.krue...@gmail.com wrote:
Sure. I'm not saying that you can't write it yourself. My point was,
that
a) This is essential to writing understandable code, so it would be
nice if the language supported it out of the box
I don't agree it's essential. I think if
On Feb 11, 12:02 am, Joost jo...@zeekat.nl wrote:
Yes it's arbitrary, but the other way around would be arbitrary too,
and IME
1) it's fairly rare that you actually *need* a declare kludge.
2) full free ordering generally makes stuff harder to find than
enforced order.
I forgot to add that
On Thu, Feb 10, 2011 at 11:01 AM, CuppoJava patrickli_2...@hotmail.com wrote:
Thanks for all your help everyone!
So I came up with an elegant solution. It was a combination of
Meikel's codwalker solution gave me the idea to bootstrap off of
Clojure's macroexpand system to get it to work.
Thanks guys for all the input.
I finally read the CA, and I guess the principal difference between
clojure contributions and wikipedia (which you wouldn't even know what
the heck it was if they had asked everyone to sign a CA first)
contributions - is not the type of content - code vs. prose (and
On Feb 10, 2011, at 1:41 PM, Bill James wrote:
On Feb 10, 2:47 pm, Isaac Gouy igo...@yahoo.com wrote:
On Feb 10, 1:17 am, Bill James w_a_x_...@yahoo.com wrote:
http://shootout.alioth.debian.org/u32/benchmark.php?
test=fasta〈=all
The fastest program shown here is in Java and runs in 1.72
(defn quo [expr] `(quote ~expr))
(defn union [s1 s2]
(if (empty? s2)
s1
(apply conj s1 s2)))
(def sfrms '#{def if do quote var recur throw monitor-enter monitor-exit . new
set!})
(defn map-ps [f coll]
(if (map? coll)
(into (empty coll)
(map (fn [[k v]] [(f k)
On Thu, Feb 10, 2011 at 7:49 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
I've published that program at the link below. It contains comments marking
two lines in the function gen-random-fast where the Hotspot JVM profiler
tells me that the CPU is spending lots of time in
On Feb 10, 2011, at 6:37 PM, Ken Wesson wrote:
On Thu, Feb 10, 2011 at 7:49 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
I've published that program at the link below. It contains
comments marking
two lines in the function gen-random-fast where the Hotspot JVM
profiler
tells me that
Hi!
I just realized there's this 3000 files limit we can upload on a WebApp to
Google's Application Engine (GAE). I also realized more than 2700 of mine
were .class files generated by clojure. (Which is obvious, once you think of
how it works).
Question: how can I delete those classes and
On Thu, Feb 10, 2011 at 9:49 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
On Feb 10, 2011, at 6:37 PM, Ken Wesson wrote:
On Thu, Feb 10, 2011 at 7:49 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
I've published that program at the link below. It contains comments
marking
two
On 11 February 2011 02:15, Ken Wesson kwess...@gmail.com wrote:
(defmacro macrolet* [shadowlist fnspecs body]
(let [locals (keys env)
gensyms (for [_ locals] (gensym))
qlocals (map quo (for [_ locals] (gensym)))
...
This macro is huge!!!
You might want something more
Just a quick adenda:
Yes, I can run this on the local machine with all classes in place, and with
just the .servlet, so the problem should lie within the GAE side, right?
The specific error I get from GAE's logs, if I try to upload only the
servlet.class and everything else on a jar (along
Ok, there was a hastiness problem from my side, caching or other issue, but
It's working now...
So for future reference, if you come up with the same issue, the solution is
to compile your gen'ed-classes and delete all the others from the
war/WEB-INF directory, making sure you have a
Your solution with map-ps is quite elegant. I was actually a little
annoyed that I had to deal with different data structures when walking
through Clojure code, as opposed to Lisp/Scheme code.
The doall was necessary for my use-case actually. Some of the macros I
write interact with the
On Thu, Feb 10, 2011 at 11:10 PM, CuppoJava patrickli_2...@hotmail.com wrote:
Your solution with map-ps is quite elegant.
Thanks. My implementation of macrolet also uses it. In fact, I wrote
my macroexpand-all as a tool to aid in developing that. It was useful
both for debugging macrolet itself
On Feb 10, 2011, at 4:49 PM, Andy Fingerhut wrote:
I've published that program at the link below. It contains comments
marking two lines in the function gen-random-fast where the Hotspot
JVM profiler tells me that the CPU is spending lots of time in
java.lang.Integer.valueOf (Clojure
On Thu, Feb 10, 2011 at 4:27 PM, Eugen Dück eu...@dueck.org wrote:
That said, I've contributed to a number of open source projects, none
of which required anything physical from me, and which wouldn't have
gotten anything from me had they asked, just because I wouldn't have
wanted to spend the
On Thu, 10 Feb 2011 21:57:01 -0800
Sean Corfield seancorfi...@gmail.com wrote:
Agreement pretty much identical to the Clojure / Oracle CA (with the
only exception to the process being that they will allow scanned,
signed CAs to be emailed to the project team).
That exception is the major
Not that size should matter when it comes to legalistics, but it
appears the already mentioned KDE project, claiming that the KDE
community is the second largest Free Software community by most
measures, after the linux kernel, does not seem to have introduced a
CA requirement by now. (From
64 matches
Mail list logo