Thank you both for your help! That was so quick! Jeb's solution worked like
a charm, and now I can finally advance to the next exercise.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.co
I am supposed to make my own filter function without using "remove". I have
this made, but it is not working like it should be working. I don't have
any idea what is wrong with it. Please help me out. For example, if I give
the function the parameters odd? and [1 2 3 4]. It only returns (1), but
There is a Clojure static site generator, Misaki:
http://liquidz.github.io/misaki/
Which has a bunch of nice features including swappable templates, although
the non-standard ones need a little love.
Chris
On 22 July 2013 07:12, Keith Irwin wrote:
> On Jul 21, 2013, at 10:01 PM, Colin Flemin
Hi,
At Planspot.com we're migrating some old code to Clojure and writing most
new backend code in it. So far that is some API components for recording
and serving statistical data and the backend of a contact aggregation,
enrichment and management system.
Cheers,
Chris
On 11 June 2013 20:08,
Hi Andrew,
I have been working on a maven build that installs jogl 2.0 jars into .m2
repo. Its not complete yet as it only installs dependencies for
win32/amd64. But adding other platforms should be easy. You will need to
install the 7z plugin and the 7z binding project on my github to make it
wor
Hi Andrew,
I have been working on a maven build that installs jogl 2.0 jars into .m2
repo. Its not complete yet as it only installs dependencies for
win32/amd64. But adding other platforms should be easy. You will need to
install the 7z plugin and the 7z binding project on my github to make it
wor
I found a performance-optimized Sobel edge detection library on pastebin
here: http://pastebin.com/auqEvM7J
There's no indication of who owns it or license terms. I'd like to use it.
Does someone here know whose this is?
--
You received this message because you are subscribed to the Google
Gro
On 8/10/12 5:21 AM, john wrote:
Hello,
I am just trying to understand the best practices in "ClojureScript One".
One thing that strikes me is that most html gets put (with the help of
macros using enlive) in the actual cljs page.
As someone who hasn't done web-applications for years I myself
Hi,
The behaviour of resolve for named functions seems pretty clear to me:
(resolve 'xyz)
returns nil (when xyz has not been defined).
and
(defn xyz [x] 1)
(resolve 'xyz)
returns #'user/xyz (when xyz is defined)
However if I try to define types:
(defprotocol Named
(fullName [Named]))
It means to use the server version of JVM
On Dec 15, 2011, at 11:48 PM, jayvandal wrote:
> I was looking at the installation in "Learning clojure" and the batch
> file had this statement:
>
> java -server -cp .;%CLOJURE_JAR% clojure.main
>
> why is the "server" in the line and what is it
I've looked at this a bit this afternoon in both clojure and groovy.
I couldn't come up with an interesting way to solve the problem.
In both cases I end up take the numbers into a list/vector of digits, and
solving it that way. It works, but boring. :)
I figure I'll ponder on it some more.
On
Wouldn't a set of standard entries in a lein project file be sufficient for a
beginner?
I’m not sure that Clojure needs something as packaged as the Haskell Platform
(http://hackage.haskell.org/platform/), and it certainly should not be part of
core.
On 19/09/2011, at 4:33 PM, Stuart Hallowa
look at https://github.com/ztellman/aleph
it supprorts async, websocket, server side and client side, plus has
redis support.
very happy with it.
On Fri, Sep 2, 2011 at 2:20 PM, billh2233 wrote:
> Is there a clojure-based webserver that uses non-blocking IO like
> Node.js, or any effort like tha
Update: CQL does in fact support self-joins. An example of the correct
syntax is here: http://pastie.org/2356343
--
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 mem
for java, I use google guava quite a bit. (formerly known as google
collections).
http://code.google.com/p/guava-libraries/
there is quite a bit of FPish things in it.
On Fri, Jul 29, 2011 at 9:49 PM, Jeff Heon wrote:
> In the vein of FP for Java programmers, these two libraries might be
> of i
You use js* like here
https://gist.github.com/1098417
See how jquery is being pulled in
On Jul 24, 2011, at 12:35 PM, Jack Moffitt wrote:
> I'm exploring clojurescript and wondering how to use an external
> library? In my particular case, I was trying to use Soy from Closure
> Templates.
>
>
Given that google closure library has a fairly decent size UI elements, and the
pitch about how clojurescript makes google closure usable for mortals. I think
that's probably where it will start.
On Jul 24, 2011, at 1:15 PM, Frank Gerhardt
wrote:
...
> expect that story to be completely done.
I'm still using https://github.com/mmcgrana/clj-json with 1.2, it's
worth a try though, since
it's just a wrapper for jackson.
On Fri, Jul 22, 2011 at 5:05 PM, Islon Scherer wrote:
> Is there a clojure json library that works in clojure 1.3?
> I tried danlarkin/clojure-json but it gives me error:
No I don't think so. Clojurescript doesn't have java libs, so your swing
calls will nit work
On Jul 22, 2011 1:49 PM, "Vincent" wrote:
> that means , if i write a clojure program using javax.swing to build
windows
> based appl. manipulating database at backend ( all written in clojure)
> , this wi
SQL allows for self-joins of the form
SELECT e.first_name AS 'Employee FN', e.last_name AS 'Employee LN',
m.first_name AS 'Manager FN', m.last_name AS 'Manager LN'
FROM employees AS e LEFT OUTER JOIN employees AS m
ON e.manager =m.id
I can't determine a syntax for the same in ClojureQL. The limit
For redis, aleph's lib is worth trying too. I've had good luck
with it.
http://ztellman.github.com/aleph/aleph.redis-api.html
I believe it's used in production at runa. Zachary Tellman has done a
great job with aleph/lamina and friends.
--
You received this message because you are subscribed t
I’ve found the MongoDB integration to Clojure to be really good for most of
what I wanted for my app. With the Congomongo driver, you very strongly tick
off the first two points, but I don’t think it will go so well with your other
constraints.
Mongo explicitly excludes transactions
(http://ww
FYI, here is how to add jar deps in gradle for local files, either as
a file or a dir of files
http://stackoverflow.com/questions/2572811/gradle-make-a-3rd-party-jar-available-to-local-gradle-repository
and getting started is at https://bitbucket.org/kotarak/clojuresque/wiki/Home
while the tutor
I recommend gradle clojuresque. Our clojure code deploys to WAR. so it's
always AOTed.
but we use features 2,3,4,5 on your list easily. the project has
java, clojure and
groovy code. it just works.
On Sun, Jul 3, 2011 at 3:57 PM, Konrad Hinsen
wrote:
> I am looking for a build tool that fulfill
I use -?> quite often.
On Mon, Apr 18, 2011 at 11:47 AM, Laurent PETIT wrote:
> Hello,
>
> The -?> and -?>> macros are currently inside "old", "soon to be
> deprecated" clojure contrib.
>
> They have proven useful to me a number of times, and I personnally
> wouldn't see them stay in the soon "de
Now that 1.2.1 is released, will clojure.org download be updated too?
Or is this a release we should only consume via mvn repo?
Thanks
--
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
Since you want a graph db with search, and you want to use it with clojure
which means at least a decent java API.
I recommend you check out
http://neo4j.org/
It's a graph db with search ability, and has a very good java API.
--
You received this message because you are subscribed to the Goog
I like to suggest
clj-json https://github.com/mmcgrana/clj-json
a fast JSON encoder/decoder that uses jackson.
clojuresque https://bitbucket.org/kotarak/clojuresque/src
clojure plugin for gradle (a very good build system)
clj-time https://github.com/getwoven/clj-time
clojure binding for jodatime
ah, it looks like clojars doesn't show older version in the search result.
On Thu, Feb 10, 2011 at 1:56 AM, Meikel Brandmeyer wrote:
> Hi,
>
> On 10 Feb., 07:42, Wilson MacGyver wrote:
>
>> Is vimclojure/server 2.2.0 in clojar?
>
> Yes. http://clojars.org/repo/v
Is vimclojure/server 2.2.0 in clojar?
I searched and all I saw are
http://clojars.org/vimclojure/server which is 2.3.0-SNAPSHOT
On Wed, Feb 9, 2011 at 7:38 AM, Meikel Brandmeyer wrote:
> Hi,
>
> On 9 Feb., 11:38, Wolodja Wentland wrote:
>
>> [vimclojure/server "2.3.0-SNAPSHOT"]
>
> As
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 th
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
easiest way to do this is, Go to Run-> Edit Configuration.
under clojure script, you'll see options for VM parameters, and a checkbox
on "run script in REPL".
the plugin is actively being developed. in fact, it has been rewritten in
clojure.
Most recent release was on Dec 29th
http://plugins.in
give apache cxf a shot
http://cxf.apache.org/
On Wed, Dec 29, 2010 at 11:55 AM, Sean Devlin wrote:
> Anyone know of a good soap client for Java?
--
Omnem crede diem tibi diluxisse supremum.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post
you may want to also post this on the jetbrains la clojure forum
http://devnet.jetbrains.net/community/idea/clojure?view=discussions
On Wed, Dec 15, 2010 at 12:00 AM, HiHeelHottie wrote:
>
> I'm using IntelliJ Idea 10 with the La Closure plugin version 0.3.15
> and Java 6 I've added Clojure 1.2
I can only reproduce this using 1.2 release.
under 1.3 master. I get
user=> (- 0 -9223372036854775808)
ArithmeticException integer overflow
clojure.lang.Numbers.throwIntOverflow (Numbers.java:1575)
On Sun, Dec 12, 2010 at 9:00 PM, James Koppel wrote:
> user> (- 0 -9223372036854775808)
> -92233
Foreign function interface. To call
C/C++ libs.
On Dec 10, 2010, at 6:52 PM, javajosh wrote:
> What is FFI?
>
> On Dec 9, 10:47 pm, Ken Wesson wrote:
>> On Fri, Dec 10, 2010 at 12:43 AM, javajosh wrote:
>>> It does beg the question, though: what is a reasonable bare minimum
>>> function set
I highly recommend jedis for redis java lib. It supports connection
pooling, pub/sub.
and works with the 2.0 protocol.
https://github.com/xetorthio/jedis
Any reason why you want to use both memcached and redis at the same time?
redis is basically memcached++, with collection/queue support as valu
On Tue, Nov 23, 2010 at 5:34 AM, LauJensen wrote:
> And finally, I've just refurbished the compiler so that its not a
> 25 line beast of a recursive machine that automatically spawns
> subselects for aggregates, limit/offset and predicates:
>
> cql.core> (to-sql (-> (table {} :users)
>
In guava, there is an immutable version of bimap.
http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/ImmutableBiMap.html
On Fri, Nov 19, 2010 at 3:24 AM, Christophe Grand wrote:
> One call away but rarely persistent or even immutable.
>
> On Fri, Nov 19, 2010 at 4:
Actually if you want to use java lib. Look at guava, formerly known as google
collection. It's one of my fav java lib.
http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/BiMap.html
On Nov 18, 2010, at 10:55 PM, Sunil S Nandihalli
wrote:
> awesome.. :) i keep for
On Tue, Nov 2, 2010 at 12:49 PM, Luke VanderHart
wrote:
> fanvie, two comments:
> 2. You don't need 99% of the special crap that Spring/Grails gives
> you. Clojure's abstractions are smaller, yes, but the're just as
> powerful, and give you more control, in a more standardized way, then
> Spring d
uses and does dependency
> management better than Maven does.
>
> http://ant.apache.org/ivy/
> http://ant.apache.org/ivy/features.html
>
> Thanks,
>
> Luke
>
> On Oct 19, 12:12 pm, Rich Hickey wrote:
>> On Oct 19, 12:04 pm, Wilson MacGyver wrote:
>>
>
How should we as users consume the libs under the new umbrella? Is it fair
to assume that most of these would be also uploaded by the creator into
clojars as new versions become available, thus using build tools like
mvn, gradle, lein,
etc to "pull them in" as we need them?
since I assume we are m
at 3:13 AM, Meikel Brandmeyer wrote:
> Hi,
>
> On 6 Okt., 17:31, Wilson MacGyver wrote:
>
>> If the STOMP support happens with nREPL as Rich was pushing for,
>> you'd have the windows solution. There are plenty of STOMP client
>> that works on windows.
>
&
On Wed, Oct 6, 2010 at 11:04 AM, Meikel Brandmeyer wrote:
> The future will probably be nREPL which was started recently by Chas
> Emerick. It will provide a common backend server for all
> (participating) IDEs. One main problem is - surprise - Windows. I have
> no simple solution to just pipe inp
I use REPL quite a bit. Especially if I'm quickly trying to throw
something together.
I'd use vimclojure and REPL.
In intelliJ, I use REPL for brain storm and testing.
On Mon, Sep 27, 2010 at 3:14 PM, Christian Guimaraes
wrote:
> It's a noob question... I know
>
> But in my studies I use REP
e it's exactly a requirement for an acceptable Clojure variant.
>
> Timothy Baldridge
>
> [1] http://www.software-lab.de/radical.pdf
>
>
>
> On Thu, Sep 23, 2010 at 9:27 AM, Wilson MacGyver wrote:
>> On xbox, you can't alter running code in memory, wh
On xbox, you can't alter running code in memory, which means JIT basically
doesn't work. So imagine you are running java code on JVM in interpreted mode,
it's too slow for any serious game.
This is a common issue in most game consoles.
--
You received this message because you are subscribed to
Check out http://kotka.de/blog/2010/03/The_Rule_of_Three.html for a very
flexible implementation of memoiz
On Sep 18, 2010 1:40 PM, "Sean Corfield" wrote:
Working in the web dev world, I'm fairly used to systems offering ways
to cache data for a period of time to improve performance - to reduce
I highly recommend using redis for this. There is even a clojure redis client.
http://github.com/ragnard/redis-clojure
On Fri, Sep 17, 2010 at 9:00 PM, David McNeil wrote:
> Is there a disk-backed memoize available? I have an application where
> I would like the cache of values to survive resta
On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer wrote:
> On Thu, 9 Sep 2010 11:30:51 -0400
>> Now it's true that there are some overhead to make sure your webapp produce
>> a war file and can be deployed to ANY containers. It's not 3/1/0 as you
>> claimed.
>
> A) I didn't claim I could do this with w
How are you going to handle session? How are you going to handle
database from a echo script?
I mean, I can counter by just create a hello.html in apache
and put "hello world" in there. It's 1 line, 0 to deploy. And it's FAST.
It's even cached and uses no cpu time being served.
that doesn't reall
I'm not sure what your point is. If I want to write a hello world php
script on a unix
system, but apache and mod_php weren't setup. I'd first have to install them
and configure them.
This is only easy these days because most linux come with apache installed,
php installed, mod_php preconfigured f
I'm not sure what your point is. If I want to write a hello world php
script on a unix
system, but apache and mod_php weren't setup. I'd first have to install them
and configure them.
This is only easy these days because most linux come with apache installed,
php installed, mod_php preconfigured f
I figure enough time has passed that I want to bring this up again.
For JSON, are you using clojure.contrib.json or clj-json? Why?
Thanks
--
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
N
If by processing image you mean like resizing, etc. I use jmagick
http://www.jmagick.org/index.html
On Sep 6, 2010, at 5:57 PM, Robert McIntyre wrote:
> I was wondering if anyone has used clojure for image/video processing
> and how that has worked out.
--
You received this message because yo
For me, I'm using compojure/ring mostly for building web services.
I use html whenever I need some simple html templates. But since it's
a web service, I use XML and JSON far more often.
So in the end, compojure/ring just serves as a way to invoke the functions
to get output. There isn't AJAX roun
I too was very excited till I found out the date. I'm giving a talk on riak in
Detroit on that Saturday.
Maybe next year.
--
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 f
I highly recommend "Joy of Clojure". It's a good "2nd book on clojure".
It shows you the "why things are the way they are", and how to
do things the clojure way as much as possible.
On Thu, Sep 2, 2010 at 9:29 PM, HB wrote:
> Hey,
> I finished reading "Programming Clojure" and "Practical Clojure"
if you must dynamic load it. you can do it from a file and
use the clojure runtime
import clojure.lang.RT;
import clojure.lang.Var;
full code example at
http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java
On Wed, Sep 1, 2010 at 10:51 PM, Sean Corfield
On Wed, Sep 1, 2010 at 10:46 PM, Sean Corfield wrote:
> (so the underlying question is: what's the raw Servlet implementation
> that folks use to power Clojure-based web apps on containers other
> than Jetty?)
I use ring.util.servlet, and gen-class to create a servlet.
I wrote something up on th
On Sun, Aug 22, 2010 at 2:39 PM, Isaac Gouy wrote:
> 2) How can I AOT compile Clojure files without using the REPL?
on this point, I think most people use build tools to do it.
gradle with clojuresque plugin, lein and mvn with clojure plugin will
all do this.
--
Omnem crede diem tibi diluxisse
you'd import semantic.hello
then in your java code, you
would first create it by doing new semantic.hello()
then you can call it form java by doing
.sayhello() without the -
you also need to define your sayhello differently I think.
it needs to be (defn -sayhello [this] (println "Hello from
cl
It's clojure's STM(Software Transaction Memory). More info at
http://clojure.org/concurrent_programming
On Aug 15, 2010, at 11:26 PM, HB wrote:
> Hey,
> I don't understand what "references" are.
> (ref #{})
> This creates a reference to an empty set but what is "reference" any
> way?
> Thanks f
This still requires JDK installed right? On the OSX version, does it
create DMG file?
Since for an end user OSX app, that's what people expect.
On turning jars into .exe on windows, have you looked at jsmooth?
http://jsmooth.sourceforge.net/index.php
On Sun, Aug 15, 2010 at 11:51 AM, mac wrote:
I realize that. I was pondering why I don't run into the the 2nd problem.
In your code, how many files/name spaces are you creating?
And how many lines of code are in each file? I'm curious how you
organize your code.
On Aug 14, 2010, at 12:39 AM, Eric Lavigne wrote:
.
>
> I discussed two prob
I rarely run into this. The few times I have, I just do
(def g) ;creates a var g that is unbound
(defn f []
(g)) ;ok
(defn g [] ;f will call this
nil)
as shown by Rich at
http://markmail.org/message/vuzvdr4xyxx53hwr#query:+page:1+mid:tzsd3k6tvvc4ahoq+state:results
On Fri, Aug 13,
On Fri, Aug 13, 2010 at 4:51 PM, Brian Carper wrote:
> But there are some good OpenGL 2D game engines for Java, e.g.
> Slick[1]. There's also Penumbra[2] which nicely wraps LWJGL for
> Clojure. I ask this mostly because I'm making my own 2D game and
> somewhat torn between Java2D and OpenGL. Pe
Paradigms of artificial intelligence programming: case studies in Common LISP
By Peter Norvig has a full chapter on this (ch18),
complete with code in Common LISP.
his "Artificial Intelligence: A Modern Approach" is also a good book
if you are interested in game AI. 3rd edition just came out recen
I assumed he didn't use OpenGL because it's a 2d tile game?
Using OpenGL for 2d or 2.5d (isometric) is really only a good idea
if you can assume the target has hardware OpenGL acceleration.
Even then you may not want to do that, due to battery concerns.
On Fri, Aug 13, 2010 at 2:06 PM, Brian Carp
you can do this using partition.
let's assume I first define a
user=> (def a [:w :n :e :s])
#'user/a
user=> (partition 2 1 (conj a (first a)))
((:w :n) (:n :e) (:e :s) (:s :w))
gives you the pairs you need.
then you just need to turn it into hash-map
by doing
(map #(apply hash-map %) (partit
can you compile the groovy script to .class via groovyc? then you can
use the groovy code within clojure via java interop.
On Thu, Aug 5, 2010 at 2:33 PM, Chris Goellner wrote:
> Hello all, long time listener first time caller.
>
> I've got a situation where I'm trying to apply some Groovy code
>
as Rich Hickey stated
question: Is it fundamentally impossible to do TCO on JVM due to
current JVM lack of primitives to do so? Would TCO ever be possible on
the JVM without a new JVM design?
rhickey: TCO is easy if you are an interpreter - see SISC Scheme.
Using Java's call stack, the JVM would h
you have to partition it first.
user=> (partition 2 [1 2 3 4 5 6 7 8])
((1 2) (3 4) (5 6) (7 8))
let's say we want to add the numbers.
user=> (map #(apply + %) (partition 2 [1 2 3 4 5 6 7 8]))
(3 7 11 15)
On Wed, Jul 21, 2010 at 10:20 PM, Glen Rubin wrote:
> Hi! I want to process a collect
1 word. JVM.
the amount of java libs to be tapped is amazing. My experience with
haskell libs has been mixed bag.
In the case of clojure, XML parsing, database connection,
kicking up a web server, natural language parsing.
"There is a Jar for that"
OTH, there are situations where we can't use JV
It's in contrib.seq-utils
http://richhickey.github.com/clojure-contrib/seq-utils-api.html#clojure.contrib.seq-utils/indexed
On Jul 17, 2010, at 1:41 PM, David Cabana wrote:
> I tried to run Jame's code, but the compiler (1.2 beta) squawked at me:
> Unable to resolve symbol: indexed in this con
there is already http://www.try-clojure.org
though it's not an applet.
On Wed, Jul 14, 2010 at 11:26 AM, Paul Richards wrote:
> Does there exist a Java applet on the web which just presents an
> interactive Clojure REPL prompt?
>
> It would be a nice way to tinker with Clojure without downloading
We use gradle and clojuresque to do this. Our code has java, groovy
And clojure. It works very well for us.
On Wednesday, July 14, 2010, Martin DeMello wrote:
> What are people using to build mixed clojure/java code? Currently just
> using lein {uber,}jar to build and distribute.
>
> martin
>
> -
Has anyone used clojure.contrib.Datalog for anything serious? What
kind of problem
did you run into if any?
What is the performance like? Is there a sweet spot beyond that it's completely
in memory only?
Thanks,
--
Omnem crede diem tibi diluxisse supremum.
--
You received this message because
thank you!
On Thu, Jul 8, 2010 at 3:09 PM, David Nolen wrote:
> On Thu, Jul 8, 2010 at 3:02 PM, Wilson MacGyver wrote:
>>
>> for the hello world test, you are using the helloworld from
>> front page of node.js at http://nodejs.org/
>> right?
>>
>> how did
for the hello world test, you are using the helloworld from
front page of node.js at http://nodejs.org/
right?
how did you setup the clojure one?
was it what you posted before?
(defn hello-world [request]
(future
(Thread/sleep 1)
(respond! request
{:status 200
On Tue, Jul 6, 2010 at 2:36 PM, Greg wrote:
> On Jul 6, 2010, at 2:26 PM, Wilson MacGyver wrote:
>
>> On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway
>> wrote:
>>> In my experience, unneeded versatility == support headache.
>>
>> I couldn't agree m
On Tue, Jul 6, 2010 at 2:01 PM, Stuart Halloway
wrote:
> In my experience, unneeded versatility == support headache.
I couldn't agree more. I'm happy to see selection of what goes into
core and contrib has
become more selective.
--
Omnem crede diem tibi diluxisse supremum.
--
You received th
my story isn't a very interesting one. I simply told everyone on the team to
learn it, because we are going to use it :)
On Tue, Jul 6, 2010 at 4:50 AM, Nick Mudge wrote:
> One of the things I like about Clojure is it is a way to get lisp and
> functional programming into workaday programming wor
I assume you are doing this from command line?
it's very likely your terminal is escaping non-ASCII characters
for you.
I get 27 using 1.1 and 1.2 snapshot using command line REPL
but if I run it from a source file, it's fine. and I get 9.
2010/7/1 ngocdaothanh :
> With 1.2-master-SNAPSHOT:
>
>
> I still have to re-evaluate the current versions of the IDEs to decide which
> to use in the fall, and if the recent past is prologue they may get even
> better before the semester starts.
Just want to point out that intellij's la clojure plugin works just fine with
the free opensource commun
On Jun 24, 2010, at 10:50 PM, Mark Engelberg wrote:
> When exactly did people start expecting Clojure to be as fast as Java
> and/or Scala?
>
One of the earlier talk/video, the claim was clojure is between 1x to 3x of java
performance.
Fast math performance was touched on here also
http://www
On Jun 23, 11:37 pm, Stuart Halloway
wrote:
> I can certainly see why this would be confusing! Is there a way to make it
> better without violating the expectations of someone who knows the Java API
> and expects strings to be treated as URIs?
Perhaps throwing an appropriately informative excep
On Wed, Jun 23, 2010 at 5:23 PM, James Reeves
wrote:
> 1. Have you written, or are you writing, a web application that uses
> Clojure? What does it do?
we are currently developing a game server backend using clojure.
> 2. Which libraries or frameworks are you using? Which versions?
>
we are usi
(clojure.xml/parse "test1.log")
works correctly, output omitted
(clojure.xml/parse "test#1.log")
Premature end of file.
[Thrown class org.xml.sax.SAXParseException]
$ mv test\#1.log test2.log
(clojure.xml/parse "test2.log")
works correctly, output omitted
test#1.log is a copy of test1.l
On Tue, Jun 22, 2010 at 1:43 PM, Mike Meyer
wrote:
> Would it be Clojure if it didn't run on the JVM? Personally, I could
> live without the JVM. And the more I learn about the JVM, the more I
> could live without it!
I just want to add my two cents here. I don't think we would've ever used
cloju
I noticed you are importing com.nativelibs4java.opencl
in src/clax/data.clj, looking at your project.clj I see
a dep on clax/javacl
is that where you are pulling the native lib for
OpenCL? Can you explain a bit on your approach of
getting this to work on various platforms? Esp on OSX
and Linux.
T
Other than downloading clojure and clojure.contrib itself, I'd suggest you
get the "progmraming in clojure" book by Stuart Halloway.
Book in hand, try out the examples in clojure REPL. That's good enough
to get started.
Welcome!
On Sun, Jun 20, 2010 at 3:50 AM, Martin Larsson
wrote:
> Hi!
> I'm
^ was deprecated in 1.1 as per release note below
The ^ reader macro has been deprecated as a shortcut for meta in the
hopes that it can eventually replace the #^ reader macro.
On Jun 18, 2010, at 2:20 AM, Howard Lewis Ship wrote:
> I've noticed a few issues upgrading from 1.1 to 1.2; I see tha
I have some new data that suggests there are issues inherent to pmap
and possibly other parallelism with Clojure on older Intel quad+ core
machines.
I added a noop loop to the benchmark. It looks like this:
(defn noops [n]
(when (> n 0)
(recur (- n 1
Running those in parallel is also n
> It seems very weird that my version of fac changes performance
> characteristics on my machine and not yours (OS/hardware dependent?).
> Can you tell your hardware configuration, esp. number of physical and
> logical cores?
It's an early Mac Pro with two dual-core Xeon 5150s, 5gb RAM, Mac OS
10.
ka, I ran some more tests, including partition-work and your version
of fac. I also ran some code from http://shootout.alioth.debian.org in
both C and Java.
On these 10-element sequences, partition-work seems to be a few tens
of milliseconds slower than partition-all. It does look generally
useful
Number of CPUs + 2 is what pmap uses, and I assumed the idea was to
keep all the CPUs busy in the event that one finishes before the
others. I wrote it before I did testing with npmap. Since reading your
last post, I did a bit of testing with modified versions of zpmap and
found that it isn't makin
The trouble with pmap is that it only works well with a slow function
and a short sequence. In trivial tests, it seems to be best if the
sequence has as many elements as you do cores.
I've been experimenting with things that are like pmap, but work
better in situations that I care about. I'm havin
1 - 100 of 249 matches
Mail list logo