Hi guys,
I am running Clojure on OS X Snow Leopard, 64bit, Java 1.6. I've been
developing a little app using Lein, Swank and Emacs, and now I am
having trouble getting Nailgun to work properly.
I'm not in front of my usual PC right now so I may get a few things
wrong; but here is what I know.
-
I've traced my hang issue down to these lines in NGServer
synchronized(System.in) {
if (!(System.in instanceof ThreadLocalInputStream)) {
System.setIn(new ThreadLocalInputStream(in));
Apparently starting the server with swank-clojure-project does not
work, but starting it with lein swank and then connecting from Emacs
works. Perhaps this is a problem with launching from inside Emacs.
Either way, I now have something of a work around.
Brad
--
You received this message
Just donated. Thank you very much for Clojure, and I hope that this
funding model works out for everybody!
Cheers,
Brad
--
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
On Aug 20, 8:26 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
Seems like opinion is pretty evenly divided here. I'll leave the
library as-is for now, give it some time to see how things play out.
In the mean time, as a compromise, I've added str-utils2/partial,
which is like
On Aug 17, 1:32 am, Nicolas Oury nicolas.o...@gmail.com wrote:
I was referring to the rules of the benchmark game. When you benchmark
language, using another language is not fair.
If you were to do your own program, of course you could use Java.
However, in the particular circumstance, it is
Why can't we write programs in Clojure and
drop down to Java if necessary?
That's what I find funny about these threads, Clojure's Java interop
is good, Java is easy to write performant code in. There is a clear
path to getting the best JVM performance possible from a Clojure
environment.
What is the main point of reader macros? Is it so you can define your
own short-hand syntax, or is it the ability to get more direct access
to the reader?
If it is the first point, then I'd be happy to not have them - to me
shorthand doesn't buy much.
If it is the second point then why not
On Aug 13, 3:43 pm, Daniel Lyons fus...@storytotell.org wrote:
On Aug 13, 2009, at 3:35 PM, Bradbev wrote:
What is the main point of reader macros? Is it so you can define your
own short-hand syntax, or is it the ability to get more direct access
to the reader?
If it is the first
On Jul 28, 7:47 pm, Andy Fingerhut andy_finger...@alum.wustl.edu
wrote:
I have added a script that uses the Java version of the benchmark
programs to generate the large files that were in the distribution
file I gave a link to earlier, so it is much smaller. I've also
published it on github
I'll admit that I haven't done much GUI programming at all, but I'm
finding that I want to throw together small simple Gui apps with
Clojure. My problem is that every way I try to build my app, it feels
wrong (ugly, over complex, etc). My current least-ugly solution is to
share a ref between
On Aug 11, 10:15 pm, Abhishek Reddy arbs...@gmail.com wrote:
Hi Brad,
I saw your question on IRC the other day and came up with
this:http://gist.github.com/164652
That demo creates a frame with sliders that control the horizontal and
vertical position of a spot in a panel.
It's certanly
On Aug 9, 6:08 am, Nicolas Oury nicolas.o...@gmail.com wrote:
If I do my pmaptest with a very large Integer (inc 20) instead
of (inc 0), it is as slow as the double version. My question is,
whether Clojure may has a special handling for small integers? Like
using primitives for
I'm not sure how to determine why calling 'new Double' each time
through NewDoubleTest's inner loop causes 2 threads to perform not
much better than 1. The best possible explanation I've heard is from
Nicolas Oury -- perhaps we are measuring the bandwidth from cache to
main memory, not raw
On Aug 6, 3:07 am, Andy Fingerhut andy_finger...@alum.wustl.edu
wrote:
On Aug 5, 6:09 am, Rich Hickey richhic...@gmail.com wrote:
On Wed, Aug 5, 2009 at 8:29 AM, Johann Krausjohann.kr...@gmail.com wrote:
Could it be that your CPU has a single floating-point unit shared by 4
cores on
On Jul 16, 12:58 am, Christian Vest Hansen karmazi...@gmail.com
wrote:
I haven't tried to look beyond the JIT to see what it does, so I
wouldn't know which tools to use, but if you do not already know about
it, you might find the HotSpot Internals wiki to be an interesting
source of
I see lots of discussion on this list about Clojure performance how
to get it to Java speed. I am also interested in the next steps that
happen, how does the JVM convert byte code down to machine code and
how does one examine that?
The profiling tools I use for C code let me look at what the
On Jul 7, 6:23 am, Jon Harrop j...@ffconsultancy.com wrote:
On Tuesday 07 July 2009 02:08:57 Bradbev wrote:
On Jul 6, 4:30 pm, fft1976 fft1...@gmail.com wrote:
On Jul 5, 11:42 pm, Bradbev brad.beveri...@gmail.com wrote:
more to modern x86 chips. After you have the best algorithm
On Jul 6, 4:30 pm, fft1976 fft1...@gmail.com wrote:
On Jul 5, 11:42 pm, Bradbev brad.beveri...@gmail.com wrote:
more to modern x86 chips. After you have the best algorithm for the
job, you very quickly find that going fast is entirely bound by memory
speed (actually latency) - cache
A further optimization would be to keep track of the lowest value in
your keep set. A simple compare against that value will eliminate
many of the add/removes from the keep set.
Brad
On Jun 23, 1:35 am, Christophe Grand christo...@cgrand.net wrote:
On Tue, Jun 23, 2009 at 10:14 AM, Daniel
I have a 25Mb CSV text file that I want to process. Simply running
(time (dorun (read-lines file))) gives me about 1 second of read
time, which is about as fast as you'll get (on my machine) I think.
I believe that it should be possible to overlap the IO cost of reading
from a file with
On May 7, 9:26 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 07.05.2009 um 17:19 schrieb Bradbev:
This also leads me to think that it would be useful to have a function
that precached a lazy seq, ie
(pre-cache-seq 5 (range 1000)); returns a new lazy-seq that will keep
5 elements
Hello,
I want to use line-seq, and have it close the input reader.
My first attempt was
(with-open [stream (BufferedReader.)]
(line-seq stream))
Which crashes immediately because you can't read lines from a closed
seq. So, the only way to explicitly close the reader associated with
line-seq is
prevents you from reading all the lines, the Reader
remains open.
-Stuart Sierra
I should have known contrib would have had something. I need to read
the contrib sources more. Thanks!
Brad
On Apr 28, 1:01 pm, Bradbev brad.beveri...@gmail.com wrote:
Hello,
I want to use line-seq, and have
On Apr 28, 10:45 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 28.04.2009 um 19:01 schrieb Bradbev:
Is it a good idea for line-seq to close its BufferedReader when there
is no more data? Or at least provide an optional parameter that
allows/disallows close?
The cleanest solution
On Apr 20, 2:17 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
On Mon, Apr 20, 2009 at 1:27 PM, Bradbev brad.beveri...@gmail.com wrote:
If you promise that
functions will accept and return maps with certain keys, then you must
keep that promise moving forward.
I think you're missing
On Mar 24, 5:56 am, cliffc cli...@acm.org wrote:
Some generic STM bits of wisdom:
- STMs in standard languages (e.g. C, C++) suffer from having to
track all memory references. THis overhead means the STM code
typically starts 3x to 10x slower than non-STM code, which is a pretty
stiff
I'm writing a program that will have millions of small structures in
it. If I were writing in C (or Java I guess), I estimate the object
size to be about 40 bytes. In Clojure, using a struct map I've made a
rough measure I think that the objects are weighing in at about
200bytes.
1) I know
On Mar 3, 4:46 am, Korny Sietsma ko...@sietsma.com wrote:
Hi folks;
I have an intermittent problem that's driving me nuts.
I'm running the emacs-starter-kit setup for editing clojure, recently
updated from git, and when I first run M-x slime, I often get the
following messages:
user= user=
On Mar 2, 3:29 am, Mark Volkmann r.mark.volkm...@gmail.com wrote:
On Sun, Mar 1, 2009 at 11:06 PM, max3000 maxime.lar...@gmail.com wrote:
Hi,
I find the laziness in clojure very hard to wrap my head around. I
understand the idea and it's probably nice in theory. However, in real
life
Hi folks,
I'm getting to the stage on a Clojure project that I want to start
breaking the code into multiple files. My primary environment is
Emacs Slime and interactive development. Is there a standard way
for me to load all of my project's files into the running VM?
Right now I manually go
On Feb 1, 5:22 pm, David Nolen dnolen.li...@gmail.com wrote:
I've changed the name of my project since that was a joke
anyway.http://github.com/swannodette/spinoza/tree/master
Spinoza isn't just for people who want object oriented behaviors. It's also
for anyone who plans on instantiating
I have the following scenario:
- a server that is listening on a socket for incoming connections.
- when the server accepts a connection it uses send-off to run a
handler function to handle the connection
- the handler function loops using recur to handle packets
- the handler function uses
On Dec 15, 4:29 pm, Rich Hickey richhic...@gmail.com wrote:
On Dec 15, 5:57 pm, Bradbev brad.beveri...@gmail.com wrote:
snip
Thanks for the quick reply. Very helpful.
Cheers,
Brad
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Nov 24, 4:44 pm, Rich Hickey [EMAIL PROTECTED] wrote:
On Nov 24, 7:22 pm, dokondr [EMAIL PROTECTED] wrote:
Providing that Clojure is NOT a pure functional language like Haskell,
yet how can I isolate imperative-style computational structures from
the main body of the functional
I thought up an interesting issue the other night. If you map a
function over a seq of refs, then change the refs look at the map
return value (which will convert it from lazy to ...? Hmm, what's the
word - motivated?) then you will get the current value of the refs.
The example code is
(def
36 matches
Mail list logo