thank you for the replies. it is also no surprise, that there are rough
edges and uncertainties
at the moment. enfocus is on my radar because i have worked with enlive on
the serverside
before. So herwigs argument "The same selector syntax (and semantics) for
server- and client side"
holds for
hi clojure-users,
as i am thinking about using enfocus
(http://ckirkendall.github.com/enfocus-site/) for building
up the clientside-logic for a new site, i am interested in reports of
people who have done so
already. i am esp curious about how the development-process works out and
what main-pr
>>A simple workaround I've considered, but haven't gotten around to doing
anything about in e.g. Emacs, is to simply tone down the parens visually in
the editor.
Just last week i was astouned how readable clojure is, when its proper
indented and the parenteses are invisible. This insight came u
hi mimmo,
>>I have no time to experiment with the validation libs already available
on the server side ...
i did that lately and found https://github.com/leonardoborges/bouncer esp.
promising.
a note regarding hiccup: ch. grand has added hiccup-like functionality to
enlive during last week
s
very helpful answer. thank you Baishampayan.
On Saturday, January 19, 2013 10:26:06 AM UTC+1, Baishampayan Ghose wrote:
>
> On Sat, Jan 19, 2013 at 5:24 AM, faenvie >
> wrote:
> > i have learned that for a ring/compojure-app the embedded jetty
> > service
https://github.com/ring-clojure/ring/wiki/Interactive-Development
Ensure that:
- Your Ring adapter is running in a background thread so it doesn't
block your REPL.
- Your handler function is wrapped in a var, so it will be updated when
you reload the namespace.
aha ... handl
dear clojure users,
i have learned that for a ring/compojure-app the embedded jetty
service can be started like this:
(def app (handler/site routes))
(defn start [port]
(ring/run-jetty (var app) {:port (or port 8080)
:join? false}))
can anyone explain, wha
>>Guice that was only available via a now-404 Maven repo hosted on Google
Code.
i was bitten by that, when i wanted to give friend a try.
i like your rational for friend. It is 100 Percent true:
"Securing Ring applications and services is (charitably speaking) a PITA
right now, with everyone r
i took a look at it. bouncers DSL seems smart inside and out.
Has an excellent Documentation too. Thanks for sharing 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
Note that posts fr
I tried it out and like it.
i esp. inspiring to see how you do the lein multi-deps-test against
clojure-versions 1.2 to 1.5.
could the state that builds up in call-times cause mem-resource-problem
with long-running-loops in fake-context ?
but normally you don't have those in unit-testing ... a
Hi Clojure Users,
while reading through http://natureofcode.com/book i tried to implemented
some of the samples in clojure. One of them implements a sample
ParticleSystem and uses Polymorphism to model state an behavior of
different ParticleTypes. I have come up with this two solutions
Solut
hi clojure-users,
for testing an app that uses quil, i want to mock out some
function-calls to the quil-library ... when i do it like this:
(ns myapp
(:use clojure.test)
(:require [quil.core :as q]))
(deftest
(binding [q/height (fn [] 400)]
(is 400 (q/height
i get an Exception
hi, glad to hear that.
Up the Ladder of Abstraction ;-)
with the books.
Gruesse
On Apr 14, 7:55 pm, Stuart Sierra wrote:
> Hi, faenvie,
>
> Thanks for your comments about "Practical Clojure," really glad you enjoyed
> it!
>
> Unfortunately, it seems unlikely ri
light table looks like a candidate for the book ...
btw 'professional clojure' is not a good title ... better: 'beyond
clojure' ? etc.
--
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 t
as i think about it, it seems to me that 'practical clojure' should be
updated but stay minimal. This means strictly keep the focus on the
core of clojure, correct errors, add a few missing things (add more
info on destructuring for instance), add and update things that come
new or changed with clo
hi community,
i simply want to state that i love this book http://www.apress.com/9781430272311
it's minimalism is amazing and it helped me a lot. its good to
repeatedly read single chapters to get conscious of ... minimal is
good.
i would love to read a second edition with maybe a chapter about
thanks for the interesting blog-post.
the main-points that makes sqlkorma attractive for me are:
- it's simple to use and understand (focuses on one aspect) and leaves
relational heavy-lifting @rdbms.
- it adds signidicant value (composability)
- the implementation has excellent code-quality an
> http://aichallenge.org/starter_packages.php
>
> They changed the game at the end and I didn't have time to update it
> for hills, but it actually works just fine as is. Also, it should be
> fairly trivial for someone to add that bit...
>
> Cheers,
> Chris.
>
> On Oct 20, 1
hi clojure community,
at the moment there seems to be no applicable
clojure starter package for the http://aichallenge.org/
though some work has be done on it by chris granger, i
think: https://github.com/ibdknox/aichallenge
are there any plans to get a clojure starter package out ?
it would be
hi clojure-users,
i ploughed through this year's strangeloop presentations
today ...
3 presentations that i can recommend for clojure-users:
- Jim Duey "EasyMonads" (advanced level)
https://github.com/strangeloop/2011-slides/blob/master/Duey-MonadsEasy.pdf
- David Nolen "The Mapping Dilemma" (
perfect answer.
thank you !
btw: my snippet is taken out of the docs for java.jdbc.
On Aug 22, 12:04 pm, "Meikel Brandmeyer (kotarak)"
wrote:
> Hope, I'm not too far off.
>
> Sincerely
> Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
hi clojure-community,
yesterday i came across the following use of
the delay-macro:
(defn pooled-data-source
[db-connection-settings]
; this Fn creates and returns object of type PooledDataSource
)
(defn pooled-data-source-as-singleton
[db-connection-settings]
(let [datasource (delay (po
recently i took a closer look at noir (http://webnoir.org)
and found it a quite promising and in the words best sense
minimalistic approach of a clojure-based full-stack framework
for building webapps.
noir is in an early stage and lacks some of the features that
established frameworks like rails,
hi meikel
so in your case after initial load of the knowledge-base there are no
changes
that need to be persisted, right ?
following stefan tilkovs book i want to do a simple RESTful
order-management (exercise only) and think of using core.logic
for query-logic.
persisting changes to rdbms seems
hi david,
thanks for the sample ...
as you have asked for questions, i take the chance for asking
a question that's in my mind for some times now:
are there concepts for how to combine core.logic (minikanren) with
(database backed) long term persistence ?
my reasing: there must be, because pro
in the first place i did not realize, how smart this move is,
but then ... clojure rocks ... javascript reaches ...
and as a sideeffect a first implementation of clojure-in-clojure
is rolled out into the wild even before clojure 1.3 is released.
in addition that works as a showcase for porting clo
start with:
http://java.ociweb.com/mark/clojure/article.html (free)
then proceed with:
practical clojure http://www.apress.com/9781430272311
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.c
>>do not
>>expect to start "hacking" clojure in the morning and be "productive"
>>and accomplishing work in the afternoon of that same day
reality is cruel: http://norvig.com/21-days.html
but fair ... isn't it ?
--
You received this message because you are subscribed to the Google
Groups "Cloj
@nchubrich
> It did go on too long. I hope when someone \does read it, they will
> see I am not being wholly unreasonable.
i liked to read through it anyway ...
>>I was drawn to Clojure because I felt it was another
>>evolutionary step in programming. I hope I am not wrong.
i feel and hop
note on the original posting:
> First, he shouldn't be porting Java code to clojure, Second, Clojure IS
> fundamentally different from Java, and third, such said users who
> don't want to touch Java should not touch Clojure.
to port java-code to clojure-code is certainly not the
right thing to do
hi meikel,
you plugin really rocks.
have you thought about contributing clojuresque as 'clojure-plugin'
for gradle to the gradle project ? so that it will be more integrate
and
managed like ... say the scala-plugin for gradle ?
maybe after gradle has released it's 1.0 version ?
best regards ..
>>Of the people I've tried to expose to Clojure over the last six months,
>>I've definitely found that those with less OO experience tend to pick
>>it up much quicker.
that's exactly true for me: 40+ years old and OO-centric-Programmer
since 1995.
it takes me one year now to reach a highlevel qual
I agree, that clojure will not gain java-like popularity in
a forseeable future.
IMO clojure is much more a Language for SystemProgrammers
(high demands, thinking in concurrency) than a Language for
ApplicationProgrammers (midsize demands, thinking singlethread)
it does not have to target general
today, once again, i realized, that of all 4 books,
that i have read about clojure , 'practical clojure'
is the one, that i like most.
minimalistic, straight to the point, mostly clear in it's
language.
i would love to buy a second edition once clojure 1.3 or
2.0 is out.
--
You received this me
i am also using ccw for eclipse but then cake instead of
leiningen. this has the main-advantage of having
an incredible fast development-cycle (running tests
after change via commandline). this is because cake
runs a persistent JVM, eliminating start-up overhead.
(minor-)drawback: cake currently
very interesting stuff. i will follow this with pleasure ...
to get into it, a basic tutorial that focuses on solving
one or two classical problems using logos would
probably be a winner.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post
> (set-opt :development) ; this is what you want
> ...
> (get-opt :show-sql) ; need this flag
hi armando,
this is more of an OO style but as there is no
def- , the state is still accessible from the
outside. also the api is kinda asymetric.
as described in 'the joy of clojure 7.2 -
sharing closu
thanks ken for the answer.
more(?) functional using closures:
(defn get-config [environment]
(let [env (condp = environment
:development
{ :whoami "development"}
:test
{ :whoami "test"}
:production
{ :whoami "production"}
(throw (IllegalArgumentException.
hi clojure-users,
i have a question regarding the setup and propagation
of config-params.
to configure a clojure-based web-app, i use a global var
*opts* that is setup like this:
(defn get-opts
[environment]
(condp = environment
:development
{ :webapp-context "/mywebapp"
:w
i would love to see the knowledge that
karsten lentzsch put into http://www.jgoodies.com/
transmitted to or adapted for the clojure-cosmos.
--
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
>>of a snapshot or a release und update of the documentation would be
>>welcome ...
after all ... its open-source-software and audience-participation
is probably welcome ;-)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
you may want to take a look at https://bitbucket.org/kotarak/clojuresque
which adapts the feature-rich gradle-buildsystem to implement build-
logic
for 'native' clojure-projects and also makes builds for mixed-
language-
projects and multi-projects quite easy.
by default the gradle-buildsystem use
not to forget practical clojure from apress:
http://apress.com/book/view/1430272317
which gives a good introduction too
and mark volkmanns article:
http://java.ociweb.com/mark/clojure/article.html
which is free and also gives an excellent
introduction.
--
You received this message because yo
On Jan 5, 3:14 pm, LauJensen wrote:
> ... Works out of the box with PostgreSQL and MySQL ...
nice work !
your testcode references sqlite3 too.
so what about sqlite3-support ?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group,
hi aaron,
what i initially thought of, is an alternate technologie-stack. that's
far from being a realistic option today and may not be realistic
at all:
(i guess this has a timeframe of 4-8 years)
leave java completely out. base clojure on android's/linux's
process- and memory-model and low lev
>>I am just reading through the meap of ???
??? = http://www.manning.com/ableson2/
sorry
--
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 - p
hi clojure-commmunity,
when learning 2 new things at a time, one is always
temped to combine them and have some unrealistic
fantasies.
i am just reading through the meap of ???
so it's not a surprise, that i think about a
combination of clojure and android.
according to other discussions in the
hi clojure-community,
today i found this interesting blog-post about an abstraction for
accessing stored data:
http://anvil.io/2010/10/25/clojurize-the-data-not-the-database.html
i searched the list if this was already discussed, but
that seams not to be the case.
would someone disagree, if i s
btw.: me too has great respect for ruby/rails
one of the nice aspects of clojure is, that multiple
currents and flavours of modern programming
accumulate/reconvene in there.
like evolution. diversity is good. it produces its own
power and controversy.
my fazit: clojure has great potential for we
most companys i know - i have come around a lot last
years - clearly prefer spring to grails because:
1. the integration-aspect is much more important for them than partial
productivity win or promise.
2. java is established in their tech portfolio groovy is not
clojure is completely out of scop
my short-time experience with implementing webapps on
a clojure-base is:
i feel like in the very early days of java-servlet-api and j2ee.
productivity way way way behind springframework or grails
i don't even want to think about doing something sophisticated
like security-integration.
and of co
i dont see a gen-class your snippet:
(ns mywebapp.firstservlet
(:use [ring.util.servlet :only (defservice)])
...
(:gen-class
:extends javax.servlet.http.HttpServlet))
(defservice app)
WEB-INF/web.xml:
firstservlet
mywebapp.firstservlet
firstservlet
/*
On Nov 1, 8:09 p
hi clojure-community,
yesterday i got my copy of martin fowlers "Domain Specific Languages".
I am quite sure, that this book, like others from the author, is an
important one to own for the "pragmatic bookshelf".
but reading the preface i found information that disappointed
me a little bit:
"..
> You note that you're using ccw, is that because you have a clue that there
> could be something related to the "lazytest-ccw" combo in the issue you're
> facing ?
no, ccw is ok. its a big help for
us die-hard eclipse users. thank you.
i think its my mistake: i put tests
in a different src-file
i am trying to use lazytest with eclipse + ccw ?
lazytest.watch does not work for me so far.
so i run my lazytests via:
(ns myapp.runtests
(:require lazytest.runner.console
lazytest.color
lazytest.report.nested))
; switch ansi-coloring off
(lazytest.color/set-colorize false)
i just emerged from a whirlwind read
through 'practical clojure'. i like this book
very much.
it's a very well structured, carefully written
book. kind of a minimalistic approach but minimalistic
in the positive sense clojure itself is.
so now 'students' have really good choices
among 4 high qual
*1*
a java-based alternative to maven and ant
is gradle.
pro:
- gradle is a fantastic build-framework
contra:
- gradle is not leightweight -> even more
thirdparty-dependencys
- build-scripts are implemented in a groovy-based
DSL -> gradle-users have to learn groovy basics
i think a clojure-p
hi clojure-users,
i wonder what the reason is, that clojure(-reader)
does not allow
1. multiline-strings like scala:
"""this is a
| multiline string"""
2. multiline comments like java
/* this is a
multiline comment */
someone who can explain or point
to relevant info ?
thanks
--
You
> > That is the most unsubstantiated, moronic piece of writing I've ever read
> > in my life. I can't really tell what he's attacking, he's just
> > swinging some dick-shaped sword around trying to hit stuff.
i do not agree ... its clear that the article is
a rant, does not go deep and misses im
> http://steve-yegge.blogspot.com/2006/04/lisp-is-not-acceptable-lisp.html
a prophetic writing ... great !
thank you mike.
--
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
as a beginner i found 2 links that i can
recommend to others who want to step
into matter:
1. mark volkmann's article about clojure:
http://java.ociweb.com/mark/clojure/article.html
this is a first class introduction to clojure and you
can read through it in 2-3 days. it contains everything
a ty
>Also is it possible to utilize Clojure for programming
> microcontrollers??
this i a question, that i am also interested in:
- what are todays main-objectives for using clojure
in the (higher ends) realtime-programming space ?
- what would be the main-benefits of using clojure
in the (higher en
in case, you want to abstract over swing ...
there is this guy from germany: Karsten Lentzsch. he is author of
http://www.jgoodies.com/ and has incredible knowledge about swing
and esp. in abstracting over swing.
He knows all the strongs and weaknesses of swing and beeing involved
in http://www.j
hello mike,
hello tim
thank you for this detailed insights into your experience
and knowledge.
lately i had to implement a generator for a big catalog of
products and i used docbook for it, but that was not a
satisfying experience at all. docbook locks you into
its predefined document-structures
today i read this statement in a blog-post:
"... remarkably (La)TeX is much better suited for composing and
distributing most types of documents than any other modern
word processor on the market that I am aware of. Just like
programming languages tend to converge towards Lisp because
it got thing
> You don't know how proud you made me with that remark! It was painted
> in 2008 by my daughter who at that time was 5 years old. The original
> is approx 1m in height. Thank you very much, indeed!
gute idee ... i like this cover too now ,-)
--
You received this message because you are subsc
66 matches
Mail list logo