They seem to allow you to include anything in a lib directory that you'd want.
I sometimes include apache commons-io and clojure-contrib1.2 without
any problems.
I also included a sql connection library for one of the problems, so
it seems fine :)
--Robert McIntyre
On Thu, Jan 13, 2011 at 2:00 A
On 12 January 2011 14:07, Robert McIntyre wrote:
> You can use the latest version of clojure if you include it as a
> dependency in your submission, so even though they say they only
> support clojure1.0 they really support all of them.
>
Are other 3rd-party libs allowed, too?
Cheers,
Stuart
-
One common use is for referring to private functions in other namespaces.
For example, say you want to write tests for foo.core/p, a privately
defined function. It is private in terms of your intent as expressed in
your API, but you can still access the var from foo.core-test and call the
functio
On Wed, Jan 12, 2011 at 8:04 PM, Alex Baranosky
wrote:
> -> and ->> do the same things, except -> threads through the first argument
> of the functions, and ->> threads through the second argument.
->> threads through the last argument.
Both macros are useful for unnesting complex expressions. T
Oops. Sorry, I'm clearly too tired to post. Thsoe examples aren't quite
right.
Those are the threading macros.
(-> one two three) expands to (three (two one))
-> and ->> do the same things, except -> threads through the first argument
of the functions, and ->> threads through the second argum
-> and --> are macros in clojure.core, both
(-> one #(two % "a") three)
(->> one #(two "a" %) three)
expands to
(three #(two one "a"))
and (->> one #(two %1 %2) three)
expands to
(three #(two "a" one))
On Wed, Jan 12, 2011 at 10:40 PM, Sean Allen wrote:
> So i've used this because I picked
So i've used this because I picked it up from numerous tutorials but I've
never really understood it,
can I get a some decent background information on ->> and ->?
I picked them up from compojure tutorials and don't feel anywhere near
comfortable enough w/
what is actually going on.
Thanks.
-Sea
Hi Mark,
I don't know much about the error msg you encountered, but I think
Peter's onto something with the recommendation to set %HOME% yourself
to help emacs find your init file(s). This page has good info on how
emacs goes about determining your %HOME% directory:
http://www.gnu.org/software/e
its a reader macro equivalent to the var special form:
(var symbol)
The symbol must resolve to a var, and the Var object itself (not its
value) is returned. The reader macro #'x expands to (var x).
from:
http://clojure.org/special_forms#var
On Wed, Jan 12, 2011 at 9:11 PM, Alex Baranosky
wrote
Hi, I find it extremely hard to google this to learn more! I'd like to
know some good sources of further information on when to use #' . It is a
bit mysterious to me at this point.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this gro
Try setting %HOME% to something like c:\home, create the dir if needed, and put
your .emacs etc in that folder.
I've found that spaces in paths are still often to blame for issues with
command line and gnu-esque tools.
Thanks,
Peter
-Original Message-
From: Mark Engelberg
Sender: c
On Wed, Jan 12, 2011 at 3:57 PM, Phil Hagelberg wrote:
> From the problems you are seeing it sounds like you are using
> Leiningen 1.1.0. Have you tried 1.4.2, the latest release?
I'm on lein 1.3.1. I downloaded, but have not yet tried 1.4.2.
I haven't sent you my changes because my batch file-
On Wed, Jan 12, 2011 at 9:56 AM, Philip Hudson wrote:
> I have something like this:
>
> (setq desktop-dirname "/foo/bar"
> desktop-path '("/foo/bar"))
> (setq-default desktop-path '("/foo/bar"))
> (add-hook 'kill-emacs-hook (lambda () (desktop-save desktop-dirname)))
> (require 'desktop) ;
On Wed, Jan 12, 2011 at 8:13 AM, Benny Tsai wrote:
> Hi Mark,
>
> Could you elaborate on this part?
The version number is: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
When I drag a file onto the emacs icon, it starts up, but instead of
showing me the file, it says:
command-line-1: Cannot open load f
You're right, it will only work for protocol implementations defined in-line
in a type.
-S
--
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
On Jan 11, 10:40 pm, Mark Engelberg wrote:
> lein/emacs - Getting lein to run under Windows has been an ongoing
> struggle. It sort of works, but there are a lot of little problems.
> I've made lots of edits to my batch file to try to address the
> problems, but then it becomes difficult to updat
Unfortunately I haven't used cake at all, sorry!
Travis
On Tue, Jan 11, 2011 at 12:15 AM, Sunil S Nandihalli
wrote:
> Hi,
> Thanks Travis. This is something I have wanted for a long time .. Have you
> tried using it with cake? would it work with Cake?
> Sunil.
>
> On Mon, Jan 10, 2011 at 9:34
On 2011-01-12, at 8:38 AM, Stuart Sierra wrote:
> One way:
>
> (ancestors (type the-object))
>
> This will include every interface implemented by the object, including
> protocols.
This seems to only work if the protocol is mentioned in the defrecord. If it's
applied using the extend fun
Good stuff, just what I was looking for, can't wait to try...
sent from my mobile device
On Jan 12, 2011 9:48 PM, "Miki" wrote:
> [fs "0.2.0-SNAPSHOT"] is out, featuring:
>
> abspath
> Return absolute path
> basename
> Return the last part of path
> copy
> Copy a file
> cwd
> Return the current
[fs "0.2.0-SNAPSHOT"] is out, featuring:
abspath
Return absolute path
basename
Return the last part of path
copy
Copy a file
cwd
Return the current working directory
delete
Delete path
directory?
True if path is a directory
dirname
Return directory name
executable?
ah, ok. just wanted to make sure.
On Wed, Jan 12, 2011 at 2:22 PM, Meikel Brandmeyer wrote:
> Hello Wilson,
>
> Am 12.01.2011 um 17:18 schrieb Wilson MacGyver:
>
>> I think you meant the next release of Clojuresque.
>
> No. I really meant VimClojure. I think the plugin does not fit to
> clojures
Hello Wilson,
Am 12.01.2011 um 17:18 schrieb Wilson MacGyver:
> I think you meant the next release of Clojuresque.
No. I really meant VimClojure. I think the plugin does not fit to clojuresque,
since the latter is independent of one's editor.
Sincerely
Meikel
--
You received this message bec
> A branch is certainly a possibility. But from what I've heard, the primary
> benefit of invokedynamic is convenience for language implementors. The
> performance benefits, if any, are modest.
If your language is doing dynamic dispatch a lot, invokedynamic can be
game-changing since suddenly the
On 12 Jan, 2011, at 4:21 pm, clojure+nore...@googlegroups.com wrote:
My #1 issue with emacs is that I
don't know how save my "workspace" so that I can return to emacs and
automatically open the last set of files I was working on, and my
places within them. It's always a big hassle when I sit do
On Jan 12, 5:56 am, Daniel Werner
wrote:
> On Jan 11, 4:20 pm, Ram Krishnan wrote:
>
> > > * Mozilla's JS 1.7 supports a let statement[1] with lexical scoping,
> > > ...
> > That's an interesting idea, although I'm not too keen on specializing
> > for any one browser. The other problem is I don
On Wed, Jan 12, 2011 at 1:49 AM, Meikel Brandmeyer wrote:
>> 2. An easy way to load all the relevant code and dependencies into a REPL.
>
> Check. Vim itself does not provide that. But it is easy to use lein,
> cake or gradle to fire up the backend server. For lein there exists a
> third-party pl
Hi Mark,
Could you elaborate on this part?
On Jan 11, 8:40 pm, Mark Engelberg wrote:
> well. Lots of little things don't work quite right in emacs (at least
> on Windows), for example, dragging a file onto emacs to edit it, and
> copying and pasting between apps.
I've been using Emacs on Windo
> Yes that compareTo doesn't define a total order on your class. I think
> you are missing a clause in cond:
You're right on. I refactored the toCompare function to meet the
requirements outlined in its javadoc, and it worked. I'm a little
ashamed I didn't do that before wasting people's time...
On Wed, Jan 12, 2011 at 1:41 AM, ka wrote:
>
> (detest xyz ...)
>
>
Freudian slip? ;)
--
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 - ple
On Wed, Jan 12, 2011 at 8:15 AM, WoodHacker wrote:
> This is a much better solution. It's shorter and is easier to read.
> Thanks for tip!
>
> On Jan 10, 11:49 pm, Sunil S Nandihalli
> wrote:
>> (into-array (map float-array [[1.0 1.0 2.0 2.0] [3.0 2.2 4.0 0.0]]))
Why not generalize further?
On Jan 11, 4:20 pm, Ram Krishnan wrote:
> > * Mozilla's JS 1.7 supports a let statement[1] with lexical scoping,
> > ...
> That's an interesting idea, although I'm not too keen on specializing
> for any one browser. The other problem is I don't see any reasonable
> way of providing the alternates
Invoking tests as functions doesn't work when the tests use fixtures.
-S
clojure.com
--
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
One way:
(ancestors (type the-object))
This will include every interface implemented by the object, including
protocols.
-S
clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.c
A branch is certainly a possibility. But from what I've heard, the primary
benefit of invokedynamic is convenience for language implementors. The
performance benefits, if any, are modest.
-S
clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" grou
If Java 7 gives Clojure significant performance boost (invokedynamic and
frields) wouldn't it make sense to have separate versions of Clojure that
will be optimized for target JRE version?
I suppose that only small part of clojure codebase would be affected, with
small improvements to build pro
This is a much better solution. It's shorter and is easier to read.
Thanks for tip!
Bill
On Jan 10, 11:49 pm, Sunil S Nandihalli
wrote:
> Hi Bill ,
> the following is one way of doing it ..
>
> (into-array (map float-array [[1.0 1.0 2.0 2.0] [3.0 2.2 4.0 0.0]]))
>
> Sunil.
>
> On Mon, Jan 10,
Hi Nick,
You can reach me from this email.
If you have a patch, you can send a pull request or email it directly.
Regards...
--
Nurullah Akkaya
http://nakkaya.com
On Wed, Jan 12, 2011 at 1:13 AM, Nick Zbinden wrote:
>> I have a simple library that mimics newLISP's net-eval command, which
>>
It is not. Thanks for the information anyway. The real problem
consists of a set of tags, with a type identified by a byte. One of
those tags is a compound tag which can contain any number of other
tags and is terminated by a \0. This means I need parser behavior,
rather than a linear regex-alike b
No i do not mind.
A blog is being planned for promotion of my game and sharing.
Only have to find a domain name which i like.
On 12 Jan., 01:32, Daniel Kersten wrote:
> Thanks for sharing!
>
> Entity component systems are something I'm very interested in and
> something I have tinkered with in t
39 matches
Mail list logo