On Thu, Sep 6, 2012 at 11:53 PM, Jorge Fiallega jorgefiall...@gmail.comwrote:
I am kindly asking Rich Hickey, Stuart Halloway or some other big name to
create a course like this in Clojure.
That would be great! :)
--
You received this message because you are subscribed to the Google
Groups
In Clojure, all Clojure files are utf-8. I assume that is also required in
edn?
(I think it should be)
On Sep 7, 2012 2:01 AM, Rich Hickey richhic...@gmail.com wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely used as a data exchange format,
Hello,
Anonymous functions with #() notation (example below) expand using fn*
by `clojure.core/read-string`, but in `cljs.reader/read-string` it
throws an error:
Argument passed to `cljs.reader/read-string`: #(do true)
Error: Could not find tag parser for (do in (inst uuid queue)
Is there a
Since my last message, I personally have only submitted a new faster Clojure
program for the knucleotide problem on the Benchmarks Game site. I haven't
checked whether other Clojure programs have been submitted in that time.
For all of the benchmark machines below, I'd say don't worry about
On Fri, Sep 7, 2012 at 3:01 AM, Rich Hickey richhic...@gmail.com wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely used as a data exchange format, e.g. as an alternative to
JSON.
Please have a look:
https://github.com/richhickey/edn
If it hasn't been updated at this point, I think it is safe to say it isn't
being maintained. I'd go with Compojure. It is pretty minimal too. If you
really, really want moustache, it might not be hard to fork and update the
deps.
On Friday, September 7, 2012 12:51:37 AM UTC-5, Murtaza Husain
I'm using moustache for all my projects. The new ones too, with clojure
1.4+ and ring 1.0+
Works great, I'd recommend it.
cheers
--
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
Append: you don't need to fork or update it, since it uses version ranges
in its dependencies.
--
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
Hello,
In Clojure 1.4.0 REPL I noticed this:
user= (let [a 'a] (case a nil :nil ' :amp :none))
:none
user= (let [a '] (case a nil :nil ' :amp :none))
:amp
user= (let [a 'b] (case a nil :nil 'b :b :none))
:b
In the CLJS Rhino REPL I saw this:
ClojureScript:cljs.user (let [a 'a] (case a nil :nil
Ok, I guess nobody is really interested in something like that...
Never mind...
On Wednesday, September 5, 2012 6:37:40 PM UTC+2, Simone Mosciatti wrote:
Hi everybody,
I get a little idea now that we are heading to Christmas.
Would be nice to organize a little fund raiser to support our
Herwig,
I have noticed that moustache swallows any errors, is there a way so that
any errors bubble up ?
Thanks,
Murtaza
On Friday, September 7, 2012 2:35:07 PM UTC+5:30, Herwig Hochleitner wrote:
Append: you don't need to fork or update it, since it uses version ranges
in its
2012/9/7 Murtaza Husain murtaza.hus...@sevenolives.com
I have noticed that moustache swallows any errors, is there a way so that
any errors bubble up ?
I'm not sure what you mean, in my experiences exceptions thrown by handlers
always bubble up.
in this example
(defn route-handler [req]
Hugo Duncan h...@hugoduncan.org writes:
* ritz-swank corresponds to the previous ritz functionality and provides
a swank server with debugger capabilities.
How would you fire up a swank server from the REPL?
I'm using the Maven and the clojure-maven-plugin, which has no (yet)
goal for ritz
clojure.core.strint is a nice tool to have, but for longer strings the
limitation of to a single argument becomes a problem. If I want to wrap
my code to fit maximum line length, I cannot split the string argument into
several string literals. Is there an existing way to deal with this, or
What I mean is the exceptions dont show up in the browser. I see them in
the server terminal. The browser will either show a blank screen or the
last route that worked. Only when I go to the server terminal is when I see
the stacktarce.
So sometimes its misleading, even though I may see
On Sep 6, 2012, at 11:56 PM, David Nolen wrote:
On Thursday, September 6, 2012, Rich Hickey wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely used as a data exchange format, e.g. as an alternative to
JSON.
Please have a look:
On Sep 7, 2012, at 12:33 AM, Daniel Pittman wrote:
On Thu, Sep 6, 2012 at 6:01 PM, Rich Hickey richhic...@gmail.com wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely used as a data exchange format, e.g. as an alternative to
JSON.
In my experience, ring responds with 500 on error.
You can use ring.middleware.stacktrace to make the error show up in the
browser.
--
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
On Sep 7, 2012, at 4:36 AM, Ben Smith-Mannschott wrote:
On Fri, Sep 7, 2012 at 3:01 AM, Rich Hickey richhic...@gmail.com wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely used as a data exchange format, e.g. as an alternative to
JSON.
sthueb...@googlemail.com (Stefan Hübner) writes:
Hugo Duncan h...@hugoduncan.org writes:
* ritz-swank corresponds to the previous ritz functionality and provides
a swank server with debugger capabilities.
How would you fire up a swank server from the REPL?
On the REPL this works:
On Sep 7, 2012, at 6:20 AM, Marko Topolnik wrote:
clojure.core.strint is a nice tool to have, but for longer strings the
limitation of to a single argument becomes a problem. If I want to wrap my
code to fit maximum line length, I cannot split the string argument into
several string
Interesting. Didn't know something like this existed. :)
On Fri, Sep 7, 2012 at 5:06 PM, Chas Emerick c...@cemerick.com wrote:
On Sep 7, 2012, at 6:20 AM, Marko Topolnik wrote:
clojure.core.strint is a nice tool to have, but for longer strings the
limitation of to a single argument becomes
This won't work, as ClojureScript doesn't includes a compiler in the
runtime. You can't eval ClojureScript code at runtime and you can't
read new anonymous functions in.
On Fri, Sep 7, 2012 at 9:18 AM, Shantanu Kumar kumar.shant...@gmail.com wrote:
Hello,
Anonymous functions with #() notation
This is now on master —
https://github.com/clojure/core.incubator/commit/9f2590f2cf22c37ba66010983bf6eaf21a90084c—
and 0.1.2-SNAPSHOT is available from Sonatype's OSS snapshots repo.
Downloaded and confirmed that it works in my code.
Assuming no one shrieks about some serious
Thanks, Tim. This looks great.
For those of you who don't want to go digging through the thread, here's
the summary:
Step 1. Download nrepl-0.1.4-preview from Marmalade or MELPA (depends on
clojure-mode 1.11).
Step 2. Add this code to your .emacs file:
;; Patch ob-clojure to work with nrepl
On Friday, September 7, 2012 1:12:44 AM UTC-7, Andy Fingerhut wrote:
Since my last message, I personally have only submitted a new faster
Clojure program for the knucleotide problem on the Benchmarks Game site. I
haven't checked whether other Clojure programs have been submitted in that
This is a story from the trenches of your every day developer:
It's a story with a ridiculous sense of entitlement. Be sure to complete
your Scala lessons.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
2012/9/5 Stuart Halloway stuart.hallo...@gmail.com:
I started a wiki page for this:
http://dev.clojure.org/display/design/Never+Close+a+REPL
If you have other REPL-reloading annoyances please add them there.
Adding new dependencies to my Leiningen project.
Solved by pomegranate ?
I think I
sthueb...@googlemail.com (Stefan Hübner) writes:
Hugo Duncan h...@hugoduncan.org writes:
* ritz-swank corresponds to the previous ritz functionality and provides
a swank server with debugger capabilities.
Also: the Zi maven plugin has not catched up with ritz 0.4.0. I was
trying to force
On Fri, Sep 7, 2012 at 9:56 AM, Laurent PETIT laurent.pe...@gmail.com wrote:
2012/9/5 Stuart Halloway stuart.hallo...@gmail.com:
I started a wiki page for this:
http://dev.clojure.org/display/design/Never+Close+a+REPL
If you have other REPL-reloading annoyances please add them there.
On Fri, Sep 7, 2012 at 5:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote:
Hello,
In Clojure 1.4.0 REPL I noticed this:
user= (let [a 'a] (case a nil :nil ' :amp :none))
:none
user= (let [a '] (case a nil :nil ' :amp :none))
:amp
user= (let [a 'b] (case a nil :nil 'b :b :none))
:b
Impressive, (as always,) Hugo.
g
On Wednesday, September 5, 2012 1:45:41 PM UTC-7, Hugo Duncan wrote:
ritz started life as a swank server for emacs SLIME. With this release
it has evolved into several components:
* ritz-nrepl provides both nREPL middleware, that can be used in any
On Thu, Sep 6, 2012 at 10:29 AM, goracio felix...@gmail.com wrote:
Hi
I try to follow this guide
https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments
and get an error
No 'xpc' param provided to chid iframe
when loading http://localhost:9000/repl
and my
On Thursday, September 6, 2012 8:31:59 PM UTC-7, Weber, Martin S wrote:
The question that's left for me is: why vectors and lists? I mean, from a
data format perspective, and a non-clojure implementor, I'm not sure the
distinction makes sense. After all for the _data format_, in its
Hi folks,
I put some feedback up in a Hacker News comment
http://news.ycombinator.com/item?id=4487588, but it
probably makes sense to reproduce it here too, where comments
will be seen.
[By the way, Rich, I don’t use Clojure (... yet ...), but
your Stu’s talks are always an inspiration, and I
Just wanted to say thanks for putting in all the work on the shootout
programs, Andy.
On Friday, September 7, 2012 1:12:44 AM UTC-7, Andy Fingerhut wrote:
All Clojure programs within 4x the run time of the
corresponding Java programs, averaging around 2.5x the run
time of Java.
That's pretty
On Fri, Sep 7, 2012 at 3:45 AM, Rich Hickey richhic...@gmail.com wrote:
On Sep 7, 2012, at 12:33 AM, Daniel Pittman wrote:
On Thu, Sep 6, 2012 at 6:01 PM, Rich Hickey richhic...@gmail.com wrote:
I've started to document a subset of Clojure's data format in an effort to
get it more widely
Herwig,
Thanks for the detailed answers below.
(def my-app (app
wrap-stacktrace
(wrap-file resources/public/)
[page] (- (chrome page) response constantly)
[a b] (- a b response constantly))
[] (- Nothing was found response
(defn route-handler [req]
(throw (clojure.lang.ExceptionInfo. Error)))
OT - IMHO you should use ex-info (and its counterpart ex-data) instead
of the direct Java constructor.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You received this message because you are subscribed to
Looks like a bug.
Thanks, I filed the issue here:
http://dev.clojure.org/jira/browse/CLJS-376
Shantanu
--
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
Once again, thanks Andy!
I've added my feedback there
(http://dev.clojure.org/display/design/Allow+duplicate+map+keys+and+set+elements)
Patches implementing that are welcome.
Rich
On Sep 5, 2012, at 1:57 PM, Andy Fingerhut wrote:
I've copied and pasted Mark's arguments to the Wiki page
I addressed this here:
http://news.ycombinator.com/item?id=4489330
On Sep 7, 2012, at 2:36 AM, Elliot wrote:
On Thursday, September 6, 2012 8:31:59 PM UTC-7, Weber, Martin S wrote:
The question that's left for me is: why vectors and lists? I mean, from a
data format perspective, and a
https://github.com/ftravers/PublicDocumentation/blob/master/clojure/resource-file.md
Reading a resource file
File/directory layout:
$ tree
.
|-- pom.xml
|-- project.clj
|-- README.md`-- src
|-- test_project
| `-- Core.clj
`-- test.txt
Setting up this to be a library for use in
slurp is happy to slurp from a URL, no need for the (.getFile) call on
the resource. In other words, the file returned for a resource that's
been compiled into a jar isn't very useful. Stick with the URL
returned bye clojure.java.io/resource.
Dave
On Fri, Sep 7, 2012 at 10:58 AM, fenton
Thanks so much Dave that was it! :)
On Friday, September 7, 2012 11:08:50 AM UTC-7, daveray wrote:
slurp is happy to slurp from a URL, no need for the (.getFile) call on
the resource. In other words, the file returned for a resource that's
been compiled into a jar isn't very useful. Stick
Am 07.09.2012 19:06 schrieb Murtaza Husain murtaza.hus...@sevenolives.com
:
Herwig,
Thanks for the detailed answers below.
(def my-app (app
wrap-stacktrace
(wrap-file resources/public/)
[page] (- (chrome page) response constantly)
[a
Ah, didn't know about those. Thanks for the hint!
On Topic: Issue has been resolved in a private exchange.
kind regards
Am 07.09.2012 19:10 schrieb Baishampayan Ghose b.gh...@gmail.com:
(defn route-handler [req]
(throw (clojure.lang.ExceptionInfo. Error)))
OT - IMHO you should use
Zi is a maven plugin for working with clojure.
The 0.5.4 release adds support for the following goals:
* nrepl Launches a vanilla nREPL server
* ritz-nrepl Launches an nREPL server with debugger.
* ritz Launches a swank server with debugger. Now supports ritz-swank 0.4.1.
The project can be
Ritz is a collection of repl servers, middleware and repl utility
functions, supporting nREPL and swank/slime. The repl utilities can be
used from any repl.
The 0.4.1 release is mainly a bug fix release.
* Fixes an issue with in-ns not working correctly
* Fixes jack-in support for ritz-swank
This isn't actually a good
thing:
http://nelsonmorris.net/2012/07/31/do-not-use-version-ranges-in-project-clj.html
FWIW, even if it didn't use version ranges, the version of Clojure and
other dependencies that you use would take precedence over the ones it
specifies.
On Friday, September 7,
On Fri, Sep 7, 2012 at 10:49 AM, Rich Hickey richhic...@gmail.com wrote:
I've added my feedback there
(http://dev.clojure.org/display/design/Allow+duplicate+map+keys+and+set+elements)
Thanx Rich! So the recommendation is:
* set/map literals with duplicates are invalid (status quo)
*
For the record, Moustache does support the special case of returning a
literal string response:
user (run-jetty (app [hi] Hello, world!\n) {:port :join? false})
$ curl localhost:/hi
Hello, world!
On Friday, September 7, 2012 7:06:42 PM UTC+2, Murtaza Husain wrote:
Herwig,
Thanks
(intern *ns* 's) creates a non dynamic variable, but how do I achieve (def
^:dynamic s) programmatically?
Thanks, Marc
--
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
.setDynamic on the var.
This is implementation detail though...
Sent from phone. Please excuse brevity.
On 7 Sep 2012 13:04, Marc Dzaebel mdzae...@web.de wrote:
(intern *ns* 's) creates a non dynamic variable, but how do I achieve (def
^:dynamic s) programmatically?
Thanks, Marc
--
You
.setDynamic on the var.
Works fine! See also
http://blog.zolotko.me/2012/06/making-variable-dynamic-in-clojure.html.
Should be documented ...
Great help, thanks, Marc
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
On Sep 7, 2012, at 9:34 AM, Marko Topolnik wrote:
This is now on master —
https://github.com/clojure/core.incubator/commit/9f2590f2cf22c37ba66010983bf6eaf21a90084c
— and 0.1.2-SNAPSHOT is available from Sonatype's OSS snapshots repo.
Downloaded and confirmed that it works in my code.
Hi Hugo,
I'm not able to get the latest version of Zi to work. It seems to be having
a problem resolving a couple of it's dependencies:
[ERROR] Failed to execute goal org.cloudhoist.plugin:zi:0.5.4:compile
(default-cli) on project test: Execution default-cli of goal
works, 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 that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send
On Sep 7, 2012, at 3:35 PM, Sean Corfield wrote:
On Fri, Sep 7, 2012 at 10:49 AM, Rich Hickey richhic...@gmail.com wrote:
I've added my feedback there
(http://dev.clojure.org/display/design/Allow+duplicate+map+keys+and+set+elements)
Thanx Rich! So the recommendation is:
* set/map
Sorry for delay, I had difficulties with Google Groups ... posted several
times.
Thanks about the hint about *with-local-vars*, Marc
--
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
On Thu, Sep 6, 2012 at 8:26 PM, Weber, Martin S martin.we...@nist.gov wrote:
The question that's left for me is: why vectors and lists? I mean, from a
data format perspective, and a non-clojure implementor, I'm not sure the
distinction makes sense. After all for the _data format_, in its
On Fri, Sep 7, 2012 at 3:40 AM, Rich Hickey richhic...@gmail.com wrote:
On Sep 6, 2012, at 11:56 PM, David Nolen wrote:
So will colons become whitespace in maps so the JSON using hordes have an
easy upgrade path? ;)
{foo :true} ;;boolean or keyword?
Requiring whitespace after the colon
(sorry for top-posting)
Languages have random access / sequential data structures.
Sure. Languages. This is a data format, not a language. Why should I not
inflate a edn-list into a vector in my language? What if I don't have a random
access thing handy (because, e.g., I only have
On the wiki page, Rich Hickey wrote:
* If you think a month is too long to get a response to your needs, from a
bunch of very busy volunteers, you need to chill out
* just because you decided to bring it up doesn't mean everyone else needs
to drop what they are doing
For the record, I don't
On Fri, Sep 7, 2012 at 3:57 PM, Weber, Martin S martin.we...@nist.gov wrote:
Sure. Languages. This is a data format, not a language.
But languages will be doing the serialization / deserialization so
this is relevant.
Why should I not inflate a edn-list into a vector in my language? What if I
Stuart Halloway stuart.hallo...@gmail.com writes:
I started a wiki page for this:
http://dev.clojure.org/display/design/Never+Close+a+REPL
I believe these problems could be entirely solved in a contrib library
of helper functions for REPL development. This a significantly better
than
Hello Tom,
Tom Hickey thic...@gmail.com writes:
I'm not able to get the latest version of Zi to work. It seems to be having
a problem resolving a couple of it's dependencies:
[ERROR] Failed to execute goal org.cloudhoist.plugin:zi:0.5.4:compile
(default-cli) on project test: Execution
Hi Hugo,
Adding clojars as a pluginRepository worked. Thanks!
Tom
On Friday, September 7, 2012 7:58:23 PM UTC-4, Hugo Duncan wrote:
Hello Tom,
Tom Hickey thi...@gmail.com javascript: writes:
I'm not able to get the latest version of Zi to work. It seems to be
having
a problem
Tom Hickey thic...@gmail.com writes:
I'm not able to get the latest version of Zi to work. It seems to be having
a problem resolving a couple of it's dependencies:
[ERROR] Failed to execute goal org.cloudhoist.plugin:zi:0.5.4:compile
(default-cli) on project test: Execution default-cli of
It just crossed my mind, in our latest product version, we have protocols
extending lists, vectors and maps. I would hate very much to see lists
converted to
vectors because the spec does not support forwarding lists.
The receiver would not be able to act on the decoded structure properly with
Sure. Languages. This is a data format, not a language.
Data formats do not exist in a vacuum. They are parsed by languages.
Some may have a fine-grained distinction between lists, arrays/vectors
and sets and some may not.
Why should I not inflate a edn-list into a vector in my language?
Is this too Clojure specific ?
I wouldn't say so. By definition the definitions of list,
vector/array and set encompass the behavior in question. I think
people are getting too wrapped up by the textual representations where
the forms (1 2 3) [1 2 3] and #{1 2 3} look fairly similar. By nature
Java has arrays, lists, maps and sets, so does Ruby and Erlang.
If they were redundancies in these structures, can't see why these three still
maintain this distinction. It's probably a safe bet to say that we need to
convey these
nuances in edn somehow.
My question was meant as a preamble to
+1 -- Andy, thanks.
On Friday, September 7, 2012 at 11:32 AM, Stuart Sierra wrote:
Just wanted to say thanks for putting in all the work on the shootout
programs, Andy.
On Friday, September 7, 2012 1:12:44 AM UTC-7, Andy Fingerhut wrote:
All Clojure programs within 4x the run time of
I've been using the state monad in algo.monad, and found what i think is
a bug in the fetch-val function. There is also an efficiency issue with
this function.
I was unable to contact a maintainer of this library on irc (though i
didn't try very hard), So here is a gist with problem statement
Hello,
I found this bug related to `symbol` and quoted symbols in CLJS. Explained
below.
In Clojure:
user= (= 'a (symbol 'a))
true
In CLJS:
ClojureScript:cljs.user (= 'a (symbol 'a))
false
Unless this is related to http://dev.clojure.org/jira/browse/CLJS-376 I can
file a new issue for
I do find it interesting as I'm looking to put together a set of systems in
support of a not for profit broadband ISP (http://noisp.coop) here in
Australia where one of the required systems will be a wiki.
I'd love to and intend to utilise Clojure for the future versions of the
web site and
77 matches
Mail list logo