hi clojure-community,
today i found this interesting blog-post about an abstraction for
accessing stored data:
http://anvil.io/2010/10/25/clojurize-the-data-not-the-database.html
i searched the list if this was already discussed, but
that seams not to be the case.
would someone disagree, if i
On Nov 5, 2010, at 9:03 PM, Yang Dong wrote:
Maybe because Clojure has a vector, and conj conjoins new elements to
the end of the vector, so there's mere little use of fold-right. But,
fold-right is an abstraction tool, missing it in the core is kind of
pity.
What's wrong with just using
2010/11/7 Alan a...@malloys.org:
Clojure's reduce is fold-left, not fold-right. My suspicion is that
fold-right is not as amenable to laziness or to tail-call recursion as
fold-right, but I don't have much experience in the area so I could be
wrong.
What I'm surprised we're missing is
Hi,
Some of the functions from clojure.contrib.string seem to have made it
into clojure.string (e.g. blank?, replace-xxx, join etc) in Clojure
master, but not 'as-str' as yet. Can somebody tell me whether 'as-str'
is going to be part of clojure.string in 1.3?
Regards,
Shantanu
--
You received
hi clojure-commmunity,
when learning 2 new things at a time, one is always
temped to combine them and have some unrealistic
fantasies.
i am just reading through the meap of ???
so it's not a surprise, that i think about a
combination of clojure and android.
according to other discussions in the
I am just reading through the meap of ???
??? = http://www.manning.com/ableson2/
sorry
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated -
This is a subject that has interested me for a while now. While
Clojure doesn't seem to work with android very well, another lisp
based language called the kawa framework, that uses JVM just like
Clojure, seems to work very well with android. The Kawa framework is
used by the android AppInventor
Hopefully enough, Android support has a dedicated page on clojure
dev's wiki : http://dev.clojure.org/display/design/Android+Support !
2010/11/7 Santosh Rajan santra...@gmail.com:
This is a subject that has interested me for a while now. While
Clojure doesn't seem to work with android very
On Sun, Nov 7, 2010 at 10:10 AM, Santosh Rajan santra...@gmail.com wrote:
I would really like to see Clojure work on android the same way.
Hi,
I can hardly explain it myself and that's why I'm asking others
whenever I stumble upon such a statement. Bear with my ignorance. I'm
simply curious.
I find Clojure syntax very appealing. Also Clojure is the first Lisp I
have learnt. I give credit to Clojure to bringing Lisp back into the
mainstream in the last couple of years. It has brought many people
like me, (non Lisp, non Java) programmers like me into the fold.
Having said that. Apps on
yes, I started out trying the following example from Practical
Clojure:
(defn make-heavy [f]
(fn [ args]
(Thread/sleep 1000)
(apply f args)))
user= (time (+ 5 5))
Elapsed time: 0.06403 msecs
10
user= (time ((make-heavy +) 5 5))
Elapsed time: 1000.622706 msecs
10
user= (time
On Sun, Nov 7, 2010 at 3:04 AM, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/11/7 Alan a...@malloys.org:
Clojure's reduce is fold-left, not fold-right. My suspicion is that
fold-right is not as amenable to laziness or to tail-call recursion as
fold-right, but I don't have much experience
It will not. Instead, the clojure.core/name function now accepts
string arguments, returning the string unchanged.
-S
On Nov 7, 3:15 am, Shantanu Kumar kumar.shant...@gmail.com wrote:
Hi,
Some of the functions from clojure.contrib.string seem to have made it
into clojure.string (e.g.
http://build.clojure.org/releases/org/clojure/contrib/
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first
You could define a naive 'foldr' like this:
(defn foldr [f coll]
(if (empty? (rest coll))
(first coll)
(f (first coll) (foldr f (rest coll )
(foldr list '(1 2 3 4)) = (1 (2 (3 4)))
(foldr - [1 2 3 4]) = -2
However, this is not a tail-recursive function and will be limited by the
2010/11/7 David Sletten da...@bosatsu.net
Or for those of you who prefer that other people won't be able to read your
code:
(defn foldr [f coll]
(reduce #(f %2 %1) (reverse coll)))
To be honest, I find this one more readable...
--
You received this message because you are subscribed to
Implementing this in straight Java might help pinpoint whether this is
a JVM issue or a Clojure issue.
Also, FYI, there is clj-glob (https://github.com/jkk/clj-glob) for
finding files based on patterns like */*/*.dat
Justin
On Nov 4, 4:28 pm, Pepijn de Vos pepijnde...@gmail.com wrote:
Hi all,
On Sun, Nov 7, 2010 at 3:28 PM, iko...@gmail.com iko...@gmail.com wrote:
2010/11/7 David Sletten da...@bosatsu.net
Or for those of you who prefer that other people won't be able to read
your code:
(defn foldr [f coll]
(reduce #(f %2 %1) (reverse coll)))
fold-right can not be made
The problem is not the freqs function. The implementation in Python
and in Clojure are different algorithms.
Both produce a graph with the number of blocks per layer per type, for
6 particular types. These six types are the Clay, Coal ore, Diamond
ore, Gold ore, Iron ore, Obsidian, and Redstone
For now I just went ahead and replaced existing LaClojure/clojure.jar
(1.1) with clojure-1.2.0.jar and it seems to be working fine, but any
pointer that doesn't force me to use this hack would be appreciated.
Regards,
Shantanu
On Nov 8, 1:03 am, Shantanu Kumar kumar.shant...@gmail.com wrote:
Thanx Stuart!
As a general point of protocol, would the Clojure team prefer folks
test against the Alpha builds or the (master) SNAPSHOT builds?
Sean
On Sun, Nov 7, 2010 at 6:50 AM, Stuart Sierra
the.stuart.sie...@gmail.com wrote:
http://build.clojure.org/releases/org/clojure/contrib/
--
You
Great catch, Gijs!
On Nov 7, 9:32 am, Gijs S. gijsstuur...@gmail.com wrote:
The problem is not the freqs function. The implementation in Python
and in Clojure are different algorithms.
Both produce a graph with the number of blocks per layer per type, for
6 particular types. These six types
On Sun, 7 Nov 2010 12:42:09 +0100
Jacek Laskowski ja...@laskowski.net.pl wrote:
On Sun, Nov 7, 2010 at 10:10 AM, Santosh Rajan santra...@gmail.com wrote:
I would really like to see Clojure work on android the same way.
Hi,
I can hardly explain it myself and that's why I'm asking others
If that's the case, I can accept it. Thank you guys :)
On Nov 8, 2:18 am, nicolas.o...@gmail.com nicolas.o...@gmail.com
wrote:
On Sun, Nov 7, 2010 at 3:28 PM, iko...@gmail.com iko...@gmail.com wrote:
2010/11/7 David Sletten da...@bosatsu.net
Or for those of you who prefer that other people
You might find
http://www.slideshare.net/smartrevolution/using-clojure-nosql-databases-and-functionalstyle-javascript-to-write-gextgeneration-html5-apps
an interesting alternate approach. As I see it a language is a tool,
and I'm still not convinced that Clojure is the right tool for UI.
On Nov
Hi,
Just a heads up to all. I got in touch with CUBRID guys for a Maven
repo for their JDBC driver. They have uploaded it on Clojars and have
said they would maintain it there in future:
http://clojars.org/org.clojars.cubrid/cubrid-jdbc
I will soon include this in OSS-JDBC and do a v0.3 release:
26 matches
Mail list logo