On Apr 12, 10:25 pm, billh04 wrote:
> I can compile in NetBeans with enclojure and I can compile in AquaMacs
> with slime. However, I prefer to use AquaMacs without slime. But, I
> cannot compile my application using the (compile 'my.namespace.main)
> invocation. The classes are generated excep
I hope you can find some leads from this list:
http://en.wikibooks.org/wiki/Clojure_Programming/Further_Reading#Clojure_Specific
> Hence I'm searching for other papers/essays that I can use as a
> reference.
--~--~-~--~~~---~--~~
You received this message because
Stuart Halloway's book Programming Clojure could be a good starting
point: http://www.pragprog.com/titles/shcloj/programming-clojure
You might find Mark Volkmann's Clojure article useful:
http://java.ociweb.com/mark/clojure/
On 4/17/09, magegu wrote:
>
> Hi guys
> I was asked by a professor to
Hi guys
I was asked by a professor to write an three page essay about clojure.
Not really a scientific paper, more or or less an abstract, what
clojure is about and what makes it special.
Hence I'm searching for other papers/essays that I can use as a
reference.
Please let me know if you have an
On second thought, this is actually not that critical for what I'm trying to
accomplish, and I'm not sure yet if I'll ever use such a feature. Macros
that define snippets will probably suffice.
(deftemplate my-app6 "app2.html"
[widgets]
[[:div (attr? :tiptree:replace)]]
(fn [node]
(le
On Apr 16, 11:25 am, Drew Raines wrote:
> I have a command line utility that calls (exit 0) at the end of
> (-main). It looks like this:
>
> (defn exit [status]
> (shutdown-agents)
> (flush)
> (System/exit status))
>
> Yet, despite this, the JVM never exits.
The documentation fo
>> How do you decide which construct to use for a particular algorithm/
>> program?
it would be nifty keen nice if there were some cute visual flow charty
representation of people's decision tree? maybe something that can get
'crowd sourced' on some wiki page somewhere. some day.
--~--~-
On Apr 15, 4:12 pm, Robert Feldt wrote:
> Although I understand each of the concurrency "primitives"/systems
> (stm, agents, atoms, dynvars) in isolation I find it harder to choose
> wisely between them when designing/implementing specific algorithms
> and programs.
>
> Do you have any advice/t
On Thu, Apr 16, 2009 at 2:40 PM, chris wrote:
>
> That is putting it quite strongly, Howard.
>
> Instead of stating the problem as a problem of arrogance, it would be
> better to state it as without X, you can't get Y.
>
> Specifically, without better documentation there exists a class of
> users
Hi,
Am 16.04.2009 um 23:21 schrieb Michael Wood:
Yes, please, I don't want to be forced to work around automated
downloaders. e.g. Like OpenWrt's build system that wants to download
huge amounts of code if you don't watch it instead of just failing so
you can tell it to look *over there* where
Chas Emerick wrote:
> I believe this is an issue related to how the threadpools used by
> executors are populated by default, i.e. they use non-daemon
> threads.
>
> clojure.lang.Agent uses instances of these default threadpool
> configurations, which is likely the cause of the delayed shutdown
>
That is putting it quite strongly, Howard.
Instead of stating the problem as a problem of arrogance, it would be
better to state it as without X, you can't get Y.
Specifically, without better documentation there exists a class of
users that will not use clojure and there exists a class of proble
On Thu, Apr 16, 2009 at 7:56 PM, Stuart Sierra
wrote:
>
> On Apr 16, 12:53 pm, Rich Hickey wrote:
>> What does 1.0 mean to you? Are we there yet? Any recommendations for
>> the organization of the release branches, patch policy etc?
>
> I would like to see, concurrent with 1.0, some kind of libr
sounds like we need at least three things:
1) clojure-sandbox
2) clojure-extensions (for the CLR and javascript and jfreechart)
3) core-candidates for things that seem like they might grow up to be
in the core. This would have the intent rzezeski and I were talking about.
things here say to
On Thu, Apr 16, 2009 at 9:10 PM, Chas Emerick
[...]
> That said, I have no concrete suggestion, as we'll always separately
> pull our projects' dependencies into whatever we happen to be using as
> a dependency management repo (it's a bummer to not be able to run a
> build if some third-party rep
I have seen various scripts to start clojure in the net. Everyone
seems to have its favourite, even contrib has one. Also, there are a
lot of questions what is the "bestest" way to invoke clojure, how to
start REPL, how to run script, compile file, should it be used with
server or client VM.
Do y
On Thu, Apr 16, 2009 at 9:53 AM, Rich Hickey wrote:
>
> People (and not just book authors :) often ask - whither 1.0? [Ok,
> maybe they don't use 'whither']. The fact remains, some people want a
> 1.0 designation, and I'm not unwilling, providing we as a community
> can come to an understanding a
I'm trying to figure out the best way to use clojure.core/memoize
while retaining the original function's docstrings, tags, etc. for the
memoized function. The best way I've seen to do this is James Reeves'
decorate-with function from Compojure, which applies a "decorator" --
Python's name for a h
Nevermind.
On Apr 16, 3:28 pm, jim wrote:
> Someone sent me an email about some issues with javascript generator I
> posted a couple of weeks ago. I have searched all my email locations
> and can't find any record of those emails or the response I know I
> sent. It that was you, would you mind
Someone sent me an email about some issues with javascript generator I
posted a couple of weeks ago. I have searched all my email locations
and can't find any record of those emails or the response I know I
sent. It that was you, would you mind emailing me again?
Thanks,
Jim
--~--~-~--~-
Hi,
Am 16.04.2009 um 21:48 schrieb dysinger:
Why is there so much NIH churn around this dependency management
issue?
We should leverage maven repos & just wrap maven or ivy with clojure -
they both have a java api. Maven repos, like them or not, already
solved dep management in Java. Why figh
Because predicates in selectors no longer need to be quoted it seems you
can't use Enlive selectors in a first class way with snippets:
(let [aselector [[:div (attr= :tiptree:widget "widgetA")]]]
((snippet "widget.html" aselector
[some-map]
[:div.value] (content "foo")) {}))
I believe th
OSGi is becoming the de facto standard for solving the runtime issues
around versioning and classpath management in the standard Java
world. As for development versioning issues, Maven is the de facto
standard.
While I certainly don't think that Clojure 1.0 should have any
dependency on OSGi, I'
I agree with matt.
Why is there so much NIH churn around this dependency management
issue?
We should leverage maven repos & just wrap maven or ivy with clojure -
they both have a java api. Maven repos, like them or not, already
solved dep management in Java. Why fight it?
PS - buildr sucks and
>
>
> my view of Java's backward compatibility is that it is kind of a bunch
> of hot air that restricts the ecosystem from being better. i vastly
> prefer the fact that .net is willing to make real changes to get real
> benefits.
>
> sincerely.
> $0.02
>
And that requires shoe-horning new stuff i
I am all for a standard packaging/build system but what ever it is it
needs to not ignore the 10s of thousands of libraries tucked away in
maven2 repos. Something like Ties w/ compile support would be cool.
Git submodules, SVN externals & Hg forrest won't work either because
everyone uses differ
On Apr 16, 2009, at 1:56 PM, Stuart Sierra wrote:
> On Apr 16, 12:53 pm, Rich Hickey wrote:
>> What does 1.0 mean to you? Are we there yet? Any recommendations for
>> the organization of the release branches, patch policy etc?
>
> I would like to see, concurrent with 1.0, some kind of library
>
Hello Paul,
> Are you trying to give it a string, or an array of strings?
> Maybe it will work with (into-array ["string"])?
Thank you, this was spot on, the correct call looks like:
(. query (sendKeys (into-array ["my-string"])))
Cheers!
Vlad
PS: Embarassingly, the hint is also in the FAQ.
On Apr 15, 2009, at 9:57 PM, mikel wrote:
> As for hiring people knowledgeable in the language, there aren't going
> to be a lot of people very knowledgeable in any of these languages
> right now. Erlang gurus may be easier to find than Scala or Clojure
> gurus. You might be better served huntin
Does it shutdown if you do this before the exit?
(shutdown-agents)
On Thu, Apr 16, 2009 at 1:29 PM, Chas Emerick wrote:
>
> I believe this is an issue related to how the threadpools used by
> executors are populated by default, i.e. they use non-daemon threads.
>
> clojure.lang.Agent uses insta
Are you trying to give it a string, or an array of strings?
sendKeys takes a variable number of arguments. The error you are getting is
that it can't cast a java.lang.String into [Ljava.lang.CharSequence, where
the '[' at the beginning of the type means an array. It is telling you that
it cannot c
I would be interested in seeing a full stack trace and some pastbined
code. there are no clojure strings, just java strings, and java
strings are charsequences.
On Thu, Apr 16, 2009 at 11:25 AM, prhlava wrote:
>
>
> Hello,
>
> I am trying to use a java library ( http://code.google.com/p/webdrive
I believe this is an issue related to how the threadpools used by
executors are populated by default, i.e. they use non-daemon threads.
clojure.lang.Agent uses instances of these default threadpool
configurations, which is likely the cause of the delayed shutdown of
the JVM (I'll bet that if you
Hello,
I am trying to use a java library ( http://code.google.com/p/webdriver/
), the method I need to call has signature:
sendKeys(java.lang.CharSequence... keysToSend)
If I give it a clojure string, the "cannot be cast" message appears in
the stack trace.
I have tried explicit (cast java.la
On Thu, Apr 16, 2009 at 2:16 AM, Konrad Hinsen wrote:
[...]
>
> I think it would be useful to formalize this concept of a "standard
> library" that is a single entity from the point of view of users who
> just want to download a jar file and get going. A standard library
> would also define certa
> Ideally, since backward compatibility is a big selling point of Java.
my view of Java's backward compatibility is that it is kind of a bunch
of hot air that restricts the ecosystem from being better. i vastly
prefer the fact that .net is willing to make real changes to get real
benefits.
since
>
>
> What does 1.0 mean to you? Are we there yet? Any recommendations for
> the organization of the release branches, patch policy etc?
>
To me, beside what was already said, it means a deprecation policy. I like
Python's. First release after deprecated changes are decided, code works as
is but p
On Thu, Apr 16, 2009 at 10:39 AM, dysinger wrote:
>
> Also a benefit of being on Git for contrib would mean I don't have to
> pull ClojureCLR and other stuff I don't want into my clone. It would
> make it less "kitchen junk drawer".
>
> Another benefit of being on Git is people can fork, fix and
It sounds nice, but I experienced massive amounts of pain trying to get the
eclipse git plugin to work on mac ... eventually punted back to SVN. To me
version control should be well integrated with an editor ... bottom line ...
much more important than the given features of the version control sys
On Apr 16, 12:53 pm, Rich Hickey wrote:
> What does 1.0 mean to you? Are we there yet? Any recommendations for
> the organization of the release branches, patch policy etc?
I would like to see, concurrent with 1.0, some kind of library
management system. As noted before, contrib is already gett
Also a benefit of being on Git for contrib would mean I don't have to
pull ClojureCLR and other stuff I don't want into my clone. It would
make it less "kitchen junk drawer".
Another benefit of being on Git is people can fork, fix and send you
pull requests (which you can accept or not at your d
"There's no way to get fixes without also getting enhancements"
unless you use a non-linear source control like Git. (please
switch?) :)
Ok no flames please - but since we have switched to Git nearly 2 years
ago we have been blessed with it's abilities to keep a stable branch
"master"
We just went through the same evaluation. At first we leaned towards
erlang, but finding erlang developers is hard (well so is finding
_good_ scala & clojure devs I imagine).
We ended up picking a mix of erlang and clojure. Both have their
places. Clojure is nice because it gives access to a g
People (and not just book authors :) often ask - whither 1.0? [Ok,
maybe they don't use 'whither']. The fact remains, some people want a
1.0 designation, and I'm not unwilling, providing we as a community
can come to an understanding as to what that means, the process it
implies, and the work it w
I have a command line utility that calls (exit 0) at the end of
(-main). It looks like this:
(defn exit [status]
(shutdown-agents)
(flush)
(System/exit status))
Yet, despite this, the JVM never exits. Here is a snippet of jstack
output:
--8<---cut here---s
The sample code is available now. Took a little bit to get it set.
It's the code from the tutorial with a little bonus. I implemented an
HTTP protocol parser, using the parser-m monad, as an example.
Jim
On Apr 16, 12:37 am, Baishampayan Ghose wrote:
> The code pagehttp://intensivesystems.net/
Hi Aaron,
On Apr 15, 3:34 pm, Aaron Feng wrote:
> Hi,
>
> I work for a large financial software company, and we are interested
> in using Clojure for our new project. Due to the concurrent nature of
> the project, we are evaluating three possible languages: Erlang,
> Scala, and Clojure.
Assu
Aaron,
We followed the same discipline. However we prefer no to wait too long
to upgrade the run times when an official release comes out
since our code base is growing as time passes by. As far as the missing
stuff, well if it's available in Java, do not hesitate, use it
from Clojure. There will
On Apr 16, 10:00 am, Greg Harman wrote:
> - Don't let people use arbitrary versions of Clojure and Java (and
> Contrib, if you'll use it). Pick one, package it with your project,
> and then leave it alone. If your code works, you don't need the latest
> version of Clojure. If there's a feature or
Aaron, we have been in production with Clojure since January 2009.
We use it to drive a message bus which is asynchronous by nature and
requires high concurrency.
It's been very stable. Our app runs 24hrs a day 7 days a week and is
fully redundant.
As far as getting Clojure resources, we have been
On Apr 16, 2009, at 1:57 AM, bOR_ wrote:
>
> (fn [n] :new) or (constantly :new) was what I was looking for.
>
> Just found out the two are not exactly the same. Hmm. I guess I should
> have expected this from the docstring. Anyway, thanks all!
>
> Clojure=> (map (constantly (ref nil)) (range 10)
If you maintain some discipline in your engineering process, then
there's very little risk due to the specific library (and if you don't
keep a high level of discipline, then you're finished before you
start).
- Test the h*ll out of everything. If there are bugs in Clojure that
affect you you'll
Worked with the 2.1.0 version today. Impressions so far are more
stable than the developmental version of a week ago (no hanging
repls), a feeling intense gratitude for the ,ct command. Furthermore a
bit of collision with the default keybindings when I try to browse the
history with ctrl-p and ctr
It should and it does now.
Thanks,
Chris
On Apr 16, 1:16 am, Baishampayan Ghose wrote:
> Chris wrote:
> > Done: git://github.com/cconstantine/clojure.contrib.git
>
> > Please feel free to be brutal on the code review. The last thing I
> > want is for clojure to get dirtied up with bad code.
>
(fn [n] :new) or (constantly :new) was what I was looking for.
Just found out the two are not exactly the same. Hmm. I guess I should
have expected this from the docstring. Anyway, thanks all!
Clojure=> (map (constantly (ref nil)) (range 10))
50 (# #
# # # # # # # #)
51 Clojure=> (map (fn [n]
Tom,
The redesign is nearly over (at least from a user standpoint), you may
want to check it http://github.com/cgrand/enlive/tree/right
Christophe
Tom Hickey a écrit :
> Hi Christophe,
>
> I keep running into the same problem with elements getting replaced.
> I'm trying to set the content of a
I suggest you to use Clojure.
There is no more risk involved than with anything else.
Clojure supports in its current version all of Java.
It has very nice libs, macros, cuncurrency engine, etc.
Those are fully production ready features. My company
uses Clojure for production, and it meets our hig
The risk of breaking changes gets smaller all the time. There is
always a small chance that something might need to be changed that
would break your code. It's certainly production ready. It's a full
featured language for sure. Personally I would use it, but at the
moment the risk of breaking chan
On Wed, Apr 15, 2009 at 9:34 PM, Aaron Feng wrote:
>
> Also, if anyone has any thoughts on hiring Clojure people, it would be
> greatly appreciated.
If I may guess out aloud:
In this case, I reckon that pretty much any Java programmer who knows
concurrency and has a clue about functional progra
On Apr 15, 2009, at 11:30 PM, bOR_ wrote:
>
> Hi all,
>
> some functions (like map, or update-in) expect a function to be
> applied on a value. In the case where the update I want is merely a
> constant, is there a short way to write it?
>
> (map (fn [n] :new) (list :old1 :old2 :old3)) works
>
Hi,
Am 16.04.2009 um 11:30 schrieb bOR_:
(map (fn [n] :new) (list :old1 :old2 :old3)) works
(map (constantly :new) [:old1 :old2 :old3])
Sincerely
Meikel
smime.p7s
Description: S/MIME cryptographic signature
Hi Meikel,
I have to apologize... I installed MacVim, did the command-line test
you recommended and ... still the same error. Then, I reinspected
my .vimrc and found a typo in the "let vimclojure#NailgunClient=..."
line.
When I read your remark in that old thread, "it's mostly user errors",
I tho
Hi all,
some functions (like map, or update-in) expect a function to be
applied on a value. In the case where the update I want is merely a
constant, is there a short way to write it?
(map (fn [n] :new) (list :old1 :old2 :old3)) works
(map :new (list :old1 :old2 :old3)) unfortunately doesn't w
If you have to ask if a technology is production ready then it isn't.
On Apr 15, 10:34 pm, Aaron Feng wrote:
> Hi,
>
> I work for a large financial software company, and we are interested
> in using Clojure for our new project. Due to the concurrent nature of
> the project, we are evaluating t
On 15.04.2009, at 23:44, rzeze...@gmail.com wrote:
> That aside, I agree Contrib is a sandbox, but how big of a sandbox is
> it? That's the question I pose. I think it's irrational to put every
> Clojure library/framework that comes along into Contrib, because it
> becomes a Tower of Babel and
65 matches
Mail list logo