There is a pretty wide range of ways to solve problems in Clojure,
arguably more so than Python. This isn't exactly how I'd code it, but
there's nothing so egregious in it that I'd call it un-idiomatic. I'd
probably use keywords rather than strings. I'd probably use lists
rather than some of th
For limitations and unimplemented features, go to the github site and
check out the Issues tab and in the wiki, look at the 'To Do' page
and the bottom of the 'CLR Interop' page.
I just added the non-implementation of letfn as an issue. Will be
fixed shortly, probably tomorrow. (Red face, mu
Folcon,
Here is a link to a port (not mine) of the scrolling tank in slick to
clojure:
http://github.com/phtrivier/clj-slick-tank
--Robert
On Sat, Oct 10, 2009 at 10:40 AM, Folcon wrote:
>
> I appear to have solved the problem. Actually my main development is
> using clojure box which is a win
On Sat, Oct 10, 2009 at 5:52 PM, Raoul Duke wrote:
>
> > The actor itself is
> > an agent wrapping a vector with the function, period, awake flag, and
> > current parameters.
>
> will actors actually do the queued function w/in a reasonable
> timeframe? i don't think there are any guarantees of i
I appear to have solved the problem. Actually my main development is
using clojure box which is a windows clojure development enviroment
that runs in slime/emacs. It appears that you need to load the native
files for your operating system to the library path. I'm not sure how
operating system inde
Thanks guys.
the import was necessary
(import '(org.apache.lucene.index IndexWriter IndexWriter
$MaxFieldLength))
and IndexWriter$MaxFieldLength/UNLIMITED was the correct reference.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
On Sat, Oct 10, 2009 at 5:43 PM, James Reeves
wrote:
> I'm working on a Clojure package manager called Capra, and I need some
> opinions on the syntax for specifying dependencies. The most basic
> system I've come up with is:
>
> (capra/depend "apache/commons-codec/1.4")
> [...]
> Does anyo
The following is an interview with Rich Hickey where he answers your
question.
http://www.computerworld.com.au/article/313989/-z_programming_languages_clojure?rid=-301
On Oct 10, 3:40 am, Dmitry Kakurin wrote:
> I've watched some Clojure screen cast where Rich Hickey mentions that
> initially C
Thanks John. I mined contrib for java-util/file and duck-streams for
several functions as well.
http://github.com/rstehwien/clojure-rstehwien-utils/blob/master/src/main/clojure/com/arcanearcade/clojure/utils/file_utils.clj
Tomorrow I'll add a bunch more file functions and tests.
On Thu, Oct 8, 2
Oops, you're right; I was thinking about something else. And I have
another mistake in my function too—I meant:
(defn transform-map [f a-map]
(into {} (map #(vector (key %) (f (val %))) a-map)))
It's unfortunate that it's not in any standard library yet. I've used
this function in every si
The short answer is no.
This came up on the dev list here:
http://groups.google.com/group/clojure-dev/browse_thread/thread/4b20e40d83095c67#
Oh, and I'd write the function slightly differently
(defn transform-map [f a-map] ...)
The f implies a mapping operation. pred implies a filter operati
Is there a function in the standard libraries that's equivalent to
this:
(defn transform-map [pred a-map]
(into {} (map (comp pred val) a-map)))
(is (= {:a 4, :b 3}
(transform-map inc {:a 3, :b 2})))
It's not like I can't write this myself; I use this a lot, though, and
I'm w
On Sat, Oct 10, 2009 at 4:21 PM, Mark Engelberg wrote:
>
> Represent each cell as a row number, column number, and a set of
> possible digits that can go in that cell.
> Create a map that generates a keyword for the sector name from the row
> and column numbers.
> You're going to write a recursive
> The actor itself is
> an agent wrapping a vector with the function, period, awake flag, and
> current parameters.
will actors actually do the queued function w/in a reasonable
timeframe? i don't think there are any guarantees of it so if one is
hoping to get really nicely periodic behaviour...
Represent each cell as a row number, column number, and a set of
possible digits that can go in that cell.
Create a map that generates a keyword for the sector name from the row
and column numbers.
You're going to write a recursive function that processes a sequence
of cells that still need to be
Rich expanded on this briefly in IRC:
http://clojure-log.n01se.net/date/2008-07-23.html#16:34
- Chas
On Oct 10, 3:40 am, Dmitry Kakurin wrote:
> I've watched some Clojure screen cast where Rich Hickey mentions that
> initially Clojure was co-developed for both platforms simultaneously.
> But t
On Oct 10, 6:33 pm, Stuart Sierra wrote:
> You know my opinion, which is that we should use Maven to manage
> dependencies. Maven 3, due soonish, will enable non-XML project/
> dependency descriptions.
But presumably even Maven 3 will need a nice Clojure wrapper.
Regardless of the backend, what
I've been trying to port a sudoku solver from Python to Clojure and I am
having trouble making it idomatic clojure. I asked on the IRC channel and
got solutions the authors told me were not idiomatic but they weren't sure
how to make them so.
Sudoku works in a 9 x 9 grid made of 81 squares labelle
Elliott Slaughter writes:
Hi Elliotts,
> Am I allowed to distribute and use unmodified copies of GPL'd libs as
> jars? I've been told that dynamic linking against GPL libs in C counts
> somehow as derivative work. But I don't know how valid this
> interpretation is, and whether it applies to J
On Oct 10, 11:43 am, James Reeves wrote:
> I'm working on a Clojure package manager called Capra, and I need some
> opinions on the syntax for specifying dependencies.
You know my opinion, which is that we should use Maven to manage
dependencies. Maven 3, due soonish, will enable non-XML projec
On Oct 10, 4:49 pm, James Reeves wrote:
> (depend "apache/commons-codec/1.4")
> (ns example
> (:import org.apache.commons.codec.digest.DigestUtils))
Another thought occurs: "depend" could be shortened to "dep":
(dep "apache/commons-codec/1.4")
(ns example
(:import org.apache.com
On Oct 10, 4:43 pm, James Reeves wrote:
> (capra/depend "apache/commons-codec/1.4")
> (ns example
> (:import org.apache.commons.codec.digest.DigestUtils))
One variation of the above I forgot to mention:
(depend "apache/commons-codec/1.4")
(ns example
(:import org.apache.commons.
Hi folks,
I'm working on a Clojure package manager called Capra, and I need some
opinions on the syntax for specifying dependencies. The most basic
system I've come up with is:
(capra/depend "apache/commons-codec/1.4")
(ns example
(:import org.apache.commons.codec.digest.DigestUtils))
On Oct 10, 8:30 pm, Folcon wrote:
> I'm currently trying to import some slick classes. Namely BasicGame
> which appears to be the problem. I've tried this in Clojure Box and
> enclojure both in windows while running Java 6.
>
> I get mixed errors when I try calling (import '(org.newdawn.slick
> B
On Oct 9, 11:33 pm, Krukow wrote:
> On Oct 10, 7:10 am, Paul Nakata wrote:
>
> > I've tried the ELPA install method and installing with sources from
> > git and get this error. I'm currently set up with everything in ~/src/
> > and I've pulled everything from git using the directions
> > fromh
I need "durable data" that interacts well with the STM too. I describe
a system that works well for a specific use-case:
All data is stored in the persistent datastructures that clojure
provides and changes are protected via refs as one would expect --
standard idiomatic clojure.
Any change to a
I'm currently trying to import some slick classes. Namely BasicGame
which appears to be the problem. I've tried this in Clojure Box and
enclojure both in windows while running Java 6.
I get mixed errors when I try calling (import '(org.newdawn.slick
BasicGame)). Now I have noticed that calling (i
Here is a quickie "library" for abstracting this:
(defn make-actor [f period-in-ms & initial-state]
(agent (into [f period-in-ms false] initial-state)))
(defmacro actor
"Creates and returns a new, initially-sleeping actor with the specified
period, initial parameter values, and code to execute
These are all very good questions, but they are legal questions,
not technical questions, let alone Clojure questions.
The sad thing is that it really is not possible to give you a definite
answer to your questions.
Opinions differ. The answer might depend on the governing law of the
jurisdictio
I've watched some Clojure screen cast where Rich Hickey mentions that
initially Clojure was co-developed for both platforms simultaneously.
But then it became too hard and he has dropped .NET support.
Out of curiosity, why JVM has won the contest :-)?
- Dmitry
--~--~-~--~~--
I've read "Programming Clojure" book an I love the language (and the
book), kudos!
I'm evaluating ClojureCLR as a scripting language for my product.
Is there a list of ClojureCLR limitations and not implemented
features?
I've just started playing with it and (after some debugging)
discovered tha
31 matches
Mail list logo