Hello.
Is (:require ...) better than (:use [... :only (...)])?
Though I've never worked on large Clojure program, sometimes I want
to know something like namespaces using the function foo.
When I move functions to better place, when I add a new arity and
search somewhere suitable with new one,
On Jul 22, 2011, at 11:20 AM, bernardH wrote:
But there is a small catch : most of the time is spent in the Random
Number Generator [3] so it would be sub-optimal to just have worker
threads processing the output of a single threaded rng.
I am not very confident in my solution to a similar
This should really be in some earthshaking announcement somewhere...
https://github.com/technomancy/leiningen/commit/2ff64b77367601a216afa9e6964d1d330e3dbdb1
Load ~/.lein/user.clj inside project if present. Fixes #215
https://github.com/technomancy/leiningen/issues/215.
Now I can finally do
A couple of thoughts:
You should be using 1.3.0-beta1 of Clojure 1.3 -- anything with
-master-SNAPSHOT is woefully out of date at this point.
No, reduce always returns an Object, and will always box the result of the
function you're using in the reduce. Clojure's type inference does not work
1.What is clojure-control?
The idea came from node-control(https://github.com/tsmith/node-
control).
Define clusters and tasks for system administration or code
deployment, then execute them on one or many remote machines.
Clojure-control depends only on OpenSSH and clojure on the local
control
Alright, to be honest, I'm disappointed.
First of all, congrats and good job to all involved in putting it out.
On the plus side, it's a good way to use the Google Closure javascript
platform.
On the minus, imho, that's what's wrong with it.
Google Closure is too Java. It's not idiomatic
Hi James,
The Clojure/dev folks who built ClojureScript disagree with all of the key
points of your analysis:
Google Closure is too Java. It's not idiomatic JavaScript.
If you target idiomatic JavaScript you will find yourself living in the world
of JavaScript semantics. It is evident that
First:
* I respect your opinions. I am glad that you have taken the time to
start exploring ClojureScript
Second:
* Dude, stop trolling. This is the second time you have started a thread
with a baiting subject line and no clear end goal. Your opinions are
yours, and I have no problems with
Wasn't it just a couple weeks ago that you were arguing that everything
should be more like Java? Now you're arguing that Google Closure is bad
because it has some similarities to Java development (mainly verbosity and
documentation). I'm honestly not sure if you are just trying to be
Sorry for the digression, but what about YUI 3?
Regards,
BG
---
Sent from phone. Please excuse brevity.
On Jul 24, 2011 9:32 PM, Mark Rathwell mark.rathw...@gmail.com wrote:
Wasn't it just a couple weeks ago that you were arguing that everything
should be more like Java? Now you're arguing
Yes, true, I always forget about YUI, and it never gets its fair
recognition.
- Mark
On Sun, Jul 24, 2011 at 12:08 PM, Baishampayan Ghose b.gh...@gmail.comwrote:
Sorry for the digression, but what about YUI 3?
Regards,
BG
---
Sent from phone. Please excuse brevity.
On Jul 24, 2011 9:32
I've never been fond of facebook, mainly because there is this
tendency to have a lot of people in your friends list whom you barely
know. G+ seems to do better with circles being private. Anyone mind
giving me an invite? Its thomas.karol...@googlemail.com
--
You received this message because
As a professional JavaScripter for the past 6 years who has built his own
frameworks and written considerable amounts of Prototype, MooTools, and
jQuery.
I don't think jQuery is special or particularly interesting and most of the
libraries around it are terrible IMO. It certainly doesn't help in
On Sun, Jul 24, 2011 at 7:03 PM, David Nolen dnolen.li...@gmail.com wrote:
I think the Clojure community can do much, much better. In fact a
clientside framework could be the first Clojure killer app ...
Yes, absolutely.
Integration with other libraries is essential, and possible as I
On Jul 24, 5:02 pm, Mark Rathwell mark.rathw...@gmail.com wrote:
Wasn't it just a couple weeks ago that you were arguing that everything
should be more like Java? Now you're arguing that Google Closure is bad
because it has some similarities to Java development (mainly verbosity and
Given that google closure library has a fairly decent size UI elements, and the
pitch about how clojurescript makes google closure usable for mortals. I think
that's probably where it will start.
On Jul 24, 2011, at 1:15 PM, Frank Gerhardt f...@gerhardtinformatics.com
wrote:
...
expect that
Just want to throw in on this real quick. I am -dumbfounded- by how
cool ClojureScript is.
It was about 2AM my time when I first heard the announcement and I
stayed up another 3 hours after that watching Rich's talk and playing
with the samples. As I see it right now, this is a Big Deal. For lots
On Jul 24, 6:03 pm, David Nolen dnolen.li...@gmail.com wrote:
As a professional JavaScripter for the past 6 years who has built his own
frameworks and written considerable amounts of Prototype, MooTools, and
jQuery.
I don't think jQuery is special or particularly interesting and most of the
Firstly, thank you Clojure/core team and other contributors for this
exciting project.
I have a small problem I've encountered while building a simple
personal blog, as an exercise, with Clojure/ClojureScript and would
appreciate any feedback.
I have a client-side function that sends a request
On Sun, Jul 24, 2011 at 1:46 PM, James Keats james.w.ke...@gmail.comwrote:
The Javascript notaries have advocated using a small functional subset
of javascript, rather than the full gamut of javscript's quirks, and I
was saddened while watching the Rich Hickey talk when he said that
On Jul 24, 7:05 pm, David Nolen dnolen.li...@gmail.com wrote:
On Sun, Jul 24, 2011 at 1:46 PM, James Keats james.w.ke...@gmail.comwrote:
The Javascript notaries have advocated using a small functional subset
of javascript, rather than the full gamut of javscript's quirks, and I
was
I've got a small patch that I would like to contribute (simple stuff,
figures out the correct classpath for repljs and cljsc), but I can't
find any issues link on github. Am I required to fork clojurescript
and request a pull to contribute patches, or does clojurescript use
another issue tracker
On Jul 24, 2011, at 1:11 PM, James Keats wrote:
Restricting yourself to a functional subset of JavaScript can't fix
JavaScript. The functional subset stinks, Javascript notaries be damned.
If so where does this leave clojure itself and its advocacy of
functional programming, then; see last
I'm experimenting with ClojureScript on Windows. After applying the patch
kindly provided by pmbauer in this thread:
https://groups.google.com/d/topic/clojure/kObCK4Ik3tY/discussion
... I was able to get as far as compiling the nodehello.cljs example code
from the Quick Start guide. However,
A function to turn clojure maps is shown here: https://gist.github.com/1098417
to go the reverse way, use (js-clj), there are examples here:
https://github.com/clojure/clojurescript/blob/master/samples/twitterbuzz/src/twitterbuzz/core.cljs
mg
On Fri, Jul 22, 2011 at 8:50 PM, Robert Luo
I'm exploring clojurescript and wondering how to use an external
library? In my particular case, I was trying to use Soy from Closure
Templates.
I realize that arbitrary third party libraries will need to fit into
the Closure Compiler ways, and part of my exploration is trying to
port some of my
Is there any interest in having ClojureScript generate source maps?
http://code.google.com/p/closure-compiler/wiki/SourceMaps
There are a couple of ways to accomplish this.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
You use js* like here
https://gist.github.com/1098417
See how jquery is being pulled in
On Jul 24, 2011, at 12:35 PM, Jack Moffitt j...@metajack.im wrote:
I'm exploring clojurescript and wondering how to use an external
library? In my particular case, I was trying to use Soy from Closure
On Sun, Jul 24, 2011 at 1:19 PM, John concavel...@gmail.com wrote:
Is there any interest in having ClojureScript generate source maps?
http://code.google.com/p/closure-compiler/wiki/SourceMaps
There are a couple of ways to accomplish this.
I'm sure there is a considerable amount of
Invite sent in case someone else didn't send one already.
Cheers,
Dave
On Sun, Jul 24, 2011 at 12:26 PM, MHOOO thomas.karol...@googlemail.com wrote:
I've never been fond of facebook, mainly because there is this
tendency to have a lot of people in your friends list whom you barely
know. G+
On Jul 24, 7:24 pm, Michael Gardner gardne...@gmail.com wrote:
On Jul 24, 2011, at 1:11 PM, James Keats wrote:
Restricting yourself to a functional subset of JavaScript can't fix
JavaScript. The functional subset stinks, Javascript notaries be damned.
If so where does this leave clojure
See the Host Interop section here [1]. With ClojureScript there's a
distinction between method lookup and method invocation. I think what
you want is:
(- % .target (.getResponseText))
Dave
[1] https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure
On Sun, Jul 24, 2011 at 1:51
Thanks Joop Kiefte Dave Ray!
On Jul 24, 9:00 pm, Dave Ray dave...@gmail.com wrote:
Invite sent in case someone else didn't send one already.
Cheers,
Dave
On Sun, Jul 24, 2011 at 12:26 PM, MHOOO thomas.karol...@googlemail.com
wrote:
I've never been fond of facebook, mainly
You use js* like here
https://gist.github.com/1098417
See how jquery is being pulled in
Unfortunately this means that my external JS lib won't get any
benefits from the closure compiler. Is there some way to tell the
compiler where more external libs are and then use them via :require
just
On Sun, Jul 24, 2011 at 5:33 AM, Matthew Gilliard
matthew.gilli...@gmail.com wrote:
A function to turn clojure maps is shown here: https://gist.github.com/1098417
There's also this (shorter) way using Google Closure's API:
https://gist.github.com/1098521
--
Sean A Corfield -- (904) 302-SEAN
An
On Jul 24, 2011, at 2:08 PM, James Keats wrote:
On Jul 24, 7:24 pm, Michael Gardner gardne...@gmail.com wrote:
The functional parts of Javascript are far different from those of Clojure
(and not in a good way).
How so? javasript, while not as functional as clojure, is far more
functional
Thanks Dave for pointing me to the distinctions section.
For some reason (- % .target (.getRequestText)) didn't work but
instead the .. interop macro worked as follows (.. % target
(getResponseText)) [1].
-Al
[1] Working version: https://gist.github.com/1102641
On Jul 24, 9:19 pm, Dave Ray
On Sun, Jul 24, 2011 at 11:11 AM, James Keats james.w.ke...@gmail.com wrote:
If so where does this leave clojure itself and its advocacy of
functional programming, then; see last paragraph of my reply to Mark.
Given that JS is merely the assembler that ClojureScript targets -
in exactly the
On Sun, Jul 24, 2011 at 12:31 PM, Jack Moffitt j...@metajack.im wrote:
Unfortunately this means that my external JS lib won't get any
benefits from the closure compiler. Is there some way to tell the
compiler where more external libs are and then use them via :require
just like closure library
I think it's a bit absurd, folks, to criticize Java's OOP as
incidental complexity, too much ceremony, and even suggest in the Joy
of Clojure that a Steve Yegge's Universal Design Pattern and prototype
pattern a la Javascript could be married to clojure's in the chapter
that discuss namespaces,
Thank you very much for the help !
On Jul 24, 2:30 pm, Chas Emerick cemer...@snowtide.com wrote:
A couple of thoughts:
You should be using 1.3.0-beta1 of Clojure 1.3 -- anything with
-master-SNAPSHOT is woefully out of date at
this point.
Damned, I thought -master-SNAPSHOT was as snapshot
On Sun, Jul 24, 2011 at 1:11 PM, bernardH
un.compte.pour.tes...@gmail.com wrote:
On Jul 24, 2:30 pm, Chas Emerick cemer...@snowtide.com wrote:
You should be using 1.3.0-beta1 of Clojure 1.3 -- anything with
-master-SNAPSHOT is woefully out of date at
this point.
Damned, I thought
https://plus.google.com/118362877851205553020/posts
-Al
On Jul 14, 7:12 pm, Claudia Doppioslash
claudia.doppiosl...@gmail.com wrote:
My Clojure circle is all set up but empty.
My g+ is:http://gplus.to/gattoclaudia
Please add link to your profile below.
--
You received this message because
(@cej38: thanks for bringing that up to my radar ! However, I'd have
to check the fine prints because I like the Open in OpenCL and
dispise vendor lock-ins, no matter how shiny the shackles :) )
On Jul 24, 1:11 pm, Lee Spector lspec...@hampshire.edu wrote:
On Jul 22, 2011, at 11:20 AM, bernardH
Why should we care what kind of Javascript ClojureScript generates,
as long as it's correct and performant? The whole point of the project
is to allow us to write Clojure rather than Javascript!
James, you do get this point, right? Just like GWT allows you to
program in Java to write JavaScript,
On Jul 24, 11:19 am, James Keats james.w.ke...@gmail.com wrote:
Alright, to be honest, I'm disappointed.
I'll make sure you get a refund then.
Seriously, this is like being disappointed an action movie was an
action movie instead of a comedy. Your expectations are a complete
mismatch for the
Hi there,
Having never really enjoyed javascript and therefore avoiding it for the
longest time, I'm now quite excited to jump into it given the introduction of
ClojureScript. It's really quite exciting - thanks everyone for putting so much
effort and thought into it.
One thing I'm wondering
On Sun, Jul 24, 2011 at 2:28 PM, Rich Hickey richhic...@gmail.com wrote:
ClojureScript is an action movie, and we're interested in
helping people kick butt.
Could you please tweet that, if only so I can retweet it? :)
--
Charlie Griefer
http://charlie.griefer.com/
I have failed as much as I
On Tue, Jul 19, 2011 at 6:27 PM, Wei Hsu yayits...@gmail.com wrote:
Thanks for the tips, Phil! This may be somewhat of a newbie question,
but what's the best way to modify lein-nailgun and include that local
fork in my project using leiningen?
It's probably best to create your own github fork
Although I did get a REPL, it was totally disconnected from the browser, so
I wasn't able to test any GUI stuff with it and if I modified the code I had
to wait quite a long time for the js to compile before I saw the changes in
the browser.
As mentioned in Rich's presentation video, a lot
On Sat, Jul 23, 2011 at 10:24 AM, Scott Scites railca...@gmail.com wrote:
While walking through the Clojure/Heroku/Database tutorial the Leiningen REPL
fails to display a prompt. When I control-c out, the final output before
closing shows a connection being made and the prompt. If I change
It appears that the ports tree does offer a sun jdk now that you can
build, but it is 1.7. If you are running 4.9 and are using the jdk from
the ports tree, this could also be the source of your problem.
Cheers,
Aaron Bedra
--
Clojure/core
http://clojure.com
On 07/23/2011 09:57 PM, Aaron
Well I'm very very sorry if the intent of my post was misunderstood or
I articulated it poorly, but I would like to emphasize, Rich, that I'm
a big fan of yours and in no way intended to exhaust you, I was merely
and honestly voicing my concerns, just like in a previous thread I
have quoted you
I have the same problem, using an unmodified clojurescript checkout
(08db38f) with nodejs 0.4.10 on MacOSX 10.6.8.
$ cat nodehello.cljs
(ns nodehello)
(defn -main [ args]
(println (apply str (map [\ world hello] [2 0 1]
(set! *main-cli-fn* -main)
$ bin/cljsc nodehello.cljs
On Jul 24, 10:23 pm, Base basselh...@gmail.com wrote:
Why should we care what kind of Javascript ClojureScript generates,
as long as it's correct and performant? The whole point of the project
is to allow us to write Clojure rather than Javascript!
James, you do get this point, right? Just
OK, good. Now, say you're sorry if you offended him. -I'm sorry if I
offended you. And you, say you're sorry if you over-reacted. I'm
sorry if I over-reacted. Very good. Now, shake hands. Good. I love
you both. You should love each other too. You'll need each other
later.
--
Father of three boys
I'm working through Closure tutorials translating them to
ClojureScript. Unfortunately, I've hit a problem where the code works
with {:optimizations :simple} but fails with {:optimizations
:advanced}.
The code is very simple. It basically is a trivial template example
with Soy (from Closure
You can use the :libs key in the options which are passed to build.
Thanks very much for this pointer. That worked like a charm.
jack.
--
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
Hello. I have the following code snippet to start reading an mp3 file
(let [file (File. filename)
stream (AudioSystem/getAudioInputStream file)
base-format (.getFormat stream)
decoded-format (AudioFormat. AudioFormat$Encoding/
PCM_SIGNED ...)
line-info (DataLine$Info.
On Sat, Jul 23, 2011 at 9:28 PM, Benny Tsai benny.t...@gmail.com wrote:
The same error was encountered with both the 0.5.2 and 0.5.1 Windows
binaries from http://nodejs.org/dist/. A similar error was thrown when I
tried the 0.4.9 and 0.4.8 binaries from http://node-js.prcn.co.cc/:
...
Has
On Sunday, July 24, 2011 1:33:47 PM UTC-6, Sean Corfield wrote:
That gave me version v0.4.11-pre and it seems to be working just fine
with ClojureScript. The build from source option on Windows sounds
like it isn't very stable which makes we wonder about the pre-built
binaries and why those
Thank you for your response, Urlik. It's good to know someone else saw the
same error, on a non-Windows platform, no less. Sean Corfield, responding
to an earlier failed attempt by me to post about the problem, said that he
was able to use Node with ClojureScript on OSX after following the
The community getting started page could be much better. In particular,
people have opined that there should be a clear, no-choices-
to-make path For Newbies section.Help welcome!
I just got edit privileges on dev.clojure and am eager work on it.
How do people want to see Getting Started on
Now it's allow passing command line arguments to task now,the task
macro is changed,it must have an argument vector now:
(task :deploy deploy a file to remote machines
[file]
(scp (file) /home/user1))
And run with
clojure controls.clj deploy release.tar.gz
The release.tar.gz
On Jul 24, 6:21 pm, Aaron Bedra aaron.be...@gmail.com wrote:
It appears that the ports tree does offer a sun jdk now that you can
build, but it is 1.7. If you are running 4.9 and are using the jdk from
the ports tree, this could also be the source of your problem.
Thanks for your help!
I'm
On Sun, Jul 24, 2011 at 10:28 PM, nchurch nchubr...@gmail.com wrote:
The community getting started page could be much better. In particular,
people have opined that there should be a clear, no-choices-
to-make path For Newbies section.Help welcome!
I just got edit privileges on dev.clojure
+1, as I went through the same process. Emacs should be the option for the
brave ones who already wrote their first helloworld.clj.
sent from my mobile device
On Jul 25, 2011 6:14 AM, Ken Wesson kwess...@gmail.com wrote:
On Sun, Jul 24, 2011 at 10:28 PM, nchurch nchubr...@gmail.com wrote:
The
On Mon, Jul 25, 2011 at 12:14 PM, Ken Wesson kwess...@gmail.com wrote:
How about making the main suggestion be clooj instead, with emacs,
eclipse, netbeans in the list of alternative options? :)
+1! I'd be embarrassed trying to sell clojure to a newbie with anything
else.
Clean and simple,
+1 on clooj.
One click and you have a working build environment, REPL, and REPL-aware
editor.
https://github.com/downloads/arthuredelstein/clooj/clooj-0.1.5-standalone.jar
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
On Sun, Jul 24, 2011 at 8:39 PM, scitesy railca...@gmail.com wrote:
On Jul 24, 6:21 pm, Aaron Bedra aaron.be...@gmail.com wrote:
It appears that the ports tree does offer a sun jdk now that you can
build, but it is 1.7. If you are running 4.9 and are using the jdk from
the ports tree, this
On Jul 24, 1:44 pm, Peter Taoussanis ptaoussa...@gmail.com wrote:
...
I am, literally, deploying this to my web app right now. I've got a
Compojure route setup for a the resulting output of memoized
ClojureScript compile call. I can work on the ClojureScript directly
from my project. When
FWIW, lein and JDK 1.7 play fine together on both my linux systems (Ubuntu
10.10 and 11.04).
--
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 -
Hi,
I have started reading about ClojureScript and Closure and had some
questions which I am sure will eventually be answered as I move along.
But I am too eager to know now so I thought of asking instead of
waiting.
- On page 2 of the Closure book, there is a workflow figure on using
the Closure
73 matches
Mail list logo