Hi,
On Jul 19, 8:56 am, boyan wrote:
> I have a question about apply function.
> For examle,create a hash map:
>
> user=> (hash-map :a 1 :b 2)
> {:a 1, :b 2}
>
> It works fine,but if i want to use apply:
>
> user=> (apply hash-map :a 1 :b 2)
> java.lang.IllegalArgumentException: Don't know how
On 19 July 2010 09:00, Meikel Brandmeyer wrote:
> Hi,
>
> On Jul 19, 8:56 am, boyan wrote:
>
>> I have a question about apply function.
>> For examle,create a hash map:
>>
>> user=> (hash-map :a 1 :b 2)
>> {:a 1, :b 2}
>>
>> It works fine,but if i want to use apply:
>>
>> user=> (apply hash-map
On 16 July 2010 21:23, liebke wrote:
> Rick,
>
> I think the problem is that additional classpaths are added,
> dynamically, after the user.clj file is evaluated. It does get
> evaluated if it's in ./ or ./src, which are added at launch in the
> cljr scripts.
Ahhh, I hadn't realised that the pwd
Thank you Tom :)
On Jul 18, 12:10 pm, Tom Faulhaber wrote:
> The official doc for clojure and clojure-contrib have moved as well.
> They are now at:
>
> http://clojure.github.com/clojure/
>
> and
>
> http://clojure.github.com/clojure-contrib/
>
> I have not got them completely up-to-date with the
Can conjure be used to build web app over aleph? Or what does it take
to build highly scalable web apps in clojure similar to node.js and
express.js?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegr
Hi,
Just a curiosity question, I'm not sure how far off the JVM is from
running on your GPU, but I imagine that with the hundreds and even
thousands of cores, a GPU might, theoretically show us just what
Clojure can do...
--
You received this message because you are subscribed to the Google
Grou
Hi all,
First off, clojure is great. I've been playing with it off and on for
a few
months now, and am really impressed.
While using debug-repl I noted a minor oddity. This is just an
example; not
having a real problem with that package itself.
user=> (require 'clojure.contrib.debug)
nil
user=
Hello,
I'm Coming here view PHP to RoR ro Node.js to Clojure (still
investigating) and am mostly interesting in building scalable web
applications.
I hear aleph being compared to node.js but how do the other two
frameworks compare in performance to the their counterparts, such as
express.js and s
I did the upgrade. seemed okay. I a resumed doing the enlive tutorial,
and now when i :
user=> (load "tutorial/scrape1")
nil
nothing comes back.
type returns, nothing.
type (+ 1 1), and i get:
user=> 2
Odd.
From then on works as expected. Even when (load "scrape1")
--
tutorial : http://git
Hi,
> (apply hash-map :a 1 [:b 2]) or (apply hash-map :a 1 :b 2 nil)
...or we could be more explicit and put:
user=> (apply hash-map :a 1 :b 2 {})
{:a 1, :b 2}
Best.
On Jul 19, 9:00 am, Meikel Brandmeyer wrote:
> Hi,
>
> On Jul 19, 8:56 am, boyan wrote:
>
> > I have a question about apply
This is a moving area (GPUs and CPUs seems to be in a slow process of
converging), but most GPUs are
good at single instruction a lot of data.
(Disclaimer: I have mostly looked at nvidia gpus of ~6months ago)
Most architectures are made to execute a lot of times the same instruction
on a different
Hi,
On Jul 19, 11:13 am, Sanel Zukan wrote:
> ...or we could be more explicit and put:
>
> user=> (apply hash-map :a 1 :b 2 {})
> {:a 1, :b 2}
Which looks somehow self-explaining but is wrong in general. Note the
difference for a non-empty map.
user=> (apply hash-map {:a 1 :b 2})
{[:a 1] [:b 2
Hi,
I'm currently thinking about the next step for better user-assistance in
Eclipse/counterclockwise.
But the questions I'm facing are general - enough so that they can be posted
here.
Preliminary info:
user assistance (code completion, var documentation, etc.) is mainly
obtained from a running
Hi,
using proper syntax-quote, ie. the backtick, normally takes care of
these problems. What you describe might happen if someone used normal
quote, ie. the apostrophe, in the macro expansion. Since there is no
clojure.contrib.debug and the debug-repl by George Jahad does the
right thing, it's har
Look at Penumbra:
http://github.com/ztellman/penumbra
Greetings.
--
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 - please be patient with you
On Sun, Jul 18, 2010 at 10:38 PM, Victor S wrote:
> Hello,
>
> I'm Coming here view PHP to RoR ro Node.js to Clojure (still
> investigating) and am mostly interesting in building scalable web
> applications.
>
> I hear aleph being compared to node.js but how do the other two
> frameworks compare
> Most architectures are made to execute a lot of times the same instruction
> on a different block of data.
> You can have if...then...else... in your GPU programs, but every processor
> will execute both branchs (with a tag saying wether
> or not it is *really* executing it or not)
This is kindo
Ok, I submitted a patch to the leiningen issue tracker on github to
make the lein.sh script work on systems that aren't GNU/Linux
derivatives or imitators. Since I couldn't find a place to upload the
patch I just added it to the comment, wherein github's markdown
apparently mangled it, resulting in
On Sun, Jul 18, 2010 at 9:11 PM, LordGeoffrey
wrote:
> I did the upgrade. seemed okay. I a resumed doing the enlive tutorial, and
> now when i :
> user=> (load "tutorial/scrape1")
> nil
>
> nothing comes back.
> type returns, nothing.
> type (+ 1 1), and i get:
> user=> 2
There are a few timing i
On 17 July 2010 23:57, Laurent PETIT wrote:
> Hi,
>
> 2010/7/17 Paul Richards
>>
>> The "Programming Clojure" book states: "Functions that use dynamic
>> bindings are not pure functions.." (P2.0, page 174).
>>
>> I do not understand why this must be the case, can someone explain why?
>
> Because
"use" = "rely on"
In your example, func relies on a variable which is (presumably, based on its
use in other-func) intended for dynamic binding. Therefore, func is impure.
It is idiomatic to name such variables with earmuffs, e.g. *forty-two*.
Stu
> On 17 July 2010 23:57, Laurent PETIT wrote
This is be discussed in the lein group
http://groups.google.com/group/leiningen
On Jul 19, 10:39 am, Mike Meyer wrote:
> Ok, I submitted a patch to the leiningen issue tracker on github to
> make the lein.sh script work on systems that aren't GNU/Linux
> derivatives or imitators. Since I couldn'
Automatically reloading namespaces into a REPL that I'm actively using
is a very bad idea -- I expect to control what happens within REPLs I
start, and subverting that is decidedly impolite IMO. I can expect to
see odd behaviour when that happens, insofar as I assume new code I've
written
Hello Laurent,
please let me explain my philosophy before I go into details how VimClojure
handles the clojure connection.
Vim is not an IDE like Eclipse or Netbeans. It is an editor which can be used
with other tools to form an IDE, but on its own it is not.
The tools should only do what the u
2010/7/19 Stuart Halloway
> "use" = "rely on"
>
> In your example, func relies on a variable which is (presumably, based on
> its use in other-func) intended for dynamic binding. Therefore, func is
> impure.
>
> It is idiomatic to name such variables with earmuffs, e.g. *forty-two*.
>
>
Sure.
Bu
That's interesting ! Thanks for the feedback.
Please note that it's not "impolite" in the sense that there's a policy: the
project is reloaded in the REPL when the file is saved - that's a kind of
"invitation" made by the user :-).
If you don't work from the files, but from the REPL, nothing will h
Hi,
Am 19.07.2010 um 20:50 schrieb Laurent PETIT:
> Please note that it's not "impolite" in the sense that there's a policy: the
> project is reloaded in the REPL when the file is saved - that's a kind of
> "invitation" made by the user :-).
> If you don't work from the files, but from the REPL
As a Clojure newbie coming from Microsoft land I was surprised by the
answers here.
Eclipse / CCW is the IDE I've used most so far and I've always wondered why
it didn't just open the REPL for me and have it always there. Having it up
to date with my latest code files is great because I mostly us
Hi,
Am 19.07.2010 um 20:41 schrieb Laurent PETIT:
> But the OP is somehow true: it is "by convention" that it is declared pure.
> Indeed, even func itself could have been rebound dynamically, thus making the
> content of the result "theoretically unpredictable", given only the values of
> its
On 19.07.2010, at 04:38, Victor S wrote:
> Hello,
>
> I'm Coming here view PHP to RoR ro Node.js to Clojure (still
> investigating) and am mostly interesting in building scalable web
> applications.
>
> I hear aleph being compared to node.js but how do the other two
> frameworks compare in perfo
On 19 July 2010 19:41, Laurent PETIT wrote:
> 2010/7/19 Stuart Halloway
>>
>> "use" = "rely on"
>>
>> In your example, func relies on a variable which is (presumably, based on
>> its use in other-func) intended for dynamic binding. Therefore, func is
>> impure.
>>
>> It is idiomatic to name such
Hi Paul,
Pure functions have two properties: they cannot produce side effects
and the return value is a function (in the mathematical sense) of its
arguments and nothing else. There are two corresponding questions that
you can ask when looking at a function to determine if it is pure.
1) When I c
Laurent,
Am 19.07.2010 um 21:31 schrieb Meikel Brandmeyer:
> I would say it is pure „by implementation detail.“ Given the direct link
> feature which was in place for clojure.core for a while it would be pure.
> Because then you can't rebind things anymore.
Please ignore me. Of course dynamic
Cloning from http://github.com/GeorgeJahad/debug-repl.git, I see the
same
behavior (but a different namespace). The (overloaded, no arg)
expansion of
the debug-repl macro returns a form by using a normal quote.
The difference being between normal quote and syntax quote does mostly
answer
my quest
Hi,
Am 19.07.2010 um 21:47 schrieb Ryan Twitchell:
> Cloning from http://github.com/GeorgeJahad/debug-repl.git, I see the
> same
> behavior (but a different namespace). The (overloaded, no arg)
> expansion of
> the debug-repl macro returns a form by using a normal quote.
Yes. I think this is a
> Users of Emacs / swank, vimClojure (etc.), please speak ! Share with us your
> workflows, why you think the goal I'm trying to achieve is good or not, so
> that we could think of better workflows to provide to IDE users if it seems
> appropriate.
To the limited extent that I've developed with Sl
Hi Victor,
I've written Penumbra (http://github.com/ztellman/penumbra), which is
a wrapper for OpenGL that allows for some limited general purpose
computation. I've also written Calx (http://github.com/ztellman/calx)
which is a wrapper for OpenCL, and it's designed for general purpose
computation
Hi,
Am 19.07.2010 um 21:56 schrieb Peter Schuller:
> To the limited extent that I've developed with Slime (and this goes
> for both Common Lisp and clojure), one annoyance I have perceived is
> de-normalization of the image/running repl. While having a running
> live repl is great in many ways, w
:reload reloads the specified namespace
There is also :reload-all, which reloads the specified namespace as well as
all namespaces import'ed, use'd, and require'd in the specified namespace.
ex:
(require '[some.ns.foo :as foo] :reload-all)
On Mon, Jul 19, 2010 at 4:09 PM, Meikel Brandmeyer w
> I haven't tested what happens to the deftest stuff, but the „moving function“
> could be addressed.
Cool. I had not yet run into the moving function case with clojure (I
did several times with Common Lisp), so that might be a non-issue. I
was just presuming that no magic was going on.
--
/ P
Hi,
Am 19.07.2010 um 22:20 schrieb Peter Schuller:
>> I haven't tested what happens to the deftest stuff, but the „moving
>> function“ could be addressed.
>
> Cool. I had not yet run into the moving function case with clojure (I
> did several times with Common Lisp), so that might be a non-issu
You got me thinking that all the stuff I and you were talking about
concerning namespace dependency graph, etc. for only reloading the
appropriate namespaces should be possible to be run from the running REPL,
and thus provided as a regular tool to be available to all environments:
REPL, any IDE /
2010/7/19 Meikel Brandmeyer
> Hello Laurent,
>
> please let me explain my philosophy before I go into details how VimClojure
> handles the clojure connection.
>
>
>1. Vim is *not* an IDE like Eclipse or Netbeans. It is an editor which
>can be used with other tools to form an IDE, but on i
>>In my stupidity I chose prn as function name, which removed from the
namespace on >>reload, because clojure.core/prn „overwrites“ the Var again.
Maybe such a functionality >>could be also implemented for normal reload?
But then what happens to other >>namespaces which refer to this Var? I
admit,
2010/7/19 Barry Dahlberg
> As a Clojure newbie coming from Microsoft land I was surprised by the
> answers here.
>
> Eclipse / CCW is the IDE I've used most so far and I've always wondered why
> it didn't just open the REPL for me and have it always there.
Several reasons.
a. having a REPL au
2010/7/19 Peter Schuller
> > Users of Emacs / swank, vimClojure (etc.), please speak ! Share with us
> your
> > workflows, why you think the goal I'm trying to achieve is good or not,
> so
> > that we could think of better workflows to provide to IDE users if it
> seems
> > appropriate.
>
> To th
Hi,
Am 19.07.2010 um 23:01 schrieb Mark Rathwell:
> Notice, the removed function in foo1 still exists, because it was not
> overwritten by anything.
This is true if the function name is not used in anything the namespace refers
to. Take eg. my first example with prn. There the reload overwrite
Laurent,
Am 19.07.2010 um 23:16 schrieb Laurent PETIT:
> Well, by activating the "automatic builder" feature of an IDE, I /suppose/
> users typically think this is a way to tell the IDE to do automatic rebuilds.
> "rebuild" here meaning AOT compilation of the strict necessary files, and
> relo
Impressive list of new features!
By the way, what's left to do for the Windows support to stop being
experimental?
--
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
>> Also, notice that we specified :reload-all for foo1, which then reloads
foo2
>> in the context of foo1, so when calling a function in foo1 that calls
foo2,
>> we get the updated output. But, when calling foo2 functions directly, we
get the old functions.
>No. This is wrong. There is only one
I haven't tried CCW, but I am happy with Enclojure 6.8. (In 6.9 the
file navigator which lists the functions and vars in the file doesn't
work yet, and the navigator is perhaps 50% of the value I derive from
an IDE.)
> Am 19.07.2010 um 20:50 schrieb Laurent PETIT:
> > If you work from the files, t
I'm using Eclipse/Counterclockwise these days but one of the first things I did
was to figure out how to turn off the automatic build-on-save behavior. I save
all of the time -- usually every "complete thought" which may be as little as a
symbol or a line or a small expression -- and when I do
On Jul 19, 2010, at 5:22 PM, Laurent PETIT wrote:
> Some people have reported that they launch several REPLs when the first one
> is busy for a long time. What they really do, though, is that they launch a
> new java environment with the project files and dependencies. When we have a
> proper R
On sketching-in-nonlinear-order, that's definitely how I write too, both code
and prose (and email!). This has implications not only for the automatic build
behavior we were discussing but also for the structure-based editing discussion
from a week or two ago. If you piece together your code in
On 19 July 2010 22:25, Laurent PETIT wrote:
>
> 2010/7/19 Peter Schuller
>> I also sympathize and agree that it can be hugely problematic if an
>> environment stomps on your carefully prepared REPL in ways you don't
>> expect. I'm not sure how to best reconcile these two concerns.
>
> Yes, that's
I don't have any experience with aleph, node.js, or express.js. But
assuming you can use those technologies with Ring, then you should be
able to do it with Conjure.
-Matt Courtney
On Jul 18, 8:26 pm, Victor S wrote:
> Can conjure be used to build web app over aleph? Or what does it take
> to bu
I am curious; for the people with Haskell experience why did you
decide to use Clojure? I am asking this because Haskell and Clojure
seem to solve similar types of problems. When would you want to use
Haskell instead of Clojure and visa-versa?
--
You received this message because you are subscrib
On Mon, Jul 19, 2010 at 4:34 PM, Jared wrote:
> I am curious; for the people with Haskell experience why did you
> decide to use Clojure? I am asking this because Haskell and Clojure
> seem to solve similar types of problems. When would you want to use
> Haskell instead of Clojure and visa-versa?
1 word. JVM.
the amount of java libs to be tapped is amazing. My experience with
haskell libs has been mixed bag.
In the case of clojure, XML parsing, database connection,
kicking up a web server, natural language parsing.
"There is a Jar for that"
OTH, there are situations where we can't use JV
On Mon, Jul 19, 2010 at 4:34 PM, Jared wrote:
> I am curious; for the people with Haskell experience why did you
> decide to use Clojure? I am asking this because Haskell and Clojure
> seem to solve similar types of problems. When would you want to use
> Haskell instead of Clojure and visa-versa?
On Mon, Jul 19, 2010 at 4:34 PM, Jared wrote:
> I am curious; for the people with Haskell experience why did you
> decide to use Clojure? I am asking this because Haskell and Clojure
> seem to solve similar types of problems. When would you want to use
> Haskell instead of Clojure and visa-versa?
Saving a file is not an invitation to do anything with the REPLs that
I started -- it's an invitation to save the file! :-D
And no, I write a lot of code in the REPL at all. I *load* a lot of
code into REPLs, yes, multiple active REPLs, all the time. Actually
writing code in what is almos
Forgot one thing:
On Jul 19, 2010, at 2:50 PM, Laurent PETIT wrote:
Anyway, I didn't expect you reaction to be soo opinionated, and it's
refreshing to hear others thoughts.
Strong opinions, weakly held, 24/7. ;-)
- Chas
--
You received this message because you are subscribed to the Goo
I can't respond to that, but presumably these issues are irrelevant if
one were using terracotta to coordinate asynchronous independent
computation, e.g. using agents heavily?
- Chas
On Jul 16, 2010, at 8:00 AM, peter veentjer wrote:
To repeat myself again:
The big problem with a MVCC bas
Because monads make me cry, and I like the JVM.
On Jul 19, 6:34 pm, Jared wrote:
> I am curious; for the people with Haskell experience why did you
> decide to use Clojure? I am asking this because Haskell and Clojure
> seem to solve similar types of problems. When would you want to use
> Haskell
Because I saw Haskell as a good language to shape my mind, and then I found
Clojure a
2010/7/20 Jared
> I am curious; for the people with Haskell experience why did you
> decide to use Clojure? I am asking this because Haskell and Clojure
> seem to solve similar types of problems. When would you
2010/7/20 Laurent PETIT
> Because I saw Haskell as a good language to shape my mind, and then I found
> Clojure a
>
... and then I found Clojure, a good language to shape my mind, have things
done, and (eventually I hope), help pay the bills.
(yeah, the short answer is "JVM" ;-) )
... wait ..,
Hi,
On Jul 19, 11:09 pm, Laurent PETIT wrote:
> You got me thinking that all the stuff I and you were talking about
> concerning namespace dependency graph, etc. for only reloading the
> appropriate namespaces should be possible to be run from the running REPL,
> and thus provided as a regular t
68 matches
Mail list logo