Actually I think python style indention will over-complicate code. When
writing python style clojure you will always need to think in which clojure
with parentheses it will be transformed.
Personally I love parentheses. Imho Lisp is easy and S-expressions are
awesome :)
On Monday, February 4,
Michael Klishin writes:
> 2013/2/5 Phillip Lord
>
>> Although, it's been available for a while, this is the first release
>> that I have announced here. I'd welcome feedback.
>>
>
> Phillip,
>
> Please add dependency (artifacts) information to the README.
> Otherwise beginners won't be able to u
On 6 February 2013 05:52, John Gabriele wrote:
> On Tuesday, February 5, 2013 12:08:43 PM UTC-5, AtKaaZ wrote:
>
>> you can release that on LGPL License ?
>> does that work with the EPL of clojure ? or is it only an issue when lein
>> uberjar-ed ?
>>
>
> LGPL just means that the library itself is
This should be fine. Both EPL and LGPL are weak copyleft. Clojure code
does not need to be EPL because EPL does not force it. Likewise, Clojure
can call back to this LGPL library because, the LGPL doesn't enforce
derivative works as a whole to be LGPL (although modifications to the
tawny *would* h
John Gabriele writes:
> LGPL just means that the library itself is copyleft (if you make changes to
> it, and distribute the modified library, you've got to distribute your
> changes along with it (under the same conditions) as well).
>
> Issues of license compatibility generally only come up wh
For example, here is a product table in PostgreSQL with status as an enum:
create type product_status as enum ('InStock', 'OutOfStock');
create table product (
pidint primary key default nextval('product_pid_seq'),
skutext not null unique,
name text
Hi,
Good stuff! I was wondering how do you guys deal with "decision nodes" or
does is make sense to model such a thing at the nodel level.
Imagine having a diamond topology e.g.
N1
/\
N2aN2b
\/
N3
based on some input to N1, either N
Hi,
On Mon, Feb 4, 2013 at 12:13 PM, Paul Stadig wrote:
> On Sunday, February 3, 2013 9:56:49 PM UTC-5, puzzler wrote:
>>
>> In these examples, the map/record is freshly created each time through
>> the loop, so caching should not be a factor.
>>
>
> Good point. So maybe it's not the caching :).
Hi
On Mon, Feb 4, 2013 at 2:29 PM, AtKaaZ wrote:
> => (class {:x "a" :y 3})
> clojure.lang.Persistent*Array*Map
> => (def m {:x "a" :y 3})
> #'runtime.q/m
> => (class m)
> clojure.lang.Persistent*Hash*Map
>
huh? that one I can't explain, I'll have to do some research.
=> (def m (let [] {:x "a"
Thanks. I did look at the (incomplete) C version, and will take another
closer look before deciding what route to take, but I suspect
an Obj-C/Cocoa version would have different enough requirements to warrant
a new start, or at least a significant re-write.
Cheers,
Matthew.
On Wednesday, Febr
On Feb 6, 11:42 am, Sean Corfield wrote:
> Andy's right on process... but as maintainer of clojure.java.jdbc, I
> have to ask: why on earth do you have column names containing spaces
> or & or other weird characters? That's a serious question: how do you
> get into that situation?
JDBC is an in
Is there dependencies plugin for leiningen ?
I need to download all dependencies so I can copy my project to a server.
( I can't run leiningen on server ).
mvn dependency:copy-dependencies
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To p
lein deps?
Am Mittwoch, 6. Februar 2013 12:41:03 UTC+1 schrieb Maris:
>
>
> Is there dependencies plugin for leiningen ?
>
> I need to download all dependencies so I can copy my project to a server.
> ( I can't run leiningen on server ).
>
> mvn dependency:copy-dependencies
>
--
--
You recei
I wrote this recently to copy your dependencies to a specific directory in
your project:
https://github.com/djpowell/lein-libdir
Or you could just use lein-uberjar?
Or lein-tar to bundle everything up?
--
Dave
On Wed, Feb 6, 2013 at 11:41 AM, Maris wrote:
>
> Is there dependencies plugin f
Use lein pom - to generate pom.xml and use mvn dependency:copy-depencies :)
On Wednesday, February 6, 2013 12:41:03 PM UTC+1, Maris wrote:
>
>
> Is there dependencies plugin for leiningen ?
>
> I need to download all dependencies so I can copy my project to a server.
> ( I can't run leiningen
Hmmm... sounds like you might want to take a look at the latest development
version core.matrix:
https://github.com/clojure-numerics/core.matrix
You can construct nested vectors of arbitrary shape, e.g.
(new-array 2 3 4 5)
This creates a new 4-dimensional 2x3x4x5 matrix. core.matrix supports
Hi. Thank you.
On Wed, Feb 6, 2013 at 10:50 AM, Christophe Grand wrote:
> Hi
>
> On Mon, Feb 4, 2013 at 2:29 PM, AtKaaZ wrote:
>
>> => (class {:x "a" :y 3})
>> clojure.lang.Persistent*Array*Map
>> => (def m {:x "a" :y 3})
>> #'runtime.q/m
>> => (class m)
>> clojure.lang.Persistent*Hash*Map
>>
2013/2/6 Christophe Grand
> Hi
>
> On Mon, Feb 4, 2013 at 2:29 PM, AtKaaZ wrote:
>
>> => (class {:x "a" :y 3})
>> clojure.lang.Persistent*Array*Map
>> => (def m {:x "a" :y 3})
>> #'runtime.q/m
>> => (class m)
>> clojure.lang.Persistent*Hash*Map
>>
>
> huh? that one I can't explain, I'll have to
Hi Mike,
thanks for your reply...I've actually been keeping a very close eye on
core.matrix since day 1 and I have to admit I am very very tempted to
start contributing...My research is on Text-mining which as you probably
know is machine-learning on text (mainly sequence-labelling, HMM based
Neocons is a feature rich idiomatic Clojure client for the Neo4J REST API.
Release notes for 1.1.0-beta3:
http://blog.clojurewerkz.org/blog/2013/02/06/neocons-1-dot-1-0-beta3-is-released/
--
MK
http://github.com/michaelklishin
http://twitter.com/michaelklishin
--
--
You received this message
2013/2/6 Phillip Lord
> You mean "what is the name of this library as maven artifact"? Rather
> than it's dependencies.
>
Yes.
>
> I've added this to the documentation; this needs expanding anyway,
> because its poor at the moment.
>
Are you sure people will find it there if it's not in the R
I created a web app using Ring, Jetty, Enlive, Compojure.
At the end, I bundled everything together by running the command "lein
uberjar". The resulting file was 21 megs.
I scp the file to the server, then I ssh to the server. I start a "screen"
session. Inside the screen session I type :
j
I logged into my personal server (in the Rackspace cloud, what used to be
Slicehost) and blasted the CSS file with 10,000 requests. There were 0
(zero) failed requests. This is with Apache Benchmark ("ab -n 1 -c
50"). The server, Jetty, was able to serve the CSS 10,000 times, yet it
fai
I hit the app itself with Apache Benchmark. The speed is fairly bad. This
is a small app which serves everything from memory -- there is no database
to slow things down. I am aware that I made several mistakes with this app.
I had to write it in a huge hurry. I abused the Enlive template system
Currently this hangs, makes my machine quickly run out of memory and swap.
(clojure.set/intersection #{1 2} (range))
The problem seems to be that count is called on both arguments to find the
smallest set.
Finding the shortest of 2 seqs lazily shouldn't be a problem, but another
problem I can s
clojure.set/intersection is documented to work on "input sets". In Clojure,
all sets are finite. (range) is a lazy sequence, which isn't a set. You could
attempt to make a set out of it with (set (range)), but that won't work because
it will try to consume the entire unending sequence.
I wou
Hi All,
The BeJUG would like to organize a evening session on Clojure in 2013
We're looking for a speaker living/working in Belgium or willing to travel
(accommodation can be organized).
Anyone interested ?
Many Thanks in advance for the replies.
Daniel De Luca
BeJUG, Devoxx Steering Member
O
Maris writes:
> Is there dependencies plugin for leiningen ?
>
> I need to download all dependencies so I can copy my project to a server.
> ( I can't run leiningen on server ).
If you can't run Leiningen on the server you should probably use an
uberjar; it contains all your dependencies.
An
Yes, you're misunderstanding sets which, as implemented in Clojure, are
inherently finite. That 4clojure problem is all about learning how to work
with infinite sequences.
I recommend you start by building a helper function that "intersects" two
sorted infinite sequences. It doesn't already exis
I'm not to clojure/clojurescript and was wondering if anyone has taken a
crack at writing a macro that transforms callbacks into a sequence. There
is an awesome implementationion in LispyScript show here:
https://gist.github.com/santoshrajan/3715526. Thanks for help.
David
--
--
You receiv
Hi,
jayq includes something similar (nicer imho). It takes the form of a let
like construct
(let-deferred
[a (jq/ajax "http://localhost:8000/1.json";)
b (jq/ajax "http://localhost:8000/2.json";)] (do-something-with-result
(merge a b foo)))
It also supports :let and :when intermedia
I've seen that and think it's awesome. This would be used for Node.js.
I whipped this up to show what a Clojure version might look like.
Basically each body form after the first is inserted where (cb) is found in
the previous form.
; Definition
(defmacro defseq
[fn-name params & body])
; Ex
I can see the points being made, and now I'm also thinking that accepting
infinite sequences wouldn't always work, for example if the infinite
sequence wouldn't contain one of the elements of one of the other
sequences, like:
(clojure.set/intersection #{1 2} (drop 10 (range)))
And I'm not sure
Sadly, this app is suppose to go live tomorrow, so I am now limited in
terms of what sort of experiments I can do. But I'd like to re-use this
code in future projects, so I would like to figure this problem out.
Does anyone think (wrap-files) would be more reliable than
(wrap-resources)?
On
Could you try replacing the wrap-resource middleware with the
route/resources function? The latter operates in a slightly different way
to the Ring middleware, and if the Compojure route works without issue, I
might have an idea what the problem is.
i.e. your code should look like:
(defroutes app
Hi all,
I need to start a ring server from an upstart script on Ubuntu. Normally I
would use an uberjar and execute java directly, but in this case I cannot
do AOT and would like to simply run "lein ring server-headless" from my
upstart script. Even when I use "lein trampoline" I get "respawning t
> I need to start a ring server from an upstart script on Ubuntu. Normally I
> would use an uberjar and execute java directly, but in this case I cannot do
> AOT and would like to simply run "lein ring server-headless" from my upstart
> script. Even when I use "lein trampoline" I get "respawning to
Sets are stored in a very specific way that enables intersection to be fast
- proportional to the size of the smaller set.
Intersecting arbitrary sequences can't be done particularly efficiently.
If Clojure's intersection worked on sequences (perhaps by first converting
to sets behind the scenes),
Hi Las,
Currently the graph topology is fixed at compile time, and cannot be
changed by the values flowing through it.
In such situations, we either:
- Have two copies of the graph with different node functions for N2 (i.e.,
when generating different types of newsfeeds, from our original blo
David Jagoe writes:
> I need to start a ring server from an upstart script on Ubuntu. Normally I
> would use an uberjar and execute java directly, but in this case I cannot
> do AOT and would like to simply run "lein ring server-headless" from my
> upstart script. Even when I use "lein trampoline
On 6 February 2013 14:40, Phil Hagelberg wrote:
>
> You can use an uberjar without AOT; just use something like this:
>
> $ java -cp my-uberjar.jar clojure.main -m my.namespace 8080
>
Excellent, thanks.
--
--
You received this message because you are subscribed to the Google
Groups "Clojur
Morph is a new implementation of monads based on protocols. It's intended
to provide the common patterns of error-handling, short-circuit sequencing,
and modeling of stateful computations in pure functions. I've tried to make
this library idiomatic while keeping it close to its Haskell roots.
T
this is great, just one nit to pick about currying (because it's
something that's bitten me in the past in other contexts):
in the wiki you say "For a predefined function with a fixed number of
arguments, only the function name must be supplied.", but this is only
sort of true---the issue isn't wh
this is great, just one nit to pick about currying (because it's
something that's bitten me in the past in other contexts):
in the wiki you say "For a predefined function with a fixed number of
arguments, only the function name must be supplied.", but this is only
sort of true---the issue isn't wh
Does anyone know if there's a simplified networking library that allows
this?
--
--
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
http://code.google.com/p/jetlang/wiki/Remoting
On Wed, Feb 6, 2013 at 8:16 PM, JvJ wrote:
> Does anyone know if there's a simplified networking library that allows
> this?
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this
Objects ?!?!? You want to exchange only data structures ?
Or do you expect some form of RPC ?
Luc P.
> Does anyone know if there's a simplified networking library that allows
> this?
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
>
Good catch with currying non vars; I'll try to work something out. Also,
should come up with a general defcurry macro; I'm not happy with that.
Things like foldM may just not be possible, but I'll keep track of these
issues so maybe I can give you a good answer for the things you've brought
up.
I was just looking for sending data structures. But hey, if RPC existed
that would be cool too.
On Wednesday, 6 February 2013 20:24:54 UTC-5, Luc wrote:
>
> Objects ?!?!? You want to exchange only data structures ?
> Or do you expect some form of RPC ?
>
> Luc P.
>
>
> > Does anyone know if t
To send clojure values:
http://clojuredocs.org/clojure_core/clojure.core/pr-str
You may need to extend print-dup if you need to stringify Java objects or
defrecords.
http://amalloy.hubpages.com/hub/Dont-use-XML-JSON-for-Clojure-only-persistence-messaging
Have a nice reading and come back if som
Clojure/West has a great schedule lined up. If you haven't yet, check out
the schedule at http://clojurewest.org/schedule. You can register at
http://regonline.com/clojurewest2013.
If you've seen the odd couple (Dan Friedman and Will Byrd) talking about
miniKanren and logic programming, you know t
I did something for a http lib:
;; get them concurrently(let [response1 (http/get "http://http-kit.org/";)
response2 (http/get "http://clojure.org/";)]
;; handle responses one-by-one, waiting for response as necessary
;; other keys :headers :status :error :opts
(println "response1: " (
Try this:
...
(jdbc/with-quoted-identifiers \"
(jdbc/update-or-insert-values ...))
...
clojure.java.jdbc supports generic naming strategies that specify how to
wrap column names (going into JDBC) and how to convert column names (back
to Clojure keys on the way out of JDBC).
Different databas
On Feb 6, 2013, at 18:27, Alex Miller wrote:
> If you're coming in the night before the conference, we've got Mission
> Kontrol,
> the arcade wonderland reserved with FREE PLAY on all games from 7-9 pm. It's
> just a couple blocks from the hotel.
And, if you think real computers are more fun to
Hey Rich,
Where can we find more about this datomic hack session?
Leonardo Borges
www.leonardoborges.com
On Thu, Feb 7, 2013 at 4:03 PM, Rich Morin wrote:
> On Feb 6, 2013, at 18:27, Alex Miller wrote:
>> If you're coming in the night before the conference, we've got Mission
>> Kontrol,
>> the
There is one more important difference between EPL and GPL/LGPL that we should
be aware off:
You cannot copy snippets out of Philip's LGPL'ed code and use them in your own
EPL'ed code.
For me, one of the great benefits of all the EPL'ed clojure libraries out there
is, that I've freely borrowed
Hey, I used a similar upstart script which works fine for ring.
However, weirdly enough, my auth with a mysql database fails. I'm using
korma to interface with the db. The problem only occurs with upstart
script,, because it works fine when I run it myself.
To be clearer. When I run: lein trampol
On Thursday, February 7, 2013 3:12:22 PM UTC+8, Omer Iqbal wrote:
>
> Hey, I used a similar upstart script which works fine for ring.
[EDIT] ignore the above sentence. I was originally replying to a thread.
#mybad
> However, weirdly enough, my auth with a mysql database fails. I'm using
> k
> Welcome to a world of values, not containers (the blue pieces can only
fit in the blue
> container, the red ones you get the picture) or as Rich says places.
I always thought that by places he means mutable identifiers; languages
like Haskell have a lot of luck with type-checking immut
We had this talk with scheme. They called it I expressions. Here is the link
http://srfi.schemers.org/srfi-49/srfi-49.html
Do it because you can, and so you can decide for yourself what to think about
it.
--
--
You received this message because you are subscribed to the Google
Groups "Clojur
If someone does write a Lisp with significant whitespace, can we please
call it "Whitespathe"?
On 7 February 2013 10:30, Marco Munizaga wrote:
> We had this talk with scheme. They called it I expressions. Here is the
> link http://srfi.schemers.org/srfi-49/srfi-49.html
>
> Do it because you can,
61 matches
Mail list logo