Re: edn

2012-09-07 Thread David Powell
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" 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 alterna

`cljs.reader/read-string` on anonymous functions

2012-09-07 Thread Shantanu Kumar
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 the

Re: A Performance Comparison of SBCL & Clojure

2012-09-07 Thread Andy Fingerhut
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 the

Re: edn

2012-09-07 Thread Ben Smith-Mannschott
On Fri, Sep 7, 2012 at 3:01 AM, 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: > > https://github.com/richhickey/edn > > Rich A few que

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
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 w

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
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 p

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
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

Possible bug in CLJS `case` with quoted symbols

2012-09-07 Thread Shantanu Kumar
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 ni

Re: Fund raiser for our projects

2012-09-07 Thread Simone Mosciatti
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 ou

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
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 dependenc

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
2012/9/7 Murtaza Husain > 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] (throw (clojure.lang.Exceptio

Re: ANN ritz 0.4.0 release with nREPL debugger support

2012-09-07 Thread Stefan Hübner
Hugo Duncan 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 or ritz-swank. But

Could strint be variadic?

2012-09-07 Thread Marko Topolnik
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 c

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
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 conte

Re: edn

2012-09-07 Thread Rich Hickey
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: > >

Re: edn

2012-09-07 Thread Rich Hickey
On Sep 7, 2012, at 12:33 AM, Daniel Pittman wrote: > On Thu, Sep 6, 2012 at 6:01 PM, 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

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
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

Re: edn

2012-09-07 Thread Rich Hickey
On Sep 7, 2012, at 4:36 AM, Ben Smith-Mannschott wrote: > On Fri, Sep 7, 2012 at 3:01 AM, 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

Re: ANN ritz 0.4.0 release with nREPL debugger support

2012-09-07 Thread Stefan Hübner
sthueb...@googlemail.com (Stefan Hübner) writes: > Hugo Duncan 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: --8<--

Re: Could strint be variadic?

2012-09-07 Thread Chas Emerick
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

Re: Could strint be variadic?

2012-09-07 Thread Mayank Jain
Interesting. Didn't know something like this existed. :) On Fri, Sep 7, 2012 at 5:06 PM, Chas Emerick 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 a problem.

Re: `cljs.reader/read-string` on anonymous functions

2012-09-07 Thread Moritz Ulrich
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 wrote: > Hello, > > Anonymous functions with #() notation (example below) expand

Re: Could strint be variadic?

2012-09-07 Thread Marko Topolnik
> > 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 pr

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-07 Thread lambdatronic
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 (

Re: A Performance Comparison of SBCL & Clojure

2012-09-07 Thread Isaac Gouy
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 tha

Re: Expanding the Community Through Online Courses

2012-09-07 Thread Armando Blancas
> > 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 c

Re: redefining multimethods at the repl

2012-09-07 Thread Laurent PETIT
2012/9/5 Stuart Halloway : > 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 could add an experim

Re: ANN ritz 0.4.0 release with nREPL debugger support

2012-09-07 Thread Hugo Duncan
sthueb...@googlemail.com (Stefan Hübner) writes: > Hugo Duncan 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 it to use

Re: redefining multimethods at the repl

2012-09-07 Thread Nelson Morris
On Fri, Sep 7, 2012 at 9:56 AM, Laurent PETIT wrote: > 2012/9/5 Stuart Halloway : >> 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 p

Re: Possible bug in CLJS `case` with quoted symbols

2012-09-07 Thread David Nolen
On Fri, Sep 7, 2012 at 5:26 AM, Shantanu Kumar 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 > > In the

Re: ANN ritz 0.4.0 release with nREPL debugger support

2012-09-07 Thread George Jahad
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

Re: Browser as an Evaluation Environment error

2012-09-07 Thread David Nolen
On Thu, Sep 6, 2012 at 10:29 AM, goracio 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 clojurescript repl

Re: edn

2012-09-07 Thread Elliot
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 seria

Re: edn

2012-09-07 Thread Jacob Rus
Hi folks, I put some feedback up in a Hacker News comment , 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

Re: A Performance Comparison of SBCL & Clojure

2012-09-07 Thread Stuart Sierra
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 pret

Re: edn

2012-09-07 Thread Daniel Pittman
On Fri, Sep 7, 2012 at 3:45 AM, Rich Hickey wrote: > On Sep 7, 2012, at 12:33 AM, Daniel Pittman wrote: >> On Thu, Sep 6, 2012 at 6:01 PM, 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

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
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" re

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Baishampayan Ghose
> (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

Re: Possible bug in CLJS `case` with quoted symbols

2012-09-07 Thread Shantanu Kumar
> 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

Re: Question about sets

2012-09-07 Thread Rich Hickey
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 her

Re: edn

2012-09-07 Thread Rich Hickey
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 non

clojure library code fails to load resource file when called from java

2012-09-07 Thread fenton
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 Ja

Re: clojure library code fails to load resource file when called from java

2012-09-07 Thread Dave Ray
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 wrote: >

Re: clojure library code fails to load resource file when called from java

2012-09-07 Thread 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. Stic

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
Am 07.09.2012 19:06 schrieb "Murtaza Husain" : > > > 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"

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
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" : > > (defn route-handler [req] > > (throw (clojure.lang.ExceptionInfo. "Error"))) > > OT - IMHO you should use ex-info (and

ANN Zi 0.5.4

2012-09-07 Thread Hugo Duncan
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

ANN Ritz 0.4.1

2012-09-07 Thread Hugo Duncan
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 *

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
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, 2

Re: Question about sets

2012-09-07 Thread Sean Corfield
On Fri, Sep 7, 2012 at 10:49 AM, Rich Hickey 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) * hash-set/hash-map should c

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Marko Topolnik
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, >

How create dynamic vars programmatically?

2012-09-07 Thread Marc Dzaebel
(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

Re: How create dynamic vars programmatically?

2012-09-07 Thread Baishampayan Ghose
.setDynamic on the var. This is implementation detail though... Sent from phone. Please excuse brevity. On 7 Sep 2012 13:04, "Marc Dzaebel" wrote: > (intern *ns* 's) creates a non dynamic variable, but how do I achieve (def > ^:dynamic s) programmatically? > > Thanks, Marc > > -- > You received

Re: How create dynamic vars programmatically?

2012-09-07 Thread Marc Dzaebel
>> .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 e

clojure.core.incubator 0.1.2 released (was: Re: Could strint be variadic?)

2012-09-07 Thread Chas Emerick
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.

Re: ANN Zi 0.5.4

2012-09-07 Thread Tom Hickey
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 org.cloudhoist.plugin:zi:0.

Re: How create dynamic var programmatically

2012-09-07 Thread Marc Dzaebel
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

Re: Question about sets

2012-09-07 Thread Rich Hickey
On Sep 7, 2012, at 3:35 PM, Sean Corfield wrote: > On Fri, Sep 7, 2012 at 10:49 AM, Rich Hickey 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 du

Re: Create dynamic vars programmatically

2012-09-07 Thread Marc Dzaebel
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 t

Re: edn

2012-09-07 Thread Sean Corfield
On Thu, Sep 6, 2012 at 8:26 PM, 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 serialized > form, the

Re: edn

2012-09-07 Thread Sean Corfield
On Fri, Sep 7, 2012 at 3:40 AM, Rich Hickey 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 doesn't seem a hug

RE: edn

2012-09-07 Thread Weber, Martin S
(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 trees/tables,

Re: Question about sets

2012-09-07 Thread Mark Engelberg
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 really

Re: edn

2012-09-07 Thread Sean Corfield
On Fri, Sep 7, 2012 at 3:57 PM, Weber, Martin S 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 > don't have a rand

Re: redefining multimethods at the repl

2012-09-07 Thread Phil Hagelberg
Stuart Halloway 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 making changes to Cloju

Re: ANN Zi 0.5.4

2012-09-07 Thread Hugo Duncan
Hello Tom, Tom Hickey 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

Re: ANN Zi 0.5.4

2012-09-07 Thread Tom Hickey
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 > writes: > > > I'm not able to get the latest version of Zi to work. It seems to be > having > > a problem resolving a couple o

RE: edn

2012-09-07 Thread Softaddicts
You may want to distinguish between sequential versus random access, if your language supports both. If there is no such need in a given language, then the implementation can parse them to the same data structure. Why not meet the general case ? What's the cost ? You are not doing this processi

Re: ANN Zi 0.5.4

2012-09-07 Thread Hugo Duncan
Tom Hickey 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 goal > org.c

RE: edn

2012-09-07 Thread Softaddicts
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

Re: edn

2012-09-07 Thread Michael Fogus
> 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? Wh

Re: edn

2012-09-07 Thread Michael Fogus
> 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

Re: edn

2012-09-07 Thread Softaddicts
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 th

Re: A Performance Comparison of SBCL & Clojure

2012-09-07 Thread Devin Walters
+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

algo.monad state-m fetch-val bug and efficiency issue

2012-09-07 Thread Phlex
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

Bug in CLJS `symbol` with quoted symbol

2012-09-07 Thread Shantanu Kumar
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 thi

Re: PBI: Datomic-based wiki

2012-09-07 Thread marc
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 sup

Re: Question about sets

2012-09-07 Thread Andy Fingerhut
The new ticket CLJ-1065 has a patch that I think implements the desired behavior on the dev wiki page. i.e. set/map literals with duplicates are invalid (status quo) All constructor functions for sets and maps allow duplicates, and for maps, always take the value associated with the last occurr