Or maybe https://bitbucket.org/kotarak/lazymap ?
On Monday, January 21, 2013 7:38:01 AM UTC+1, Alex Baranosky wrote:
>
> memoize, or delay maybe
>
> On Sun, Jan 20, 2013 at 10:29 PM, AtKaaZ >wrote:
>
>> memoize?
>>
>>
>> On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis
>>
>> > wrote:
>>
>>> One of
Here are some functional programming job opportunities that were posted
recently:Software Engineer at
Relayhttp://functionaljobs.com/jobs/122-software-engineer-at-relayClojure
Developer at
doohttp://functionaljobs.com/jobs/121-clojure-developer-at-dooCheers,Sean
MurphyFunctionalJobs.com
--
memoize, or delay maybe
On Sun, Jan 20, 2013 at 10:29 PM, AtKaaZ wrote:
> memoize?
>
>
> On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis wrote:
>
>> One of the neat things about Clojure (maybe all functional languages) is
>> that functions can be defined either extensionally or intensionally. How
memoize?
On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis wrote:
> One of the neat things about Clojure (maybe all functional languages) is
> that functions can be defined either extensionally or intensionally. How
> can one create a Clojure structure that mixes these two types of definition?
>
>
One of the neat things about Clojure (maybe all functional languages) is
that functions can be defined either extensionally or intensionally. How
can one create a Clojure structure that mixes these two types of
definition?
That is, I would like to define a function f that saves its result the
For everyone's benefit - I installed nrepl and used nrepl-jack-in which
works fine (with the same project structure).
Manoj.
On Friday, January 18, 2013 4:54:41 PM UTC+5:30, mmwaikar wrote:
>
> Hi,
>
> I have a project which uses both Clojure and Clojurescript. Hence in its
> project.clj file,
yes... it would be better.
On Sun, Jan 20, 2013 at 2:30 AM, David Brown wrote:
> Qiu Xiafei writes:
>
> > (defn num->digits
> > [num]
> > (loop [n num res []]
> > (if (zero? n)
> > res
> > (recur (long (/ n 10)) (cons (mod n 10) res)
>
> How about (quot n 10) instead o
On Jan 20, 2013, at 7:49 AM, Anthony Grimes wrote:
>
>
> In closing, I propose the following. If we're going to continuously deny
> people things they are accustomed to, instead of treating them like angry
> children having tantrums, why don't we get a response from clojure/core and
> have it
Thanks!
On Sunday, January 20, 2013 1:00:19 PM UTC+8, Phil Hagelberg wrote:
>
>
> Greetings fellow Clojure people.
>
> I've just pushed out the final release of Leiningen 2.0.0. The changes
> since the last release candidate have mostly been minor bugfixes.
> Highlights since 1.x include profil
yes, your code works if you don't use the "^:const", but why doesn't it
work with ^:const when you just use the return of mapv (something with
reify?)? It's either some clojure bug or missing feature, or something
inherent that I don't understand(ie. maybe it doesn't make sense to def
^:const the r
wow! nice job AtKaaZ...so if I understood correctly there is no issue
with my code yes? translate-position sits at the bottom of my API
(cannot live without it)...
Jim
On 21/01/13 00:33, AtKaaZ wrote:
Caused by:
RuntimeException Can't embed object in code, maybe print-dup not
defined: cloju
If you want read a file from the classpath as a string, you can use
clojure.java.io/resource;
(require 'clojure.java.io)
(slurp (clojure.java.io/resource "META-INF/MANIFEST.MF"))
On Sun, Jan 20, 2013 at 11:34 PM, Josh Kamau wrote:
> Hi ;
>
> I figured it it out... (load "/myfile");loads my
Caused by:
RuntimeException Can't embed object in code, maybe print-dup not defined:
clojure.core$reify__6186@4e5db277
clojure.lang.Util.runtimeException (Util.java:223)
clojure.lang.Compiler$ObjExpr.emitValue (Compiler.java:4571)
clojure.lang.Compiler$ObjExpr.emitValue (Compiler.java:4
Actually, it's even simpler:
(def ^:const
mappings-8x8
(mapv #(apply vector-of :int %)
[[0 0] [1 0] [2 0]])
)
(class mappings-8x8) ;throws
CompilerException java.lang.RuntimeException: Can't embed object in code,
maybe print-dup not defined: clojure.core$reify__6186@1028, compiling
I've managed to reduce this to:
(ns Clondie24.games.xx1)
(def ^:const
mappings-8x8
(mapv #(apply vector-of :int %)
[[0 0] [1 0] [2 0]])
)
(defn translate [mappings]
(let [list-loc
(.indexOf mappings [0 1])]
))
(translate mappings-8x8);throws
=> (pst *e 121312)
On Sunday, 2013-01-20 at 14:27 , Michał Marczyk wrote:
> On a separate note, if there are indeed "tons of bugs when it comes to
> cross-browser compatibility" in ClojureScript, pointing (as many as
> possible of) them out would be extremely helpful, indeed more than
> submitting the actual patch
Hi ;
I figured it it out... (load "/myfile");loads my file relative to
classpath
thanks
Josh
On Mon, Jan 21, 2013 at 2:14 AM, Josh Kamau wrote:
> Hi;
>
> I have a clojure lein project. I have a directory called resources which i
> believe is the classpath root directory..
>
> I just want
Hi;
I have a clojure lein project. I have a directory called resources which i
believe is the classpath root directory..
I just want to (slarp "resources/myfile.txt") , This doesnt work. How do i
specify the path properly such that i will always work even after i uberjar
or uberwar ?
thanks
josh
yes exactly! In the commit that github shows last line 238 is line 244
in my current branch...Since you're looking into it i can commit
everything now so we're all on the same page...
Jim
On 20/01/13 21:10, AtKaaZ wrote:
is this line 244?
https://github.com/jimpil/Clondie24/blob/master/src/Cl
On a separate note, if there are indeed "tons of bugs when it comes to
cross-browser compatibility" in ClojureScript, pointing (as many as
possible of) them out would be extremely helpful, indeed more than
submitting the actual patches. That would also not require going
through the patch submission
Clojure and contrib have long had extremely thorough CI in place,
including matrix testing with multiple JVM implementations:
http://build.clojure.org/
Cheers,
M.
On 20 January 2013 22:04, Brandon Bloom wrote:
> I think the inflammatory thread subject didn't help...
>
> Java and cross-browser
On Jan 18, 2013, at 07:04, Brian Marick wrote:
> On Jan 18, 2013, at 8:46 AM, Reginald Choudari
> wrote:
>
>> I am looking for a new Clojure book to get me started on the language.
>
> Here's a beginning Clojure reading list, with some discussion:
> http://regretful.ly/clojure/2013/01/16/begin
On Sun, Jan 20, 2013 at 12:13 PM, Zbigniew Łukasiak wrote:
> I have not seen something like that in Clojure - so as my first coding
> excercise in Clojure I've started porting my Perl library.
>
> https://github.com/zby/ring-form-authentication
>
> Quoting the README:
>
> It lets you quickly add t
There currently is such testing of patches submitted to Clojure, which I've
implemented with some Clojure programs I've cooked up. It tests all patches
attached to Clojure JIRA tickets to see if they apply cleanly and whether the
code compiles and passes existing unit tests. I've been periodic
Hi,
I've created that ticked and the initial implementation. Currently I don't
have a spare time to prepare a jsperf test, sorry for that.
In the ClojureScript, the performance gain is by skiping fromArray
(directly create instance instead) and nth (in destructuring, directly
access underlying
On Sun, Jan 20, 2013 at 3:27 AM, Simon Brooke wrote:
> So I'm looking around at what is the right stack to use to build a CRUD web
> application in Compojure.
>
> I really like Enlive, with its very clear separation of logic and
> presentation. Are there any other libraries I should be looking at
is this line 244?
https://github.com/jimpil/Clondie24/blob/master/src/Clondie24/games/chess.clj#L238
On Sun, Jan 20, 2013 at 7:58 PM, Jim - FooBar(); wrote:
> Hi everyone,
>
> I came back to a project of mine after a couple of months only to be
> surprised by some cryptic exception! Imagine a 2d
I think the inflammatory thread subject didn't help...
Java and cross-browser CI both sound great. I don't know if Clojure/core
already has CI or what, but maybe you should take these ideas over to
another thread? Possibly on the Dev mailing list. Because of the
intentionally slow pace of Cloju
I just wanted to mention that pull request was one of the several notes I've
made, but looks like it's being irritating enough people that it completely
took over this thread. The problem itself is not a JIRA or that sending patches
is too hard (even though I think it's too much incidental compl
I second this. Optimizations should be backed by evidence.
Further, the tail in PersistentVector seems to serve a similar role, at a
high level, as ArrayMap does for maps, so it would be slightly surprising
to me if this would have much effect.
Phil
On Jan 20, 2013 8:07 PM, "David Nolen" wrote:
yes of course, I noticed your comment and I 'm not saying otherwise but
on the other hand I can't help it...this got me excited!
Jim
On 20/01/13 20:07, David Nolen wrote:
I think we would need to see more comprehensive benchmarks before we
can come to any conclusions.
On Sun, Jan 20, 2013 a
I have not seen something like that in Clojure - so as my first coding
excercise in Clojure I've started porting my Perl library.
https://github.com/zby/ring-form-authentication
Quoting the README:
It lets you quickly add to your application "/login" and "/logout" pages
pluss all the redirects
I think we would need to see more comprehensive benchmarks before we can
come to any conclusions.
On Sun, Jan 20, 2013 at 2:03 PM, Jim - FooBar(); wrote:
> I've recently noticed this: http://dev.clojure.org/jira/browse/CLJS-453
>
> It is for cljs but it makes sense right?
> We do have them for
I've recently noticed this: http://dev.clojure.org/jira/browse/CLJS-453
It is for cljs but it makes sense right?
We do have them for maps - how hard can it be to make them for small
vectors as well? In fact I'm surprised we don't have them already but
perhaps I'm missing crucial details... dest
I just noticed that mustachquerade has a nice perf benchmark on
various Mustache implementations:
https://github.com/davidsantiago/mustachequerade
Shantanu
On Jan 21, 12:03 am, Nelson Morris wrote:
> On Sun, Jan 20, 2013 at 8:55 AM, Shantanu Kumar
>
>
>
>
>
>
>
>
>
> wrote:
> >> I really like
On Sun, Jan 20, 2013 at 8:55 AM, Shantanu Kumar
wrote:
>> I really like Enlive, with its very clear separation of logic and
>> presentation. Are there any other libraries I should be looking at at the
>> templating layer, or is Enlive currently the one to go for?
>
> Enlive and Hiccup seem to be p
Hi everyone,
I came back to a project of mine after a couple of months only to be
surprised by some cryptic exception! Imagine a 2d vector:
(def coords [[0 0] [0 1] [1 0] [1 1]]) ;;vector of vectors of longs
;;but let's try ints which are cached:
(def coords
(mapv #(apply vector-of :int %
On Sunday, January 20, 2013 11:33:56 AM UTC-6, Fogus wrote:
>
>
>
>> To make matters worse, Clojure/core consistently avoids discussing these
>> issues in public
>>
>
> I would guess because their position hasn't changed since the last time.
> This is only speculation. A page like what Anth
> I'm sorry but given Clojure/core's track record of *actions* (or lack of
> them, rather) this
> sounds a bit offensive to people who are not Clojure/core members, Clojure
> committers or "screeners".
>
Adding source annotations to a Github project's source base and starting an
IRC channel have n
On Sunday, January 20, 2013 10:22:04 AM UTC-6, Fogus wrote:
>
>> Please don't ask people to not rehash this discussion. Don't tell them
>> that it is a 'weak reason' for not contributing and 'not worth fighting
>> over'.
>>
>
> Well, that's only my opinion. I happen to think it's not worth figh
2013/1/20 Michael Fogus
> We're all friends here. Everyone wants to help. There are ways to
> help that do not involve endless mailing list threads and personal
> distaste of process.
>
Michael,
I'm sorry but given Clojure/core's track record of *actions* (or lack of
them, rather) this
sounds
>
>
> Please don't ask people to not rehash this discussion. Don't tell them
> that it is a 'weak reason' for not contributing and 'not worth fighting
> over'.
>
Well, that's only my opinion. I happen to think it's not worth fighting
over so I don't. Rich has put in place a system he's happy wit
It makes more sense to compare language projects. I note that ClojureScript
does about as well as Scala in this comparison and much better than
CoffeeScript. Scala and CoffeeScript use pull requests.
I also do not like JIRA. But I think the happiness of contributing to
ClojureScript far outweighs
On Sunday, January 20, 2013 9:16:35 AM UTC-6, Fogus wrote:
> I'll just add a few points:
>
> Pull requests are not likely to happen. It's not worth fighting over.
> However, I think that is a weak excuse for not contributing. If you
> want to contribute a complex bug fix, then the patch proc
Well said, Fogus, well said.
On Sunday, January 20, 2013 9:16:35 PM UTC+6, Fogus wrote:
>
> I'll just add a few points:
>
> Pull requests are not likely to happen. It's not worth fighting over.
> However, I think that is a weak excuse for not contributing. If you
> want to contribute a compl
Thanks Shantanu Kumar for your post - very informative.
On Sunday, January 20, 2013 9:18:37 PM UTC+6, Mimmo Cosenza wrote:
>
>
>
> Enlive and Hiccup seem to be popular in the Clojure community.
>
>
> I confirm that I use them on the server side. I'm now experimenting the
> corresponding enfocus
Enlive and Hiccup seem to be popular in the Clojure community.
I confirm that I use them on the server side. I'm now experimenting the
corresponding enfocus [1] and hiccups [9] on the client-side, where I use
also domina. I'll give also a try to dommy [3], which seems to be
promising, even
I'll just add a few points:
Pull requests are not likely to happen. It's not worth fighting over.
However, I think that is a weak excuse for not contributing. If you
want to contribute a complex bug fix, then the patch process is
trivial by comparison. If you want to contribute doc fixes and t
> I really like Enlive, with its very clear separation of logic and
> presentation. Are there any other libraries I should be looking at at the
> templating layer, or is Enlive currently the one to go for?
Enlive and Hiccup seem to be popular in the Clojure community. There
are also ClojureScript
FWIW,
I just updated the latest tutorial (11th) of modern-cljs series of tutorials on
clojurescript with some more code on DOM events and manipulations using domina
(which has very inspiring code - thanks Luke) and hiccups (thanks Tero).
https://github.com/magomimmo/modern-cljs/blob/master/doc/
2013/1/20 Aaron Cohen
> Clojure is hardly the only project that doesn't accept pull requests. The
> Linux Kernel and Guava are two that immediately come to mind. For Guava's
> rationale, you might read the following:
> https://plus.google.com/113026104107031516488/posts/ZRdtjTL1MpM Their
> reason
Hi Simon;
Because we are in 2013, you could do alot of clientside templating on the
client.
So your clojure(ring/compojure) backend becomes a service for producing and
consuming json. Then you use one of the many clientside javascript
solutions to convert the json into html(or something like tha
I've finally cleared other projects from my desk far enough that I'm about
to start trying to reimplement the CRUD part of http://sh.scenehere.info/ in
Clojure. I've been meaning to do this for a long time, but paying projects
have got in the way. However, it's now urgent because my old
Jacquar
Perhaps a bit too specialised, but there is a good example for
hadoopers here:
https://groups.google.com/forum/?fromgroups=#!topic/cascading-user/i3b4KZsusVg
Paco Nathan rewrote the CoPA examples from his cascading work in Cascalog.
cheers,
Bruce
--
@otfrom | CTO & co-founder @MastodonC | mastod
On Saturday, January 19, 2013 8:56:28 PM UTC+1, Andy Fingerhut wrote:
>
> Irakli:
>
> I am curious about the possibility of auto-creating patches from git pull
> requests, in case that would bridge the divide between people that would
> prefer submitting pull requests, and Clojure screeners tha
There are 176 forks on GitHub. Even assuming that all 51 contributors have
a public fork (most probably do), that's 125 potential contributors
unaccounted for. Only 29% of those forks account for an accepted
contribution. What portion of the remainder might have been contributors?
I was curious
Tested this with Lein 2.0.0 and it works fine now. Thanks everybody for the
quick response.
Thomas
On Friday, January 18, 2013 9:45:41 PM UTC, Andy Fingerhut wrote:
>
> Thanks, Chas. Sorry for the noise.
>
> I tested Thomas's bad case against the latest reply (version 0.1.8)
> standalone, and
Oops, repeated posts in the middle of a connection drop. Apologies.
On Sunday, January 20, 2013 2:35:16 PM UTC+6, kinleyd wrote:
>
> I join Peter Taoussanis in congratulating and thanking Phil on this
> release. Thanks for the hard work you put in, and for making life saner for
> the rest of us.
I join Peter Taoussanis in congratulating and thanking Phil on this
release. Thanks for the hard work you put in, and for making life saner for
the rest of us.
On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote:
>
> Hey, congratulations!
>
> Thank you so much Phil and everyone
I join Peter Taoussanis in congratulating and thanking Phil on this
release. Thanks for the hard work you put in, and for making life saner for
the rest of us.
On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote:
>
> Hey, congratulations!
>
> Thank you so much Phil and everyone
I join Peter Taoussanis in congratulating and thanking Phil on this
release. Thanks for the hard work you put in, and for making life saner for
the rest of us.
On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote:
>
> Hey, congratulations!
>
> Thank you so much Phil and everyone
61 matches
Mail list logo