I have joined the Amsterdam Clojurians before, but live in Vroenhoven now
(near Maastricht, relatively close to Liége). Maybe a meetup around here
would be something? :)
2012/12/17 Sébastien Wagener
> Hi Thomas,
>
> I'm from Luxembourg. If the meetup isn't too far away from the border, I
> woul
An empty sequence is equal to nil.
2012/8/29 Ambrose Bonnaire-Sergeant :
> My guess is that `merge` has an invariant "if all args are nil, return nil",
> making calls to `seq` "contagious" from args to return value.
>
> => (merge (seq {}) (seq {}))
> nil
>
> Just a guess though.
>
> Thanks,
> Ambr
Just pay attention that when using later elements you don't need the
earlier elements, and you should be fine. (IIRC)
2012/8/1 Vinay D.E :
> Thanks Sean & Carlo for the detailed comments!
> The gap in my understanding was exactly *how* lazy 'lazy evaluation' is, so
> the evaluation of 'i' is defer
randomly-fn reads the commands first (that's why you need a macro in the
first place) so it prints 1 2 and 3 straight away. If you really need a
function, use lambdas (as in #(print 1) #(print 2) #(print 3))
2012/5/2 金山
> I defined a macro like this:
> (defmacro randomly [& exprs]
> (let [len (
Em 12/04/11 03:16, Razvan Rotaru escreveu:
Wow. I didn't thought this was possible. You know, I have seen a lot
of people saying that scheme macros are more "powerfull", citing the
fact that scheme also has lisp macros, while it's not possible to do
it the other way around.
Of course it's possibl
In common lisp for fun I have replicated the #(+ 1 %) syntax without reader
macros as (@ + 1 %), I could try to convert that to clojure to see if it
suits you...
Em terça-feira, 1 de novembro de 2011, Razvan Rotaru escreveu:
> Yeah, you are probably right. But I figured asking never hurts...
> Th
Try (defmacro order-query [params]
`(ds/query :kind Order :filter (map #(list (key %) (val %)) ~params))) or
(defmacro order-query [params]
`(ds/query :kind Order :filter (map #(list (key %) (val %)) (eval
~params depending on the necessity of the eval (I suppose you don't
really need the eva
Pepijn de Vos had a blogpost about lazy sorts. One of them seems to be a
particularly good fit for this problem:
http://pepijndevos.nl/lazy-sorting/index.html (the heap-sort example seems
the fastest of those for this use-case...).
Em sexta-feira, 16 de setembro de 2011, Mark Engelberg escreveu:
Has anyone used ClojureScript for Google Chrome webapps already? How would
you structure your workflow/directories if you would do this?
Joop Kiefte
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email
In that case I would suggest putting it on top of the file more
or less like this
with a lot of ;'s at the start. You could create a script to
update that automatically
from the CVS I suppose, and if you make sure it's autogenerated
and that it comes
from the CVS it gives a lot
That was exactly what I meant. Sorry for not responding directly to
the second inquiry, I wanted to see if others thought the same about
this...
2011/8/3 Ben Smith-Mannschott :
> This. 1000 times this.
>
> Don't clutter your source code with this kind of stuff. It'll just
> cause you pain down the
changelog.txt / VCS?
2011/8/3 octopusgrabbus :
> Is there a preferred method for adding a Change History block to a
> Clojure module? I'm doing this for now:
>
> (ns addr-verify
> ^{:author "Charles M. Norton",
> :doc "addr-verify is a small Clojure program that runs address
> verification thr
GWT is Java to JavaScript, so you can as far as I know use it with
Clojure...
2011/7/26 Daniel
> These were the four major features which first got me interested in
> GWT:
>
> Widgets that work identically [and correctly!] on all browsers +
> Custom widgets
> Client Bundling (pushing resources i
YouTube has the cap removed for some time already now, so maybe a good idea
to get it there as well... The integration with several sites and YouTube's
CND are very good, watching on YouTube in e.g. Brasil usually is faster than
most other sites...
2011/7/26 Eric Lavigne
> Baishampayan Ghose pos
Google is introducing Google+-like feedback buttons now.
2011/7/18 Ken Wesson
> I can no longer find any forum or submission form for reporting
> problems to Google. You're a bunch of tech-savvy people using Google
> Groups and, probably in many cases, gmail. Do any of you know either:
>
> 1. Ho
I just check if the people in the "people you have both in a circle" match
up with my clojure-circle ;) easy enough :D
2011/7/17 jweiss
> This does bring up an interesting flaw in G+. If I add Clojure people
> who I don't know personally, how will they know to add me to a Clojure
> circle? G+
http://profiles.google.com/ikojba
2011/7/14 Claudia Doppioslash
> My Clojure circle is all set up but empty.
> My g+ is: http://gplus.to/gattoclaudia
>
> Please add link to your profile below.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
>
Didn't try, but shoudn't (def alist `(1 ~(fn [x y] (+ x y be better?
Then you don't need the eval :)
2011/7/12 Benny Tsai
> alist is missing parens around the fn, so it's really a list of 4 elements
> like so:
>
>
> (1, fn, [x y], (+ x y))
>
> So (second alist) returns just the symbol 'fn.
Check your spaces...
2011/6/17 FD :
> Hello,
>
> What is wrong in this function?
>
> (defn testmap []
> (do
> (map #(fn1 %)
> '("a" "b" "c"))
> (map #(fn2%)
> '("1" "2" "3"))
> ))
> If fn1 = fn2 = println
> the result is
> (1
> 2
> nil 3
> nil nil)
>
> I expected this result
>
The difference is that the sugared version works just like a normal
Clojure function. It also eases a lot of things with macros like
(doto).
2011/6/15 James Keats :
> Hi all. I'm struggling to see the point of this (from Pragmatic's
> Programming Clojure):
>
> Java => rnd.nextInt()
> Clojure =>
And Emacs has Viper-mode (and other Vi-keybinding-stuff) :)
2011/5/30 J.R. Garcia :
> Having worked with Lisp in the path, I didn't get that "interactive"
> feel with VimClojure. I didn't really enjoy using Nailgun either. That
> being said, VimClojure is certainly a great plugin. I also have been
Doesn't work for me (Ubuntu x86)
2011/4/14 Timothy Baldridge :
> On Thu, Apr 14, 2011 at 2:03 PM, mark skilbeck
> wrote:
>> Still doesn't work for me. Same error as Alfredo.
>
> Worked great for me with Win 7, FF4
>
> Want to highlight anything you did in the game? I'm interested in any
> use of
Would it be possible to create something like CL's multiple values this way?
2011/3/25 James Reeves :
> On 25 March 2011 10:41, msappler wrote:
>> Never used metadata until now.
>>
>> I had an insight yesterday that I want to share with you:
>>
>> http://resatori.com/metadata-insight
>
> In my vi
2010/11/24 cej38 :
> 5. ease of changing function calls to allow for extra stuff/
> functionality without breaking other stuff. An example would be best
> here. Suppose I had defined some function that worked for a specific
> purpose:
>
> (defn setzero [value]
> "If value is less than 1.0E-8 set
(first (flatten ...)) ?
2010/10/29 andrei :
>
>
> On Oct 29, 2:14 pm, Meikel Brandmeyer wrote:
>> There's nothing stoping you to put a let in a loop.
>
> Yes, but imagine a bit more complicated case, for example, instead of
> '(first (first ps))' write (.foo (first ps)), and it will crash. I'm
>
the vector form. in idiomatic clojure, lists are practically only used
for code and macro's.
2010/9/25 HiHeelHottie :
> For a literal collection of numbers which would be more idiomatic and
> why?
>
> (reduce + '(1 2 3)) vs (reduce + [1 2 3])
>
> --
> You received this message because you are subs
Actually, this metaphor has been used before. Check
http://www.defmacro.org/ramblings/lisp.html for an other version of
your story ;).
2010/9/8 alux :
> Hello,
>
> I still try to read my way through Paul Grahams "On Lisp", and always
> think how to motivate this stuff to my fellow Java people. How
Monads are mostly used because they are necessary in Haskell. In
Clojure the urgent need is not there. However, you can sure get some
cleaner and/or more composable code if you use monads in your
advantage.
2010/9/7 Jacek Laskowski :
> On Tue, Sep 7, 2010 at 4:04 PM, Nicolas Oury wrote:
>
>> Hope
ing coders.
>
> The Clojure project needs an english major to become the "editor-in-chief".
> This person should not let any code enter the core or the accepted contrib
> without a strong story line. Good code, like good characters, should have
> strong motivations for what g
To have a good idea of how this can work, see Literate Haskell
2010/9/6 Tim Daly :
> The literate programming discussion centered around the question
> "what should be the state of the art in clojure documentation",
> not "what is the state of the art in clojure documentation".
>
> If you're looki
Sorry, non-native English. The "What about" got me confused.
You mean more like how to get it done?
2010/9/1 Sean Corfield :
> On Wed, Sep 1, 2010 at 12:14 AM, Joop Kiefte wrote:
>> You can just as well use those. Jetty is just more practical for
>> development, as yo
You can just as well use those. Jetty is just more practical for
development, as you don't need to deploy to be able to test it.
2010/9/1 Sean Corfield :
> It seems that all the Clojure web frameworks expect you to be using
> Jetty - what about deploying to Tomcat or Resin or JBoss or...?
> --
> S
bad example =/
Yes, it is
but you get the gist I hope
better example: #(first (sort %)) ;)
2010/8/23 gary ng :
> On Mon, Aug 23, 2010 at 8:50 AM, Joop Kiefte wrote:
>> uses like #(first %) keeps the code cleaner
>>
> Is that the same as just 'first' like
uses like #(first %) keeps the code cleaner
on the other hand, for more complicated things I would really not
recommend the short form
2010/8/23 gary ng :
> On Mon, Aug 23, 2010 at 8:31 AM, Luka Stojanovic wrote:
>> It's not about nested maps, but about nested anonymous functions: if you
>> nest
it is a macro with a syntax quote, so all symbols are
namespace-qualified. so = will actually be clojure.core/=
the ~' removes this namespace-qualification, so it is rendered as just =.
2010/8/21 limux :
> This is some code in a blog of William Gropper, the useage of ~'=
> confused me, waiting so
(defn function-name
"Your docstring goes here"
[your argument list & more]
(call some functions))
2010/8/19 Paddy3118 :
> Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring
> and, if so, do you have a link to the feature in the Clojure
> documentation? Thanks.
>
>
Actually, to be honest the short C++ example with lisp bracket style I
find a lot easier to read: I don't need to scan all the page to find
what belongs where...
2010/8/18 Greg :
>> Now the question you're asking is, why don't lispers write
>> (MyFactory somearg
>> )
>> which makes me cringe.
>
I am playing a bit with shapado (open source stackoverflow clone in
ruby, I made an Esperanto QA site with it at demandoj.tk) and maybe
it's an idea to create a clojure webdev shapado thus creating a fun to
use self-documenting system and using the wikipages etc to provide
more information of all s
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/require
tells me you need to put it in a quoted list (require is a function,
so you have to quote anyway. Don't know at the moment if the :require
works differently, but I think it shouldn't)
2010/8/11 Folcon :
> The stacktrace i
quote it?
2010/8/11 Folcon :
> I've tried using the format shown on the docs which is:
>
> (ns your-namespace
> (:require clojure.contrib.io))
>
> And this is what causes the exception.
>
> On Aug 11, 12:06 pm, Folcon wrote:
>> I'm trying to create an input stream to use with some libraries. I'v
What do you get if you use the meta-line with GBK encoding? if that
gives the right output, it is an input problem (i.e. the input is not
UTF-8).
2010/8/10 Rasmus Svensson :
> 2010/8/10 limux :
>> There is some chinese chararters in the tables. I want to display them
>> by hiccup, but browser disp
Try using [:meta {:http-equiv "Content-Type" :content "text/html;
charset=utf-8"}] inside your [:head]
(can this be done with Jetty?)
2010/8/10 limux :
> hi!
>
> I am doing a real-file demo with ring, compojure, hiccup, and database
> access as well.
> There is some chinese chararters in the tabl
Maybe you should call that take-until or something like that :)
2010/8/7 Steve Purcell :
> Oh, right, so maybe:
> (last (take-while #(< (apply + %) 100) (reductions conj [] (iterate inc
> 0
> => [0 1 2 3 4 5 6 7 8 9 10 11 12 13]
> -Steve
>
> On 7 Aug 2010, at 13:57, Andreas Liljeqvist wrote:
>
agree
2010/5/22 Chris Riddoch :
> I have a rather small patch I'd like to propose for Clojure:
>
> *read-eval* should default to false, rather than true. Security
> implications? Aside from the 'read' function, are other operations on
> strings safe from unintended evaluation?
>
> --
> Chris Riddo
I made one simple and short one for beginners, I think to your liking, but
in Dutch...
2010/4/22 Laurent PETIT
> Oh, really no answer ? :'(
>
> 2010/4/21 Laurent PETIT :
> > Hello,
> >
> > I've consulted a lot of already made presentations of clojure.
> > They are great, but I guess they may not
Now I took a look at your code =x, i think you can let it work using #(let
instead of #((let
2010/4/18 Joop Kiefte
> you can do #(identity 1)
>
> 2010/4/18 Yonov
>
> Thanks, a lot!
>> It seems that there is no nice way to make a shortened lambda function
>> which re
you can do #(identity 1)
2010/4/18 Yonov
> Thanks, a lot!
> It seems that there is no nice way to make a shortened lambda function
> which returns an integer.
> I mean #(1) is not OK, and #1 is not OK. Although there is no problem
> with this (fn [] 1).
>
> On Apr 18, 5:48 pm, "Stephen C. Gilard
Isn't programming not all about cheating the computer in doing what you want
it to do? In the book programming clojure you can find an example with locks
as well.
2010/3/25 Scott
> Question on best practices on handling SQL database concurrency issues
>
> I am "pmap"ping a evaluation to a long l
What about Clonure? Wordplay on Clone and leaving out the j ;)
2010/3/17 mac :
> After just a little more test and polish I plan on calling clj-native
> 1.0. But clj-native is a *really* boring name so I want to change it
> before 1.0 and I don't have very good imagination when it comes to
> these
True what said, but sometimes I filter things on subject instead of
list as it is all the same for me (e.g. clojure and compojure-list on
the same label) and there it can be useful as well. Now I have
compojure (low-volume) and clojure (high-volume) split up and it's
just not worth it for the seldo
Forget about the proxy part, re-read your message... =x
2010/2/24 Joop Kiefte :
> Tried to encapsulate what you want to put in the eventhandler in an
> anonymous function?
>
> And I don't know how that works in Clojure-CLR, but you might need proxy...
>
> 2010/2/24 adam11
Tried to encapsulate what you want to put in the eventhandler in an
anonymous function?
And I don't know how that works in Clojure-CLR, but you might need proxy...
2010/2/24 adam11235 :
> Hi,
>
> I've made progress in creating a simple app to show a windows form,
> however I am having trouble wir
I read this part...
http://www.reddit.com/r/programming/comments/b3sb1/golisp_a_lisp_interpreter_in_go/
and thought, would someone be able to do that for clojure? (the
Clojure in Clojure stuff might make this easier :))
Is this a weird idea?
I like a lot of ideas in go, and it's speed, but Cloj
I thought it would be nice to share my first Clojure-code.
http://github.com/LaPingvino/Calculator-with-Parens/blob/master/src/calculator.clj
--
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...
- http://esperanto.n
t; return obj.val
> end
>
> -Jeff
>
>
>
> On Fri, Feb 12, 2010 at 4:39 PM, Joop Kiefte wrote:
>
>> Graag commentaar
>>
>> --
>> Communication is essential. So we need decent tools when communication is
>> lacking, when language capability is
In the example, you can find a reference to the actual macro (line and name)
in the second part (Caused by:). By the nature of macro's I think this might
be not the most human way to get the line number, but surely the way the JVM
sees it.
2010/2/11 John Williams
> I'm concerned specifically abo
If I remember correctly it will work just fine if you don't import it and
you refer to it like (jxl.write.Number...
Please correct me if I'm wrong.
Joop Kiefte
2010/2/11 igorrumiha
> Hi,
>
> I'm exploring the jexcelapi library (http://
> jexcelapi.sourceforge.n
Just at home, 4 of us were there. 1 american, 1 italian, 1 pole and me, a
dutchy. I don't think this was the last time for me, and maybe some day I
should invite you to Ede :) or arrange something in Utrecht or Rotterdam (I
work there nearby).
2010/2/10 Joost
> On 7 feb, 13:09, Hubert Iwaniuk w
(Disclaimer: never tried myself)
http://hausheer.osola.com/docs/5
2010/2/10 Aviad R
> Hi all.
>
> I'm trying to learn clojure with the excellent "Programming Clojure"
> and projecteuler.net. I am encountering the java heap space error, and
> can't find a workaround, nor a smarter way to write my
a pizza.
>
> -Jeff
>
> On Feb 6, 12:26 pm, Joop Kiefte wrote:
> > Hello folks!
> >
> > I am from the Netherlands and I am learning Clojure now, using it at
> work,
> > and loving it so far. Are there any more dutch Clojure programmers on
> this
> >
.
Joop Kiefte
--
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...
- http://esperanto.net - http://esperanto-jongeren.nl
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
--
You received
If you are the copyright owner, you always have the final word on what
you do with your stuff. The license is for users of your product. This
means you can arrange another license for paying people if you want,
this is what is done when dual-licensing.
If you reuse things of other people however,
This group works as wave group as well :)
2010/1/24 Seth :
> When: weekends
> Where: DC, Boston, NY, San Fran
> Who: at least one, probably more
>
> Newsgroups are such a painful way to vote on things. Google Wave or
> some other wiki-like thing would make it much easier to aggregate
> everyone's
to
>> > contribute : you can discuss things on ccw user's ml, file tickets in
>> > ccw's
>> > google group ticket system, propose enhancements to the documentation,
>> > etc.
>> >
>> > Help welcome !
>> >
>> > --
>> > Lau
l find "big wholes" in documentation or usability, are invited to
> contribute : you can discuss things on ccw user's ml, file tickets in ccw's
> google group ticket system, propose enhancements to the documentation, etc.
>
> Help welcome !
>
> --
> Laurent
n the project as it is in the same directory). I
got lost there =x.
At least I would like to see a basic workflow document about CCW, and
better of course to have it nicely built in in Eclipse.
I hope you understand what I mean...
2009/12/28 Laurent PETIT :
>
> 2009/12/28 Joop Kiefte
>>
te a bare bones Hello World! application, that you can
> build on top of, including an ant task for creating a jar file for
> your application.
>
> Regards,
> --
> Nurullah Akkaya
> http://nakkaya.com
>
>
>
> On Mon, Dec 28, 2009 at 12:57 PM, Joop Kiefte wrote:
>
o make it verbose and full of hints ;))
Joop Kiefte, 20 yrs, the Netherlands
--
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...
- http://esperanto.net - http://esperanto-jongeren.nl
Linux-user #496644 (http://cou
68 matches
Mail list logo