On 18 Jan 2011, at 07:37, Tim Daly wrote:
I have just finished
Language Virtualization for Heterogeneous Parallel Computing
http://infoscience.epfl.ch/record/148814/files/paper.pdf
Me too!
Clojure clearly fulfills all of the goals of a virtualization language
because it is a Lisp. Lisp syste
I decided to test-drive CCW to see if it had leapfrogged Enclojure.
Apparently not: whereas it was quick and easy to get NB 6.9.1 and
Enclojure installed, create a new Clojure project, and get a REPL,
trying the same with Eclipse and CCW rapidly hit a snag.
The Eclipse download went without a hit
On 17 January 2011 17:42, Robert McIntyre wrote:
[...]
> You can then actually run your program by making a shell script with
> something like
> #!/bin/bash
> java -Xmn500M -Xms2000M -Xmx2000M -server -cp ./lib/*:./src
> clojure.main your-namespace-file.clj $@
Put $@ in double quotes. Otherwise
Hi,
2011/1/18 Ken Wesson
> I decided to test-drive CCW to see if it had leapfrogged Enclojure.
>
> Apparently not: whereas it was quick and easy to get NB 6.9.1 and
> Enclojure installed, create a new Clojure project, and get a REPL,
> trying the same with Eclipse and CCW rapidly hit a snag.
>
>
2011/1/18 Laurent PETIT
> Hi,
>
> 2011/1/18 Ken Wesson
>
> I decided to test-drive CCW to see if it had leapfrogged Enclojure.
>>
>> Apparently not: whereas it was quick and easy to get NB 6.9.1 and
>> Enclojure installed, create a new Clojure project, and get a REPL,
>> trying the same with Ecl
Hi all,
Suppose I have the following function:
(defn foo [x changeling]
(cond
(= (first x) 'bar)
(map #(foo % changeling) (rest x
(def foobar (atom {:something "in-here"}))
Now, changeling gets bound to (atom {:something "in-here"}). The
conditional in foo might contain another ca
Not sure if I understand your question/problem but, this:
"How can I avoid the binding of changeling to the initial value of the
atom and have the anonymous function passed to map use the current
(possibly changed) value of changeling? "
You are binding a reference not the actual value of the ato
Now that I've read your e.g. a couple more times you seem to want to
change the value of atom in foo.
So first since you def the atom, there is no need to pass it to foo.
Second when trying to see the value of the atom you deref it with @
and if you want to change it you use swap!, reset! or compar
Testing for laziness seems simple:
(defn lazy? [coll]
(= (type coll) clojure.lang.LazySeq))
"For instance if you know a particular sequence could be particularly
large or expensive in certain situations, you may want your tests to
assert that it is not getting evaluated prematurely.."
That's wh
Theres a subtle problem here that makes both solutions not work in
some cases.
I am trying to reexport error-kit, and it makes use of a var #'handle,
and in the macro with-handler, it tests if there is a handle = to
#'handle. If you define a var in your own namespace named handle, it
will of cours
Andreas Kostler wrote:
> Hi all,
> Suppose I have the following function:
> (defn foo [x changeling]
> (cond
> (= (first x) 'bar)
> (map #(foo % changeling) (rest x
>
> (def foobar (atom {:something "in-here"}))
>
> Now, changeling gets bound to (atom {:something "in-here"}).
Erm
On 18 Jan 2011, at 07:37, Tim Daly wrote:
I have just finished
Language Virtualization for Heterogeneous Parallel Computing
http://infoscience.epfl.ch/record/148814/files/paper.pdf
Me too!
Clojure clearly fulfills all of the goals of a virtualization language
because it is a Lisp. Lisp sys
I was looking at the title on amazon, after recently discovering
clojure recently. The product description on aamazon is somewhat
brief. There are no reviews as the book is released in a few days.
I have been learning and progressing via HTDP.org with Racket. I want
to learn clojure, is this book
Hi
>From my point of view, it's better to take 'Clojure in Action' first,
and only after it to take 'The Joy of Clojure' - it about more
advanced techniques (I reviewed it in my blog, if you interested -
http://alexott.blogspot.com/2010/10/readings-digest-september-2010.html)
On Tue, Jan 18, 2011
On Tue, Jan 18, 2011 at 4:46 AM, Laurent PETIT wrote:
> Hi,
>> No menu options exist to create a
>> new Clojure namespace .clj file,
>
> It does. You should see an option "Clojure File" in the "File > Create new"
> menu.
I don't.
> If not, then probably there's a problem with the java perspectiv
2011/1/18 Ken Wesson
> On Tue, Jan 18, 2011 at 4:46 AM, Laurent PETIT
> wrote:
> > Hi,
> >> No menu options exist to create a
> >> new Clojure namespace .clj file,
> >
> > It does. You should see an option "Clojure File" in the "File > Create
> new"
> > menu.
>
> I don't.
>
> > If not, then prob
For what it's worth, I installed CCW on Eclipse Helios on Win7
yesterday and it works perfectly. Thanks Laurent!
On Jan 18, 9:27 am, Laurent PETIT wrote:
> 2011/1/18 Ken Wesson
>
>
>
>
>
>
>
>
>
> > On Tue, Jan 18, 2011 at 4:46 AM, Laurent PETIT
> > wrote:
> > > Hi,
> > >> No menu options exis
I really enjoyed 'Programming Clojure'. I thought it was written at
an appropriate level for a beginner (which I most certainly am). It
explained a lot of the concepts like laziness and recursion in a way
that helped out with these concepts at a basic level while still
giving some non-trivial exa
On Tue, Jan 18, 2011 at 10:27 AM, Laurent PETIT wrote:
>> That's a bit snarky. But no-one should have to read the documentation
>> just to get it installed and to locate and use the most obvious
>> features that have direct parallels in Enclojure. In particular,
>> no-one has to with Enclojure. If
On Tue, Jan 18, 2011 at 7:53 AM, Seth wrote:
> Theres a subtle problem here that makes both solutions not work in
> some cases.
> I am trying to reexport error-kit, and it makes use of a var #'handle,
> and in the macro with-handler, it tests if there is a handle = to
> #'handle. If you define a
On Mon, Jan 17, 2011 at 8:42 AM, Robert McIntyre wrote:
> You can then actually run your program by making a shell script with
> something like
> #!/bin/bash
> java -Xmn500M -Xms2000M -Xmx2000M -server -cp ./lib/*:./src
> clojure.main your-namespace-file.clj $@
I've found that Hashdot is a very
I have read large chunks of all of the (English language) Clojure
books. I think "The Joy of Clojure" is the most well written of the
books. It is true that I didn't start reading it until I was already
familiar with Clojure, but I think that this is the one to start
with. "Programming Clojure"
2011/1/17 Meikel Brandmeyer
> Hi Laurent,
>
> Am 17.01.2011 um 22:32 schrieb Laurent PETIT:
>
> > Taking the risk to be ridiculous in the front of all my peers : how is
> your function different from the "clojure.core/use" function, exactly ?
>
> It's more like immigrate from earlier compojure ve
I think the clojure community should be seeking the type of funding to
make it the goto language for HPC. As a community we definitely have
the brains to make it happen.
While I am not enough of a computer scientist to be able to contribute
to the development, I am willing to help write proposals
On 18 Jan, 2011, at 17:37 , cej38 wrote:
> I think the clojure community should be seeking the type of funding to
> make it the goto language for HPC. As a community we definitely have
> the brains to make it happen.
The brains, yes, but not the academic infrastructure. Scala is based at EPFL,
Hi Everyone,
I'm attempting to use Clojure to write a Wallpaper Library app. My
first stab at a small subset of the functionality is done and I can't
see how to improve it. I'm not particularly happy with it from a
readability perspective as well as a visibility perspective.
I find to-wallpaper-n
On 18 Jan, 2011, at 15:34 , Tim Daly wrote:
>> I suppose that for most Lispers, Clojure's namespaces are a sufficient
>> answer. Just make a namespace for your DSL where you put all the stuff that
>> is part of it. Sure, you can always get at the rest of Clojure by importing
>> other namespaces
On 18 Jan, 2011, at 17:37 , cej38 wrote:
I think the clojure community should be seeking the type of funding to
make it the goto language for HPC. As a community we definitely have
the brains to make it happen.
The brains, yes, but not the academic infrastructure. Scala is based at EPFL,
an
On Jan 18, 2011, at 6:16 AM, MiltondSilva wrote:
> Testing for laziness seems simple:
> (defn lazy? [coll]
> (= (type coll) clojure.lang.LazySeq))
It's fairly easy to get other types that are (effectively) lazy. For example,
(cons 1 (map identity [1 2 3]))
is a clojure.Lang.Cons but
On Tue, Jan 18, 2011 at 11:59 AM, Tim Visher wrote:
> Hi Everyone,
>
> I'm attempting to use Clojure to write a Wallpaper Library app. My
> first stab at a small subset of the functionality is done and I can't
> see how to improve it. I'm not particularly happy with it from a
> readability perspec
defstruct is old and I'm pretty sure there's no reason to use it.
defrecord is a drop-in replacement though for something simple and not
performance-sensitive you might consider just using hashmaps.
to-resolution seems like it should be named get-resolution or
resolution-of or something, but the i
On Tue, Jan 18, 2011 at 12:37 PM, Alan wrote:
> defstruct is old and I'm pretty sure there's no reason to use it.
> defrecord is a drop-in replacement though for something simple and not
> performance-sensitive you might consider just using hashmaps.
Agree, but in a case like this there's no stro
Yes, very important difference that. Clojure will *not* return incorrect
results on overflow (Java will) but it might throw an exception.
--
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
No
You're not really aliasing the Vars, you're creating new Vars and copying
the root values from the originals.
This leads to subtle bugs when the original Vars are dynamically rebound or
redefined. That's why Compojure dropped `immigrate`.
-S
clojure.com
--
You received this message because y
On Jan 18, 2011, at 3:22 AM, Ken Wesson wrote:
> I could use the new-generic-file option to create files with the .clj
> extension and maybe I'd even get Clojure syntax highlighting and
> indenting in the editor if I did so; I didn't bother to check. Lack of
> any apparent way to launch a project
not to forget practical clojure from apress:
http://apress.com/book/view/1430272317
which gives a good introduction too
and mark volkmanns article:
http://java.ociweb.com/mark/clojure/article.html
which is free and also gives an excellent
introduction.
--
You received this message because yo
Rob, thanks for sharing this and congratulations on having IDC (your
employer IIUC) adopting an alternate JVM language. Can you share some
details about the language selection process? Was it based on
developers consensus or it was a purely management decision? Was the
presence or absence of enough
I am currently at the Naval Research Laboratory, Washington DC.
Chad
On Jan 18, 11:59 am, Konrad Hinsen wrote:
> On 18 Jan, 2011, at 17:37 , cej38 wrote:
>
> > I think the clojure community should be seeking the type of funding to
> > make it the goto language for HPC. As a community we defin
On Tue, Jan 18, 2011 at 1:07 PM, Stuart Sierra
wrote:
> You're not really aliasing the Vars, you're creating new Vars and copying
> the root values from the originals.
> This leads to subtle bugs when the original Vars are dynamically rebound or
> redefined. That's why Compojure dropped `immigrat
On Tue, Jan 18, 2011 at 1:14 PM, Chas Emerick wrote:
> Any tone you might have picked up from Laurent might be a reaction to your
> ranting about how ccw is apparently rubbish rather than asking for help.
Well, excse me for assuming, quite reasonably, that if, after an
install and restart du
On Tue, Jan 18, 2011 at 10:21 AM, Shantanu Kumar
wrote:
> To help me understand, would you like to share how was this conclusion
> derived ("Clojure - being a Lisp dialect - has a steeper learning
> curve due to its syntax and more purely functional nature.")? Scala
> has more syntax/semantics tha
On Jan 18, 2011, at 10:59 AM, Tim Visher wrote:
> I'd love to have the code torn apart a little bit and get some
> suggestions for improvements.
>
> It's located at https://gist.github.com/784744
It took me a few tries to figure out what to-wallpaper-name was doing. Maybe
you should write a he
On Jan 18, 2011, at 11:29 AM, Brian Marick wrote:
> f this were my problem, I'd wonder if I could make the computation accept
> functions. Then you could do something like this:
That was a lame solution except in the special case where the first element
must be computed. Here's a better solut
On Jan 18, 2011, at 2:01 PM, Ken Wesson wrote:
>> Tangentially, IMO it'd be nice if tooling troubleshooting discussions didn't
>> hit this list at all, since there are presumably mailing lists and other
>> forums specific to each toolset.
>
> Your email is the first place that I encountered th
On 18 Jan, 2011, at 17:37 , cej38 wrote:
I think the clojure community should be seeking the type of funding to
make it the goto language for HPC. As a community we definitely have
the brains to make it happen.
The brains, yes, but not the academic infrastructure. Scala is based
at EPFL, a
> I can't speak for the original poster, but it seems like a fair
> assessment to me. Scala is, as you point out, more complicated in
> many ways than Clojure. But there is a subset of Scala that looks and
> behaves very similarly to Java. It is possible for a Java programmer
> to make the tran
On Jan 18, 2011, at 1:02 PM, Ken Wesson wrote:
> On Tue, Jan 18, 2011 at 12:37 PM, Alan wrote:
>> defstruct is old and I'm pretty sure there's no reason to use it.
>> defrecord is a drop-in replacement though for something simple and not
>> performance-sensitive you might consider just using has
On Jan 18, 1:17 pm, Lee Spector wrote:
> On Jan 18, 2011, at 1:02 PM, Ken Wesson wrote:
>
> I haven't looked at the OP's context for this, but I rather like defstruct
> and I want to ask about its status.
>
> I see some mention on the web of it being deprecated in 1.2 (e.g.
> inhttp://stackove
On Jan 18, 2011, at 5:03 PM, Alan wrote:
> Deprecated doesn't mean "in future this will stop working" - it means
> "you shouldn't use this". See eg
> http://dictionary.reference.com/browse/deprecate.
None of those definitions appear to address this technical usage, and in my
experience "depreca
On Jan 18, 2:38 pm, Lee Spector wrote:
> On Jan 18, 2011, at 5:03 PM, Alan wrote:
>
> > Deprecated doesn't mean "in future this will stop working" - it means
> > "you shouldn't use this". See
> > eghttp://dictionary.reference.com/browse/deprecate.
>
> None of those definitions appear to address t
We have been using ccw for more than a year here. Never had significant
problems with it nor with updates to it.
We have been using Eclipse since 2002.
Can you provide the plugin list from Eclipse ? (About -> Installation
details)
Luc P.
On Tue, 18 Jan 2011 10:21:50 -0500
Ken Wesson wrote:
>
On Jan 18, 2011, at 6:01 PM, Alan wrote:
> On Jan 18, 2:38 pm, Lee Spector wrote:
>> On Jan 18, 2011, at 5:03 PM, Alan wrote:
>>
>>> Deprecated doesn't mean "in future this will stop working" - it means
>>> "you shouldn't use this". See
>>> eghttp://dictionary.reference.com/browse/deprecate.
>
I'm currently doing some preliminary performance testing of db inserts
with various technologies. The db server itself is nothing special
but what surprised me was the difference in INSERT speeds between
Clojure and the other solutions I've tried. Clearly there is
something I'm missing so perhaps
Hi,
Here is a link: http://code.google.com/p/textmash/
Some time ago I have written it in order to help accomplish a task of
creating some paraller processing system written entirely in Clojure
(it was the map reduce framework from Google).
It was also used with success in other tasks, like edi
Nice work,
maybe something like GWT but written in Clojure, will knock to ours
doors.
On 11 Sty, 06:09, Ram Krishnan wrote:
> Hi all,
>
> I've just released a stable version of `clojurejs' -- an
> unimaginatively named Clojure library for translating a Clojure subset
> language to Javascript.
>
On Jan 19, 5:21 am, faenvie wrote:
> not to forget practical clojure from apress:
>
> http://apress.com/book/view/1430272317
>
> which gives a good introduction too
> and mark volkmanns article:
>
> http://java.ociweb.com/mark/clojure/article.html
>
> which is free and also gives an excellent
>
Thanks for the feedback Stuart
I'll check out Enliven. I'm currently writing an app using Compojure,
Ring and Hiccup, so it would fit nicely with that too by the sound of
it.
On Jan 16, 7:25 pm, Stuart Campbell wrote:
> Hi,
>
> Have you used Enlive[1]? It's a nice tool for HTML scraping and tem
This may be a typo, but since I saw it more than once, it could be worth
noting (maybe save you some trouble) that clo[jsz]ure is not an equivalence
class. Closure with a capital C can either be Google's JS library, or a
Common Lisp web browser (and some of its associated component libraries like
On Jan 18, 2011, at 5:38 PM, Lee Spector wrote:
> If I recall correctly the lack of nil defaults was indeed one of the things
> that I didn't like about records (I think this was leading to exceptions in
> my code until I patched around it), and it's even possible that the IFn thing
> meant th
> I'll check out Enliven. I'm currently writing an app using Compojure,
> Ring and Hiccup, so it would fit nicely with that too by the sound of
> it.
I was in a small Enlive vs Hiccup discussion at the conj. Enlive was
preferred by developers who worked with designers, because it allows
designers
> I've just released a stable version of `clojurejs' -- an
> unimaginatively named Clojure library for translating a Clojure subset
> language to Javascript.
>
Unimaginative could be a good thing in this case, I was thinking maybe
CloJSure, and then someone could invert abstractions and sacrelig
Maybe I didn't make myself clear enough. I'm implementing a scheme interpreter.
The following function sets a variable in the given environment:
(defn set-var! [var val env]
"Set a variable to a value, in the given or global environment"
(if-let [val ((keyword var) @env)]
(reset! env (assoc @
On Jan 18, 2011, at 7:21 PM, Chas Emerick wrote:
> You might find my minor sugar for defining records whose slots have default
> values:
>
> http://cemerick.com/2010/08/02/defrecord-slot-defaults/
Nice -- I do think it'd be good for something like this to be built in.
> Also worth noting is th
Hi Chad!
Where are you at NRL? I'm also working there. I was dreaming of having
a clojure users group there.
--
myriam
cej38 writes:
> I am currently at the Naval Research Laboratory, Washington DC.
>
> Chad
>
>
>
> On Jan 18, 11:59 am, Konrad Hinsen wro
On Tue, Jan 18, 2011 at 3:45 PM, Chas Emerick wrote:
>
> On Jan 18, 2011, at 2:01 PM, Ken Wesson wrote:
>
>>> Tangentially, IMO it'd be nice if tooling troubleshooting discussions
>>> didn't hit this list at all, since there are presumably mailing lists and
>>> other forums specific to each tool
On Tue, Jan 18, 2011 at 6:28 PM, Luc Prefontaine
wrote:
> We have been using ccw for more than a year here. Never had significant
> problems with it nor with updates to it.
>
> We have been using Eclipse since 2002.
>
> Can you provide the plugin list from Eclipse ? (About -> Installation
> detail
On Jan 18, 9:14 pm, Ken Wesson wrote:
> On Tue, Jan 18, 2011 at 3:45 PM, Chas Emerick wrote:
>
> > On Jan 18, 2011, at 2:01 PM, Ken Wesson wrote:
>
> >>> Tangentially, IMO it'd be nice if tooling troubleshooting discussions
> >>> didn't hit this list at all, since there are presumably mailing l
On Tue, Jan 18, 2011 at 10:36 PM, blcooley wrote:
>
> On Jan 18, 9:14 pm, Ken Wesson wrote:
>> On Tue, Jan 18, 2011 at 3:45 PM, Chas Emerick wrote:
>>
>> > The links to the users' and developers' google groups for ccw are
>> > prominently linked on the right side of the ccw site:
>>
>> >http://
I downloaded the JAR and gave it a try. Here's my first impression:
Pros:
1. Feels really fast (does it use Swing?)
2. Consistent U/I - seemingly nice defaults
Cons:
1. Clojure files are not syntax highlighted by default
2. Clojure->"Open a REPL" doesn't work (at least not out of the box)
3. Cloj
Hi,
On 19 Jan., 00:28, Luc Prefontaine
wrote:
> Can you provide the plugin list from Eclipse ? (About -> Installation
> details)
A while back I ran into a similar problem: a fresh install of eclipse
+ only ccw didn't work on my machine. Mysteriously using the same
files for eclipse and ccw on a
70 matches
Mail list logo