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
Hi,
2011/1/9 Alex Baranosky alexander.barano...@gmail.com
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:
On Mon, Jan 10, 2011 at 4:52 AM, pepijn (aka fliebel)
pepijnde...@gmail.com 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
Hi Meikel,
On 10 Jan., 01:09, Meikel Brandmeyer m...@kotka.de 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.
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 Jan
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 jamesqi...@gmail.com wrote:
Nobody
Hi,
On 10 Jan., 14:36, Tim Robinson tim.blacks...@gmail.com 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
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
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 lau.jen...@bestinclass.dk wrote:
Hey everybody,
Just a quick heads up that ClojureQL
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 game
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
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 ramsa...@comcast.net:
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]
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
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
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
On Jan 10, 6:27 am, Stuart Halloway stuart.hallo...@gmail.com 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
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 kwess...@gmail.com wrote:
On Mon, Jan 10, 2011 at 4:52 AM, pepijn (aka fliebel)
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
2011/1/10 Chas Emerick cemer...@snowtide.com
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
On Jan 10, 6:27 am, Stuart Halloway stuart.hallo...@gmail.com 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
On Jan 10, 6:27 am, Stuart Halloway stuart.hallo...@gmail.com 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
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 ramsa...@comcast.net 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
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
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 strip
In the late 80's SSI Published a series of ADD 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]
On Sat, Jan 8, 2011 at 23:38, Stuart Sierra the.stuart.sie...@gmail.comwrote:
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
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 noticed
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 clojure and
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
On Tue, Jan 11, 2011 at 1:51 AM, Stuart Halloway
stuart.hallo...@gmail.com 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
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 from
On Wed, Jan 5, 2011 at 9:21 PM, Timothy Pratley timothyprat...@gmail.comwrote:
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
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
On Mon, Jan 10, 2011 at 10:23 PM, Travis Treseder
travis.trese...@gmail.com 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,
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 ramsa...@comcast.net wrote:
Hi,
Can anybody explain to me how to create a multidimensional array of
floats such as:
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 redin...@gmail.comwrote:
Hey all!
Just wanted to announce that we have formed TriClojure, the Triangle
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 travis.vac...@gmail.comwrote:
Hi folks
I'd like to announce the first stable release of lein-cdt, a
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
On 6 January 2011 04:29, Scott Jaderholm jaderh...@gmail.com wrote:
On Tue, Jan 4, 2011 at 9:10 PM, Eric Schulte schulte.e...@gmail.com
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
46 matches
Mail list logo