The later. The string in my example is \n terminated, so it should
read past the \0, and then the outer list should terminate on the last
\0.
My point is that I need to parse recursive structures, which of course
contain the same terminator as the outer one.
What if I wanted to parse null termina
Hi,
2011/1/9 Alex Baranosky
> Hi,
>
> I'm most used to using Intellij, since it is what I use everyday at work
> programming in Java. So my first forays into Clojure have been using
> LaClojure. Some things I like about using Intellij for Clojure development
> are:
>
>- I can click on a pi
On Mon, Jan 10, 2011 at 4:52 AM, pepijn (aka fliebel)
wrote:
> The later. The string in my example is \n terminated, so it should
> read past the \0, and then the outer list should terminate on the last
> \0.
>
> My point is that I need to parse recursive structures, which of course
> contain the
Hi Meikel,
On 10 Jan., 01:09, Meikel Brandmeyer wrote:
> Because 'o expands to (quote o) and you actually hint this list. You might
> try (meta ' ^:k o).
Very interesting, this works! I did not know that syntax and none of
my books or the reader section of clojure.org mentioned it.
Thanks a lo
Nobody mentions Eclipse clojure plugin, I use this. Good enough with
clojure's REPL.
--
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
Interesting.
My downloaded version of clojure 1.2.0 acts exactly as you describe.
However my basic lein project with only
(defproject prj "1.0.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.2.0"]]])
acts differently.
Well as I said, I can never sure about anything :)
Cheers
Tim
On J
vim tmux & slime.
You can find slime for tmux here or here:
- https://github.com/kikijump/tslime.vim
- http://www.vim.org/scripts/script.php?script_id=3023
Tim Washington
twash...@gmail.com
416.843.9060
On Mon, Jan 10, 2011 at 2:54 AM, jamesqiugm wrote:
> Nobody mentions Eclipse clo
Hi,
On 10 Jan., 14:36, Tim Robinson wrote:
> Interesting.
Suspicious, I'd say.
> My downloaded version of clojure 1.2.0 acts exactly as you describe.
>
> However my basic lein project with only
>
> (defproject prj "1.0.0-SNAPSHOT"
> :dependencies [[org.clojure/clojure "1.2.0"]]])
>
> act
Hi,
so if we name now all the alternatives: VimClojure for Vim. :)
Sincerely
Meikel
--
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
Hi,
I can't verify that a REPL created by lein behaves differently. Did you
perhaps update an old project.el without running lein deps?
In addition to that: your defproject has too many ]'s
Regards,
Stefan
--
You received this message because you are subscribed to the Google
Groups "Clojur
You're very welcome - and thanks to everybody who's tried it out!
Lau
Tim Robinson wrote:
> Thank you for making this.
> It's a great idea and really enjoyable to use.
> Tim
>
> On Jan 5, 7:14 am, LauJensen wrote:
> > Hey everybody,
> >
> > Just a quick heads up that ClojureQL 1.0.0 is now relea
On Jan 10, 2011, at 2:54 AM, jamesqiugm wrote:
> Nobody mentions Eclipse clojure plugin, I use this. Good enough with
> clojure's REPL.
FWIW I've been using this (Eclipse/Counterclockwise) both for my own work and
for teaching an undergraduate class last fall, and I think it is quite good. My
I notice that the fastest Java version of pidigits uses a native library named
"jpargmp". Is there documentation somewhere that spells out how and when you
are allowed to use native libraries and still claim to be written in language X?
Stu
> Only 3 tasks on the computer language benchmarks gam
Indeed, I use Eclipse + counterclockwise as well -- to the point of
contributing to it of late. IMVHO, the Eclipse + counterclockwise combination
is the one that has the most potential in the IDE space (for those of us that
can't bear to work with emacs).
Check out the v0.2.0 RC[1] that went o
Hi,
Can anybody explain to me how to create a multidimensional array of
floats such as:
[[1.0 1.0 2.0 2.0] [3.0 2.2 4.0 0.0]]
Anything I try gives me errors.
Bill
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email
2011/1/10 WoodHacker :
> Hi,
>
> Can anybody explain to me how to create a multidimensional array of
> floats such as:
>
> [[1.0 1.0 2.0 2.0] [3.0 2.2 4.0 0.0]]
>
> Anything I try gives me errors.
user=> (doc make-array)
-
clojure.core/make-array
([type len] [type dim &
Is there anything like GroovyServlet (
http://groovy.codehaus.org/Groovlets ) for Clojure?
I think if there is something like that, it will be easy and fun to test
& practice Clojure with small web code snippets(Not for real world
application).
Thanks,
KwonNam
--
You received this message becau
Hello,
Try ring with ring-java-servlet :
https://github.com/laurentpetit/ring-java-servlet
or ring with lein-ring : https://github.com/weavejester/lein-ring
or plain old ring + run-jetty and ring.middleware.reload :
https://github.com/mmcgrana/ring
HTH,
--
Laurent
2011/1/10 KwonNam Son
> I
Hi folks
I'd like to announce the first stable release of lein-cdt, a leiningen
plugin that makes running George Jahad's excellent Clojure Debugging
Toolkit a little easier. George has been polishing CDT over the past
couple weeks and we both hope that this plugin will help others start
to use and
On Jan 10, 6:27 am, Stuart Halloway wrote:
> I notice that the fastest Java version of pidigits uses a native library
> named "jpargmp". Is there documentation somewhere that spells out how and
> when you are allowed to use native libraries and still claim to be written in
> language X?
If
Last time I tried to use this, I found the plugin for some reason
could not see the clojure source jar. It was a real bummer, since I
had been hoping to find a nice IDE that would let me debug into
clojure's internal classes as well, to get some insight into what was
going on.
On Jan 10, 6:37 am,
Oh, right. My code does have a start and an end. I'm using header for
the start. So the only way Gloss could do this is with a fn that
combines header and repeated into one?
On Jan 10, 12:29 pm, Ken Wesson wrote:
> On Mon, Jan 10, 2011 at 4:52 AM, pepijn (aka fliebel)
>
>
>
>
>
>
>
>
>
> wrote:
I do exactly that occasionally -- debugging Java source is decidedly in the
domain of Eclipse (which does such things very, very well), so ccw is likely
not the impediment there. I'd encourage you to head over to the mailing list
(http://groups.google.com/group/clojuredev-users); I'm sure we co
2011/1/10 Chas Emerick
> I do exactly that occasionally -- debugging Java source is decidedly in the
> domain of Eclipse (which does such things very, very well), so ccw is likely
> not the impediment there. I'd encourage you to head over to the mailing
> list (http://groups.google.com/group/clo
On Jan 10, 6:27 am, Stuart Halloway wrote:
> I notice that the fastest Java version of pidigits uses a native library
> named "jpargmp". Is there documentation somewhere that spells out how and
> when you are allowed to use native libraries and still claim to be written in
> language X?
As
On Jan 10, 6:27 am, Stuart Halloway wrote:
> I notice that the fastest Java version of pidigits uses a native library
> named "jpargmp". Is there documentation somewhere that spells out how and
> when you are allowed to use native libraries and still claim to be written in
> language X?
As
The question was how to place data in the array, not create it. I've
been
doing that. How do you populate it?The doc shows:
user=> (doc aset-float)
-
clojure.core/aset-float
([array idx val] [array idx idx2 & idxv])
If I try that I get:
user=> (def wa (make-array
On Mon, Jan 10, 2011 at 4:40 PM, WoodHacker wrote:
> The question was how to place data in the array, not create it. I've
> been
> doing that. How do you populate it? The doc shows:
>
> user=> (doc aset-float)
> -
> clojure.core/aset-float
> ([array idx val] [array i
> As a practical matter, presumably the same wrapper could be used from
> Clojure?
Yes, I should think so. Thanks for the pointer to the rules, I missed it when
reading the first time.
Stu
> http://alioth.debian.org/scm/viewvc.php/shootout/bench/Include/java/GmpUtil.h?view=markup&revision=1.3&r
I don't know if your example codec is as simple as your real problem,
but here's a codec that will work for the string you provided:
(repeated
(string :utf-8 :delimiters ["\n" "\n\0"])
:delimiters ["\n\0"] :strip-delimiters? false)
This terminates the whole sequence only on \n\0, but doesn't
In the late 80's SSI Published a series of AD&D computer games
starting with Pool of Radiance [1]. Some of these came with a decoder
Wheel required to enter the game and at some points during game play.
This program simlates the decoder wheel as required for entering the
game.
[1] http://en.wikipe
On Sat, Jan 8, 2011 at 23:38, Stuart Sierra wrote:
> Ratios aren't valid JSON. If the recipient is Clojure, you don't need JSON
> at all, just pr-str and read-string.
Of course!
Thanks,
mike
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post
I know I should not be naming my functions the same thing as ones in
core but was surprised when I wrote the following
https://github.com/thattommyhall/tth-SICP/blob/master/1-35.clj
I have being doing the SICP stuff in clojure and accieently copied
"try" as the fn name and it did not work, I notice
Hi Tom,
"try" is a special form, and "test" is a function.
Stu
> I know I should not be naming my functions the same thing as ones in
> core but was surprised when I wrote the following
> https://github.com/thattommyhall/tth-SICP/blob/master/1-35.clj
> I have being doing the SICP stuff in clojur
Hey all!
Just wanted to announce that we have formed TriClojure, the Triangle
Clojure Users Group. Tomorrow night, Jan 11th, we are co-hosting with
TriFunc a talk from Clojure/core member Aaron Bedra title "Building
Analytics with Incanter & Compojure." If you are in the area, please
drop by the R
On Tue, Jan 11, 2011 at 1:51 AM, Stuart Halloway
wrote:
> Hi Tom,
>
> "try" is a special form, and "test" is a function.
>
> Stu
Cheers Stu, should have thought of that.
Am I correct in thinking only 3 possibilitys for "try" in
(try 1)
special form, macro, function
?
Are the special forms imple
To expand on this:
user=> (defn try [] 5)
#'user/try
user=> (try) ; `try` alone is resolved to the special form
nil
user=> (#'try) ; obtaining the `try` var works just fine
; (vars currently delegate function calls to their values)
5
user=> (@#'try) ; explicitly deref'ing the fn fro
On Wed, Jan 5, 2011 at 9:21 PM, Timothy Pratley wrote:
> Neat, looks pretty nice.
> I love invitations to nit pick!
> database.clj
> (defn complete-todo [id]
> (dosync (ref-set *todo* (vec (remove #(= (get % :id) id) @*todo*)
> 1) ref-set is unnecessary you could re-factor this to use alter.
All,
I'm hoping another, wiser set of eyes can help me to see what I'm doing
wrong.
I've defined a deftype below that stores a likelihood and a tree structure
(nested vectors). The deftype overrides equals, etc, and implements
Comparable so I can add SearchResults to a sorted-set and sort by
lik
On Mon, Jan 10, 2011 at 10:23 PM, Travis Treseder
wrote:
> All,
> I'm hoping another, wiser set of eyes can help me to see what I'm doing
> wrong.
> I've defined a deftype below that stores a likelihood and a tree structure
> (nested vectors). The deftype overrides equals, etc, and implements
> C
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, 2011 at 8:32 PM, WoodHacker wrote:
> Hi,
>
> Can anybody explain to me how to create a multidimensional array of
> floats such as:
>
> [[1.0 1.0 2.0
since you are looking at multidimensional float arrays .. the following may
be of interest to you ...
http://clj-me.cgrand.net/2009/10/15/multidim-arrays/
On Tue, Jan 11, 2011 at 10:19 AM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hi Bill ,
> the following is one way of doing it ..
for those of us who cannot attend both .. a video would be awesome!! :) And
the lame excuse for that it is just about 16k miles away ..
On Tue, Jan 11, 2011 at 7:45 AM, Christopher Redinger wrote:
> Hey all!
>
> Just wanted to announce that we have formed TriClojure, the Triangle
> Clojure Users
Hi all,
I've just released a stable version of `clojurejs' -- an
unimaginatively named Clojure library for translating a Clojure subset
language to Javascript.
clojurejs is something I've been working on for a few weeks as part of
a larger web app in Clojure. The code's a bit crufty (reflects my
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 PM, Travis Vachon wrote:
> Hi folks
>
> I'd like to announce the first stable release of lein-cdt, a leiningen
> plugin that mak
Awesome, thank you!
Sadly, this week and next are unavailable for a couple of reasons, but please
have another hack night and/or presentation soon!
Gary
On Jan 10, 2011, at 9:15 PM, Christopher Redinger wrote:
> Hey all!
>
> Just wanted to announce that we have formed TriClojure, the Trian
On 6 January 2011 04:29, Scott Jaderholm wrote:
> On Tue, Jan 4, 2011 at 9:10 PM, Eric Schulte
> wrote:
> > I wonder if anyone else has written any similar Emacs alignment rules
> > for Clojure which they would be interested in sharing?
>
> Alignment rules for let and defroutes are at the top of
47 matches
Mail list logo