Storage migration transfers data from one storage device to another. This
involves moving blocks of storage and files from storage systems, whether
they're on disk, tape or in the cloud. During migration is also an optimal
time for organizations to perform data validation and reduction by
ide
Logo is awesome!
--
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 your
first post.
To unsubscribe from this group, se
Did you try to narrow down your result set with Clojars search syntax?
https://github.com/clojars/clojars-web/wiki/Search-Query-Syntax
It's based on lucene and I think you can do lots of things with it.
On Sunday, March 4, 2018 at 10:06:45 PM UTC+7, Jonathon McKitrick wrote:
>
> There are 1860 lei
Hi this very simple plugin that compiles your sass files in docker
container.
Easy configuration, supports watch, generates source maps with correct
paths to sources.
https://github.com/edvorg/lein-give-me-my-css
--
You received this message because you are subscribed to the Google
Groups "Clo
Hi. I released first version of https://github.com/edvorg/configuron .
configuron is a configuration library that has interface of environ, but
has additional features.
- env variable is updated every time you update you project.clj
- clojurescript support. you can access your config on fro
Hi I recently started to dig into lazy sequences processing in clojure
because I need to process huge amount of data that doesn't fit in memory.
I found a few articles and examples describing the way lazy seqs work in
clojure. But so far all I got myself is a paranoia.
Now everywhere I look in th
va.nio package, which means it will
> die at compile time on Java 1.6 and lower with a
> ClassNotFountException, and therefore say in the README that this
> requires Java 1.7+".
>
> On 4 January 2018 at 13:34, Tim Visher wrote:
> > On Thu, Jan 4, 2018 at 12:04 AM, Edward
Thanks :)
I haven't considered using nio Zip FileSystem just because I never heard of
it, but I'll definitely check it out.
Regarding targeting to java 7, should something like this set up targeting
properly?
:javac-options ["-target" "1.7" "-source" &quo
Hi, I made a simple wrapper around java.util.zip.
Basically it only allows you to compress files or unpack/process zip
archives.
There is nothing special about it, but it simplifies code a lot when
dealing with zip files.
It's an alpha release and I was just hoping that someone could take a look
*Pluggable back-ends architecture for ClojureScript compilerBrief
explanation:* There are a lot of ClojureScript script compiler forks exist
to provide different compilation targets other than js. Most of them are
currently stuck because of rapid ClojureScript development and difficulties
wi
Congratulations! You made a great work.
--
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 your
first post.
To unsubscr
You could use println instead of prn as the REPL printer.
(clojure.main/repl :print println)
This seems to break the REPL a bit though, so you may want to figure out
how to put it in the startup,
On Thursday, 12 March 2015 11:08:28 UTC, Hildeberto Mendonça wrote:
>
> Hello,
>
> Running the foll
accessors are not present
- camel-case to dash-separated keyword conversion
- custom constructors by property name as well as type
- breaking encapsulation and setting private fields (well, sometimes you
really do need to do it!)
Edward
On Thursday, 12 March 2015 13:59:10 UTC, ronen wrote:
of use to others.
Feedback welcomed.
https://github.com/flybe-dev/munge-tout
https://clojars.org/munge-tout
Edward
--
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
Strangely making the change to my code didn't fix it (I got an exception
about an uneven number of elements in a map) but copying and pasting your
code -once I'd fixed the half dozen bracket and brace errors that have been
introduced- it does work.
Ta.
On Wednesday, December 17, 2014 7:02:12 A
I've tried that already but then Clojure complains about there being an
uneven number of elements in a map.
Curious though: did the original code ever actually work? Is it something
that was deprecated?
Have to say I am happy if that's the case, the original seemed
unnecessarily arcane where a
I'm following the Clojure Cookbook recipe for defining a schema in datomic.
One of the forms is: #db/id[:db.part/db] but this generates an exception
"clojure.lang.ExceptionInfo:
No reader function for tag id :: {:column 25, :line 27, :type
:reader-exception}"
Can anyone offer any insight?
--
Looks like a pretty standard rather naif article by someone who knows
enough to be dangerous but not enough to actually understand about
trade-offs.
And I'm not sure why you think it's even slightly relevant to Clojure: or
did you think Clojure eschewed abstractions?
--
You received this mess
> (alt-enter mapped to "eval sexp in repl" is used heavily)
That's interesting but it doesn't seem to be a default and I can't find
anything like 'eval sexp in repl' in the keymap nor anywhere else (using
the IDEA search functionality under Preferences (OSX)).
On Thursday, February 6, 2014 3:06
You're right and ouch! That's horrible. It's an error that should be known
at eval time.
On Tuesday, July 15, 2014 1:20:04 PM UTC+1, Jony Hudson wrote:
>
> I think that's what you'd expect. This will also evaluate just fine:
>
> (defn foo
> [x y]
> (bar x y))
>
> but will fail at run-time too
On Tuesday, July 15, 2014 12:38:53 PM UTC+1, Jeremy Heiler wrote:
>
> On Tue, Jul 15, 2014 at 3:15 AM, >
> wrote:
>
>> Curiouser and curiouser.
>>
>> I turns out the problem was *not* with my next-to-play function but
>> rather with the fact that it takes three arguments but I was only passing
Curiouser and curiouser.
I turns out the problem was *not* with my next-to-play function but rather
with the fact that it takes three arguments but I was only passing it two.
The curious part is that whilst the compiler complained about the wrong
arity if I evaluated the call directly, it didn'
Quick follow up, replacing get-and-make-move with
(defn get-and-make-move
[board strategy player]
board)
Still have the same problem: so the issue is not with that function nor any
of the functions it calls (nor the strategies).
Beginning to think it's my next-to-play function, which would
Pretty sure the strategy isn't a problem (random-strategy picks a random
move from all legal moves) and it works in the single-threaded command line
version of the app.
ditto all-directions which is constant:
(def ^:constant all-directions
"Defines the array of all possible directions from a
(defn get-move
"Call the player's strategy function to get a move.
Keep calling until a valid and legal move is returned
and pass that back.
There is no way to escape without the strategy returning
a valid and legal move."
[board strategy player]
(let [[x y :as move] (strategy board
So I've got something strange happening.
I have a function (play, see below) which I spin off in a separate thread:
(future (play {:black black-strategy :white white-strategy} :black))
The weird thing is whilst the first (println) in play is printed to the
console, and so is a similar print f
Hey, thanks for the response.
'any-legall-move?' is used to determine if the player has any legal moves,
if not then it's the other player's turn; if neither has any legal moves
then the game is over. So when it is called the 'desired move' is unknown.
Similarly 'legal-moves' is used before you
Oh and: no way to create a new file in a project?
--
--
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 your
first pos
Well I tried it, two immediate issues after opening an existing project:
- tried to open a file for some reason the only method is 'jump to file'?
Is that right?
- doing so caused a crash to desktop both times I tried.
On Sunday, December 15, 2013 11:21:08 PM UTC, Nikki Degutis wrote:
>
> It's
I look forward to your critique!
On Friday, December 13, 2013 1:41:08 PM UTC, Sean Chalmers wrote:
>
> I'm running out of break time so I'll have to give this a look over a bit
> later, looks pretty good from a quick scan though! Interested to dive in
> the guts of it! :)
>
> If you're intereste
I look forward to your critique :)
--
--
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 your
first post.
To unsubscri
One of my favourite computer science / programming books is Peter Norvig’s
“Paradigms of Artificial Intelligence Programming: Case Studies in Common
Lisp” (PAIP). And the extended Othello example had always fascinated me
so when I was looking for something to write to help me learn Clojure it
w
wrote:
>
> Hi Edward,
>
>
> you are being hit by laziness here. Clojure's 'for' is not like the 'for'
> you may know from other programming languages. It is made for list
> comprehensions, that is it is building new list-y things. It does not do
> t
ffects would never take place, whereas doseq forces them to take
> place whether or not the nil *it* returns is used or discarded.
>
>
> On Mon, Nov 25, 2013 at 8:25 AM, Ambrose Bonnaire-Sergeant <
> abonnair...@gmail.com > wrote:
>
>> Hi Edward,
>>
>> I
Some (println) weirdness (board is a vector to vectors):
(println (board 0))
(println (board 1))
(println (board 2))
(println (board 3))
(println (board 4))
(println (board 5))
(println (board 6))
(println (board 7))
Works as I would expect, printing to the console.
However:
(for [row board]
How does that work: you appear to be iterating over two, unconnected,
vectors.
And yes that's an example of the second option but doesn't explain if or
why that's the best approach- which was the question ;)
On Thursday, 18 April 2013 19:48:40 UTC+1, Alan Malloy wrote:
>
> (for [[y cols] (map-i
So, I want a 2 dimensional array.
I think the best way to implement this is a vector of vectors.
Now I want to display that array drawing each element relative to its
position in the array.
Is the best way to use doseq and manually maintain the indices? Or is it to
use nested for-loops manuall
I'm a bit curious. My immediate reaction was to ask what you use instead of
Spring (none?), Hibernate (datomic?) and what did you use to provide the
plumbing for web apps (assuming you needed it and didn't just write it all
from scratch).
My second thought was then what is the difference betwee
Thanks everyone- that's been really useful.
And yes, frequencies, really throws me every time (as do some of the
unintuitively - to me - named functions).
On Wednesday, 10 April 2013 18:27:58 UTC+1, edw...@kenworthy.info wrote:
>
> So, page 143 of Clojure Programming has an implementation of Con
Haha! I had similar advice from my Grandfather in the late 70s who
predicted that computers will be writing all their own programs in the near
future and so the job prospects for working in the field would be quite
poor.
On Sunday, 14 April 2013 09:52:46 UTC+1, Korny wrote:
>
> I've been forget
I'm sorry but that's not true. The version over the page hasn't been
re-factored 'into a nicer version' it's been re-factored into a more
generic version to support, for example, hexagonal grids.
On Saturday, 13 April 2013 23:12:59 UTC+1, Tj Gabbour wrote:
>
> Hi,
>
> The text explains the "eleg
So, page 143 of Clojure Programming has an implementation of Conway's Life:
(defn step
"Yields the next state of the world"
[cells]
(set (for [[loc n] (frequencies (mapcat neighbours cells))
:when (or (= n 3) (and (= n 2) (cells loc)))]
loc)))
The book claims this to be "an elegant
Thanks all.
Just to close this off, this is my (now working!) code, still needs some
re-factoring (especially given Jim's last note re not needing watches in
seesaw). It's basically a gui wrapped around the implementation of Life
from Clojure Programming, with a few functions to add gliders, gu
Thank you.
--
--
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 your
first post.
To unsubscribe from this group, send
So having parsed your log-history example Jim (which I found tricky because
of the confusion of the problem domain in your example with the
implementation, logging history versus watching changes is a bit close, and
the gratuitous use of the threading macro). I think a simpler example would
be:
OK took me a while to work my way through your code. I think a simpler
version to illustrate the point would be:
(def current-live-cells (atom starting-live-cells))
(defn cells-changed
; called when current-live-cells changes
[k r o n]
(print "cells-changed called.")
(repaint
So I do not understand why calling
(defn evolve []
(Thread/sleep 1000)
(print ".")
(recur))
Never results in anything being printed until I press Ctrl-C at which point
a bunch of . are printed.
However if I remove (Thread/sleep 1000) then it works as I would expect.
I thought (Th
But to understand the first you have to expand it into the second- which
means understanding the arcane squiggle -> and how it differs from the
equally arcane squiggle ->>. Nasty, sticky, syntactic sugar :)
I suspect that early on, still being a Clojure noobie, I'll stick with the
'proper' Lisp
So I understand that:
(-> foo bar wibble)
is equivalent to
(wibble (bar (foo)))
With the advantage that the latter version is better, in the sense that
it's clearer what the final result is (the result of the call to wobble).
What I don't understand is the need for -> the only thing it seems
Thanks very much Jim, that's really useful stuff.
On Saturday, March 9, 2013 2:30:59 PM UTC, Jim foo.bar wrote:
>
> also see this for a discussion about why the need for design patterns
> almost disappears in Clojure:
>
> http://stackoverflow.com/questions/8902113/clojure-model-view-controller-m
So I understand that Clojure's data structures are immutable but I am not
clear how that works with MVC.
So I have a view that displays a model. Other processes change that model
and the View presents those changes.
However it's not clear to me how that would work with an immutable model.
Obvi
Thanks very much Michael and Jonas.
On Monday, 4 March 2013 07:20:24 UTC, Jonas wrote:
>
> Hi
>
> You can use the tempid (
> http://docs.datomic.com/clojure/index.html#datomic.api/tempid) function
> to generate new temporary ids.
>
> Jonas
>
> On Monday, March 4, 2013 8:50:56 AM UTC+2, edw...@ken
Okay, I think I understand that.
Does that mean this code could never work as intended in a Clojure program,
only at the repl (which seems a bit of a limitation) or is there a way to
make it work as intended, generating a different id each time? Or is the
whole approach taken in this code flawe
So, I am studying a piece of code from the web. I've dissected most of it
and am in the process of re-factoring it.
What I don't understand is why one version works and the other doesn't.
So for both:
(ns gcse-results.core (:use [datomic.api :only [q db] :as d]) (:use
quil.core))
This doesn
Glad to help.
--
--
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 your
first post.
To unsubscribe from this group, s
tps://groups.google.com/forum/?fromgroups=#!searchin/clojure/let-else/clojure/1g5dEvIvGYY/EWjwFGnS-rYJ
>
>
> Cheers,
>
> Dave
>
> On Fri, Jan 4, 2013 at 7:23 AM, Edward Tsech >
> wrote:
> > Sorry guys, I forget to mention that it should behave like "let"
get the final true/false for the if
> condition. You imply "and", which is a perfectly reasonable choice.
>
> My main reason for responding is to let you know that if you really want
> such behavior, macros let you roll your own without much trouble.
>
> Andy
>
>
Hey guys,
if-let and when-let macros support only 2 forms in binding vector:
(if-let [x 1 y 2]
...)
java.lang.IllegalArgumentExcepdtion: if-let requires exactly 2 forms in
binding vector(NO_SOURCE_FILE:1)
Why doesn't "if-let" support any even amount of binding forms as "let" does?
e.g.
(if-l
What do you think guys about informal meeting at the weekend?
On Monday, July 9, 2012 9:21:51 AM UTC+2, Zuzkins wrote:
>
> Hi guys,
> I, somehow, missed this thread but I am all up for clojure @ Prague
>
> On Thu, Jul 5, 2012 at 7:54 PM, Edward Tsech wrote:
>
>> HI Dani
HI Daniel,
I'm interested in Clojure and I would like to meet some Clojurians in
Prague too!
Ed
On Friday, June 29, 2012 12:21:58 PM UTC+2, Daniel Skarda wrote:
>
> Hi,
>
> are there fellow Clojurians from Prague, Czech Republic using Clojure to
> attack real problems?
> I started with Clojure
For those deploying to Oracle Java 7, an updated GC reference (including
valid combinations) is available at
http://www.fasterj.com/articles/oraclecollectors1.shtml.
Regards
Edward
On Tuesday, July 3, 2012 5:48:15 AM UTC-4, Niels van Klaveren wrote:
>
> I haven't got much expe
Hello!
Thanks for the speedy turnaround! It looks like this fix clears up the issue.
Thanks a lot,
Edward
From: clojure@googlegroups.com [clojure@googlegroups.com] on behalf of Gil Tene
[g...@azulsystems.com]
Sent: Friday, June 15, 2012 12:32 AM
To: clojure
$Parser.parse(Compiler.java:923)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6455)
... 52 common frames omitted
Cheers,
Edward
From: clojure@googlegroups.com [clojure@googlegroups.com] on behalf of Mark
[markaddle...@gmail.com]
Sent: Wednesday, June 13, 2012 3:01
ime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Cheers,
Edward
From: clojure@googlegroups.com [clojure@googlegroups.com] on behalf of Mark
[markaddle...@gmail.com]
Sent: Wednesday, June 13, 2012 3:01 PM
To: clojure@go
Hello all,
We're interested in using some of Clojure's internal libraries (in particular,
it's STM implementation), in the runtime for another programming language. We
were wondering if anyone had attempted this before, and if there are any things
to keep in mind along the way.
> live in a isolated sandbox in order to keep clean the overall environment.
>
> On Sunday, May 20, 2012, Edward Ruggeri wrote:
>>
>> Hey everyone!,
>>
>> I know this is an old story.
>>
>> I've played with clojure, but the main thing that has kept me from
Hey everyone!,
I know this is an old story.
I've played with clojure, but the main thing that has kept me from
never looking back is the startup speed. "Hello world!" in Java takes
me .303s, but just "java -cp clojure-1.5.0-master-SNAPSHOT.jar" takes
1.989s (sending C-d to close the repl even be
Native Erlang does have a macro facility, but it is not as powerful as
Lisp/Clojure's.
On Sep 15, 2:15 am, cig wrote:
[snip]
> In a wide spread environment I think Erlang would be the true winner,
> though it does not natively have macros :-(
[snip]
--
You received this message because you are
"Elapsed time: 179.999572 msecs"
"Elapsed time: 156.903536 msecs"
"Elapsed time: 160.216012 msecs"
"Elapsed time: 180.149246 msecs"
"Elapsed time: 153.392229 msecs"
"Elapsed time: 166.831646 msecs"
"Elapsed time: 153.221276 msecs"
"
en't setup new
numbers yet. I haven't gotten any bites from haskell-cafe yet.
Cheers,
Edward
--
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 memb
able to make it faster).
I was under the impression that Java hashCode() was also a machine
sized integer. Is this not the case?
Cheers,
Edward
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
be much faster. You also appear to do the
real
sample size, which might be why you observed this version to be slightly slower
than Rich's.
I'll resetup my tests and try this out. Thanks for the comments!
Cheers,
Edward
--
You received this message because you are subscribed t
? Is the
garbage collector sucking? Is the algorithm just not as good as it
makes out to be?
Cheers,
Edward
[1] http://www.cs.gmu.edu/~sean/research/
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
Can Clojure simulate Class?Lisp can do it!
Anyone know it?
--~--~-~--~~~---~--~~
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
To unsubscribe from this
dispatch)
(define acc (make-account 50))
((acc 'deposit) 40)
90
((acc 'withdraw) 60)
30
But how Clojure do it?
byEdward Shenfrom Shanhai,China
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
75 matches
Mail list logo