Nov 6, 2012 at 9:07 PM, jaime wrote:
> May I know in what circumstances would an anonymous macro be applied? - I
> just don't think there's a way to define anonymous macro but maybe we can
> make a workaround by manipulating the macro syntax...
>
> 在 2012年11月7日星期三UTC+8上午8
Nov 6, 2012 at 9:07 PM, jaime wrote:
> May I know in what circumstances would an anonymous macro be applied? - I
> just don't think there's a way to define anonymous macro but maybe we can
> make a workaround by manipulating the macro syntax...
>
> 在 2012年11月7日星期三UTC+8上午8
Is there any way to write an anonymous macro in Clojure?
This post:
http://stackoverflow.com/questions/4074961/anonymous-macros-in-clojure
says it's possible with some hacks and in version 1.3 Clojure will have
some kind of support for this.
Thank you for your time.
-Sean
--
You received this
Yeah, you're right. Clojure itself is just a functional Lisp.
But, Clojure is at least 2 languages: Lisp & Java. Lisp by itself isn't
that complicated but adding Java makes it much harder.
ClojurePY is Lisp and Python. Python has a lower barrier to entry than Java.
On Thu, Aug 16, 2012 at 9:11 A
It is absolutely an advantage. What I want is different from what you want.
I want standalone script files and Clojure will not do that. Tell me, why
do you like having project files for everything? If you're doing bigger
projects, I can understand why you want project files.
On Thu, Aug 16, 2012
It also uses less memory and has a faster startup time than Clojure. I'm
not sure how it compares to clojurescript in terms of speed and memory.
On Thu, Aug 16, 2012 at 8:00 AM, Sean Neilan wrote:
> Hey All,
>
> ClojurePY is actually quite amazing. It has none of the com
Hey All,
ClojurePY is actually quite amazing. It has none of the complexities with
libraries and projects like Clojure and is suitable for crunching data
(because it's on Python) unlike Node.js/Clojurescript. You can use all the
python libraries. You can even import ipdb and step through your code
Hey All,
I just wanted to point out the existence of this library called node-java.
It lets you use java libraries on node.js and therefore you can use them
within clojurescript!
https://github.com/nearinfinity/node-java
I have not tried it myself but I will soon.
-Sean
--
You received this me
Actually,
(crate/html [:div] [:div]) works! I don't need to put all the elements into
a list!
Nevermind!
On Wed, Jun 20, 2012 at 4:03 PM, Sean Neilan wrote:
> (Sorry it took me a while to respond.)
>
> I can do that. But, that crashes when I pass that list into another
> cr
t [:div.class1] [:div.class2]))
>
> untested.
>
> If you want to modify the dom in the process - then you could use doseq.
>
> D
>
>
>
>
> On Sunday, 10 June 2012 13:54:28 UTC+10, Sean Neilan wrote:
>>
>> Hey All,
>>
>> I was wondering if anybody has a
I'd buy one.
On Thu, Jun 14, 2012 at 1:52 PM, Rich Hickey wrote:
> No, you are not allowed to reproduce the Clojure logo and put it up for
> sale.
>
> I'd be happy to set up an official way to get stickers/shirts etc.
>
> Rich
>
>
> On Jun 11, 2012, at 6:23 PM, Sven Johansson wrote:
>
> > I've b
Hey All,
I was wondering if anybody has a work-around for doing a list of tags like
this:
(crate/html (list [:div.class1] [:div.class2]))
Because it causes the browser repl to hang up & gives
Uncaught [:div.class1] is not a valid tag name.
If I have a single div as the root, it works just fine.
S!
On Sun, Jun 3, 2012 at 2:28 PM, Sean Neilan wrote:
> Does Clojurescript have a trace function?
>
>
> On Sat, Jun 2, 2012 at 5:26 PM, Softaddicts
> wrote:
>
>> clojure.tools.trace beats println by far (biased advice, I maintain
>> it:)))
>> It's als
Does Clojurescript have a trace function?
On Sat, Jun 2, 2012 at 5:26 PM, Softaddicts wrote:
> clojure.tools.trace beats println by far (biased advice, I maintain
> it:)))
> It's also easier to segregate between debug and normal output in the code.
>
> You can enable/disable fn tracing dynami
NP!
Also, it says in the guide
http://batsov.com/prelude/
to run emacs from the command line. Obviously, run Aquamacs instead of the
command line emacs.
On Sun, May 27, 2012 at 11:57 AM, James wrote:
> @Sean: All right, will give a shot. Thanks.
>
> / James
>
> On May 27, 6:45
You must use emacs 24! Do not use emacs 23.4!
Use the cutting edge version of aquamacs
http://aquamacs.org/nightlies.shtml
Aquamacs 24 works with emacs prelude with no sweat. Just delete all the
stuff in your .emacs.d folder after installing aquamacs and try again.
On Sun, May 27, 2012 at 11:26
Just curious, what is the name of the tree distance function and does it
have a wikipedia page?
Very, very cool!
On May 22, 2012, at 12:36 AM, Arnoldo Muller
wrote:
Checkero finds common Clojure source code inside a set of directories. It
is primarily intended to study how Clojure learners writ
Whoops. You're right.
On Sun, May 6, 2012 at 11:42 PM, Frank Siebenlist <
frank.siebenl...@gmail.com> wrote:
> … but dolphins are no fish…
>
> On May 6, 2012, at 5:25 PM, Sean Neilan wrote:
>
> > Perhaps a reference to PHP's explode function which is the
Perhaps a reference to PHP's explode function which is the java equivalent
of String.split?
http://php.net/manual/en/function.explode.php
And then URI is the fish.
Or it could be a reference to an unwritten sequel to Hitchhiker's Guide To
The Galaxy where the Dolphins blew up Earth instead of the
I don't think so.
On Wed, May 2, 2012 at 1:22 AM, Stuart Campbell wrote:
> On 2 May 2012 14:44, Baishampayan Ghose wrote:
>
>> You can't use `map` because `map` will return a sequence of the same
>> size and that can blow your heap.
>>
>
> Isn't `map` lazy too?
>
> Regards,
> Stuart
>
> --
> Yo
Wow!! Lots of responses!
The problem was that I was running the code inside of a jark repl. The jark
repl apparently causes head holding of some sort.
All the examples you guys provided (@Allen, @Jonas, @Baishampayan) work in
a regular project from lein run.
They also work from the leiningen rep
I forgot to mention:
(nth (file-seq (java.io.File. "/DirectoryWithMillionsOfFiles/")) 20)
works great because nth doesn't realize the sequence!
For now, I'll look at nth's source code to see how it iterates.
On Tue, May 1, 2012 at 11:24 PM, Sean Neilan wrote:
&g
Hi,
I'm sure this has been discussed to death but I can't figure it out.
I've got a file-seq sequence from
(file-seq (java.io.File. "/DirectoryWithMillionsOfFiles/")) that will cause
an out of memory error if realized.
I want to call a function such as println on every element in the sequence.
Actually I just realized that you can use the java math api. Whoops.
http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html
(math/sqrt 2)
2.0
(math/log 4)
1.3862943611198906
Hooray!
On Fri, Apr 27, 2012 at 7:44 PM, Sean Neilan wrote:
> I'm good! Incanter has a log function
I'm good! Incanter has a log function & adding :jvm-opts
["-Djava.awt.headless=true"]
to project.clj gets rid of the window.
On Fri, Apr 27, 2012 at 7:41 PM, Sean Neilan wrote:
> Hi All,
>
> There exists a log function by Konrad Hinsen
>
> http://ric
Hi All,
There exists a log function by Konrad Hinsen
http://richhickey.github.com/clojure-contrib/generic.math-functions-api.html
But, does it work in Clojure 1.3 and above? If so, how would I start using
it without leiningen?
Incanter has a log function but whenever I do (use '(incanter core))
Holy shnikes! That did it!
Thank you so much!
I'll submit a patch to the documentation.
On Wed, Apr 25, 2012 at 11:27 PM, David Nolen wrote:
> sounds like you didn't set CLOJURESCRIPT_HOME or that it was set
> incorrectly.
>
> On Wed, Apr 25, 2012 at 9:40 PM, Sean Neil
Hi All,
I'm not sure if this has been asked before.
I followed the quickstart guide:
https://github.com/clojure/clojurescript/wiki/Quick-Start and did
git clone git://github.com/clojure/clojurescript.git
cd clojurescript
./script/bootstrap
Then I tried
rmc-235-244:clojurescript seanneilan$ ./sc
m/group/clojure-jark)
>
> -
> isaac
>
> On Tue, Apr 24, 2012 at 9:27 AM, Sean Neilan wrote:
> > The persistent JVM is what makes jark worthwhile. I wish it for me, but,
> I
> > have this issue: https://github.com/icylisper/jark-client/issues/76
> >
> > l
The persistent JVM is what makes jark worthwhile. I wish it for me, but, I
have this issue: https://github.com/icylisper/jark-client/issues/76
lein-exec is too slow because doesn't use a persistent JVM.
On Mon, Apr 23, 2012 at 10:46 PM, isaac praveen wrote:
> Jark works with a persistent JVM. I
Over the internet or a LAN?
On Sat, Apr 14, 2012 at 7:34 PM, Simone Mosciatti wrote:
> Hi everybody,
>
> I was looking for streaming a song between my server and my laptop,
> the only problem is that I have no ideas at all, never do something like
> that.
>
> I have a little idea of what aleph is
I wish there was a link to download it.
On Fri, Apr 13, 2012 at 1:34 PM, looselytyped wrote:
> This is an awesome implementation of Brett Victors "Inventing On
> Principle" [http://vimeo.com/36579366] using Clojure and Noir by Chris
> Granger (who also wrote Noir).
>
> Figured I would share it w
Hey All,
I'm trying to print the numbers 0-99 as fast as possible. In python,
this
for i in range(99):
print i
runs super fast.
In clojure, even with type hints, this is slow
(def ^java.io.PrintWriter outoutout (java.io.PrintWriter. *out*))
; yes, I know this one prints to infinity. I
Whoops! I'm sorry. I tried compiling my code into an uberjar and then ran
(defn print2 []
(dotimes [n 99] (.println outoutout n)))
from main
It's very very fast!! Wow!
On Thu, Mar 29, 2012 at 8:07 PM, sean neilan wrote:
> Hey All,
>
> I'm trying to print the num
se 1.5.0a started
> nil
> user>
>
> And CDT works fine for me...
>
> I do not have tools.jar installed.
>
> Sean
>
> On Wed, Feb 29, 2012 at 5:05 PM, sean neilan wrote:
>> I'm sorry, the context of the message was not included. It's a reply to a
>
Using eclipse to edit files is OK but *don't use it manage your
dependencies in Clojure.*
You should use leiningen to manage additions to your project. After
starting a project with
lein new projectName
you can edit the project.clj file in the folder that is created.
You'll see something like thi
ontext.
On Wed, Feb 29, 2012 at 6:00 PM, sean neilan wrote:
> I'm having the same issue on OSX with leiningen.
>
> Unfortunately, it appears the cake project has been taken down so I cannot
> use it to resolve the tools.jar problem.
>
> http://releases.clojure-cake.org/
I'm having the same issue on OSX with leiningen.
Unfortunately, it appears the cake project has been taken down so I cannot
use it to resolve the tools.jar problem.
http://releases.clojure-cake.org/cake gives a 404
The error I'm getting when I do (use 'swank.cdt) can be seen here
http://pasteb
I'm working on something like this by keeping notes on everything I've
encountered so far in Clojure 1.3.0.
Please understand that these are* personal notes* and as such are very,
very messy.
http://seanneilan.com/Clojure.html
When I have the time, I will volunteer to clean up my notes and turn
Of course, I won't be able to write the entire Recipe Book by myself. I
will contribute all the recipes I have discovered with test cases.
On Thu, Feb 16, 2012 at 11:40 AM, Sean Neilan wrote:
> I'm working on something like this by keeping notes on everything I've
>
The documentation definitely exists. A lot of people have written a
lot about clojure. The time consuming part is sorting and making sense
of it.
Sent from my iPhone
On Feb 15, 2012, at 3:48 PM, Phil Hagelberg wrote:
> g1i1ch writes:
>
>> Thanks for the reply, I mostly want to get out of the w
Also, since the language is recent and has changed so rapidly, a lot
of documentation has become out of date but still exists. That has to
be sorted out too.
Sent from my iPhone
On Feb 15, 2012, at 3:48 PM, Phil Hagelberg wrote:
> g1i1ch writes:
>
>> Thanks for the reply, I mostly want to get
You actually do need to know a thing or two about programming in Java.
There's so many useful Java libraries that get real work done when you need
it done.
I'm a Java programmer so I haven't had this problem. If I didn't know Java,
learning clojure would've been twice as hard.
It took me 3 months
Agreed. Thank you!
Sent from my iPhone
On Feb 15, 2012, at 1:54 PM, Manuel Paccagnella
wrote:
> On 02/15/2012 08:21 PM, Andy Fingerhut wrote:
>> Fogus, Alex Millier, and I have made some updates to the Clojure cheatsheet
>> for Clojure 1.3.0:
>>
>> http://clojure.org/cheatsheet
>>
>> The links
I know. The church of emacs is becoming more compelling each day.
As a convert from Vim, I have some baggage. I hope that won't be an issue.
On Sat, Feb 11, 2012 at 10:50 AM, George Jahad wrote:
> SeanC is referring to is the fact that swank-cdt now works seamlessly
> with clojure-jack-in, than
On Thu, Feb 9, 2012 at 8:20 PM, Phil Hagelberg wrote:
> Sean Neilan writes:
>
> > It's on the github page at the top.
>
> Forgive me if I'm slow, but I can't find it. Can you be more specific?
>
> The canonical page for swank-clojure is
> https://gith
On Thu, Feb 9, 2012 at 7:06 PM, Phil Hagelberg wrote:
> Sean Neilan writes:
>
> > Should I trust the readme for swank-clojure, the dev.clojure.org
> > site, the comments on dev.clojure.org, the blog post at
> > technomancy.us/149 or the radically simplified setup her
ntly work.) Also, somebody somewhere else
said there are issues with swank-clojure 1.4.0 and that I should use 1.3.x
instead.
I hope I don't sound annoying.. I just don't know who to follow.
On Thu, Feb 9, 2012 at 11:35 AM, Sean Neilan wrote:
> I agree. I'm a Vim user currently b
I agree. I'm a Vim user currently but with Lisp/Clojure, Emacs is the way
to go.
On Thu, Feb 9, 2012 at 11:18 AM, Sean Corfield wrote:
> On Wed, Feb 8, 2012 at 10:16 PM, George Jahad
> wrote:
> > If you use Emacs and Swank-clojure, it is much
> > easier to use swank-cdt, as your UI:
> >
> > http
ne version of CDT. If you use Emacs and Swank-clojure, it is much
> easier to use swank-cdt, as your UI:
>
> http://georgejahad.com/clojure/swank-cdt.html
>
>
>
> On Feb 8, 11:11 am, Sean Neilan wrote:
> > Hi All,
> >
> > I'm using Clojure 1.3.0 with CDT 1
Hi All,
I'm using Clojure 1.3.0 with CDT 1.2.6.2 on OSX Lion with Java 1.6.
I want to set a breakpoint on -main on the program to be debugged. So,
run lein repl on this program. It opens up port 8030 successfully.
(This is based off the documentation here:
http://georgejahad.com/clojure/cdt.html
51 matches
Mail list logo